Robotran C Documentation
Body3D.hh
Go to the documentation of this file.
1 
6 #ifdef OPEN_GL
7 
8 #ifndef _BODY_3D_HH_
9 #define _BODY_3D_HH_
10 
11 #include "Mbs3DComponent.hh"
12 #include "MbsShape3D.hh"
13 
14 namespace OpenGLMbs{
15 
16 // forward declaration
17 class AnchorPoint3D;
18 
21 class Body3D: public Mbs3DComponent
22 {
23  public:
24  Body3D(MbsWorld3D *world_3d, const char* name, glm::mat4 const& abs_mat = glm::mat4(1.0f));
25  virtual ~Body3D();
26 
28  void AddMbsShape3D(MbsShape3D *new_shape_3d) { shape_3d_list.push_back(new_shape_3d); }
29 
30  void UpdateShapes3DMat();
31 
32  AnchorPoint3D* AddAnchor(const char* name, glm::vec3 const& anchor_pos = glm::vec3(0.0f));
33 
34  virtual void UpdateAbsMatTree();
35 
36  virtual void PrintTree(int level);
37 
38  AnchorPoint3D* GetChildAnchor(const char* name);
39 
40  private:
41  std::vector<AnchorPoint3D*> anchor_child_list;
42 
43  std::vector<MbsShape3D*> shape_3d_list;
44 };
45 
46 }
47 #endif
48 #endif
OpenGLMbs
Definition: MpegFrameCaptureOptions.hh:6
MbsWorld3D.hh
MbsWorld3D class.
MbsShape3D.hh
MbsShape3D class.
Body3D.hh
Body3D class.
Mbs3DComponent.hh
Mbs3DComponent class.
MbsShape3D
AnchorPoint3D.hh
AnchorPoint3D class.