#include <Triangles.h>
Inheritance diagram for nvsg::Triangles:
Public Methods | |
virtual NVSG_API const Triangles * | clone (void) const |
Get a clone of this Triangles 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 Triangles has faces. More... | |
NVSG_API size_t | getNumberOfFaces (void) const |
Get number of faces. More... | |
NVSG_API const Face3 * | getFaces (void) const |
Get constant pointer to faces. More... | |
NVSG_API void | setFaces (const Face3 *pFaces, size_t numFaces) |
Set the faces for this Triangles. More... | |
NVSG_API void | setFaces (size_t pos, const Face3 *pFaces, size_t numFaces) |
Set the faces for this Triangles. 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 Triangles * | create (void) |
Create a Triangles. More... | |
NVSG_API const Triangles * | createFromBase (const GeoSet &rhs) |
Create a Triangles by copying from a GeoSet. More... | |
Protected Methods | |
NVSG_API | Triangles (void) |
Constructor. More... | |
NVSG_API | Triangles (const GeoSet &rhs) |
Partial Constructor from a GeoSet. More... | |
NVSG_API | Triangles (const Triangles &rhs) |
Copy Constructor. More... | |
virtual NVSG_API | ~Triangles (void) |
Protected destructor to prevent explicit creation on stack. More... |
A Triangles is a GeoSet that holds an array of index-triplets. Each of these triplets describe a triangle 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 Triangles.
Reimplemented in nvsg::SkinnedTriangles. |
|
Create a Triangles by copying from a GeoSet.
|
|
Get a clone of this Triangles object.
Implements nvsg::Drawable. Reimplemented in nvsg::AnimatedTriangles, and nvsg::SkinnedTriangles. |
|
Determine whether the data of this object is shared.
Reimplemented from nvsg::GeoSet. Reimplemented in nvsg::AnimatedTriangles, and nvsg::SkinnedTriangles. |
|
Get the DataID of the data of this object.
Reimplemented from nvsg::GeoSet. Reimplemented in nvsg::AnimatedTriangles, and nvsg::SkinnedTriangles. |
|
Ask if this Triangles has faces.
|
|
Get number of faces.
|
|
Get constant pointer to faces.
|
|
Set the faces for this Triangles. Copies numFaces faces from pFaces into this Triangles. Pre-existing faces will be entirely erased.
|
|
Set the faces for this Triangles. Copies numFaces faces from pFaces into this Triangles, startin 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. |