This class describes a constant color scheme.
More...
|
| SBDColorSchemeConstant () |
| Constructs a color (1.0f, 1.0f, 1.0f, 1.0f)
|
|
| SBDColorSchemeConstant (float red, float green, float blue, float alpha=1.0f) |
| Constructs a color (red, green, blue, alpha)
|
|
| SBDColorSchemeConstant (unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha=255) |
| Constructs a color (red, green, blue, alpha)
|
|
| SBDColorSchemeConstant (float *color) |
| Constructs a color (color[0], color[1], color[2], color[3])
|
|
| SBDColorSchemeConstant (const SBColor &color) |
| Constructs a color (color[0], color[1], color[2], color[3])
|
|
virtual | ~SBDColorSchemeConstant () |
| Destructs the color.
|
|
|
virtual bool | isSerializable () const override |
| Returns true.
|
|
virtual void | serialize (SBCSerializer *serializer, const SBNodeIndexer &nodeIndexer, const SBVersionNumber &sdkVersionNumber=SB_SDK_VERSION_NUMBER, const SBVersionNumber &classVersionNumber=SBVersionNumber(1, 0, 0)) const override |
| Serializes the document.
|
|
virtual void | unserialize (SBCSerializer *serializer, const SBNodeIndexer &nodeIndexer, const SBVersionNumber &sdkVersionNumber=SB_SDK_VERSION_NUMBER, const SBVersionNumber &classVersionNumber=SBVersionNumber(1, 0, 0)) override |
| Unserializes the document.
|
|
|
| SBDDataGraphNodeColorScheme () |
| Constructs a color scheme.
|
|
virtual | ~SBDDataGraphNodeColorScheme () |
| Destructs the color scheme.
|
|
virtual bool | canHavePalette () const |
| Returns whether the color scheme requires and therefore can have a color palette.
|
|
virtual SBDPalette * | getDefaultPalette () const |
| Returns a clone of the default color palette for this color scheme.
|
|
bool | hasPalette () const |
| Returns whether the color scheme has a color palette defined.
|
|
const SBDPalette * | getPalette () const |
| Returns a pointer to a color palette owned by the color scheme.
|
|
void | setPalette (SBDPalette *palette) |
| Sets the color palette for color schemes that can have it. The color scheme takes ownership of the color palette. If NULL is supplied then it will reset to the default color palette.
|
|
void | resetPalette () |
| Resets the color palette to the default one for color schemes that can have it.
|
|
void | requestUpdate () |
| Requests a material update for a node to which the material that owns this color scheme is applied.
|
|
| SB_DECLARE_DATA (SBDDataGraphNodeColorScheme) |
|
unsigned int | getMemoryFootprint () const |
|
void | printReferencesToOwners () const |
|
| SBCReferenceTarget () |
|
virtual | ~SBCReferenceTarget () |
|
| SBDDataGraphNodeColorScheme (SBDDataGraphNodeColorSchemeData *dataPointer) |
|
void | removeAllReferenceOwners () |
|
| SBCReferenceTarget (SBCReferenceTargetData *dataPointer) |
|
SBCReferenceTargetData * | dataPointer |
|
This class describes a constant color scheme. Please refer to this page for more information.
- See also
- Color schemes
◆ clone()
◆ getColor()
◆ isSerializable()
bool SBDColorSchemeConstant::isSerializable |
( |
| ) |
const |
|
overridevirtual |
◆ serialize()
◆ unserialize()