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

#include <osaOSGBodyUI.h>

Inheritance diagram for osaOSGPointer3D:
osaOSGBody mtsOSGPointer3D::Pointer

Classes

class  IntersectionCallback
 

Public Member Functions

 osaOSGPointer3D (osaOSGWorld *world, const vctFrame4x4< double > &Rt, const std::string &name, double scale=1.0, double alpha=1.0)
 
void CheckIntersection ()
 
void Select ()
 
void Release ()
 
void SetVelocity (const vctFixedSizeVector< double, 3 > &v)
 
- 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 ()
 

Protected Member Functions

void BuildPolytope ()
 
- Protected Member Functions inherited from osaOSGBody
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< osg::Geode > geode
 
osg::ref_ptr< osg::ShapeDrawable > drawable
 
osg::ref_ptr< osg::Sphere > sphere
 
osg::ref_ptr
< IntersectionCallback
intersectioncallback
 
osg::ref_ptr< osaOSGWorldworld
 
vctFixedSizeVector< double, 3 > velocity
 
osg::Polytope polytope
 
bool select
 
- 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
 

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
 

Constructor & Destructor Documentation

osaOSGPointer3D::osaOSGPointer3D ( osaOSGWorld world,
const vctFrame4x4< double > &  Rt,
const std::string &  name,
double  scale = 1.0,
double  alpha = 1.0 
)

Member Function Documentation

void osaOSGPointer3D::BuildPolytope ( )
protected
void osaOSGPointer3D::CheckIntersection ( )
void osaOSGPointer3D::Release ( void  )
inline
void osaOSGPointer3D::Select ( )
inline
void osaOSGPointer3D::SetVelocity ( const vctFixedSizeVector< double, 3 > &  v)

Member Data Documentation

osg::ref_ptr< osg::ShapeDrawable > osaOSGPointer3D::drawable
protected
osg::ref_ptr< osg::Geode > osaOSGPointer3D::geode
protected
osg::ref_ptr<IntersectionCallback> osaOSGPointer3D::intersectioncallback
protected
osg::Polytope osaOSGPointer3D::polytope
protected
bool osaOSGPointer3D::select
protected
osg::ref_ptr< osg::Sphere > osaOSGPointer3D::sphere
protected
vctFixedSizeVector<double,3> osaOSGPointer3D::velocity
protected
osg::ref_ptr< osaOSGWorld > osaOSGPointer3D::world
protected

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