Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

RmLightReference Class Reference

Light Object. More...

#include <RmEffect.h>

Inheritance diagram for RmLightReference:

RmNode List of all members.

Public Member Functions

 RmLightReference ()
 Public member functions Default Constructor.

 RmLightReference (const RM_TCHAR *strLightName)
 Constructor.

virtual ~RmLightReference ()
 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 RmNodeClone (bool bIncludeLoadedData)
 Clone this node.

virtual const RM_TCHAR * GetDescription ()
virtual bool IsNodeValid ()
 Is node valid.

RmNodeGetReference ()
 Get reference.

void SetReference (RmLightVariable *pRmLightVariable)
 Set reference.


Protected Member Functions

virtual void CopyNodeData (RmNode *pDestinationNode, bool bIncludeLoadedData)
 Protected member functions Copy node data.

virtual RmNodeTypeChildRuleListGetNodeTypeChildRuleList ()
 Parent / Child rule list function.

virtual void SetNodeTypeChildRuleList (RmNodeTypeChildRuleList *pRmNodeChildRuleList)
 Sets the node child rule list for the given node.


Protected Attributes

RmLightVariablem_pLightNode
 The light variable that this ;ight references to.


Detailed Description

Light Object.

RmLightReference structure specifies the name of a Light


Constructor & Destructor Documentation

RmLightReference::RmLightReference  ) 
 

Public member functions Default Constructor.

Default constructor

RmLightReference::RmLightReference const RM_TCHAR *  strLightName  ) 
 

Constructor.

Creates Light reference with a given name that points to the Light variable name this node references

Parameters:
strLightName Name of node

virtual RmLightReference::~RmLightReference  )  [virtual]
 

Destructor.

Destructor


Member Function Documentation

virtual RmNode* RmLightReference::Clone bool  bIncludeLoadedData  )  [virtual]
 

Clone this node.

Creates a clone of this node

Returns:
Cloned node. Returns NULL if cloning failed.

Reimplemented from RmNode.

virtual void RmLightReference::CopyNodeData RmNode pDestinationNode,
bool  bIncludeLoadedData
[protected, virtual]
 

Protected member functions Copy node data.

Copies this node's contents (not including children) into the destination node. See RmNode::CopyNodeData for details

Parameters:
pDestinationNode the destination node
Returns:
None

Reimplemented from RmNode.

virtual const RM_TCHAR* RmLightReference::GetDescription  )  [virtual]
 

Returns description of the node: used for displaying a tooltip in the workspace tree view for the given node.

Returns:
Returns description string

Reimplemented from RmNode.

virtual RmNodeTypeChildRuleList* RmLightReference::GetNodeTypeChildRuleList  )  [inline, protected, virtual]
 

Parent / Child rule list function.

Retrieves the rule list for adding child nodes for a given node type

Returns:
Returns node type child list rules

Reimplemented from RmNode.

RmNode* RmLightReference::GetReference  )  [inline]
 

Get reference.

Retrieve the node this Light reference refers to

Returns:
Refeneced node

virtual bool RmLightReference::IsNodeValid  )  [inline, virtual]
 

Is node valid.

Node valid property

Returns:
True if node is valid

Reimplemented from RmNode.

virtual bool RmLightReference::LoadXMLData int  hDoc,
const RM_TCHAR *  strXPath,
const RM_TCHAR *  strRmXMLVersion
[virtual]
 

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.

Parameters:
hDoc Handle to the XML document
strXPath Node path in XML
strRmXMLVersion XML version
Returns:
True if load succeeded. False otherwise.

Reimplemented from RmNode.

virtual bool RmLightReference::SaveXMLData int  hDoc,
const RM_TCHAR *  strXPath
[virtual]
 

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.

Parameters:
hDoc Handle to the XML document
strXPath Node path in XML
Returns:
True if save succeeded. False otherwise.

Reimplemented from RmNode.

virtual void RmLightReference::SetNodeTypeChildRuleList RmNodeTypeChildRuleList pRmNodeChildRuleList  )  [inline, protected, virtual]
 

Sets the node child rule list for the given node.

Sets the child addition rule list for the given node.

Parameters:
pRmNodeChildRuleList new node rules list
None 

Reimplemented from RmNode.

void RmLightReference::SetReference RmLightVariable pRmLightVariable  ) 
 

Set reference.

Set Light reference node for this object

Parameters:
pRmLightVariable Light node to reference to
See also:
RmLightVariable
Returns:
None

virtual void RmLightReference::Update RmNodeUpdateType  nodeUpdateType,
RmNode pRmUpdateRootNode
[virtual]
 

Update.

Updates the internal values of the node

Parameters:
nodeUpdateType Update type
See also:
RmNodeUpdateType
Parameters:
pRmUpdateRootNode Root node for update
Returns:
None

Reimplemented from RmNode.


The documentation for this class was generated from the following file:
Generated on Fri Feb 25 16:09:05 2005 for RenderMonkey SDK by doxygen 1.3.6