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

nvsg::Quads Class Reference

GeoSet for Quads. More...

#include <Quads.h>

Inheritance diagram for nvsg::Quads:

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

Collaboration graph
[legend]
List of all members.

Public Methods

virtual NVSG_API const Quads * clone (void) const
 Get a clone of this Quads object. More...

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

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

NVSG_API bool hasFaces (void) const
 Ask if this Quads has faces. More...

NVSG_API size_t getNumberOfFaces (void) const
 Get the number of faces. More...

NVSG_API const Face4getFaces (void) const
 Get constant pointer to faces. More...

NVSG_API void setFaces (const Face4 *pFaces, size_t numFaces)
 Set the faces for this Quads. More...

NVSG_API void setFaces (size_t pos, const Face4 *pFaces, size_t numFaces)
 Set the faces for this Quads. More...

virtual NVSG_API void calculateTangentSpace (size_t tu=0, size_t tg=1, size_t bn=2)
 Calculate tangents and binormals. More...


Static Public Methods

NVSG_API const Quads * create (void)
 Create a Quads. More...

NVSG_API const Quads * createFromBase (const GeoSet &rhs)
 Create a Quads by copying from a GeoSet. More...


Protected Methods

NVSG_API Quads (void)
 Constructor. More...

NVSG_API Quads (const GeoSet &rhs)
 Partial Constructor from a GeoSet. More...

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

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


Detailed Description

GeoSet for Quads.

A Quads is a GeoSet that holds an array of index-quadruples. Each of these quadruples describe a quad with the indices pointing in the array of vertices. All vertex attributes (like normal, texture,...) are indexed with the same index.


Constructor & Destructor Documentation

NVSG_API nvsg::Quads::Quads void    [protected]
 

Constructor.

NVSG_API nvsg::Quads::Quads const GeoSet   rhs [protected]
 

Partial Constructor from a GeoSet.

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

Copy Constructor.

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

Protected destructor to prevent explicit creation on stack.


Member Function Documentation

NVSG_API const Quads* nvsg::Quads::create void    [static]
 

Create a Quads.

Returns:
a constant pointer to a Quads.

NVSG_API const Quads* nvsg::Quads::createFromBase const GeoSet   rhs [static]
 

Create a Quads by copying from a GeoSet.

Returns:
a constant pointer to a Quads.

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

Get a clone of this Quads object.

Returns:
a constant pointer to a Quads.

Implements nvsg::Drawable.

Reimplemented in nvsg::AnimatedQuads.

virtual NVSG_API bool nvsg::Quads::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::GeoSet.

Reimplemented in nvsg::AnimatedQuads.

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

Get the DataID of the data of this object.

Returns:
DataID of the object's data.

Reimplemented from nvsg::GeoSet.

Reimplemented in nvsg::AnimatedQuads.

bool nvsg::Quads::hasFaces void    const [inline]
 

Ask if this Quads has faces.

Returns:
true, if this Quads has faces, otherwise false

size_t nvsg::Quads::getNumberOfFaces void    const [inline]
 

Get the number of faces.

Returns:
The number of faces

const Face4 * nvsg::Quads::getFaces void    const [inline]
 

Get constant pointer to faces.

Returns:
A constant pointer to faces.

NVSG_API void nvsg::Quads::setFaces const Face4   pFaces,
size_t    numFaces
 

Set the faces for this Quads.

Copies numFaces faces from pFaces into this Quads.

Parameters:
pFaces  faces to set
numFaces  number of faces

NVSG_API void nvsg::Quads::setFaces size_t    pos,
const Face4   pFaces,
size_t    numFaces
 

Set the faces for this Quads.

Copies numFaces faces from pFaces into this Quads, starting at position pos inside the range of pre-existing faces.

Pre-existing faces in the range [pos, pos + numFaces) will be replaced. Pre-existing faces outside this range remain untouched.

If you specify -1 for pos or if pos specifies the number of faces currently stored, the faces pointed to by pFaces will be appended to the pre-existing faces.

If you not specify -1 for pos or pos neither specifies the number of faces currently stored nor does it specify a valid position inside the range of pre-existing faces, the behaviour is undefined!

Parameters:
pos  Start position inside the range of pre-existing faces
pFaces  faces to set
numFaces  number of faces

virtual NVSG_API void nvsg::Quads::calculateTangentSpace size_t    tu = 0,
size_t    tg = 1,
size_t    bn = 2
[virtual]
 

Calculate tangents and binormals.

The two dimensional texture coordinates out of texture unit tu are used as the parameterization for the calculation. The tangents are written to texture unit tg and the binormals to texture unit bn.

Parameters:
tu  texture unit to get parameterizing coords
tg  texture unit to write tangents to
bn  texture unit to write binormals to

Implements nvsg::GeoSet.


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