#include <RmEffect.h>
Inheritance diagram for RmColorVariable:

Public Member Functions | |
| RmColorVariable () | |
| Default Constructor. | |
| RmColorVariable (float fRed, float fGreen, float fBlue, float fAlpha) | |
| Constructor. | |
| RmColorVariable (float fColor[4]) | |
| Constructor. | |
| RmColorVariable (const RM_TCHAR *strName, float fRed, float fGreen, float fBlue, float fAlpha) | |
| Constructor. | |
| RmColorVariable (const RM_TCHAR *strName, float fColor[4]) | |
| Constructor. | |
| virtual | ~RmColorVariable () |
| Destructor. | |
| virtual void | Update (RmNodeUpdateType nodeUpdateType, RmNode *pRmUpdateRootNode) |
| Update. | |
| virtual bool | LoadXMLData (int hDoc, const RM_TCHAR *strXPath, const RM_TCHAR *strRmXMLVersion) |
| Load node data from XML. | |
| virtual bool | SaveXMLData (int hDoc, const RM_TCHAR *strXPath) |
| Save node data to XML. | |
| virtual RmNode * | Clone (bool bIncludeLoadedData) |
| Clone this node. | |
| virtual const RM_TCHAR * | GetDescription () |
| float * | GetValue () |
| Get value. | |
| float | GetChannel (int nIndex) |
| Get channel. | |
| float | GetR () |
| Get red. | |
| float | GetG () |
| Get green. | |
| float | GetB () |
| Get blue. | |
| float | GetA () |
| Get blue. | |
| void | SetValue (int nIndex, float fValue) |
| Set value. | |
| void | SetValues (float fValues[4]) |
| Set values. | |
Protected Member Functions | |
| virtual void | CopyNodeData (RmNode *pDestinationNode, bool bIncludeLoadedData) |
| Copy node data. | |
| virtual RmNodeTypeChildRuleList * | GetNodeTypeChildRuleList () |
| Parent / Child rule list function. | |
| virtual void | SetNodeTypeChildRuleList (RmNodeTypeChildRuleList *pRmNodeChildRuleList) |
| Sets the node child rule list for the given node. | |
Protected Attributes | |
| float | m_fColor [4] |
| 4 component color, each component can be in the range of [-1.0, 1.0] | |
RmColor is a node containing a COLOR variable
|
|
Default Constructor. Default constructor: creates a new color node, set to white by default with 1.0 alpha value |
|
||||||||||||||||||||
|
Constructor. Creates a new color variable with specified four channels. Note: the values for each channel must be in the range of 0.0 to 1.0
|
|
|
Constructor. Creates a new color variable with specified four channels. Note: the values for each channel must be in the range of 0.0 to 1.0
|
|
||||||||||||||||||||||||
|
Constructor. Creates a new color variable with specified four channels and name. Note: the values for each channel must be in the range of 0.0 to 1.0
|
|
||||||||||||
|
Constructor. Creates a new color variable with specified four channels and name. Note: the values for each channel must be in the range of 0.0 to 1.0
|
|
|
Destructor. Destructor |
|
|
Clone this node. Creates a clone of this node
Reimplemented from RmNode. |
|
||||||||||||
|
Copy node data. Copies this node's contents (not including children) into the destination node. See RmNode::CopyNodeData for details
Reimplemented from RmVariable. |
|
|
Get blue. Retrieve alpha component of the color node
|
|
|
Get blue. Retrieve blue component of the color node
|
|
|
Get channel. Retrieve specific channel (0..3) from color
|
|
|
Returns description of the node: used for displaying a tooltip in the workspace tree view for the given node. Displays in the form of (R: x, G: x, B: x, A: x)
Reimplemented from RmNode. |
|
|
Get green. Retrieve green component of the color node
|
|
|
Parent / Child rule list function. Retrieves the rule list for adding child nodes for a given node type
Reimplemented from RmVariable. |
|
|
Get red. Retrieve red component of the color node
|
|
|
Get value. Retrieve the values of the color node - 4 floats
|
|
||||||||||||||||
|
Load node data from XML. Loads versioned XML node data. Note that this method will only load the contents of each node, not the data for all of the children nodes. Each child will have its own XML loading function called by the API.
Reimplemented from RmVariable. |
|
||||||||||||
|
Save node data to XML. Saves node's contents to XML. Note that this method will only save the contents of each node, not the data for all of the children nodes. Each child will have its own XML saving function called by the API.
Reimplemented from RmVariable. |
|
|
Sets the node child rule list for the given node. Sets the child addition rule list for the given node.
Reimplemented from RmVariable. |
|
||||||||||||
|
Set value. Set value for specific channel in the color node. Note: the values for each channel must be in the range of 0.0 to 1.0
|
|
|
Set values. Set all values for all four color channels at once. Note: the values for each channel must be in the range of 0.0 to 1.0
|
|
||||||||||||
|
Update. Updates the internal values of the node
Reimplemented from RmNode. |
1.3.6