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
.
function SB_DECLARE_DATA#
function display [1/2]#
Displays the STL object.
function display [2/2]#
Displays the STL object.
virtual void SBGRenderSTLObject::display (
const SBSpatialTransform & transform,
unsigned int nodeIndex
)
function ~SBGRenderSTLObject#
Destructor.
Protected Attributes Documentation#
variable dataPointer#
A pointer to the private data.