cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
mtsOSGBodyUI.h
Go to the documentation of this file.
1 #ifndef _mtsOSGBodyUI_h
2 #define _mtsOSGBodyUI_h
3 
4 #include <osg/Geode>
5 #include <osg/ShapeDrawable>
6 #include <osg/Shape>
7 
11 
13 
16 
18 
19  protected:
20 
22  class Pointer : public osaOSGPointer3D {
23 
24  protected:
25 
27  virtual void UpdateTransform();
28 
29  public:
30 
32 
38 
39  Pointer( osaOSGWorld* world,
40  const vctFrame4x4<double>& Rt,
41  const std::string& name,
42  double scale=1.0,
43  double alpha=1.0 ) :
44  osaOSGPointer3D( world, Rt, name, scale, alpha ),
45  input( NULL ){}
46 
47  };
48 
49 
51 
52  public:
53 
54  mtsOSGPointer3D( const std::string& name,
55  osaOSGWorld* world,
56  const vctFrame4x4<double>& Rt,
57  double scale=1.0,
58  double alpha=1.0 );
59 
60 };
61 
63 
64  protected:
65 
66  class BodyUI : public osaOSGBodyUI {
67 
68  protected:
69 
71  virtual void UpdateTransform();
72 
73  public:
74 
77 
78  BodyUI( const std::string& model,
79  osaOSGWorld* world,
81  double scale = 1.0,
82  double alpha = 1.0,
83  const vctFrame4x4<double>& Rtoffset = vctFrame4x4<double>(),
84  const std::string& option = std::string("") );
85 
86  };
87 
89 
90  public:
91 
92  mtsOSGBodyUI( const std::string& name,
93  const std::string& model,
94  osaOSGWorld* world,
96  double scale = 1.0,
97  double alpha = 1.0,
98  const vctFrame4x4<double>& Rtoffset = vctFrame4x4<double>(),
99  const std::string& option = std::string("") );
100 
101 };
102 
103 #endif
#define CISST_EXPORT
Definition: cmnExportMacros.h:50
vctFixedSizeVector< double, 3 > told
Definition: mtsOSGBodyUI.h:31
Definition: mtsFunctionRead.h:37
Declaration of mtsInterfaceRequired.
Definition: osaOSGBodyUI.h:70
Definition: mtsInterfaceRequired.h:85
Definition: mtsOSGBodyUI.h:66
Derive the base pointer class and add mts stuff.
Definition: mtsOSGBodyUI.h:22
mtsFunctionRead GetVelocity
Definition: mtsOSGBodyUI.h:36
Pointer(osaOSGWorld *world, const vctFrame4x4< double > &Rt, const std::string &name, double scale=1.0, double alpha=1.0)
Definition: mtsOSGBodyUI.h:39
mtsInterfaceRequired * input
The input interface.
Definition: mtsOSGBodyUI.h:34
Definition: osaOSGWorld.h:24
Declaration of mtsComponent.
mtsFunctionRead GetPosition
Definition: mtsOSGBodyUI.h:35
Definition: mtsComponent.h:150
Definition: mtsOSGBodyUI.h:17
Pointer pointer
Definition: mtsOSGBodyUI.h:50
Declaration of mtsInterfaceProvided.
BodyUI bodyui
Definition: mtsOSGBodyUI.h:88
Definition: mtsFunctionWrite.h:37
mtsFunctionRead GetButtons
Definition: mtsOSGBodyUI.h:37
Definition: osaOSGBodyUI.h:111
mtsInterfaceRequired * output
Definition: mtsOSGBodyUI.h:75
Definition: mtsOSGBodyUI.h:62
mtsFunctionWrite SetPositionCartesian
Definition: mtsOSGBodyUI.h:76