Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

nvsg::AnimatedTriangles Class Reference

GeoSet for animated Triangles. More...

#include <AnimatedTriangles.h>

Inheritance diagram for nvsg::AnimatedTriangles:

Inheritance graph
[legend]
Collaboration diagram for nvsg::AnimatedTriangles:

Collaboration graph
[legend]
List of all members.

Public Methods

virtual NVSG_API const AnimatedTriangles * clone (void) const
 Create a new AnimatedTriangles by copying from this. More...

NVSG_API const Animation<
VNVector > * 
getAnimation (void) const
 Get a constant pointer to the animation. More...

NVSG_API void setAnimation (const Animation< VNVector > *pAnimation)
 Set the Animation. More...

NVSG_API void setAnimationFrame (size_t frame)
 Set the animation frame. More...

virtual NVSG_API size_t getNumberOfFrames (void) const
 Get the number of animation frames. More...

virtual NVSG_API DataID getDataID (void) const
 Get the DataID of the data of this object. More...

virtual NVSG_API bool isDataShared (void) const
 Determine whether the data of this object is shared. More...


Static Public Methods

NVSG_API const AnimatedTriangles * create (const Animation< VNVector > *pAnimation=NULL)
 Create an AnimatedTriangles. More...

NVSG_API const AnimatedTriangles * createFromBase (const Triangles &rhs, const Animation< VNVector > *pAnimation=NULL)
 Create an AnimatedTriangles by copying from a Triangles. More...


Protected Methods

NVSG_API AnimatedTriangles (const Animation< VNVector > *pAnimation)
 Constructor with an Animation. More...

NVSG_API AnimatedTriangles (const Triangles &rhs, const Animation< VNVector > *pAnimation)
 Constructor with a Triangles and an Animation. More...

NVSG_API AnimatedTriangles (const AnimatedTriangles &rhs)
 Copy Constructor. More...

virtual NVSG_API ~AnimatedTriangles (void)
 Protected destructor to prevent explicit creation on stack. More...

virtual NVSG_API void onSetVertexAttributeData (void)
 Vertex attribute data have been changed. More...


Detailed Description

GeoSet for animated Triangles.

This class is a Triangles with an Animation<VNVector>. The Animation defines the vertices and normals for each animation step.


Constructor & Destructor Documentation

NVSG_API nvsg::AnimatedTriangles::AnimatedTriangles const Animation< VNVector > *    pAnimation [protected]
 

Constructor with an Animation.

NVSG_API nvsg::AnimatedTriangles::AnimatedTriangles const Triangles   rhs,
const Animation< VNVector > *    pAnimation
[protected]
 

Constructor with a Triangles and an Animation.

NVSG_API nvsg::AnimatedTriangles::AnimatedTriangles const AnimatedTriangles &    rhs [protected]
 

Copy Constructor.

virtual NVSG_API nvsg::AnimatedTriangles::~AnimatedTriangles void    [protected, virtual]
 

Protected destructor to prevent explicit creation on stack.


Member Function Documentation

NVSG_API const AnimatedTriangles* nvsg::AnimatedTriangles::create const Animation< VNVector > *    pAnimation = NULL [static]
 

Create an AnimatedTriangles.

There is an optional argument pAnimation to use a given Animation<VNVector>.

Returns:
a constant pointer to an AnimatedTriangles.
Parameters:
pAnimation  optional animation to use

NVSG_API const AnimatedTriangles* nvsg::AnimatedTriangles::createFromBase const Triangles   rhs,
const Animation< VNVector > *    pAnimation = NULL
[static]
 

Create an AnimatedTriangles by copying from a Triangles.

There is an optional argument pAnimation to use a given Animation<VNVector>.

Returns:
a constant pointer to an AnimatedTriangles.
Parameters:
rhs  Triangles to copy from
pAnimation  optional animation to use

virtual NVSG_API const AnimatedTriangles* nvsg::AnimatedTriangles::clone void    const [virtual]
 

Create a new AnimatedTriangles by copying from this.

Returns:
a constant pointer to an identical AnimatedTriangles.

Reimplemented from nvsg::Triangles.

const Animation< VNVector > * nvsg::AnimatedTriangles::getAnimation void    const [inline]
 

Get a constant pointer to the animation.

Returns:
constant pointer to the animation

NVSG_API void nvsg::AnimatedTriangles::setAnimation const Animation< VNVector > *    pAnimation
 

Set the Animation.

A previous Animation is dereferenced, the new one is referenced, and the animation frame is reset to zero.

Parameters:
pAnimation  new animation to use

NVSG_API void nvsg::AnimatedTriangles::setAnimationFrame size_t    frame
 

Set the animation frame.

The vertices/normals for animation step frame are used as the current.

Parameters:
frame  current animation step

virtual NVSG_API size_t nvsg::AnimatedTriangles::getNumberOfFrames void    const [virtual]
 

Get the number of animation frames.

Returns:
0

Reimplemented from nvsg::Drawable.

virtual NVSG_API DataID nvsg::AnimatedTriangles::getDataID void    const [virtual]
 

Get the DataID of the data of this object.

Returns:
DataID of the object's data.

Reimplemented from nvsg::Triangles.

virtual NVSG_API bool nvsg::AnimatedTriangles::isDataShared void    const [virtual]
 

Determine whether the data of this object is shared.

Returns:
true if the object's data is shared, otherwise false.

Reimplemented from nvsg::Triangles.

virtual NVSG_API void nvsg::AnimatedTriangles::onSetVertexAttributeData void    [protected, virtual]
 

Vertex attribute data have been changed.

This function gets called from the framework, whenever certain vertex attribute data has been changed. Classes that derive from GeoSet may overload this function to add some necessary work after the vertex attribute data has been changed.

Reimplemented from nvsg::GeoSet.


The documentation for this class was generated from the following file:
Generated on Tue Mar 1 13:20:24 2005 for NVSGSDK by NVIDIA