AnimatLab  2
Test
Mesh.h
1 
2 #pragma once
3 
4 namespace AnimatSim
5 {
6  namespace Environment
7  {
8  namespace Bodies
9  {
10 
11  class ANIMAT_PORT Mesh : public RigidBody
12  {
13  protected:
15  std::string m_strMeshFile;
16 
19 
21  std::string m_strConvexMeshFile;
22 
24  CStdFPoint m_vScale;
25 
27  CStdFPoint m_vReportScale;
28 
29  public:
30  //This is a test comment.
31  Mesh();
32  virtual ~Mesh();
33 
34  static Mesh *CastToDerived(AnimatBase *lpBase) {return static_cast<Mesh*>(lpBase);}
35 
36  virtual std::string MeshFile();
37  virtual void MeshFile(std::string strFile);
38 
39  virtual std::string CollisionMeshType();
40  virtual void CollisionMeshType(std::string strType);
41 
42  virtual std::string ConvexMeshFile();
43  virtual void ConvexMeshFile(std::string strFile);
44 
45  virtual void SetMeshFile(std::string strXml);
46 
47  virtual void SetBoundingBox(int iIdx, float fltVal);
48 
49  virtual void Scale(CStdFPoint &vScale, bool bUpdateMatrix = true);
50  virtual void Scale(std::string strXml, bool bUpdateMatrix = true);
51  virtual void Scale(float fltX, float fltY, float fltZ, bool bUpdateMatrix = true);
52  virtual CStdFPoint Scale();
53 
54  virtual float *GetDataPointer(const std::string &strDataType);
55  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
56  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
57  virtual void Load(CStdXml &oXml);
58  };
59 
60  } //Bodies
61  } // Environment
62 } //AnimatSim
Root namespace for the base simulation library for AnimatLab.
std::string m_strConvexMeshFile
The collsion mesh file. If the type is convex then we load in this file instead of the graphical one...
Definition: Mesh.h:21
std::string m_strCollisionMeshType
Type of the collision mesh. Can be Convex or Triangular.
Definition: Mesh.h:18
CStdFPoint m_vReportScale
The scale factor that is used for reporting to the GUI.
Definition: Mesh.h:27
CStdFPoint m_vScale
The scale factor to use for this mesh.
Definition: Mesh.h:24
Animat base class.
Definition: AnimatBase.h:36
std::string m_strMeshFile
The graphical mesh file to load.
Definition: Mesh.h:15
The base class for all of the basic rigid body type of objects.
Definition: RigidBody.h:66