#include <AlCameraNode.h>
class AlCameraNode : public AlDagNode
virtual ~AlCameraNode();
virtual AlObject* copyWrapper() const;
virtual statusCode deleteObject();
virtual AlObjectType type() const;
virtual AlCameraNode* asCameraNodePtr();
virtual boolean isInstanceable();
boolean isEyeNode() const;
boolean isViewNode() const;
boolean isUpNode() const;
AlCamera* camera() const;
AlCamera* camera(AlTM&) const;
To create a camera node, the user must create a camera, which will automatically create the necessary camera nodes. The user cannot directly instantiate an AlCameraNode.
Summary
AlCameraNode::~AlCameraNode()
Description
Deletes an AlCameraNode wrapper object. AlObject* AlCameraNode::copyWrapper() const
Description
This method makes a copy of the AlCameraNode. The returned AlCameraNode will reference the same data as the original. statusCode AlCameraNode::deleteObject()
Description
This method deletes the associated AlCamera (which in turn deletes all the attached camera eye, view and up nodes). Return codes
sSuccess - the camera data was successfully deleted AlObjectType AlCameraNode::type() const
Description
Returns the class identifier for a camera node. This can be any one of kCameraEyeType, kCameraViewType, or kCameraUpType. AlCameraNode* AlCameraNode::asCameraNodePtr()
Description
This virtual function returns a non-null pointer to itself, indicating that it is safe to cast to an object of this class. boolean AlCameraNode::isInstanceable()
Description
Returns FALSE. An AlCameraNode is not an instanceable dag node. boolean AlCameraNode::isEyeNode() const
Description
Returns TRUE if this camera node represents the eye position of a camera. boolean AlCameraNode::isViewNode() const
Description
Returns TRUE if this camera node represents the view position of a camera. boolean AlCameraNode::isUpNode() const
Description
Returns TRUE if this camera node represents the up position of a camera. AlCamera* AlCameraNode::camera() const
Description
Returns a pointer to the attached AlCamera object. AlCamera* AlCameraNode::camera(AlTM& tm) const
Description
Returns a pointer to the attached camera object. The AlTM will be updated with the cameraNode's TM if a camera exists. Arguments
> tm - the transformation matrix to be updated with the cameraNode's TM