17 #ifndef AGX_SIMULATIONPARAMETER_H 18 #define AGX_SIMULATIONPARAMETER_H 42 void setDescription(
const agx::String& description);
47 virtual bool hasSetter()
const = 0;
48 virtual bool hasGetter()
const = 0;
73 virtual void set(
const T& value);
74 virtual const T&
get()
const;
79 virtual bool hasSetter()
const override;
80 virtual bool hasGetter()
const override;
105 template <
typename T>
108 return m_value->get();
111 template <
typename T>
117 template <
typename T>
120 return m_value.get();
123 template <
typename T>
126 set(value->
get<T>());
129 template <
typename T>
134 template <
typename T>
139 template <
typename T>
142 return m_value->getFormat();
147 #endif //AGX_SIMULATIONPARAMETER_H virtual void set(const T &value)
Abstract representation of a value.
AGXCORE_EXPORT Format * getFormat(const agx::String &typeFormatName)
SimulationParameterT(const agx::Name &name, const T &initialValue=T())
#define AGXPHYSICS_EXPORT
virtual ~SimulationParameterT()
#define AGX_DECLARE_POINTER_TYPES(type)
virtual const agxData::Format * getFormat() const override
virtual const T & get() const
Representation of a name string.
Templated value-reference.
virtual bool hasGetter() const override
Base class providing referencing counted objects.
virtual bool hasSetter() const override
virtual void setValue(agxData::Value *value) override
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
#define AGX_DECLARE_VECTOR_TYPES(type)
virtual const agxData::Value * getValue() const override
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...