This class is the base class to describe a visual model.
Public Member Functions | |
| SB_DECLARE_DATA (SBMVisualModelSurface) | |
Public Member Functions inherited from SBCReferenceTarget | |
| SBCReferenceTarget () | |
| virtual | ~SBCReferenceTarget () |
| unsigned int | getMemoryFootprint () const |
| void | printReferencesToOwners () const |
Constructors and destructors | |
| SBMVisualModelSurface (unsigned int numberOfTriangles, unsigned int numberOfPositions, unsigned int *indexData, float *positionData, float *normalData, float *colorData, unsigned int *flagData, unsigned int *nodeIndexData, float *textureCoordinateData, SBTexture *diffuseTexture) | |
| Builds a triangle surface. | |
| virtual | ~SBMVisualModelSurface () |
| Deletes the triangle surface. | |
Geometry | |
| unsigned int | getNumberOfTriangles () const |
| Returns the number of triangles. | |
| void | setNumberOfTriangles (unsigned int numberOfTriangles) |
| Sets the number of triangles. | |
| unsigned int | getNumberOfPositions () const |
| Returns the number of positions. | |
| void | setNumberOfPositions (unsigned int numberOfPositions) |
| Sets the number of positions. | |
| unsigned int * | getIndexData () const |
| Returns the index data. | |
| void | setIndexData (unsigned int *indexData) |
| Sets the index data. | |
| float * | getPositionData () const |
| Returns the position data. | |
| void | setPositionData (float *positionData) |
| Sets the position data. | |
| float * | getNormalData () const |
| Returns the normal data. | |
| void | setNormalData (float *normalData) |
| Sets the normal data. | |
| float * | getColorData () const |
| Returns the color data. | |
| void | setColorData (float *colorData) |
| Sets the color data. | |
| unsigned int * | getFlagData () const |
| Returns the flag data. | |
| void | setFlagData (unsigned int *flagData) |
| Sets the flag data. | |
| unsigned int * | getNodeIndexData () const |
| Returns the node index data. | |
| void | setNodeIndexData (unsigned int *nodeIndexData) |
| Sets the node index data. | |
| float * | getTextureCoordinateData () const |
| Returns the texture coordinate data. | |
| void | setTextureCoordinateData (float *textureCoordinateData) |
| Sets the texture coordinate data. | |
| SBTexture * | getDiffuseTexture () const |
| Returns the diffuse texture. | |
| void | setDiffuseTexture (SBTexture *diffuseTexture) |
| Sets the diffuse texture. | |
Additional Inherited Members | |
Protected Member Functions inherited from SBCReferenceTarget | |
| void | removeAllReferenceOwners () |
| SBCReferenceTarget (SBCReferenceTargetData *dataPointer) | |
Protected Attributes inherited from SBCReferenceTarget | |
| SBCReferenceTargetData * | dataPointer |