cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Protected Member Functions | List of all members
mtsOSGBody::Body Class Reference

#include <mtsOSGBody.h>

Inheritance diagram for mtsOSGBody::Body:
osaOSGBody

Public Member Functions

 Body (const std::string &model, osaOSGWorld *world, const vctFrame4x4< double > &Rt, double scale, double alpha, const vctFrame4x4< double > &Rtoffset, const std::string &option)
 
- Public Member Functions inherited from osaOSGBody
 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 ()
 

Public Attributes

mtsInterfaceRequiredinput
 The input interface. More...
 
mtsFunctionRead GetPosition
 
mtsInterfaceRequiredoutput
 
mtsFunctionWrite SetPosition
 

Protected Member Functions

virtual void UpdateTransform ()
 This update method is called from the mtsOSGBody::UpdateCallback. More...
 
- Protected Member Functions inherited from osaOSGBody
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)
 

Additional Inherited Members

- Public Types inherited from osaOSGBody
enum  Switch { SWITCH_OFF, SWITCH_ON }
 
- Static Public Attributes inherited from osaOSGBody
static const
vctFixedSizeVector< unsigned
char, 3 > 
RGBDEFAULT
 
- Protected Attributes inherited from osaOSGBody
osg::ref_ptr< UserDatauserdata
 
osg::ref_ptr
< osg::PositionAttitudeTransform > 
osgscale
 
osg::ref_ptr< TransformCallbacktransformcallback
 
vctFrame4x4< double > transform
 
vctFrame4x4< double > Rtoffset
 
osg::ref_ptr
< osg::MatrixTransform > 
osgtransform
 
osg::ref_ptr< SwitchCallbackswitchcallback
 
Switch onoff
 
osg::ref_ptr< osg::Switch > osgswitch
 
osg::ref_ptr< osg::Geode > osggeode
 

Constructor & Destructor Documentation

mtsOSGBody::Body::Body ( const std::string &  model,
osaOSGWorld world,
const vctFrame4x4< double > &  Rt,
double  scale,
double  alpha,
const vctFrame4x4< double > &  Rtoffset,
const std::string &  option 
)
inline

Member Function Documentation

virtual void mtsOSGBody::Body::UpdateTransform ( )
protectedvirtual

This update method is called from the mtsOSGBody::UpdateCallback.

Reimplemented from osaOSGBody.

Member Data Documentation

mtsFunctionRead mtsOSGBody::Body::GetPosition
mtsInterfaceRequired* mtsOSGBody::Body::input

The input interface.

mtsInterfaceRequired* mtsOSGBody::Body::output
mtsFunctionWrite mtsOSGBody::Body::SetPosition

The documentation for this class was generated from the following file: