|
AGXDynamics
2.31.1.0
|
Free node class used to route wires. More...
#include <Node.h>
Inheritance diagram for agxWire::FreeNode:Public Types | |
| enum | StateInfo { STANDARD = 0, WAS_CONTACT = (1<< 0), IS_HIGH_RES = (1<< 1), IGNORE_BEND = (1<< 2), NO_LUMP_NEAR = (1<< 3), NO_CIRCLE_CONTACT = (1<< 4), GYPSY_CONTACT = (1<< 5), NO_MOVEMENT_RANGE = (1<< 6), NO_FRICTION = (1<< 7), SPLIT_ENABLED = (1<< 8), INSIDE_OBJECT = (1<< 9), WAS_CONTACT_LAST_TIMESTEP = (1<<10), PERMANENT_LUMP = (1<<11), REPLACE_SUPERBEND_WITH_BEND = (1<<12), LUMPED_NODE = (1<<13), LUMP_CONTACT = (1<<14), WW_STABILIZED = (1<<15) } |
| Internal state a node may have. More... | |
| enum | Type { NOT_DEFINED = 0, EYE = (1<<0), MISSING = (1<<1), CONNECTING = (1<<2), FREE = (1<<3), CONTACT = (1<<4), BODY_FIXED = (1<<5), STOP = (1 << 6), SHAPE_CONTACT = (1<<7) } |
| The supported node types. More... | |
Public Member Functions | |
| FreeNode (const agx::Vec3 &position) | |
| Constructs given world position. More... | |
| FreeNode (agx::Real x, agx::Real y, agx::Real z) | |
| Constructs given world position. More... | |
| void | addState (int state) |
| Add state mask to the current state. More... | |
| 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 |
| BodyFixedNode * | getAsBodyFixed () |
| const BodyFixedNode * | getAsBodyFixed () const |
| ConnectingNode * | getAsConnecting () |
| const ConnectingNode * | getAsConnecting () const |
| ContactNode * | getAsContact () |
| const ContactNode * | getAsContact () const |
| EyeNode * | getAsEye () |
| const EyeNode * | getAsEye () const |
| EyeNode * | getAsEyeLineNode () |
| const EyeNode * | getAsEyeLineNode () const |
| FreeNode * | getAsFree () |
| const FreeNode * | getAsFree () const |
| const ShapeContactNode * | getAsShapeContact () const |
| ShapeContactNode * | getAsShapeContact () |
| StopNode * | getAsStop () |
| const StopNode * | getAsStop () const |
| const char * | getClassName () const override |
| agx::Referenced * | getCustomData () const |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| NodeFrame * | getFrame () |
| const NodeFrame * | getFrame () const |
| HighResolutionRange * | getHighResolutionRange () |
| const HighResolutionRange * | getHighResolutionRange () const |
| bool | getIgnoreBend () const |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. More... | |
| agx::Vec3 | getIntegratedPosition (agx::Real t, bool onlyTranslational=true) const |
| Calculates the position of this node at time t from now. More... | |
| NodeMaterial * | getMaterial () |
| const NodeMaterial * | getMaterial () const |
| NodeFrame & | getNodeFrame () |
| Type | getNodeType () const |
| const agx::Vec3 & | getPosition () const |
| int | getReferenceCount () const |
| agx::RigidBody * | getRigidBody () const |
| int | getState () const |
| agxStream::StorageAgent * | getStorageAgent () const override |
| const agx::Vec3 & | getTranslate () const |
| Node::Type | getType () const |
| agx::Uuid | getUuid () const |
| virtual agx::Vec3 | getVelocity () const |
| const agx::Vec3 & | getWorldPosition () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| bool | isFinished () const |
| agx::Bool | isType (agx::Int typeMask) const |
| Test several types, e.g., node->isType( agxWire::Node::EYE | agxWire::Node::CONNECTING ). 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 | removeState (int state) |
| Remove state mask from the current state. More... | |
| virtual void | restore (agxStream::InputArchive &in) override |
| virtual void | reverse () |
| Only for internal use! Reverses all, internal, direction dependent structures. More... | |
| void | setCustomData (agx::Referenced *customData) |
| Set custom data to this node. More... | |
| 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 | setIgnoreBend (bool ignoreBend) |
| Flag if bend constraints should be ignored over this node. More... | |
| virtual void | setTranslate (const agx::Vec3 &translate) |
| Set the relative translate of this node in parent frame (body frame if body is set, otherwise world frame) More... | |
| void | setTranslate (agx::Real x, agx::Real y, agx::Real z) |
| Set the relative translate of this node in parent frame (body frame if body is set, otherwise world frame) More... | |
| void | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. More... | |
| virtual void | store (agxStream::OutputArchive &out) const override |
| void | transform () |
| Transforms the frame. 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... | |
Static Public Member Functions | |
| static agxStream::Serializable * | create () |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
| static int | findNodeState (const agxCollide::Geometry *geometry) |
| Class used to track nodes when CCD is used. More... | |
| static const char * | getConstructClassId () |
| static agx::Bool | isContactType (const Node *node) |
| static agx::Bool | isContactType (const Node::Type &type) |
| static void | setEnableUuidGeneration (bool flag) |
| Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. More... | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Protected Member Functions | |
| FreeNode () | |
| Not defined to create this node without a position. More... | |
| virtual | ~FreeNode () |
| Destructor. More... | |
| void | allocateObserverVector () const |
| void | create (const agx::Vec3 &position) |
| Create method for all constructors. More... | |
| void | deleteUsingDeleteHandler () const |
| void | generateUuid () |
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 | |
| BodyFixedNode * | m_bodyFixed |
| ConnectingNode * | m_connecting |
| ContactNode * | m_contact |
| ContactForce | m_contactForce |
| agx::ref_ptr< agx::Referenced > | m_customData |
| EyeNode * | m_eye |
| FreeNode * | m_free |
| HighResolutionRange | m_highResolutionRange |
| NodeMaterial | m_material |
| Mutex | m_mutex |
| NodeFrame | m_nf |
| int | m_nodeState |
| ObserverContainer | m_observers |
| agx::observer_ptr< Node > | m_parent |
| AtomicValue | m_refCount |
| ShapeContactNode * | m_shapeContact |
| SpatialState | m_spatialState |
| StopNode * | m_stop |
| StoreRestoreData | m_storeRestoreData |
| Tension | m_tension |
| Type | m_type |
Free node class used to route wires.
This node is only defined by its world position, i.e., no parent transform is used.
Definition at line 1177 of file agxWire/Node.h.
|
inherited |
Internal state a node may have.
Definition at line 535 of file agxWire/Node.h.
|
inherited |
The supported node types.
| Enumerator | |
|---|---|
| NOT_DEFINED | Default type is undefined. |
| EYE | Eye nodes are nodes that slides along the wire. |
| MISSING | Node not used. |
| CONNECTING | Connecting nodes contains two nodes, one at center of mass and the other at the user defined position. Used to handle heavy loads and carries special constraints for stability. |
| FREE | Free nodes are used to route the wire. |
| CONTACT | Contact nodes may appear during contact with other objects. |
| BODY_FIXED | Body fixed node has a fixed position relative a parent (body or world). |
| STOP | Stop nodes are an internal node used round winches. |
| SHAPE_CONTACT | Stop nodes are an internal node used round winches. |
Definition at line 517 of file agxWire/Node.h.
| agxWire::FreeNode::FreeNode | ( | const agx::Vec3 & | position | ) |
Constructs given world position.
| position | - a position given in world coordinates |
Constructs given world position.
| x | - x position given in world coordinates |
| y | - y position given in world coordinates |
| z | - z position given in world coordinates |
|
protected |
Not defined to create this node without a position.
|
protectedvirtual |
Destructor.
|
inherited |
Add state mask to the current state.
| state | - state to add |
|
protectedinherited |
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), agx::InternalData::getOrCreate(), and agx::InternalData::hasData().
|
inherited |
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
|
inlinestatic |
Definition at line 1194 of file agxWire/Node.h.
|
inlinestatic |
Definition at line 1194 of file agxWire/Node.h.
Create method for all constructors.
|
protectedinherited |
|
staticinherited |
Class used to track nodes when CCD is used.
Finds initial node state given geometry.
| geometry | - the geometry |
|
protectedinherited |
|
inherited |
Definition at line 2129 of file agxWire/Node.h.
|
inherited |
Definition at line 2134 of file agxWire/Node.h.
|
inherited |
Definition at line 2149 of file agxWire/Node.h.
|
inherited |
Definition at line 2154 of file agxWire/Node.h.
|
inherited |
Definition at line 2169 of file agxWire/Node.h.
|
inherited |
Definition at line 2174 of file agxWire/Node.h.
|
inherited |
Definition at line 2139 of file agxWire/Node.h.
|
inherited |
Definition at line 2144 of file agxWire/Node.h.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 2179 of file agxWire/Node.h.
|
inherited |
Definition at line 2184 of file agxWire/Node.h.
|
inherited |
Definition at line 2159 of file agxWire/Node.h.
|
inherited |
Definition at line 2164 of file agxWire/Node.h.
|
inlineoverridevirtual |
Reimplemented from agxStream::Serializable.
Definition at line 1194 of file agxWire/Node.h.
|
inlinestatic |
Definition at line 1194 of file agxWire/Node.h.
|
inherited |
|
staticprotectedinherited |
|
inherited |
Definition at line 273 of file Serializable.h.
|
inherited |
|
inherited |
Definition at line 2109 of file agxWire/Node.h.
Referenced by agxWire::findPointOnWire().
|
inherited |
Definition at line 2114 of file agxWire/Node.h.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
This index is given at creation of this object.
It is guaranteed to be unique for the lifetime of this library instance. As long as the application is running. This value is not serialized or restored. A new object will always get a new index no matter how it is created.
Definition at line 247 of file Serializable.h.
|
inherited |
Calculates the position of this node at time t from now.
| t | - delta time from now |
| onlyTranslational | - if true (default) the angular velocity of the body will not be taken into account |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 2124 of file agxWire/Node.h.
References agxWire::NodeFrame::getRigidBody().
|
inherited |
|
inlineoverridevirtual |
Implements agxStream::Serializable.
Definition at line 1194 of file agxWire/Node.h.
|
inherited |
|
inherited |
Definition at line 2099 of file agxWire/Node.h.
|
inherited |
Definition at line 268 of file Serializable.h.
Referenced by agxSDK::UuidHashCollisionFilter::match().
|
virtualinherited |
Reimplemented in agxWire::ShapeContactNode.
|
inherited |
Definition at line 2119 of file agxWire/Node.h.
References agxWire::NodeFrame::getWorldPosition().
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::EntityStorage::getInstances(), and agx::Object::getResource().
|
staticinherited |
|
inherited |
Definition at line 252 of file Serializable.h.
References AGX_FORCE_INLINE.
Test several types, e.g., node->isType( agxWire::Node::EYE | agxWire::Node::CONNECTING ).
Definition at line 2104 of file agxWire/Node.h.
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.
|
inherited |
Remove state mask from the current state.
| state | - state to remove |
|
overridevirtual |
|
virtualinherited |
Only for internal use! Reverses all, internal, direction dependent structures.
Reimplemented in agxWire::EyeNode.
|
inherited |
Set custom data to this node.
| customData | - custom data |
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
|
inherited |
Set to false to disable serialization of this object.
It will just be ignored during serialization (writing). It is still possible to restore TO this object.
|
staticinherited |
Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.
|
inherited |
Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.
|
inherited |
Flag if bend constraints should be ignored over this node.
Set the relative translate of this node in parent frame (body frame if body is set, otherwise world frame)
Reimplemented in agxWire::ContactNode.
Set the relative translate of this node in parent frame (body frame if body is set, otherwise world frame)
Explicitly set a Uuid on a serializable object.
Use this method with great care, as it can result in non-unique identifiers in the system!
|
overridevirtual |
|
inherited |
Transforms the frame.
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.
Referenced by agxData::EntityRef< ContactMaterialPtr >::~EntityRef().
|
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 1141 of file agxWire/Node.h.
|
protectedinherited |
Definition at line 1143 of file agxWire/Node.h.
|
protectedinherited |
Definition at line 1145 of file agxWire/Node.h.
|
protectedinherited |
Definition at line 1136 of file agxWire/Node.h.
|
protectedinherited |
Definition at line 1138 of file agxWire/Node.h.
|
protectedinherited |
Definition at line 1142 of file agxWire/Node.h.
|
protectedinherited |
Definition at line 1140 of file agxWire/Node.h.
|
protectedinherited |
Definition at line 1132 of file agxWire/Node.h.
|
protectedinherited |
Definition at line 1133 of file agxWire/Node.h.
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
protectedinherited |
Definition at line 1130 of file agxWire/Node.h.
|
protectedinherited |
Definition at line 1134 of file agxWire/Node.h.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
protectedinherited |
Definition at line 1151 of file agxWire/Node.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.
|
protectedinherited |
Definition at line 1146 of file agxWire/Node.h.
|
protectedinherited |
Definition at line 1149 of file agxWire/Node.h.
|
protectedinherited |
Definition at line 1144 of file agxWire/Node.h.
|
protectedinherited |
Definition at line 1148 of file agxWire/Node.h.
|
protectedinherited |
Definition at line 1135 of file agxWire/Node.h.
|
protectedinherited |
Definition at line 1131 of file agxWire/Node.h.