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 () |
Spectrumiterator | createSpectrumiterator () |
Spectrum | findSpectrumByName (const char *name) |
int | beginChange () |
int | endChange () |
Spectrum | getDefaultSpectrum () |
int | setDefaultSpectrum (const Spectrum &spectrum) |
int | readDescription (const char *description) |
char * | writeDescription () |
Spectrummodulenotifier | createSpectrummodulenotifier () |
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 |
Create a spectrum iterator object for iterating through the spectrums in the spectrum module, in alphabetical order of name. The iterator initially points at the position before the first spectrum, so the first call to the iterator next() method returns the first spectrum and advances the iterator. The iterator becomes invalid if spectrums are added, removed or renamed while in use.
spectrums are to be iterated over.
|
inline |
Create a notifier for getting callbacks for changes to the spectrums in the spectrum module.
|
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 |
Read the json description to the spectrum module. This will change the spectrums in the spectrum module.
The string containing json description
|
inline |
Set the default spectrum.
spectrum | The spectrum to set as default. |
|
inline |
Write the json file describing the spectrums in the spectrum module, which can be used to store the current spectrum settings.