Class SBMVisualModelSurface#
ClassList > SBMVisualModelSurface
#include <SBMVisualModelSurface.hpp>
Inherits the following classes: SBCReferenceTarget
Public Functions#
Type | Name |
---|---|
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. |
|
SB_DECLARE_DATA (SBMVisualModelSurface) |
|
float * | getColorData () const Returns the color data. |
SBTexture * | getDiffuseTexture () const Returns the diffuse texture. |
unsigned int * | getFlagData () const Returns the flag data. |
unsigned int * | getIndexData () const Returns the index data. |
unsigned int * | getNodeIndexData () const Returns the node index data. |
float * | getNormalData () const Returns the normal data. |
unsigned int | getNumberOfPositions () const Returns the number of positions. |
unsigned int | getNumberOfTriangles () const Returns the number of triangles. |
float * | getPositionData () const Returns the position data. |
float * | getTextureCoordinateData () const Returns the texture coordinate data. |
void | setColorData (float * colorData) Sets the color data. |
void | setDiffuseTexture (SBTexture * diffuseTexture) Sets the diffuse texture. |
void | setFlagData (unsigned int * flagData) Sets the flag data. |
void | setIndexData (unsigned int * indexData) Sets the index data. |
void | setNodeIndexData (unsigned int * nodeIndexData) Sets the node index data. |
void | setNormalData (float * normalData) Sets the normal data. |
void | setNumberOfPositions (unsigned int numberOfPositions) Sets the number of positions. |
void | setNumberOfTriangles (unsigned int numberOfTriangles) Sets the number of triangles. |
void | setPositionData (float * positionData) Sets the position data. |
void | setTextureCoordinateData (float * textureCoordinateData) Sets the texture coordinate data. |
virtual | ~SBMVisualModelSurface () Deletes the triangle surface. |
Public Functions inherited from SBCReferenceTarget#
Type | Name |
---|---|
SBCReferenceTarget () |
|
unsigned int | getMemoryFootprint () const |
void | printReferencesToOwners () const |
virtual | ~SBCReferenceTarget () |
Protected Attributes inherited from SBCReferenceTarget#
Type | Name |
---|---|
SBCReferenceTargetData * | dataPointer |
Protected Functions inherited from SBCReferenceTarget#
Type | Name |
---|---|
SBCReferenceTarget (SBCReferenceTargetData * dataPointer) |
|
void | removeAllReferenceOwners () |
Detailed Description#
This class is the base class to describe a visual model.
Short name: SBSurface
Public Functions Documentation#
function SBMVisualModelSurface#
Builds a triangle surface.
SBMVisualModelSurface::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
)
function SB_DECLARE_DATA#
function getColorData#
Returns the color data.
function getDiffuseTexture#
Returns the diffuse texture.
function getFlagData#
Returns the flag data.
function getIndexData#
Returns the index data.
function getNodeIndexData#
Returns the node index data.
function getNormalData#
Returns the normal data.
function getNumberOfPositions#
Returns the number of positions.
function getNumberOfTriangles#
Returns the number of triangles.
function getPositionData#
Returns the position data.
function getTextureCoordinateData#
Returns the texture coordinate data.
function setColorData#
Sets the color data.
function setDiffuseTexture#
Sets the diffuse texture.
function setFlagData#
Sets the flag data.
function setIndexData#
Sets the index data.
function setNodeIndexData#
Sets the node index data.
function setNormalData#
Sets the normal data.
function setNumberOfPositions#
Sets the number of positions.
function setNumberOfTriangles#
Sets the number of triangles.
function setPositionData#
Sets the position data.
function setTextureCoordinateData#
Sets the texture coordinate data.
function ~SBMVisualModelSurface#
Deletes the triangle surface.