AnimatLab  2
Test
Sensor.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 namespace AnimatSim
10 {
11  namespace Environment
12  {
13  namespace Bodies
14  {
25  class ANIMAT_PORT Sensor : public RigidBody
26  {
27  protected:
29  float m_fltRadius;
30 
33 
36 
37  public:
38  Sensor();
39  virtual ~Sensor();
40 
41  static Sensor *CastToDerived(AnimatBase *lpBase) {return static_cast<Sensor*>(lpBase);}
42 
51  virtual float Radius();
52 
62  virtual void Radius(float fltVal, bool bUseScaling = true);
63 
64  virtual void LatitudeSegments(int iVal);
65  virtual int LatitudeSegments();
66 
67  virtual void LongtitudeSegments(int iVal);
68  virtual int LongtitudeSegments();
69 
70  virtual bool AllowRotateDragX();
71  virtual bool AllowRotateDragY();
72  virtual bool AllowRotateDragZ();
73 
74  virtual void CreateParts();
75  virtual void CreateJoints();
76 
77  //Sensor parts are never static joints.
78  virtual bool HasStaticJoint() {return false;};
79 
80  virtual void Initialize();
81  virtual bool SetData(const std::string &strDataType, const std::string &strValue, bool bThrowError = true);
82  virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
83  virtual void Load(CStdXml &oXml);
84  };
85 
86  } //Bodies
87  } // Environment
88 } //AnimatSim
Root namespace for the base simulation library for AnimatLab.
int m_iLongtitudeSegments
Number of segments along the longtitude direction that are used to build the sphere.
Definition: Sensor.h:35
Animat base class.
Definition: AnimatBase.h:36
int m_iLatitudeSegments
Number of segments along the latitude direction that are used to build the sphere.
Definition: Sensor.h:32
float m_fltRadius
The radius of the sensor part. It is shown as a sphere object.
Definition: Sensor.h:29
virtual bool HasStaticJoint()
Query if this object has a static joint.
Definition: Sensor.h:78
The base class for all of the basic rigid body type of objects.
Definition: RigidBody.h:66