OpenCMISS-Zinc C++ API Documentation
|
Module managing all spectrums. More...
#include <spectrum.hpp>
Public Member Functions | |
Spectrummodule (cmzn_spectrummodule_id in_spectrummodule_id) | |
Spectrummodule (const Spectrummodule &spectrummodule) | |
Spectrummodule & | operator= (const Spectrummodule &spectrummodule) |
bool | isValid () const |
cmzn_spectrummodule_id | getId () const |
Spectrum | createSpectrum () |
Spectrum | findSpectrumByName (const char *name) |
int | beginChange () |
int | endChange () |
Spectrum | getDefaultSpectrum () |
int | setDefaultSpectrum (const Spectrum &spectrum) |
Protected Attributes | |
cmzn_spectrummodule_id | id |
Module managing all spectrums.
Module managing all spectrums.
|
inline |
Begin caching or increment cache level for this spectrum module. Call this function before making multiple changes to minimise number of change messages sent to clients. Must remember to end_change after completing changes. Can be nested.
|
inline |
Create and return a new spectrum.
spectrum will belong to.
|
inline |
Decrement cache level or end caching of changes for the spectrum module. Call spectrum module begin change method before making multiple changes and call this afterwards. When change level is restored to zero, cached change messages are sent out to clients.
|
inline |
Find the spectrum with the specified name, if any.
name | The name of the spectrum. |
|
inline |
Get the default spectrum, if any. By default, a single component spectrum with COLOUR_MAPPING_TYPE_RAINBOW is returned.
|
inline |
Return the C handle of the Spectrummodule object.
|
inline |
Check if this is a valid Spectrummodule object.
|
inline |
Set the default spectrum.
spectrum | The spectrum to set as default. |