Web Analytics Made Easy - Statcounter
Skip to content

Class SBMVisualModelSurface#

ClassList > SBMVisualModelSurface

More...

  • #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#

See SBCReferenceTarget

Type Name
SBCReferenceTarget ()
unsigned int getMemoryFootprint () const
void printReferencesToOwners () const
virtual ~SBCReferenceTarget ()

Protected Attributes inherited from SBCReferenceTarget#

See SBCReferenceTarget

Type Name
SBCReferenceTargetData * dataPointer

Protected Functions inherited from SBCReferenceTarget#

See 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#

SBMVisualModelSurface::SB_DECLARE_DATA (
    SBMVisualModelSurface
) 

function getColorData#

Returns the color data.

float * SBMVisualModelSurface::getColorData () const


function getDiffuseTexture#

Returns the diffuse texture.

SBTexture * SBMVisualModelSurface::getDiffuseTexture () const


function getFlagData#

Returns the flag data.

unsigned int * SBMVisualModelSurface::getFlagData () const


function getIndexData#

Returns the index data.

unsigned int * SBMVisualModelSurface::getIndexData () const


function getNodeIndexData#

Returns the node index data.

unsigned int * SBMVisualModelSurface::getNodeIndexData () const


function getNormalData#

Returns the normal data.

float * SBMVisualModelSurface::getNormalData () const


function getNumberOfPositions#

Returns the number of positions.

unsigned int SBMVisualModelSurface::getNumberOfPositions () const


function getNumberOfTriangles#

Returns the number of triangles.

unsigned int SBMVisualModelSurface::getNumberOfTriangles () const


function getPositionData#

Returns the position data.

float * SBMVisualModelSurface::getPositionData () const


function getTextureCoordinateData#

Returns the texture coordinate data.

float * SBMVisualModelSurface::getTextureCoordinateData () const


function setColorData#

Sets the color data.

void SBMVisualModelSurface::setColorData (
    float * colorData
) 


function setDiffuseTexture#

Sets the diffuse texture.

void SBMVisualModelSurface::setDiffuseTexture (
    SBTexture * diffuseTexture
) 


function setFlagData#

Sets the flag data.

void SBMVisualModelSurface::setFlagData (
    unsigned int * flagData
) 


function setIndexData#

Sets the index data.

void SBMVisualModelSurface::setIndexData (
    unsigned int * indexData
) 


function setNodeIndexData#

Sets the node index data.

void SBMVisualModelSurface::setNodeIndexData (
    unsigned int * nodeIndexData
) 


function setNormalData#

Sets the normal data.

void SBMVisualModelSurface::setNormalData (
    float * normalData
) 


function setNumberOfPositions#

Sets the number of positions.

void SBMVisualModelSurface::setNumberOfPositions (
    unsigned int numberOfPositions
) 


function setNumberOfTriangles#

Sets the number of triangles.

void SBMVisualModelSurface::setNumberOfTriangles (
    unsigned int numberOfTriangles
) 


function setPositionData#

Sets the position data.

void SBMVisualModelSurface::setPositionData (
    float * positionData
) 


function setTextureCoordinateData#

Sets the texture coordinate data.

void SBMVisualModelSurface::setTextureCoordinateData (
    float * textureCoordinateData
) 


function ~SBMVisualModelSurface#

Deletes the triangle surface.

virtual SBMVisualModelSurface::~SBMVisualModelSurface ()