71 virtual Structure *GetStructure();
72 virtual NeuralModule *GetNeuralModule();
73 virtual Node *GetNode();
75 virtual void Enabled(
bool bVal);
76 virtual bool Enabled();
78 virtual std::string ID() ;
79 virtual void ID(std::string strValue);
81 virtual std::string Name();
82 virtual void Name(std::string strValue);
84 virtual std::string Type();
85 virtual void Type(std::string strValue);
87 virtual bool Selected();
88 virtual void Selected(
bool bValue,
bool bSelectMultiple);
92 #pragma region DataAccesMethods
116 virtual void SetSystemPointers(
Simulator *lpSim, Structure *lpStructure, NeuralModule *lpModule,
Node *lpNode,
bool bVerify);
117 virtual void VerifySystemPointers();
118 virtual float *GetDataPointer(
const std::string &strDataType);
119 virtual bool SetData(
const std::string &strDataType,
const std::string &strValue,
bool bThrowError =
true);
120 virtual bool SetData(
const std::string &strDataType,
const float fltValue,
bool bThrowError =
true);
121 virtual bool SetData(
const std::string &strDataType,
const long lValue,
bool bThrowError =
true);
122 virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
123 virtual bool HasProperty(
const std::string &strName);
124 virtual AnimatPropertyType PropertyType(
const std::string &strName);
125 virtual bool AddItem(
const std::string &strItemType,
const std::string &strXml,
bool bThrowError =
true,
bool bDoNotInit =
false);
126 virtual bool RemoveItem(
const std::string &strItemType,
const std::string &strID,
bool bThrowError =
true);
128 virtual void RigidBodyAdded(std::string strID) {};
129 virtual void RigidBodyRemoved(std::string strID) {};
133 #pragma region SimulationMethods
135 virtual void Reset();
136 virtual void Initialize();
137 virtual void ResetSimulation();
138 virtual void AfterResetSimulation();
139 virtual void ReInitialize();
140 virtual void Kill(
bool bState =
true);
141 virtual void StepSimulation();
143 virtual void SimStarting();
144 virtual void SimPausing();
145 virtual void SimStopping();
147 virtual void TimeStepModified();
151 #pragma region SnapshotMethods
153 virtual long CalculateSnapshotByteSize();
154 virtual void SaveKeyFrameSnapshot(byte *aryBytes,
long &lIndex);
155 virtual void LoadKeyFrameSnapshot(byte *aryBytes,
long &lIndex);
159 virtual void VisualSelectionModeChanged(
int iNewMode);
Simulates the entire environment.
Root namespace for the base simulation library for AnimatLab.
AnimatSim::Behavior::NeuralModule * m_lpModule
The pointer to this items parentNeuralModule. If this is not relevant for this object then this is NU...
Simulator * m_lpSim
The pointer to a Simulation.
AnimatSim::Environment::Structure * m_lpStructure
The pointer to this items parent Structure. If this is not relevant for this object then this is NULL...
std::string m_strID
The unique Id for this object.
A standard xml manipulation class.
Node * m_lpNode
The pointer to this items parent Node. If this is not relevant for this object then this is NULL...
A "static" structure in the simulation.
bool m_bEnabled
Tells if this item is enabled or not. If it is not enabled then it is not run.
Base class for body parts and neural network nodes.
bool m_bSelected
Tells whether the object is selected or not.
std::string m_strType
The type for this object. Examples are Box, Plane, Neuron, etc..
std::string m_strName
The name for this object.