Web Analytics Made Easy - Statcounter
Skip to content

Class SBMVisualModelGeometryArray#

ClassList > SBMVisualModelGeometryArray

This class describes an array of geometries. More...

  • #include <SBMVisualModelGeometryArray.hpp>

Inherits the following classes: SBCReferenceTarget

Inherited by the following classes: SBMVisualModelCylinderArray, SBMVisualModelLineArray, SBMVisualModelSphereArray, SBMVisualModelTriangleArray, SBMVisualModelTubeArray

Public Types#

Type Name
enum Type
The available geometry array types.

Public Functions#

Type Name
SBMVisualModelGeometryArray (SBMVisualModelGeometryArrayData * dataPointer)
Builds a geometry array.
float * getColorData () const
Returns the color data.
unsigned int * getFlagData () const
Returns the flag data.
unsigned int * getIndexData () const
Returns the index data.
SBDDataGraphNodeMaterial ** getMaterialData () const
Returns the material data.
SBDDataGraphNode ** getNodeData () const
Returns the node data.
unsigned int * getNodeIndexData () const
Returns the node index data.
unsigned int getNumberOfGeometries () const
Returns the number of geometries.
unsigned int getNumberOfPositions () const
Returns the number of positions.
float * getPositionData () const
Returns the position data.
SBSpatialTransform * getTransform () const
Returns the transform.
virtual Type getType () const = 0
Returns the type of geometry array.
void setColorData (float * colorData)
Sets the color data.
void setFlagData (unsigned int * flagData)
Sets the flag data.
void setIndexData (unsigned int * indexData)
Sets the index data.
void setMaterialData (SBDDataGraphNodeMaterial ** materialData)
Sets the material data.
void setNodeData (SBDDataGraphNode ** nodeData)
Sets the node data.
void setNodeIndexData (unsigned int * nodeIndexData)
Sets the node index data.
void setNumberOfGeometries (unsigned int numberOfGeometries)
Sets the number of geometries.
void setNumberOfPositions (unsigned int numberOfPositions)
Sets the number of positions.
void setPositionData (float * positionData)
Sets the position data.
void setTransform (SBSpatialTransform * transform)
Sets the transform.
virtual ~SBMVisualModelGeometryArray ()
Deletes the geometry array.

Public Functions inherited from SBCReferenceTarget#

See SBCReferenceTarget

Type Name
SBCReferenceTarget ()
Builds the reference target.
unsigned int getMemoryFootprint () const
Returns the memory footprint.
void printReferencesToOwners () const
Prints the references to the owners of this reference target.
virtual ~SBCReferenceTarget ()
Destructor.

Protected Attributes inherited from SBCReferenceTarget#

See SBCReferenceTarget

Type Name
SBCReferenceTargetData * dataPointer
A pointer to the private data.

Protected Functions inherited from SBCReferenceTarget#

See SBCReferenceTarget

Type Name
SBCReferenceTarget (SBCReferenceTargetData * dataPointer)
Protected constructor.
void removeAllReferenceOwners ()
Stops all the reference owners from referencing this reference target.

Detailed Description#

Short name: SBGeometryArray

Public Types Documentation#

enum Type#

The available geometry array types.

enum SBMVisualModelGeometryArray::Type {
    Unknown = 0,
    Sphere = 1,
    Line = 2,
    Cylinder = 3,
    Triangle = 4,
    Tube = 5
};


Public Functions Documentation#

function SBMVisualModelGeometryArray#

Builds a geometry array.

SBMVisualModelGeometryArray::SBMVisualModelGeometryArray (
    SBMVisualModelGeometryArrayData * dataPointer
) 

Constructs a SBMVisualModelGeometryArray with the given data pointer.

Parameters:

  • dataPointer Pointer to the geometry array data.

function getColorData#

Returns the color data.

float * SBMVisualModelGeometryArray::getColorData () const

Returns a pointer to the color data array.

Returns:

Pointer to the color data.


function getFlagData#

Returns the flag data.

unsigned int * SBMVisualModelGeometryArray::getFlagData () const

Returns a pointer to the flag data array.

Returns:

Pointer to the flag data.


function getIndexData#

Returns the index data.

unsigned int * SBMVisualModelGeometryArray::getIndexData () const

Returns a pointer to the index data array.

Returns:

Pointer to the index data.


function getMaterialData#

Returns the material data.

SBDDataGraphNodeMaterial ** SBMVisualModelGeometryArray::getMaterialData () const

Returns a pointer to the material data array.

Returns:

Pointer to the material data.


function getNodeData#

Returns the node data.

SBDDataGraphNode ** SBMVisualModelGeometryArray::getNodeData () const

Returns a pointer to the node data array.

Returns:

Pointer to the node data.


function getNodeIndexData#

Returns the node index data.

unsigned int * SBMVisualModelGeometryArray::getNodeIndexData () const

Returns a pointer to the node index data array.

Returns:

Pointer to the node index data.


function getNumberOfGeometries#

Returns the number of geometries.

unsigned int SBMVisualModelGeometryArray::getNumberOfGeometries () const

Returns the number of geometries in the array.

Returns:

Number of geometries.


function getNumberOfPositions#

Returns the number of positions.

unsigned int SBMVisualModelGeometryArray::getNumberOfPositions () const

Returns the number of positions in the array.

Returns:

Number of positions.


function getPositionData#

Returns the position data.

float * SBMVisualModelGeometryArray::getPositionData () const

Returns a pointer to the position data array.

Returns:

Pointer to the position data.


function getTransform#

Returns the transform.

SBSpatialTransform * SBMVisualModelGeometryArray::getTransform () const

Returns the spatial transform associated with the geometry array.

Returns:

Pointer to the spatial transform.


function getType#

Returns the type of geometry array.

virtual Type SBMVisualModelGeometryArray::getType () const = 0


function setColorData#

Sets the color data.

void SBMVisualModelGeometryArray::setColorData (
    float * colorData
) 

Sets the color data array.

Parameters:

  • colorData Pointer to the color data.

function setFlagData#

Sets the flag data.

void SBMVisualModelGeometryArray::setFlagData (
    unsigned int * flagData
) 

Sets the flag data array.

Parameters:

  • flagData Pointer to the flag data.

function setIndexData#

Sets the index data.

void SBMVisualModelGeometryArray::setIndexData (
    unsigned int * indexData
) 

Sets the index data array.

Parameters:

  • indexData Pointer to the index data.

function setMaterialData#

Sets the material data.

void SBMVisualModelGeometryArray::setMaterialData (
    SBDDataGraphNodeMaterial ** materialData
) 

Sets the material data array.

Parameters:

  • materialData Pointer to the material data.

function setNodeData#

Sets the node data.

void SBMVisualModelGeometryArray::setNodeData (
    SBDDataGraphNode ** nodeData
) 

Sets the node data array.

Parameters:

  • nodeData Pointer to the node data.

function setNodeIndexData#

Sets the node index data.

void SBMVisualModelGeometryArray::setNodeIndexData (
    unsigned int * nodeIndexData
) 

Sets the node index data array.

Parameters:

  • nodeIndexData Pointer to the node index data.

function setNumberOfGeometries#

Sets the number of geometries.

void SBMVisualModelGeometryArray::setNumberOfGeometries (
    unsigned int numberOfGeometries
) 

Sets the number of geometries in the array.

Parameters:

  • numberOfGeometries The new number of geometries.

function setNumberOfPositions#

Sets the number of positions.

void SBMVisualModelGeometryArray::setNumberOfPositions (
    unsigned int numberOfPositions
) 

Sets the number of positions in the array.

Parameters:

  • numberOfPositions The new number of positions.

function setPositionData#

Sets the position data.

void SBMVisualModelGeometryArray::setPositionData (
    float * positionData
) 

Sets the position data array.

Parameters:

  • positionData Pointer to the position data.

function setTransform#

Sets the transform.

void SBMVisualModelGeometryArray::setTransform (
    SBSpatialTransform * transform
) 

Sets the spatial transform for the geometry array.

Parameters:

  • transform Pointer to the new spatial transform.

function ~SBMVisualModelGeometryArray#

Deletes the geometry array.

virtual SBMVisualModelGeometryArray::~SBMVisualModelGeometryArray () 

Destroys the SBMVisualModelGeometryArray.