Web Analytics Made Easy - Statcounter
Skip to content

Class SBGRenderSTLObject#

ClassList > SBGRenderSTLObject

The class can be used to load and display 3D objects from STL files.

  • #include "SBGRenderSTLObject.hpp"

Public Functions#

Type Name
SBGRenderSTLObject (const std::string & fileName, bool smoothed)
Builds an STL object renderer from the STL file fileName .
SB_DECLARE_DATA (SBGRenderSTLObject)
virtual void display (const SBSpatialTransform & transform, float * color)
Displays the STL object.
virtual void display (const SBSpatialTransform & transform, unsigned int nodeIndex)
Displays the STL object.
virtual ~SBGRenderSTLObject ()
Destructor.

Protected Attributes#

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

Public Functions Documentation#

function SBGRenderSTLObject#

Builds an STL object renderer from the STL file fileName .

SBGRenderSTLObject::SBGRenderSTLObject (
    const std::string & fileName,
    bool smoothed
) 


function SB_DECLARE_DATA#

SBGRenderSTLObject::SB_DECLARE_DATA (
    SBGRenderSTLObject
) 

function display [1/2]#

Displays the STL object.

virtual void SBGRenderSTLObject::display (
    const SBSpatialTransform & transform,
    float * color
) 


function display [2/2]#

Displays the STL object.

virtual void SBGRenderSTLObject::display (
    const SBSpatialTransform & transform,
    unsigned int nodeIndex
) 


function ~SBGRenderSTLObject#

Destructor.

virtual SBGRenderSTLObject::~SBGRenderSTLObject () 


Protected Attributes Documentation#

variable dataPointer#

A pointer to the private data.

SBGRenderSTLObjectData* SBGRenderSTLObject::dataPointer;