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

Public Member Functions | |
| RmVectorVariable () | |
| Default constructor. | |
| RmVectorVariable (float fX, float fY, float fZ, float fW, bool bClamp, bool bNormalize, float fMin=-10.0f, float fMax=10.0f) | |
| Default constructor. | |
| RmVectorVariable (float fX, float fY, float fZ, float fW) | |
| Default constructor. | |
| RmVectorVariable (float fVector[4]) | |
| Default constructor. | |
| virtual | ~RmVectorVariable () |
| 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 () |
| virtual void | SetName (const RM_TCHAR *strNewName) |
| Set Name. | |
| float * | GetData () |
| float | GetValue (int nIndex) |
| void | SetValue (int nIndex, float fValue) |
| Set Value. | |
| void | SetValues (float fX, float fY, float fZ, float fW) |
| Set Values. | |
| void | SetValues (float fValues[4]) |
| Set values. | |
| bool | IsClamped () |
| Clamping flag. | |
| void | SetIsClamped (bool bClamp) |
| Set clamping flag. | |
| float | GetMin () |
| Get min. | |
| float | GetMax () |
| Get max. | |
| void | SetMin (float fMin) |
| Set min value. | |
| void | SetMax (float fMax) |
| Set max value. | |
| void | SetMinMax (float fMin, float fMax) |
| Set min & max. | |
| bool | IsNormalized () |
| Normalized flag. | |
| void | SetIsNormalized (bool bValue) |
| Set normalizing flag. | |
| void | Normalize () |
| Normalize. | |
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_fValues [4] |
| The actual values stored in this vector. | |
| float | m_fMin |
| The min clamping a variable. | |
| float | m_fMax |
| The max clamping a variable. | |
| bool | m_bClamp |
| A flag denoting whether this variable is clamped to the bounds or not. | |
| bool | m_bNormalize |
RmVector is class for a VECTOR of 4 float values
|
|
Default constructor. Default constructor - creates a vector with first 3 components being 0, and last one equaling 1.0. By default clamping and normalizing is off |
|
||||||||||||||||||||||||||||||||||||
|
Default constructor. Default constructor: Creates a new vector with 4 initialized components, and specifies whether the vector should be clamped to specified bounds, and whether first three components should be kept normalized (bNormalize = true) or not. |
|
||||||||||||||||||||
|
Default constructor. Default constructor - Creates a new vector with 4 initialized components, unclamped and unnormalized by default. |
|
|
Default constructor. Default constructor - Creates a new vector with 4 initialized components, unclamped and unnormalized by default. |
|
|
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. |
|
|
Retrieve a pointer to the data values of this vector
|
|
|
Returns description of the node: used for displaying a tooltip in the workspace tree view for the given node. Create tooltip for the vector variable in the form: ( X, Y, Z, W )
Reimplemented from RmNode. |
|
|
Get max. Retrieve maximum clamping bound value for the vector
|
|
|
Get min. Retrieve minimum clamping bound value for the vector
|
|
|
Parent / Child rule list function. Retrieves the rule list for adding child nodes for a given node type
Reimplemented from RmVariable. |
|
|
Retrieve vector component given its nIndex
|
|
|
Clamping flag. Retrieve whether this vector's components are being clamped
|
|
|
Normalized flag. Retrieve whether the first three components of this vector node are kept normalized ///
|
|
||||||||||||||||
|
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. |
|
|
Normalize. Normalize the first three components of the vector
|
|
||||||||||||
|
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. |
|
|
Set clamping flag. Set whether vector components should be clamped
|
|
|
Set normalizing flag. Set whether the first three components of the vector should be kept normalized ///
|
|
|
Set max value.
|
|
|
Set min value. Set minimum clamping bound value for the vector
|
|
||||||||||||
|
Set min & max. Set clamping bounds for the vector
|
|
|
Set Name. Set the name of the node to the specified value
Reimplemented from RmNode. |
|
|
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 vector component to the new value given component's nIndex
|
|
|
Set values. Set new values for all vector components
|
|
||||||||||||||||||||
|
Set Values. Set new values for all vector components
|
|
||||||||||||
|
Update. Updates the internal values of the node
Reimplemented from RmNode. |
|
|
A flag denoting whether this variable should be normalized or not |
1.3.6