47 virtual void UpdateData();
55 #pragma region AccessorMutators
57 virtual bool Enabled();
58 virtual void Enabled(
bool bValue);
60 virtual void Resize();
70 virtual float Radius();
81 virtual void Radius(
float fltVal,
bool bUseScaling =
true);
83 virtual void LatitudeSegments(
int iVal);
84 virtual int LatitudeSegments();
86 virtual void LongtitudeSegments(
int iVal);
87 virtual int LongtitudeSegments();
89 virtual void LightNumber(
int iVal);
90 virtual int LightNumber();
92 virtual void ConstantAttenRatio(
float fltVal);
93 virtual float ConstantAttenRatio();
95 virtual void LinearAttenDistance(
float fltVal,
bool bUseScaling =
true);
96 virtual float LinearAttenDistance();
98 virtual void QuadraticAttenDistance(
float fltVal,
bool bUseScaling =
true);
99 virtual float QuadraticAttenDistance();
103 #pragma region DataAccesMethods
105 virtual void SetSystemPointers(
Simulator *lpSim,
Structure *lpStructure, NeuralModule *lpModule,
Node *lpNode,
bool bVerify);
106 virtual bool SetData(
const std::string &strDataType,
const std::string &strValue,
bool bThrowError =
true);
107 virtual void QueryProperties(CStdPtrArray<TypeProperty> &aryProperties);
111 virtual void Selected(
bool bValue,
bool bSelectMultiple);
112 virtual void VisualSelectionModeChanged(
int iNewMode);
113 virtual void Create();
115 virtual void Load(CStdXml &oXml);
Simulates the entire environment.
Root namespace for the base simulation library for AnimatLab.
Base class for the light object.
float m_fltQuadraticAttenDistance
The quadratic attenuation distance.
float m_fltLinearAttenDistance
The linear attenuation distance.
Baes class for all items that can be moved/roated within the environment.
int m_iLightNum
Zero-based index of the light number. OSG only allows 8 lights.
A "static" structure in the simulation.
float m_fltRadius
The radius of the sphere.
float m_fltConstantAttenRatio
The constant attenuation ratio.
int m_iLatitudeSegments
Number of segments along the latitude direction that are used to build the sphere.
Base class for body parts and neural network nodes.
int m_iLongtitudeSegments
Number of segments along the longtitude direction that are used to build the sphere.