#include <TriStrips.h>
Inheritance diagram for nvsg::TriStrips:
Public Methods | |
virtual NVSG_API const TriStrips * | clone () 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 | hasStrips (void) const |
Ask if this TriStrips has strips. More... | |
NVSG_API size_t | getNumberOfStrips (void) const |
Get number of strips. More... | |
NVSG_API const IndexSet * | getStrips () const |
Get constant pointer to strips. More... | |
NVSG_API void | setStrips (const IndexSet *pStrips, size_t numStrips) |
Set the strips for this TriStrip. More... | |
NVSG_API void | setStrips (size_t pos, const IndexSet *pStrips, size_t numStrips) |
Set the strips for this TriStrip. 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 TriStrips * | create (void) |
Create a TriStrips. More... | |
NVSG_API const TriStrips * | createFromBase (const GeoSet &rhs) |
Create a TriStrips by copying from a GeoSet. More... | |
Protected Methods | |
NVSG_API | TriStrips (void) |
Constructor. More... | |
NVSG_API | TriStrips (const GeoSet &rhs) |
Partial Constructor from a GeoSet. More... | |
NVSG_API | TriStrips (const TriStrips &rhs) |
Copy Constructor. More... | |
virtual NVSG_API | ~TriStrips (void) |
Protected destructor to prevent explicit creation on stack. More... |
A TriStrips is a GeoSet that represents the vertex attributes of the GeoSet as triangle strips. The strips are defined by a number of IndexSet elements. Each IndexSet is a std::vector<unsigned int> and represents one triangle strip. If you have, for example, an array of eight vertices in the GeoSet, one possibility to make them a cube is, to define three IndexSet elements like that:
set[0] = { 0, 1, 2, 3, 4, 5, 6, 7, 0, 1 }; set[1] = { 1, 7, 3, 5 }; set[2] = { 6, 0, 4, 2 };
|
Constructor.
|
|
Partial Constructor from a GeoSet.
|
|
Copy Constructor.
|
|
Protected destructor to prevent explicit creation on stack.
|
|
Create a TriStrips.
|
|
Create a TriStrips by copying from a GeoSet.
|
|
Get a clone of this Triangles object.
Implements nvsg::Drawable. |
|
Determine whether the data of this object is shared.
Reimplemented from nvsg::GeoSet. |
|
Get the DataID of the data of this object.
Reimplemented from nvsg::GeoSet. |
|
Ask if this TriStrips has strips.
|
|
Get number of strips.
|
|
Get constant pointer to strips.
|
|
Set the strips for this TriStrip. Copies numStrips strips from pStrips into this TriStrips.
|
|
Set the strips for this TriStrip. Copies numStrips strips from pStrips into this TriStrips, starting at position pos inside the range of pre-existing strips. Pre-existing strips in the range [pos, pos + numStrips) will be replaced. Pre-existing strips outside this range remain untouched. If you specify -1 for pos or if pos specifies the number of strips currently stored, the strips pointed to by pStrips 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 strips, 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. |