|
AGXDynamics
2.31.1.0
|
This visitor will visit each rigid body and wire in an assembly (or collection) and extract them to a vector with all bodies. More...
#include <CollectBodiesAndWiresVisitor.h>
Inheritance diagram for agxUtil::CollectBodiesAndWiresVisitor:Public Types | |
| using | RigidBodyPtrSetVector = agx::SetVector< agx::RigidBody * > |
| using | WireNodeRefVector = agx::Vector< agxWire::NodeRef > |
| using | WirePtrSetVector = agx::SetVector< agxWire::Wire * > |
Public Member Functions | |
| CollectBodiesAndWiresVisitor () | |
| Constructor. More... | |
| virtual | ~CollectBodiesAndWiresVisitor () |
| Destructor. More... | |
| RigidBodyPtrSetVector & | getBodies () |
| const RigidBodyPtrSetVector & | getBodies () const |
| const WireNodeRefVector & | getUserWireNodes () const |
| WirePtrSetVector & | getWires () |
| const WirePtrSetVector & | getWires () const |
| bool | succeed () const |
Protected Attributes | |
| RigidBodyPtrSetVector | m_bodies |
| bool | m_succeed |
| WireNodeRefVector | m_userWireNodes |
| WirePtrSetVector | m_wires |
This visitor will visit each rigid body and wire in an assembly (or collection) and extract them to a vector with all bodies.
Excluded are bodies which has isPowerlineBody() == true Bodies are stored as raw pointers. Do not store and use the result between time steps as bodies will come and go. Also, make sure the wire is added to the simulation (initialized).
Definition at line 32 of file CollectBodiesAndWiresVisitor.h.
| using agxUtil::CollectBodiesAndWiresVisitor::RigidBodyPtrSetVector = agx::SetVector<agx::RigidBody*> |
Definition at line 37 of file CollectBodiesAndWiresVisitor.h.
Definition at line 38 of file CollectBodiesAndWiresVisitor.h.
Definition at line 36 of file CollectBodiesAndWiresVisitor.h.
|
inline |
Constructor.
Definition at line 41 of file CollectBodiesAndWiresVisitor.h.
|
inlinevirtual |
Destructor.
Definition at line 44 of file CollectBodiesAndWiresVisitor.h.
|
inline |
Definition at line 47 of file CollectBodiesAndWiresVisitor.h.
|
inline |
Definition at line 49 of file CollectBodiesAndWiresVisitor.h.
|
inline |
Definition at line 57 of file CollectBodiesAndWiresVisitor.h.
References agxSDK::AssemblyVisitor::visit().
|
inline |
Definition at line 52 of file CollectBodiesAndWiresVisitor.h.
|
inline |
Definition at line 54 of file CollectBodiesAndWiresVisitor.h.
|
inlineprotectedinherited |
Definition at line 744 of file Assembly.h.
|
inherited |
|
inlineprotectedvirtual |
Reimplemented from agxSDK::AssemblyVisitor.
Definition at line 63 of file CollectBodiesAndWiresVisitor.h.
References agx::RigidBody::isPowerlineBody().
|
inlineprotectedvirtual |
Reimplemented from agxSDK::AssemblyVisitor.
Definition at line 70 of file CollectBodiesAndWiresVisitor.h.
References agxSDK::Assembly::traverse().
|
inlineprotectedvirtual |
Reimplemented from agxSDK::AssemblyVisitor.
Definition at line 76 of file CollectBodiesAndWiresVisitor.h.
References agx::Referenced::asSafe(), agxWire::Wire::getConstraint(), and agxWire::Wire::isLumpedNode().
|
inlineprotectedvirtual |
Reimplemented from agxSDK::AssemblyVisitor.
Definition at line 97 of file CollectBodiesAndWiresVisitor.h.
|
inlineprotectedvirtual |
Reimplemented from agxSDK::AssemblyVisitor.
Definition at line 102 of file CollectBodiesAndWiresVisitor.h.
|
inlineprotectedvirtual |
Reimplemented from agxSDK::AssemblyVisitor.
Definition at line 107 of file CollectBodiesAndWiresVisitor.h.
|
inlineprotectedvirtualinherited |
Definition at line 722 of file Assembly.h.
Referenced by getUserWireNodes().
|
inlineprotectedvirtualinherited |
Definition at line 723 of file Assembly.h.
|
inlineprotectedvirtualinherited |
Definition at line 725 of file Assembly.h.
|
inlineprotectedvirtualinherited |
Definition at line 728 of file Assembly.h.
|
inlineprotectedvirtualinherited |
Definition at line 729 of file Assembly.h.
|
inlineprotectedvirtualinherited |
Definition at line 730 of file Assembly.h.
|
inlineprotectedvirtualinherited |
Definition at line 731 of file Assembly.h.
|
inlineprotectedvirtualinherited |
Definition at line 733 of file Assembly.h.
|
inlineprotectedvirtualinherited |
Definition at line 734 of file Assembly.h.
|
inlineprotectedvirtualinherited |
Definition at line 736 of file Assembly.h.
|
inlineprotectedvirtualinherited |
Definition at line 739 of file Assembly.h.
|
inlineprotectedvirtualinherited |
Definition at line 740 of file Assembly.h.
|
inlineprotectedvirtualinherited |
Definition at line 741 of file Assembly.h.
|
inlineprotectedvirtualinherited |
Definition at line 742 of file Assembly.h.
|
protected |
Definition at line 112 of file CollectBodiesAndWiresVisitor.h.
|
protectedinherited |
Definition at line 748 of file Assembly.h.
|
protected |
Definition at line 114 of file CollectBodiesAndWiresVisitor.h.
|
protected |
Definition at line 113 of file CollectBodiesAndWiresVisitor.h.