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)
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 ()

Protected Attributes#

Type Name
SBGRenderSTLObjectData * dataPointer

Public Functions Documentation#

function SBGRenderSTLObject#

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#

virtual SBGRenderSTLObject::~SBGRenderSTLObject () 

Protected Attributes Documentation#

variable dataPointer#

SBGRenderSTLObjectData* dataPointer;