Main Page | Modules | Class Hierarchy | Alphabetical List | Class List | Class Members

Node Class Reference
[Scene Graph]

#include <lvt/Node.h>

Inheritance diagram for Node:

Inheritance graph
[legend]
List of all members.

Detailed Description

Abstract base class representing a scene graph node.

All LVT scene graph nodes are reference counted, and should be created on the free store with new. Nodes are deleted automatically by the Release() member function.


Public Member Functions

int AddRef ()
 Increments the Node's reference count.
virtual bool Animate (unsigned int dTime)
 Animates the object.
virtual BoundingBox GetBounds ()
 Returns a BoundingBox containing the Node.
 Node (const Node &n)
 Copy constructor.
 Node ()
 Default constructor.
Nodeoperator= (const Node &n)
 Assignment operator.
int Release ()
 Decrements the Node's reference count and deletes the object if its reference count drops below 1.
int ReleaseNoDelete ()
 Decrements the Node's reference count, but does *not* delete the object, regardless of the new count.
virtual void Render ()=0
 Renders the object.
virtual ~Node ()
 Destructor.


Constructor & Destructor Documentation

Node  ) 
 

Default constructor.

Sets the new Node's reference count to 0.

Node const Node n  ) 
 

Copy constructor.

A copy of a node has its own reference count, and is not deleted when the original node is deleted.

virtual ~Node  )  [virtual]
 

Destructor.


Member Function Documentation

int AddRef  ) 
 

Increments the Node's reference count.

Call this function if you wish to retain a node after attaching and removing it to another object (such as a group or window).

virtual bool Animate unsigned int  dTime  )  [virtual]
 

Animates the object.

Parameters:
dTime the time elapsed, in milliseconds, since the last call to Animate().
Returns:
true if the object responded to the call, false if the object is static and not animated.
The default implementation does nothing and returns false.

Reimplemented in Animator, Rotator, Shuttle, Group, and MD2Model.

virtual BoundingBox GetBounds  )  [virtual]
 

Returns a BoundingBox containing the Node.

The default implementation returns an invalid BoundingBox.

Reimplemented in Group.

Node& operator= const Node n  ) 
 

Assignment operator.

Assigning to a Node does not affect its reference count.

int Release  ) 
 

Decrements the Node's reference count and deletes the object if its reference count drops below 1.

int ReleaseNoDelete  ) 
 

Decrements the Node's reference count, but does *not* delete the object, regardless of the new count.

Use this function if you wish to restore a node to its "pristine" state, as if it were just created.

virtual void Render  )  [pure virtual]
 

Renders the object.

Draws the object and/or modifies the OpenGL state appropriately.

Implemented in Shape2D, Circle2D, Rectangle2D, Triangle2D, Animator, Rotator, Shuttle, Camera, OrthographicCamera, PerspectiveCamera, Examiner, Group, Light, Material, MD2Model, Mesh, Shader, Shape, Teapot, Tetrahedron, Cube, Curve, Quadric, Sphere, Cylinder, Cone, Circle, Primitive, State, Blending, MatrixMode, Culling, DepthTest, StencilTest, TextureState, TexGen, TexEnv, Texture, Texture1D, Texture2D, Scale, Translation, Rotation, and Transform.


Generated on Thu Feb 17 09:45:47 2005 for liblvt by  doxygen 1.4.1