|
AGXDynamics
2.31.1.0
|
#include <RigidBodyAttributeAccessors.h>
Inheritance diagram for agxFMI2::Export::RigidBodyPositionInputVariable:Public Types | |
| typedef void(* | CallbackFn )(T) |
| typedef agx::Callback1< T > | CallbackType |
| enum | Causality { CAUSALITY_PARAMETER, CAUSALITY_CALCULATED_PARAMETER, CAUSALITY_INPUT, CAUSALITY_OUTPUT, CAUSALITY_LOCAL, CAUSALITY_INDEPENDENT, CAUSALITY_UNKNOWN } |
| typedef agx::observer_ptr < const Event > | EventConstObserver |
| typedef agx::ref_ptr< const Event > | EventConstRef |
| typedef agx::observer_ptr< Event > | EventObserver |
| typedef agx::ref_ptr< Event > | EventRef |
| enum | Initiality { INITIALITY_EXACT, INITIALITY_APPROX, INITIALITY_CALCULATED, INITIALITY_UNKNOWN } |
| typedef fmi2Status | StatusT |
| using | Type = T |
| enum | Variability { VARIABILITY_CONSTANT, VARIABILITY_FIXED, VARIABILITY_TUNABLE, VARIABILITY_DISCRETE, VARIABILITY_CONTINOUS, VARIABILITY_UNKNOWN } |
Public Member Functions | |
| RigidBodyPositionInputVariable (agx::RigidBody *body, agx::UInt component, bool causalityName=false) | |
| void | addListener (EventListener *listener) |
| AGX_DECLARE_VECTOR_TYPES (Event) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| virtual void | buildNavigationTree (agxJson::Value &eNode) const |
| virtual void | configure (TiXmlElement *) |
| agx::TiXmlElement * | exportDescription () |
| Generate the modelDescription.xml entry. More... | |
| agx::String | fullName () const |
| agx::String | fullPath () const |
| agx::String | fullPath (const agx::Object *root) const |
| virtual fmi2Status | get (agx::Real &value) override |
| virtual fmi2Status | get (T &value) |
| agx::Object * | getAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr) |
| const agx::Object * | getAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr) const |
| template<typename T > | |
| T * | getAutoScopedResource (const agx::Path &path) |
| template<typename T > | |
| const T * | getAutoScopedResource (const agx::Path &path) const |
| agx::Physics::RigidBodyRef | getBody () |
| Causality | getCausality () const |
| const char * | getCausalityString () |
| agx::Object * | getContext () |
| const agx::Object * | getContext () const |
| template<typename T > | |
| T * | getContext () |
| template<typename T > | |
| const T * | getContext () const |
| const agx::String & | getDescription () const |
| agx::UInt32 | getId () const |
| const agx::Name & | getImplementationName () const |
| Initiality | getInitiality () const |
| const char * | getInitialityString () const |
| agx::Model * | getModel () |
| const agx::Model * | getModel () const |
| Module * | getModule () |
| const agx::Name & | getName () const |
| agx::Object * | getNextSibling () |
| const agx::Object * | getNextSibling () const |
| agx::Path | getPath () const |
| agx::Path | getPath (const agx::Object *root) const |
| int | getReferenceCount () const |
| agx::Object * | getResource (const agx::Path &path, agx::Model *model=nullptr) |
| const agx::Object * | getResource (const agx::Path &path, agx::Model *model=nullptr) const |
| template<typename T > | |
| T * | getResource (const agx::Path &path) |
| template<typename T > | |
| const T * | getResource (const agx::Path &path) const |
| virtual agx::Object * | getResourceImpl (const agx::Path &path, agx::Model *model) |
| agx::Object * | getRootContext () |
| const agx::Object * | getRootContext () const |
| agxSDK::Simulation * | getSimulation () |
| T | getStartValue () const |
| Type | getType () const |
| const char * | getTypeString () |
| agx::UInt32 | getValueReference () const |
| Variability | getVariability () const |
| const char * | getVariabilityString () |
| bool | hasListener (EventListener *listener) |
| bool | hasParent (const agx::Object *node) const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| bool | isUnique () const |
| virtual void | printSubtree () const |
| virtual void | rebind () |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | removeListener (EventListener *listener) |
| virtual void | save (TiXmlElement *) const |
| virtual fmi2Status | set (agx::Real value) override |
| virtual fmi2Status | set (T value) |
| Set the variable value. More... | |
| void | setBody (agx::Physics::RigidBodyRef body) |
| template<typename T2 > | |
| void | setCallback (T2 callback) |
| Convenience method for getting the current value. More... | |
| void | setCausality (Causality causality) |
| Set the causality. More... | |
| virtual void | setContext (agx::Object *context) |
| void | setDescription (const agx::String &description) |
| Set the description. More... | |
| void | setId (UInt32 id) |
| void | setInitiality (Initiality initiality) |
| Set the initiality. More... | |
| void | setModel (agx::Model *model) |
| Set the object model (handled automatically). More... | |
| void | setName (const agx::Name &name) |
| Set the name of the object. More... | |
| void | setStartValue (agxData::Value *startValue) |
| Set the start value. More... | |
| void | setStartValue (T startValue) |
| Set the variable start value. More... | |
| void | setType (Type type) |
| Set the type, automatically set by child classes. More... | |
| void | setValueReference (agx::UInt32 vr) |
| Set the value reference. More... | |
| void | setVariability (Variability variability) |
| Set the variability. More... | |
| virtual void | snapshot (TiXmlNode *, const String &) const |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
Static Public Member Functions | |
| static agx::Model * | ClassModel () |
| static agx::String | generateName (const agx::String &bindPath) |
| static const HashSet< Object * > & | getActiveObjects () |
| static bool | getEnableRebind () |
| Should rebinding be allowed? Right now a global setting. More... | |
| static Object * | load (TiXmlElement *eObject, Device *device) |
| template<typename T > | |
| static T * | load (TiXmlElement *eObject, Device *device) |
| static Object * | load (const String &path, Device *device, const String &type="", size_t instance=0) |
| static Object * | load (const String &path, Device *device, const String &type, const String &attribute, const String &value) |
| static void | load (const String &path, Device *device, ObjectPtrVector &loadedObjects) |
| template<typename T > | |
| static T * | load (const String &path, Device *device, const String &type="", size_t instance=0) |
| template<typename T > | |
| static T * | load (const String &path, Device *device, const String &type, const String &attribute, const String &value) |
| static TiXmlDocument | openDocument (const String &path) |
| static void | setEnableRebind (bool flag) |
| Sets if rebinding of objects should be allowed (Right now a global setting). More... | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Protected Member Functions | |
| virtual | ~RigidBodyPositionInputVariable () |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Static Protected Member Functions | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
Protected Attributes | |
| agx::Physics::RigidBodyRef | m_body |
| CallbackType | m_callback |
| Causality | m_causality |
| T | m_currentValue |
| agx::String | m_description |
| Initiality | m_initiality |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
| Type | m_type |
| agx::UInt32 | m_valueReference |
| Variability | m_variability |
Definition at line 134 of file RigidBodyAttributeAccessors.h.
|
inherited |
Definition at line 165 of file export/Variable.h.
|
inherited |
Definition at line 164 of file export/Variable.h.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 65 of file export/Variable.h.
|
inherited |
Definition at line 114 of file export/Variable.h.
|
inherited |
| Enumerator | |
|---|---|
| CAUSALITY_PARAMETER | |
| CAUSALITY_CALCULATED_PARAMETER | |
| CAUSALITY_INPUT | |
| CAUSALITY_OUTPUT | |
| CAUSALITY_LOCAL | |
| CAUSALITY_INDEPENDENT | |
| CAUSALITY_UNKNOWN | |
Definition at line 59 of file Variable.h.
|
inherited |
| Enumerator | |
|---|---|
| INITIALITY_EXACT | |
| INITIALITY_APPROX | |
| INITIALITY_CALCULATED | |
| INITIALITY_UNKNOWN | |
Definition at line 70 of file Variable.h.
|
inherited |
| Enumerator | |
|---|---|
| VARIABILITY_CONSTANT | |
| VARIABILITY_FIXED | |
| VARIABILITY_TUNABLE | |
| VARIABILITY_DISCRETE | |
| VARIABILITY_CONTINOUS | |
| VARIABILITY_UNKNOWN | |
Definition at line 49 of file Variable.h.
| agxFMI2::Export::RigidBodyPositionInputVariable::RigidBodyPositionInputVariable | ( | agx::RigidBody * | body, |
| agx::UInt | component, | ||
| bool | causalityName = false |
||
| ) |
|
protectedvirtual |
|
inherited |
|
inherited |
|
protectedinherited |
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), and agx::InternalData::getOrCreate().
|
inherited |
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
|
virtualinherited |
Reimplemented in agxData::Buffer, agxData::Value, agx::Model, agx::Component, and agx::Pointer.
|
staticinherited |
|
inlinevirtualinherited |
|
protectedinherited |
|
inherited |
Generate the modelDescription.xml entry.
|
inherited |
Referenced by agx::ScalarParameter::get(), agx::ArrayParameter::get(), agxData::Buffer::getArray(), and agxData::Buffer::getElement().
|
inherited |
|
inherited |
|
staticinherited |
|
overridevirtual |
|
virtualinherited |
Reimplemented from agxFMI2::Export::OutputVariableT< T >.
|
staticinherited |
|
inherited |
Referenced by agx::Object::getAutoScopedResource().
|
inherited |
|
inherited |
Definition at line 428 of file Object.h.
References agx::Object::getAutoScopedResource(), and agx::Referenced::is().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 373 of file Object.h.
Referenced by agxData::Value::get(), and agx::Model::getNamespace().
|
inherited |
|
inherited |
|
staticprotectedinherited |
|
inherited |
|
staticinherited |
Should rebinding be allowed? Right now a global setting.
|
inherited |
Definition at line 370 of file Object.h.
Referenced by agxData::EntityStorage::indexToId().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 369 of file Object.h.
Referenced by agxData::Value::get(), agxData::EntityStorage::get(), agxData::FormatBinding< T >::getFormat(), and agxData::EntityPtr::operator()().
|
inherited |
|
inherited |
|
inherited |
Referenced by agxData::EntityStorage::dereferenceMultipliedAttribute(), agx::ScalarParameter::get(), agx::ArrayParameter::get(), agx::PointerParameter::get(), agxData::EntityInstance::verifyIndex(), and agxData::EntityPtr::verifyIndex().
|
inherited |
| root | A node along the parent path from this object. |
|
inherited |
|
inherited |
Referenced by agx::Object::getResource().
|
inherited |
|
inherited |
Definition at line 414 of file Object.h.
References agx::Object::getResource(), and agx::Referenced::is().
|
inherited |
|
virtualinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::Buffer::getElement(), and agx::Object::getResource().
|
staticinherited |
Definition at line 393 of file Object.h.
Referenced by agx::Object::load().
|
staticinherited |
|
staticinherited |
Definition at line 379 of file Object.h.
References agx::Object::load().
|
staticinherited |
Definition at line 386 of file Object.h.
References agx::Object::load().
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
inlinevirtualinherited |
Reimplemented in agx::Component.
|
inlinevirtualinherited |
Reimplemented in agx::Task, agx::Clock, agx::Parameter, agxData::Value, agx::Component, agxIO::KeyEvent, and agxData::FunctionValue.
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
Referenced by agxData::Val< UInt >::Val().
|
inherited |
|
inlinevirtualinherited |
Reimplemented in agx::Clock.
|
overridevirtual |
|
virtualinherited |
Set the variable value.
|
inherited |
|
inlineinherited |
Convenience method for getting the current value.
Definition at line 186 of file export/Variable.h.
|
virtualinherited |
Reimplemented in agx::Task, and agxData::FunctionValue.
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
|
inherited |
Set the description.
|
staticinherited |
Sets if rebinding of objects should be allowed (Right now a global setting).
Allowing it when adding larger parts to the system tree might hit performance, so it might be smarter to disable it first, then add, and then enable again.
|
inherited |
Set the initiality.
|
inherited |
Set the object model (handled automatically).
|
inherited |
Set the start value.
|
inherited |
Set the variable start value.
Referenced by agxFMI2::Export::OutputVariableString::setStartValue().
Set the type, automatically set by child classes.
|
inherited |
Set the value reference.
|
inherited |
Set the variability.
Reimplemented in agx::Component.
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
|
staticinherited |
|
protectedinherited |
Definition at line 54 of file RigidBodyAttributeAccessors.h.
|
protectedinherited |
Definition at line 196 of file export/Variable.h.
|
protectedinherited |
Definition at line 139 of file Variable.h.
|
protectedinherited |
Definition at line 197 of file export/Variable.h.
|
protectedinherited |
Definition at line 135 of file Variable.h.
|
protectedinherited |
Definition at line 140 of file Variable.h.
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.
|
protectedinherited |
Definition at line 137 of file Variable.h.
|
protectedinherited |
Definition at line 136 of file Variable.h.
|
protectedinherited |
Definition at line 138 of file Variable.h.