Web Analytics Made Easy - Statcounter
Skip to content

Class SBMVisualModelTubeArray#

ClassList > SBMVisualModelTubeArray

This class describes an array of tubes with elliptical sections. More...

  • #include <SBMVisualModelTubeArray.hpp>

Inherits the following classes: SBMVisualModelGeometryArray

Public Types inherited from SBMVisualModelGeometryArray#

See SBMVisualModelGeometryArray

Type Name
enum Type
The available geometry array types.

Public Functions#

Type Name
SBMVisualModelTubeArray (unsigned int numberOfTubes, unsigned int numberOfPositions, unsigned int * indexData, float * positionData, float * majorAxisData, float * minorAxisData, float * colorData, SBDDataGraphNodeMaterial ** materialData, SBDDataGraphNode ** nodeData, unsigned int * flagData, unsigned int * nodeIndexData, SBSpatialTransform * transform)
Builds a tube array.
float * getMajorAxisData () const
Returns the major axis data.
float * getMinorAxisData () const
Returns the minor axis data.
unsigned int getTubeResolution () const
Returns the tube resolution.
virtual SBMVisualModelGeometryArray::Type getType () override const
Returns SBMVisualModelGeometryArray::Type::Tube .
void setMajorAxisData (float * majorAxisData)
Sets the major axis data.
void setMinorAxisData (float * minorAxisData)
Sets the minor axis data.
void setTubeResolution (unsigned int tubeResolution)
Sets the tube resolution.
virtual ~SBMVisualModelTubeArray ()
Deletes the tube array.

Public Functions inherited from SBMVisualModelGeometryArray#

See SBMVisualModelGeometryArray

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: SBTubeArray

Public Functions Documentation#

function SBMVisualModelTubeArray#

Builds a tube array.

SBMVisualModelTubeArray::SBMVisualModelTubeArray (
    unsigned int numberOfTubes,
    unsigned int numberOfPositions,
    unsigned int * indexData,
    float * positionData,
    float * majorAxisData,
    float * minorAxisData,
    float * colorData,
    SBDDataGraphNodeMaterial ** materialData,
    SBDDataGraphNode ** nodeData,
    unsigned int * flagData,
    unsigned int * nodeIndexData,
    SBSpatialTransform * transform
) 

Constructs a tube array with the given data.

Initializes a tube array geometry using the provided data arrays.

Parameters:

  • numberOfTubes Number of tubes in the array.
  • numberOfPositions Number of position entries.
  • indexData Pointer to the index data array.
  • positionData Pointer to the position data array.
  • majorAxisData Pointer to the major axis data array.
  • minorAxisData Pointer to the minor axis data array.
  • colorData Pointer to the color data array.
  • materialData Pointer to the material data array.
  • nodeData Pointer to the node data array.
  • flagData Pointer to the flag data array.
  • nodeIndexData Pointer to the node index data array.
  • transform Pointer to the spatial transform applied to the tube array.

function getMajorAxisData#

Returns the major axis data.

float * SBMVisualModelTubeArray::getMajorAxisData () const

Retrieves the major axis data array.

Provides access to the array containing the major axis lengths for each tube.

Returns:

Pointer to the major axis data array.


function getMinorAxisData#

Returns the minor axis data.

float * SBMVisualModelTubeArray::getMinorAxisData () const

Retrieves the minor axis data array.

Provides access to the array containing the minor axis lengths for each tube.

Returns:

Pointer to the minor axis data array.


function getTubeResolution#

Returns the tube resolution.

unsigned int SBMVisualModelTubeArray::getTubeResolution () const

Returns the resolution of the tube geometry.

The resolution determines the number of subdivisions used to approximate the tube's circular cross-section.

Returns:

The tube resolution as an unsigned integer.


function getType#

Returns SBMVisualModelGeometryArray::Type::Tube .

virtual SBMVisualModelGeometryArray::Type SBMVisualModelTubeArray::getType () override const

Returns the geometry type of this visual model.

The returned type indicates that this visual model represents a tube array.

Returns:

The geometry type enumeration value for a tube.

Implements SBMVisualModelGeometryArray::getType


function setMajorAxisData#

Sets the major axis data.

void SBMVisualModelTubeArray::setMajorAxisData (
    float * majorAxisData
) 

Sets the major axis data array.

Assigns a new major axis data array to the tube visual model.

Parameters:

  • majorAxisData Pointer to the new major axis data array.

function setMinorAxisData#

Sets the minor axis data.

void SBMVisualModelTubeArray::setMinorAxisData (
    float * minorAxisData
) 

Sets the minor axis data array.

Assigns a new minor axis data array to the tube visual model.

Parameters:

  • minorAxisData Pointer to the new minor axis data array.

function setTubeResolution#

Sets the tube resolution.

void SBMVisualModelTubeArray::setTubeResolution (
    unsigned int tubeResolution
) 

Sets the resolution of the tube geometry.

Updates the number of subdivisions used for the tube's cross-section.

Parameters:

  • tubeResolution The new tube resolution.

function ~SBMVisualModelTubeArray#

Deletes the tube array.

virtual SBMVisualModelTubeArray::~SBMVisualModelTubeArray () 

Destroys the tube array and releases associated resources.