cisst-saw
|
#include <osaOSGBody.h>
Classes | |
class | GeodeVisitor |
class | SwitchCallback |
class | TransformCallback |
class | TransparencyVisitor |
class | UserData |
Public Types | |
enum | Switch { SWITCH_OFF, SWITCH_ON } |
Public Member Functions | |
osaOSGBody (osaOSGWorld *world, const vctFrame4x4< double > &Rt) | |
OSG Body constructor. More... | |
osaOSGBody (osaOSGBody *body, const vctFrame4x4< double > &Rt) | |
osaOSGBody (const std::string &model, const vctFrame4x4< double > &Rt, double scale=1.0, double alpha=1.0, const vctFrame4x4< double > &Rtoffset=vctFrame4x4< double >(), const std::string &option=std::string("")) | |
OSG Body constructor. More... | |
osaOSGBody (const std::string &model, osaOSGWorld *world, const vctFrame4x4< double > &Rt, double scale=1.0, double alpha=1.0, const vctFrame4x4< double > &Rtoffset=vctFrame4x4< double >(), const std::string &option=std::string("")) | |
OSG Body constructor. More... | |
osaOSGBody (const std::string &model, osaOSGBody *world, const vctFrame4x4< double > &Rt, double scale=1.0, double alpha=1.0, const vctFrame4x4< double > &Rtoffset=vctFrame4x4< double >(), const std::string &option=std::string("")) | |
OSG Body constructor. More... | |
osaOSGBody (const std::string &model, osaOSGWorld *world, const vctFrm3 &Rt, double scale=1.0, double alpha=1.0, const std::string &option=std::string("")) | |
OSG Body constructor. More... | |
osaOSGBody (const vctDynamicMatrix< double > &pointcloud, osaOSGWorld *world, const vctFrm3 &Rt, const vctFixedSizeVector< unsigned char, 3 > &rgb=RGBDEFAULT, float size=3.0) | |
Construcor for 3D point cloud. More... | |
osaOSGBody () | |
~osaOSGBody () | |
void | Initialize (double scale=1.0) |
virtual void | SetTransform (const vctFrame4x4< double > &Rt) |
Set the transform of the body. More... | |
virtual void | SetTransform (const vctFrm3 &Rt) |
virtual vctFrm3 | GetTransform () const |
osg::ref_ptr < osg::MatrixTransform > | GetMatrixTransform () |
void | ResetMatrixTransform () |
void | SwitchOn () |
Set the switch of the body. More... | |
void | SwitchOff () |
void | SetModeLine () |
void | SetModePoint () |
void | SetModeFill () |
void | AddTransformCallback (void) |
virtual vctDynamicMatrix< double > | GetVertices () |
Static Public Attributes | |
static const vctFixedSizeVector< unsigned char, 3 > | RGBDEFAULT |
Protected Member Functions | |
virtual void | UpdateTransform () |
This method is called from the transform callback. More... | |
virtual void | UpdateSwitch () |
This method is called from the switch callback. More... | |
void | ReadModel (const std::string &fname, const std::string &options, double alpha) |
void | Read3DData (const vctDynamicMatrix< double > &pc, const vctFixedSizeVector< unsigned char, 3 > &RGB=RGBDEFAULT, float size=3.0) |
Protected Attributes | |
osg::ref_ptr< UserData > | userdata |
osg::ref_ptr < osg::PositionAttitudeTransform > | osgscale |
osg::ref_ptr< TransformCallback > | transformcallback |
vctFrame4x4< double > | transform |
vctFrame4x4< double > | Rtoffset |
osg::ref_ptr < osg::MatrixTransform > | osgtransform |
osg::ref_ptr< SwitchCallback > | switchcallback |
Switch | onoff |
osg::ref_ptr< osg::Switch > | osgswitch |
osg::ref_ptr< osg::Geode > | osggeode |
enum osaOSGBody::Switch |
osaOSGBody::osaOSGBody | ( | osaOSGWorld * | world, |
const vctFrame4x4< double > & | Rt | ||
) |
OSG Body constructor.
Add body to a given world or subworld
osaOSGBody::osaOSGBody | ( | osaOSGBody * | body, |
const vctFrame4x4< double > & | Rt | ||
) |
osaOSGBody::osaOSGBody | ( | const std::string & | model, |
const vctFrame4x4< double > & | Rt, | ||
double | scale = 1.0 , |
||
double | alpha = 1.0 , |
||
const vctFrame4x4< double > & | Rtoffset = vctFrame4x4< double >() , |
||
const std::string & | option = std::string("") |
||
) |
OSG Body constructor.
Create a OSG body component. The body will add a required interface if a function name is passed.
model | The file name of a 3D model |
Rt | The initial transformation of the body |
scale | The size scale |
alpha | The alpha parameter |
option | File options |
osaOSGBody::osaOSGBody | ( | const std::string & | model, |
osaOSGWorld * | world, | ||
const vctFrame4x4< double > & | Rt, | ||
double | scale = 1.0 , |
||
double | alpha = 1.0 , |
||
const vctFrame4x4< double > & | Rtoffset = vctFrame4x4< double >() , |
||
const std::string & | option = std::string("") |
||
) |
OSG Body constructor.
Create a OSG body component. The body will add a required interface if a function name is passed.
model | The file name of a 3D model |
world | The OSG world the body belongs to |
Rt | The initial transformation of the body |
scale | The size scale |
alpha | The alpha parameter |
option | File options |
osaOSGBody::osaOSGBody | ( | const std::string & | model, |
osaOSGBody * | world, | ||
const vctFrame4x4< double > & | Rt, | ||
double | scale = 1.0 , |
||
double | alpha = 1.0 , |
||
const vctFrame4x4< double > & | Rtoffset = vctFrame4x4< double >() , |
||
const std::string & | option = std::string("") |
||
) |
OSG Body constructor.
Create a OSG body component. The body will add a required interface if a function name is passed.
model | The file name of a 3D model |
body | The OSG body the body is attached to |
Rt | The initial transformation of the body wrt to body |
scale | The size scale |
alpha | The alpha parameter |
option | File options |
osaOSGBody::osaOSGBody | ( | const std::string & | model, |
osaOSGWorld * | world, | ||
const vctFrm3 & | Rt, | ||
double | scale = 1.0 , |
||
double | alpha = 1.0 , |
||
const std::string & | option = std::string("") |
||
) |
OSG Body constructor.
Create a OSG body component. The body will add a required interface if a function name is passed.
model | The file name of a 3D model |
world | The OSG world the body belongs to |
Rt | The initial transformation of the body |
scale | The size scale |
alpha | The alpha parameter |
option | File options |
osaOSGBody::osaOSGBody | ( | const vctDynamicMatrix< double > & | pointcloud, |
osaOSGWorld * | world, | ||
const vctFrm3 & | Rt, | ||
const vctFixedSizeVector< unsigned char, 3 > & | rgb = RGBDEFAULT , |
||
float | size = 3.0 |
||
) |
Construcor for 3D point cloud.
osaOSGBody::osaOSGBody | ( | ) |
osaOSGBody::~osaOSGBody | ( | ) |
void osaOSGBody::AddTransformCallback | ( | void | ) |
|
inline |
|
virtual |
Reimplemented in osaODEBody.
|
virtual |
void osaOSGBody::Initialize | ( | double | scale = 1.0 | ) |
|
protected |
|
protected |
|
inline |
void osaOSGBody::SetModeFill | ( | ) |
void osaOSGBody::SetModeLine | ( | ) |
void osaOSGBody::SetModePoint | ( | ) |
|
virtual |
Set the transform of the body.
Reimplemented in osaODEBody.
|
virtual |
void osaOSGBody::SwitchOff | ( | ) |
void osaOSGBody::SwitchOn | ( | ) |
Set the switch of the body.
|
protectedvirtual |
This method is called from the switch callback.
|
protectedvirtual |
This method is called from the transform callback.
Reimplemented in mtsOSGBodyUI::BodyUI, mtsOSGBody::Body, and mtsOSGPointer3D::Pointer.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
static |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |