#include <lvt/Node.h>
Inheritance diagram for 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. | |
Node & | operator= (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. |
|
Default constructor. Sets the new Node's reference count to 0. |
|
Copy constructor. A copy of a node has its own reference count, and is not deleted when the original node is deleted. |
|
Destructor.
|
|
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). |
|
Animates the object.
Reimplemented in Animator, Rotator, Shuttle, Group, and MD2Model. |
|
Returns a BoundingBox containing the Node. The default implementation returns an invalid BoundingBox. Reimplemented in Group. |
|
Assignment operator. Assigning to a Node does not affect its reference count. |
|
Decrements the Node's reference count and deletes the object if its reference count drops below 1.
|
|
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. |
|
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. |