AnimatLab  2
Test
ReceptiveField.h
Go to the documentation of this file.
1 
7 #pragma once
8 
9 namespace AnimatSim
10 {
11  namespace Environment
12  {
21  class ANIMAT_PORT ReceptiveField : public AnimatBase
22  {
23  public:
25  StdVector3 m_vVertex;
26 
28  float m_fltCurrent;
29 
31  ReceptiveField(float fltX, float fltY, float fltZ, float fltStim);
32  virtual ~ReceptiveField();
33 
34  static ReceptiveField *CastToDerived(AnimatBase *lpBase) {return static_cast<ReceptiveField*>(lpBase);}
35 
36  void SetVertex(CStdFPoint vPoint);
37 
38  bool operator<(ReceptiveField *lpItem);
39  bool operator>(ReceptiveField *lpItem);
40  bool operator==(ReceptiveField *lpItem);
41  bool LessThanThan(float fltX, float fltY, float fltZ);
42  bool GreaterThanThan(float fltX, float fltY, float fltZ);
43  bool Equals(float fltX, float fltY, float fltZ);
44 
45  virtual void Load(CStdXml &oXml);
46  };
47 
48  } // Environment
49 } //AnimatSim
Root namespace for the base simulation library for AnimatLab.
StdVector3 m_vVertex
The vertex of the center of the receptive field in global coordinates.
float m_fltCurrent
The accumulated current for this receptive field.
Animat base class.
Definition: AnimatBase.h:36
Receptive field that generates current based on the amount of contact force, and how close it is to t...