8 #include "IMovableItemCallback.h"
9 #include "ISimGUICallback.h"
91 if(this->
operator==(lpItem))
148 if(fabs(this->
m_vVertex[0] - fltX) > 1e-4)
157 if(fabs(this->
m_vVertex[1] - fltY) > 1e-4)
166 if(fabs(this->
m_vVertex[2] - fltZ) > 1e-4)
209 if( fabs(this->
m_vVertex[0] - fltX) < 1e-4 &&
210 fabs(this->
m_vVertex[1] - fltY) < 1e-4 &&
217 void ReceptiveField::Load(CStdXml &oXml)
ReceptiveField()
Default constructor.
bool operator<(ReceptiveField *lpItem)
Method used to sort the ReceptiveField by vertex.
Base class file for all Animat simulation objects.
bool GreaterThanThan(float fltX, float fltY, float fltZ)
Method used to sort the ReceptiveField by vertex.
Root namespace for the base simulation library for AnimatLab.
StdVector3 m_vVertex
The vertex of the center of the receptive field in global coordinates.
bool operator==(ReceptiveField *lpItem)
Checks whether the vertices of the receptive fields are the same.
bool Equals(float fltX, float fltY, float fltZ)
Tests if objects are considered equal.
float m_fltCurrent
The accumulated current for this receptive field.
bool LessThanThan(float fltX, float fltY, float fltZ)
Method used to sort the ReceptiveField by vertex.
virtual void Load(StdUtils::CStdXml &oXml)
Loads the item using an XML data packet.
bool operator>(ReceptiveField *lpItem)
Method used to sort the ReceptiveField by vertex.
virtual ~ReceptiveField()
Destructor.
void SetVertex(CStdFPoint vPoint)
Sets the vertex.
bool Std_LoadPoint(CStdXml &oXml, std::string strName, CStdIPoint &oPoint, bool bThrowError)
Standard load point.
Receptive field that generates current based on the amount of contact force, and how close it is to t...
Declares the receptive field class.