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

Public Types | |
| enum | LightVariableType { TypePositional, TypeDirectional, TypeSpotlight } |
| Public Type Definitions Light Type. More... | |
Public Member Functions | |
| RmLightVariable () | |
| Public Member Functions Constructor. | |
| virtual | ~RmLightVariable () |
| 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) |
| SetName. | |
| LightVariableType | GetLightVariableType () |
| LightType. | |
| void | SetLightVariableType (LightVariableType lightVariableType) |
| Set new Light type. | |
| bool | IsEnabled () |
| Enabled Flag. | |
| void | SetIsEnabled (bool bEnabled) |
| Set enabled flag. | |
| const float * | GetAmbientColor () |
| Get ambient color. | |
| const float * | GetDiffuseColor () |
| Get diffuse color. | |
| const float * | GetSpecularColor () |
| Get specular color. | |
| void | SetAmbientColor (float *pfColorArray) |
| Set ambient color. | |
| void | SetDiffuseColor (float *pfColorArray) |
| Set diffuse color. | |
| void | SetSpecularColor (float *pfColorArray) |
| Set specular color. | |
| const float * | GetPosition () |
| Get position. | |
| const float * | GetDirection () |
| Get direction. | |
| void | SetPosition (float *pfPositionArray) |
| Set position. | |
| void | SetDirection (float *pfDirectionArray) |
| Set direction. | |
| const float * | GetAttenuation () |
| Get attenuation. | |
| void | SetAttenuation (float *pfAttenuationArray) |
| Set attenuation. | |
| float | GetSpotlightTheta () |
| Get spotlight theta. | |
| float | GetSpotlightPhi () |
| Get spotlight phi. | |
| void | SetSpotlightTheta (float fSpotlightTheta) |
| Set spotlight theta. | |
| void | SetSpotlightPhi (float fSpotlightPhi) |
| Set spotlight phi. | |
| float | GetRange () |
| Get range. | |
| float | GetFalloff () |
| Get falloff. | |
| void | SetRange (float fRange) |
| Set range. | |
| void | SetFalloff (float fFalloff) |
| Set falloff. | |
Protected Member Functions | |
| virtual void | CopyNodeData (RmNode *pDestinationNode, bool bIncludeLoadedData) |
| Protected Member Functions 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 | |
| LightVariableType | m_lightVariableType |
| Light type. | |
| bool | m_bEnabled |
| Enabled flag. | |
| float | m_fAmbientColorArray [4] |
| Ambient color. | |
| float | m_fDiffuseColorArray [4] |
| Diffuse color. | |
| float | m_fSpecularColorArray [4] |
| Specular color. | |
| float | m_fPositionArray [3] |
| Light's position. | |
| float | m_fDirectionArray [3] |
| Light's direction. | |
| float | m_fAttenuationArray [3] |
| Attenuation. | |
| float | m_fSpotlightTheta |
| Theta angle. | |
| float | m_fSpotlightPhi |
| Phi angle. | |
| float | m_fRange |
| Range of light. | |
| float | m_fFalloff |
| Falloff distance. | |
RmLightVariable is a class for general light properties
|
|
Public Type Definitions Light Type. Type of Light |
|
|
Public Member Functions Constructor. Constructor |
|
|
Destructor. Destructor |
|
|
Clone this node. Creates a clone of this node
Reimplemented from RmNode. |
|
||||||||||||
|
Protected Member Functions Copy node data. Copies this node's contents (not including children) into the destination node. See RmNode::CopyNodeData for details
Reimplemented from RmVariable. |
|
|
Get ambient color. Get ambient color
|
|
|
Get attenuation. Get attenuation
|
|
|
Returns description of the node: used for displaying a tooltip in the workspace tree view for the given node
Reimplemented from RmNode. |
|
|
Get diffuse color. Get diffuse color
|
|
|
Get direction. Get direction
|
|
|
Get falloff. Get falloff distance of light
|
|
|
LightType. Get light yype
|
|
|
Parent / Child rule list function. Retrieves the rule list for adding child nodes for a given node type
Reimplemented from RmVariable. |
|
|
Get position. Get position
|
|
|
Get range. Get Range of light
|
|
|
Get specular color. Get specular color
|
|
|
Get spotlight phi. Get spotlight outer angle in dgrees
|
|
|
Get spotlight theta. Get spotlight inner angle in dgrees
|
|
|
Enabled Flag. Light enabled flag
|
|
||||||||||||||||
|
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. |
|
|
Set ambient color. Set ambient color
|
|
|
Set attenuation. Set attenuation
|
|
|
Set diffuse color. Set diffuse color
|
|
|
Set direction. Set direction
|
|
|
Set falloff. Set falloff of light
|
|
|
Set enabled flag. Assign enabled flag
|
|
|
Set new Light type. Assign new type of light
|
|
|
SetName. 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 position. Set position
|
|
|
Set range. Set Range of light
|
|
|
Set specular color. Set specular color
|
|
|
Set spotlight phi. Set spotlight outer angle in dgrees
|
|
|
Set spotlight theta. Set spotlight inner angle in dgrees
|
|
||||||||||||
|
Update. Updates the internal values of the node
Reimplemented from RmNode. |
1.3.6