|
AGX Dynamics
2.35.0.1
|
Templated three dimensional dimension state. More...
#include <DimensionState.h>
Inheritance diagram for agxPowerLine::detail::DimensionState3Dof< DimensionType >:Public Member Functions | |
| DimensionState3Dof (agx::RigidBody *body, agxPowerLine::PhysicalDimension *dimension, const agx::Vec3 &direction, DirectionReference directionReference) | |
| DimensionState3Dof (agx::RigidBody *body, agxPowerLine::PhysicalDimension *dimension, const agx::Vec3 &direction, DirectionReference directionReference, bool externalBody) | |
| virtual void | addLoad (agx::Real load) override |
| virtual void | addNotification (agxPowerLine::PowerLine *powerLine) override |
| virtual void | calculateJacobian (agx::Jacobian6DOFElement *G, agx::Real ratio, size_t index) const override |
| virtual const char * | getClassName () const override |
| virtual agx::Vec3 | getDirection () const override |
| virtual DirectionReference | getDirectionReference () const override |
| virtual agx::Real | getGradient () const override |
| virtual agx::Vec3 | getLocalDirection () const override |
| virtual agx::Real | getMassProperty () const override |
| virtual const agx::RigidBody * | getReservedBody () const override |
| virtual agx::RigidBody * | getReservedBody () override |
| Gives access to a RigidBody that is known to be used by this dimension state only. More... | |
| virtual agx::Real | getSecondGradient () const override |
| virtual agxStream::StorageAgent * | getStorageAgent () const override |
| virtual agx::Real | getValue () const override |
| virtual float | getVelocityDamping () override |
| virtual agx::Vec3 | getWorldDirection () const override |
| virtual bool | isExternalBody () const override |
| /return True if the body used by this dimension state was given by the user. More... | |
| virtual void | postUpdate (agx::Real) override |
| virtual void | removeNotification (agxPowerLine::PowerLine *powerLine) override |
| virtual void | reserveBody () override |
| Reserve a body for this dimension state. More... | |
| virtual void | restore (agxStream::InputArchive &in) override |
| virtual bool | restore (agxStream::StorageStream &in) override |
| virtual void | setGradient (agx::Real gradient) override |
| virtual void | setLocalDirection (const agx::Vec3 &direction) override |
| virtual bool | setMassProperty (agx::Real massProperty) override |
| virtual void | setValue (agx::Real value) override |
| virtual void | setVelocityDamping (float damping) override |
| virtual void | setWorldDirection (const agx::Vec3 &direction) override |
| virtual void | store (agxStream::OutputArchive &out) const override |
| virtual bool | store (agxStream::StorageStream &out) const override |
Public Member Functions inherited from agxPowerLine::detail::DimensionState | |
| bool | getAllowsPacking () const |
| agx::RigidBody * | getCurrentBody () |
| Returns the body currently used by this dimension state. More... | |
| const agx::RigidBody * | getCurrentBody () const |
| const agxPowerLine::PhysicalDimension * | getDimension () const |
Public Member Functions inherited from agx::Referenced | |
| Referenced () | |
| Default constructor. More... | |
| Referenced (const Referenced &) | |
| 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 |
| int | getReferenceCount () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| Referenced & | operator= (const Referenced &) |
| Assignment operator. Will increment the number of references to the referenced object. More... | |
| 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 | 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... | |
Public Member Functions inherited from agxStream::Serializable | |
| virtual | ~Serializable () |
| Destructor for normal C++ use but hidden from SWIG bindings. More... | |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. More... | |
| agx::Uuid | getUuid () const |
| bool | isFinished () const |
| void | setEnableSerialization (bool flag) |
| Set to false to disable serialization of this object. More... | |
| void | setFinished () |
| Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. More... | |
| void | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. More... | |
Static Public Member Functions | |
| static agxStream::Serializable * | create () |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
| static const char * | getConstructClassId () |
Static Public Member Functions inherited from agx::Referenced | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Static Public Member Functions inherited from agxStream::Serializable | |
| static void | setEnableUuidGeneration (bool flag) |
| Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. More... | |
Additional Inherited Members | |
Static Protected Member Functions inherited from agx::Referenced | |
| 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 inherited from agx::Referenced | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Templated three dimensional dimension state.
The template type is the rigid body accessor (Translational or Rotational) that is to be used for accessing data in the RigidBody that currenly holds the dimension state data.
Definition at line 354 of file DimensionState.h.
| agxPowerLine::detail::DimensionState3Dof< DimensionType >::DimensionState3Dof | ( | agx::RigidBody * | body, |
| agxPowerLine::PhysicalDimension * | dimension, | ||
| const agx::Vec3 & | direction, | ||
| DirectionReference | directionReference | ||
| ) |
| agxPowerLine::detail::DimensionState3Dof< DimensionType >::DimensionState3Dof | ( | agx::RigidBody * | body, |
| agxPowerLine::PhysicalDimension * | dimension, | ||
| const agx::Vec3 & | direction, | ||
| DirectionReference | directionReference, | ||
| bool | externalBody | ||
| ) |
|
protectedvirtual |
|
overridevirtual |
Implements agxPowerLine::detail::DimensionState.
|
overridevirtual |
Implements agxPowerLine::detail::DimensionState.
|
overridevirtual |
Implements agxPowerLine::detail::DimensionState.
|
static |
|
static |
|
overridevirtual |
Reimplemented from agxStream::Serializable.
|
static |
|
overridevirtual |
Implements agxPowerLine::detail::DimensionState.
|
overridevirtual |
Implements agxPowerLine::detail::DimensionState.
|
overridevirtual |
Implements agxPowerLine::detail::DimensionState.
|
overridevirtual |
Implements agxPowerLine::detail::DimensionState.
|
overridevirtual |
Implements agxPowerLine::detail::DimensionState.
|
overridevirtual |
Implements agxPowerLine::detail::DimensionState.
|
overridevirtual |
Gives access to a RigidBody that is known to be used by this dimension state only.
Will return nullptr if no such guarantee can be given. Will always return a valid RigidBody if reserveBody has been called on this dimension state.
Implements agxPowerLine::detail::DimensionState.
|
overridevirtual |
Implements agxPowerLine::detail::DimensionState.
|
overridevirtual |
Implements agxStream::Serializable.
|
overridevirtual |
Implements agxPowerLine::detail::DimensionState.
|
overridevirtual |
Implements agxPowerLine::detail::DimensionState.
|
overridevirtual |
Implements agxPowerLine::detail::DimensionState.
|
overridevirtual |
/return True if the body used by this dimension state was given by the user.
False if it was created by the power line.
Implements agxPowerLine::detail::DimensionState.
|
overridevirtual |
Implements agxPowerLine::detail::DimensionState.
|
overridevirtual |
Implements agxPowerLine::detail::DimensionState.
|
overridevirtual |
Reserve a body for this dimension state.
After this call the body used by this dimension state will not be used by any other dimension state and future calls to getAllowsPacking will return false. The dimension state may move to a new RigidBody during reserve.
Implements agxPowerLine::detail::DimensionState.
|
overridevirtual |
Reimplemented from agxPowerLine::detail::DimensionState.
|
overridevirtual |
Reimplemented from agxPowerLine::detail::DimensionState.
|
overridevirtual |
Implements agxPowerLine::detail::DimensionState.
|
overridevirtual |
Implements agxPowerLine::detail::AbstractDimensionState3Dof.
|
overridevirtual |
Implements agxPowerLine::detail::DimensionState.
|
overridevirtual |
Implements agxPowerLine::detail::DimensionState.
|
overridevirtual |
Implements agxPowerLine::detail::DimensionState.
|
overridevirtual |
Implements agxPowerLine::detail::AbstractDimensionState3Dof.
|
overridevirtual |
Reimplemented from agxPowerLine::detail::DimensionState.
|
overridevirtual |
Reimplemented from agxPowerLine::detail::DimensionState.