#include <AlLightNode.h>
class AlLightNode: public AlDagNode
virtual ~AlLightNode();
virtual AlObject *copyWrapper() const;
statusCode deleteObject();
AlObjectType type() const;
AlLightNode* asLightNodePtr();
AlLight* light() const;
AlLight* light(AlTM&) const;
virtual boolean isInstanceable();
boolean isLookAtNode() const;
boolean isUpNode() const;
boolean isPositionNode() const;
To create a light node, the user must create a specific type of light, which automatically creates the necessary light nodes. These light nodes are grouped and inserted into the universe's dag. The user cannot directly instantiate a light node.
Summary
AlLightNode::~AlLightNode()
Description
Deletes an AlLightNode wrapper object. AlObject *AlLightNode::copyWrapper() const
Description
Return an exact duplicate of this AliLightNode. statusCode AlLightNode::deleteObject()
Description
This method deletes all objects associated with this light node. It deletes the attached light object, which in turn deletes the other attached light dag nodes. A light can be deleted in two ways. If AlLight::deleteObject() is called, it deletes the associated AlLightNodes. If AlLightNode::deleteObject() is called, it deletes the associated AlLight. Return codes
sSuccess - the light node and light were deleted AlObjectType AlLightNode::type() const
Description
Returns the light node type, kLightNodeType (for the light's position node), kLightUpNodeType (for the light's up node), and kLightLookAtNodeType (for the light's look at node). AlLightNode* AlLightNode::asLightNodePtr()
Description
Returns NULL is this object is NOT a light node. Otherwise, returns a pointer to this light node. AlLight *AlLightNode::light() const
Description
Returns a pointer to the attached light object. If the light does not exist or is not the right type, then NULL is returned. AlLight *AlLightNode::light(AlTM& tm) const
Description
Returns a pointer to the attached light object. If the light does not exist or is not the right type, then NULL is returned. The AlTM will be updated with the lightNode's TM if a light exists. Arguments
> tm - the transformation matrix to update with the lightnode's TM boolean AlLightNode::isInstanceable()
Description
Returns FALSE. An AlLightNode is not an instanceable dag node. boolean AlLightNode::isLookAtNode() const
Description
Returns TRUE if this node is a 'look at' node. boolean AlLightNode::isUpNode() const
Description
Returns TRUE if this node is a 'up' node. boolean AlLightNode::isPositionNode() const
Description
Returns TRUE if this node is a 'position' node.