|
AGX Dynamics 2.42.3.1
|
Inspect a cable's current state and compute a SegmentDamageState for each segment. More...
#include <CableDamageState.h>
Inheritance diagram for agxCable::CableDamageState:Public Member Functions | |
| CableDamageState (agxCable::Cable *cable) | |
| Create a new CableDamageState and register it with the given cable. | |
| AGXSTREAM_DECLARE_SERIALIZABLE_BASE (agxCable::CableDamageState) | |
| agxCable::Cable * | getCable () |
| const agxCable::Cable * | getCable () const |
| agxCable::CableDamageStateFilter | getCableDamageStateFilter () const |
| size_t | getNumSegmentDamageStates () const |
| const agxCable::SegmentDamageStateVector & | getSegmentDamageData () const |
| Provides read-only access to the segment damage states. | |
| bool | isEnabled (agxCable::DamageStateTypes::StateType damageType) const |
| Test if the given piece of the SegmentDamageState is part of the set of state that is computed. | |
| virtual void | post () |
| virtual void | pre () |
| void | setCableDamageStateFilter (agxCable::CableDamageStateFilter filter) |
| Set the filter used to determine which parts of the SegmentDamageStates that should be computed. | |
| void | setEnable (agxCable::DamageStateTypes::StateType damageType, bool enable) |
| Enable or disable computation of a single piece of the SegmentDamageState. | |
Public Member Functions inherited from agx::Referenced | |
| Referenced () | |
| Default constructor. | |
| Referenced (const Referenced &) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. | |
| template<typename T > | |
| const T * | asSafe () const |
| int | getReferenceCount () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. | |
| Referenced & | operator= (const Referenced &) |
| Assignment operator. Will increment the number of references to the referenced object. | |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. | |
Public Member Functions inherited from agxStream::Serializable | |
| virtual | ~Serializable () |
| Destructor for normal C++ use but hidden from SWIG bindings. | |
| virtual const char * | getClassName () const |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. | |
| virtual StorageAgent * | getStorageAgent () const =0 |
| agx::Uuid | getUuid () const |
| bool | isFinished () const |
| void | setEnableSerialization (bool flag) |
| Set to false to disable serialization of this object. | |
| void | setFinished () |
| Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. | |
| void | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. | |
Static Public Member Functions | |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
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. | |
Protected Member Functions | |
| virtual | ~CableDamageState () |
Protected Member Functions inherited from agx::Referenced | |
| virtual | ~Referenced () |
| Destructor. | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Protected Member Functions inherited from agxStream::Serializable | |
| Serializable () | |
| Default constructor. | |
| Serializable (const Serializable &other) | |
| Copy constructor. | |
| void | generateUuid () |
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. | |
Protected Attributes inherited from agx::Referenced | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Inspect a cable's current state and compute a SegmentDamageState for each segment.
The SegmendDamageStates are later used by CableDamage instances to estimate cable damage.
A filter is used to select which parts of the SegmentDamageStates that are computed. This makes it possible to implement other damage estimation models in the future.
Definition at line 42 of file CableDamageState.h.
| agxCable::CableDamageState::CableDamageState | ( | agxCable::Cable * | cable | ) |
Create a new CableDamageState and register it with the given cable.
SegmentDamageStates will be updated ever time step.
| cable | - The cable for which SegmendDamageStates are to be computed. |
|
protectedvirtual |
| agxCable::CableDamageState::AGXSTREAM_DECLARE_SERIALIZABLE_BASE | ( | agxCable::CableDamageState | ) |
|
inlinestatic |
Definition at line 102 of file CableDamageState.h.
| agxCable::Cable * agxCable::CableDamageState::getCable | ( | ) |
| const agxCable::Cable * agxCable::CableDamageState::getCable | ( | ) | const |
| agxCable::CableDamageStateFilter agxCable::CableDamageState::getCableDamageStateFilter | ( | ) | const |
| size_t agxCable::CableDamageState::getNumSegmentDamageStates | ( | ) | const |
| const agxCable::SegmentDamageStateVector & agxCable::CableDamageState::getSegmentDamageData | ( | ) | const |
Provides read-only access to the segment damage states.
| bool agxCable::CableDamageState::isEnabled | ( | agxCable::DamageStateTypes::StateType | damageType | ) | const |
Test if the given piece of the SegmentDamageState is part of the set of state that is computed.
| damageType | - The piece of the SegmentDamageState to test. |
|
virtual |
|
virtual |
| void agxCable::CableDamageState::setCableDamageStateFilter | ( | agxCable::CableDamageStateFilter | filter | ) |
Set the filter used to determine which parts of the SegmentDamageStates that should be computed.
| filter | - Filter specification. |
| void agxCable::CableDamageState::setEnable | ( | agxCable::DamageStateTypes::StateType | damageType, |
| bool | enable | ||
| ) |
Enable or disable computation of a single piece of the SegmentDamageState.
| damageType | - The piece of the SegmentDamageState that should be enabled or disabled. |
| enable | - True of the given state type is to be computed. False otherwise. |