#include <Quads.h>
Inheritance diagram for nvsg::Quads:
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 Face4 * | getFaces (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... |
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.
|
|
Partial Constructor from a GeoSet.
|
|
Copy Constructor.
|
|
Protected destructor to prevent explicit creation on stack.
|
|
Create a Quads.
|
|
Create a Quads by copying from a GeoSet.
|
|
Get a clone of this Quads object.
Implements nvsg::Drawable. Reimplemented in nvsg::AnimatedQuads. |
|
Determine whether the data of this object is shared.
Reimplemented from nvsg::GeoSet. Reimplemented in nvsg::AnimatedQuads. |
|
Get the DataID of the data of this object.
Reimplemented from nvsg::GeoSet. Reimplemented in nvsg::AnimatedQuads. |
|
Ask if this Quads has faces.
|
|
Get the number of faces.
|
|
Get constant pointer to faces.
|
|
Set the faces for this Quads. Copies numFaces faces from pFaces into this Quads.
|
|
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!
|
|
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.
Implements nvsg::GeoSet. |