|
AGXDynamics
2.31.1.0
|
Assembly object representing a continuous track with a given number of shoes (nodes). More...
#include <Track.h>
Inheritance diagram for agxVehicle::Track:Public Types | |
| using | Iterator = TrackNodeIterator |
| using | NodeRange = TrackNodeRange |
| using | NodeRangeContainer = agx::VectorPOD< NodeRange > |
| using | OnNodeInitializeCallback = std::function< void(const TrackNode &)> |
| using | RigidBodyTrackWheelTable = agx::HashTable< const agx::RigidBody *, TrackWheel * > |
| using | TrackWheelContainer = agx::Vector< TrackWheelRef > |
| enum | Type { ASSEMBLY, COLLECTION } |
| Specifies the type an assembly is. More... | |
Public Member Functions | |
| Track (agx::UInt numberOfNodes, agx::Real width, agx::Real thickness, agx::Real initialDistanceTension=agx::Real(0)) | |
| Construct track given number of nodes, size and initial tension distance. More... | |
| Track (agxVehicle::TrackRoute *route) | |
| Construct given a track route. More... | |
| bool | add (agx::Constraint *constraint) |
| Add a constraint to the assembly. More... | |
| bool | add (agx::Interaction *interaction) |
| Add an interaction to this assembly. More... | |
| bool | add (agxSDK::EventListener *listener) |
| Add a listener to the assembly. More... | |
| bool | add (agx::RigidBody *body) |
| Add a rigid body to the assembly. More... | |
| agx::Bool | add (agxVehicle::TrackWheelRef wheel) |
| Add track wheel to this track before this track has been initialized. More... | |
| bool | add (agxCollide::Geometry *geometry) |
| Add a geometry to the assembly. More... | |
| bool | add (Assembly *assembly) |
| Add another assembly as child to this assembly. More... | |
| bool | add (agx::ContactMaterial *contactMaterial) |
| Add a contact material to this assembly. More... | |
| bool | add (agx::Emitter *emitter) |
| Add an emitter to this assembly. More... | |
| bool | add (agx::ObserverFrame *observerFrame) |
| Add an ObserverFrame to this assembly. More... | |
| bool | add (agxStream::Serializable *object) |
| Add an object of type serialized. More... | |
| virtual agx::Bool | addComponent (agxSDK::LinkedStructureComponent *component) |
| Add new component to this linked structure. More... | |
| virtual void | addGroup (agx::UInt32 id) |
| Add group id to all segments in this linked structure. More... | |
| virtual void | addGroup (const agx::Name &name) |
| Add group name to all segments in this linked structure. More... | |
| void | addNotification (agxSDK::Simulation *simulation) finaloverride |
| Called when this linked structure is added to the simulation. More... | |
| virtual void | addNotification (Assembly *) |
| Called when this assembly is added to another assembly. 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 |
| virtual agxCollide::GroupIdCollection | findGroupIdCollection () const |
| agxVehicle::TrackWheel * | findReferenceWheel () const |
| Reference wheel's rotation axis is defining the plane in which this track will be created. More... | |
| virtual agx::Vec3 | getAngularVelocityDamping () const |
| const AssemblyRefSet & | getAssemblies () const |
| const agxSDK::Assembly * | getAssembly (const agx::Name &name, bool recursive=true) const |
| Find (linear search) and return named Assembly. More... | |
| agxSDK::Assembly * | getAssembly (const agx::Name &name, bool recursive=true) |
| Find (linear search) and return named Assembly. More... | |
| const agxSDK::Assembly * | getAssembly (const agx::Uuid &uuid, bool recursive=true) const |
| Find (linear search) and return an Assembly matching the given uuid. More... | |
| agxSDK::Assembly * | getAssembly (const agx::Uuid &uuid, bool recursive=true) |
| Find (linear search) and return an Assembly matching the given uuid. More... | |
| const char * | getClassName () const override |
| template<typename T > | |
| T * | getComponent () const |
| agxSDK::LinkedStructureComponent * | getComponent (const agx::Name &name) const |
| const agx::Constraint * | getConstraint (const agx::Uuid &uuid, bool recursive=true) const |
| Find (linear search) and return a pointer to a Constraint with the given uuid. More... | |
| agx::Constraint * | getConstraint (const agx::Uuid &uuid, bool recursive=true) |
| Find and return a pointer to a Constraint with the given uuid. More... | |
| const agx::Constraint * | getConstraint (const agx::Name &name, bool recursive=true) const |
| Find (linear search) and return named Constraint. More... | |
| agx::Constraint * | getConstraint (const agx::Name &name, bool recursive=true) |
| Find (linear search) and return named Constraint. More... | |
| template<typename T > | |
| T * | getConstraint (const agx::Name &name, bool recursive=true) |
| Find and return named Constraint of a template type, for example Hinge: More... | |
| template<typename T > | |
| const T * | getConstraint (const agx::Name &name, bool recursive=true) const |
| Find and return named Constraint of a template type, for example Hinge: More... | |
| agx::Constraint1DOF * | getConstraint1DOF (const agx::Name &name, bool recursive=true) |
| agx::Constraint2DOF * | getConstraint2DOF (const agx::Name &name, bool recursive=true) |
| const agx::ConstraintRefSet & | getConstraints () const |
| virtual agx::Real | getCurrentLength () const |
| Calculates and returns the total length of this linked structure, at current state. More... | |
| virtual agx::UInt32 | getDisabledCollisionGroupId () const |
| const agx::EmitterRefSet & | getEmitters () const |
| virtual agx::Bool | getEnableCollisions (const agx::RigidBody *rb) const |
| virtual agx::Bool | getEnableCollisions (const agxCollide::Geometry *geometry) const |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| virtual agx::Frame * | getFrame () |
| Return a reference to the frame containing transformation and velocity information for this assembly. More... | |
| virtual const agx::Frame * | getFrame () const |
| const agxCollide::GeometryRefSet & | getGeometries () const |
| const agxCollide::Geometry * | getGeometry (const agx::Name &name, bool recursive=true) const |
| Find (linear search) and return named collision Geometry. More... | |
| agxCollide::Geometry * | getGeometry (const agx::Name &name, bool recursive=true) |
| Find (linear search) and return named collision Geometry. More... | |
| const agxCollide::Geometry * | getGeometry (const agx::Uuid &uuid, bool recursive=true) const |
| Find (linear search) and return a Geometry matching the given uuid. More... | |
| agxCollide::Geometry * | getGeometry (const agx::Uuid &uuid, bool recursive=true) |
| Find (linear search) and return a Geometry matching the given uuid. More... | |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. More... | |
| const InteractionRefSetVector & | getInteractions () const |
| agxVehicle::TrackInternalMergeProperties * | getInternalMergeProperties () const |
| Iterator | getIterator (agx::UInt index) const |
| template<typename T > | |
| Iterator | getIterator (const T *obj) const |
| template<> | |
| Track::Iterator | getIterator (const agx::RigidBody *obj) const |
| template<> | |
| Track::Iterator | getIterator (const TrackNode *obj) const |
| virtual agx::Vec3 | getLinearVelocityDamping () const |
| agx::Vec3 | getLocalPosition () const |
| agx::Quat | getLocalRotation () const |
| const agx::AffineMatrix4x4 & | getLocalTransform () const |
| virtual agx::Real | getMass () const |
| Calculates and returns the total mass of this linked structure. More... | |
| virtual agx::Material * | getMaterial () const |
| agx::Name | getName () const |
| agxVehicle::TrackNode * | getNode (agx::UInt index) const |
| template<typename T > | |
| agxVehicle::TrackNode * | getNode (const T *obj) const |
| template<> | |
| TrackNode * | getNode (const agx::RigidBody *obj) const |
| agx::UInt | getNodeIndex (const agx::RigidBody *rb) const |
| agx::UInt | getNumNodes () const |
| const agx::ObserverFrame * | getObserverFrame (const agx::Name &name, bool recursive=true) const |
| Find (linear search) and return an ObserverFrame matching the given uuid. More... | |
| agx::ObserverFrame * | getObserverFrame (const agx::Name &name, bool recursive=true) |
| Find (linear search) and return an ObserverFrame matching the given uuid. More... | |
| const agx::ObserverFrame * | getObserverFrame (const agx::Uuid &uuid, bool recursive=true) const |
| Find (linear search) and return an ObserverFrame matching the given uuid. More... | |
| agx::ObserverFrame * | getObserverFrame (const agx::Uuid &uuid, bool recursive=true) |
| Find (linear search) and return an ObserverFrame matching the given uuid. More... | |
| const ObserverFrameRefSetVector & | getObserverFrames () const |
| Assembly * | getParent () |
| const Assembly * | getParent () const |
| agx::Frame * | getParentFrame () |
| const agx::Frame * | getParentFrame () const |
| const agxSDK::ParticleSystemRefSet & | getParticleSystems () const |
| agxVehicle::TrackProperties * | getProperties () const |
| int | getReferenceCount () const |
| virtual agx::Real | getRestLength () const |
| Calculates and returns the total length of this linked structure, at rest. More... | |
| virtual agx::Real | getRestVolume () const |
| Calculates and returns the total volume of this linked structure, at rest. More... | |
| const agx::RigidBodyRefSet & | getRigidBodies () const |
| agx::RigidBody * | getRigidBody (const agx::Name &name, bool recursive=true) |
| Find (linear search) and return named RigidBody. More... | |
| const agx::RigidBody * | getRigidBody (const agx::Name &name, bool recursive=true) const |
| Find (linear search) and return named RigidBody. More... | |
| agx::RigidBody * | getRigidBody (const agx::Uuid &uuid, bool recursive=true) |
| Find (linear search) and return a pointer to a RigidBody with the given uuid. More... | |
| const agx::RigidBody * | getRigidBody (const agx::Uuid &uuid, bool recursive=true) const |
| Find (linear search) and return a pointer to a RigidBody with the given uuid. More... | |
| agxVehicle::TrackRoute * | getRoute () const |
| template<> | |
| LinkedSegment * | getSegment (const agx::RigidBody *rb) const |
| agx::UInt | getSegmentIndex (const agx::RigidBody *rb) const |
| const agxSDK::LinkedSegmentContainer & | getSegmentsContainer () const |
| agxSDK::Simulation * | getSimulation () |
| const agxSDK::Simulation * | getSimulation () const |
| agxStream::StorageAgent * | getStorageAgent () const override |
| Type | getType () const |
| virtual agx::UInt32 | getUniqueId () const |
| agx::Uuid | getUuid () const |
| agxVehicle::TrackWheel * | getWheel (const agx::RigidBody *rb) const |
| const agxVehicle::Track::TrackWheelContainer & | getWheels () const |
| virtual void | handleGeometryContact (agxCollide::GeometryContact *gc) |
| virtual agx::Bool | hasGroup (agx::UInt32 id) const |
| virtual agx::Bool | hasGroup (const agx::Name &name) const |
| virtual agx::Bool | initialize (OnNodeInitializeCallback onInitializeCallback) |
| Initialize this track given already assigned route, added wheels, number of nodes and an initialize node callback. More... | |
| virtual agx::Bool | initialize (TrackNodeOnInitializeCallback *onInitializeCallback=nullptr) |
| Initialize this track given already assigned route, added wheels, number of nodes and an initialize node callback. More... | |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| bool | isFinished () const |
| NodeRange | nodes () const |
| NodeRange | nodes (IndexRange range) const |
| agx::UInt32Vector | onPreGetNodeContacts (const agxVehicle::TrackWheel *wheel) const |
| virtual agx::Bool | rebind () |
| Make the current relative positions of all nodes the rest state. 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... | |
| bool | remove (agx::Constraint *constraint) |
| Remove a constraint from this assembly (does not recurse down in tree). More... | |
| bool | remove (agx::Interaction *interaction) |
| Remove an interaction from this assembly. More... | |
| bool | remove (EventListener *listener) |
| Remove an EventListener from the assembly. More... | |
| agx::Bool | remove (agxVehicle::TrackWheelRef wheel) |
| Remove track wheel. More... | |
| bool | remove (agx::RigidBody *body, bool removeAssociatedGeometries=false) |
| Remove a rigid body from this assembly (does not recurse down in tree). More... | |
| bool | remove (agxCollide::Geometry *geometry) |
| Remove a geometry from this assembly (does not recurse down in tree). More... | |
| bool | remove (Assembly *assembly) |
| Remove a child assembly from a parent. More... | |
| bool | remove (agx::ContactMaterial *contactMaterial) |
| Remove a contact material from this assembly. More... | |
| bool | remove (agx::Emitter *emitter) |
| Remove an emitter from this assembly. More... | |
| bool | remove (agx::ObserverFrame *observerFrame) |
| Remove an ObserverFrame from this assembly. More... | |
| virtual agx::Bool | removeComponent (agxSDK::LinkedStructureComponent *component) |
| Remove an added component from this linked structure. More... | |
| virtual void | removeGroup (agx::UInt32 id) |
| Remove group id from all segments in this linked structure. More... | |
| virtual void | removeGroup (const agx::Name &name) |
| Remove group name from all segments in this linked structure. More... | |
| void | removeNotification (agxSDK::Simulation *simulation) finaloverride |
| Called when this linked structure is added to the simulation. More... | |
| virtual void | removeNotification (Assembly *) |
| Called when this assembly is removed from another assembly. More... | |
| virtual void | restore (agxStream::InputArchive &in) override |
| agxSDK::LinkedSegmentRange < agxSDK::LinkedSegment > | segments () |
| virtual void | setAngularVelocity (const agx::Vec3 &velocity) |
| Set the angular velocity (in world frame) recursively for all rigid bodies stored in assembly. More... | |
| virtual void | setAngularVelocityDamping (const agx::Vec3 &angularVelocityDamping) |
| Assigns angular velocity damping to all segments in this linked structure. More... | |
| virtual void | setEnableCollisions (agx::RigidBody *rb, agx::Bool enable) |
| Enable/disable collisions between the rigid body and all segments of this linked structure. More... | |
| virtual void | setEnableCollisions (agxCollide::Geometry *geometry, agx::Bool enable) |
| Enable/disable collisions between the geometry and all segments of this linked structure. 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... | |
| virtual void | setLinearVelocityDamping (const agx::Vec3 &linearVelocityDamping) |
| Assigns linear velocity damping to all segments in this linked structure. More... | |
| void | setLocalPosition (const agx::Vec3 &p) |
| Set the position of the assembly relative to its frame's parent frame. More... | |
| void | setLocalPosition (agx::Real x, agx::Real y, agx::Real z) |
| Set the position of the assembly relative to its frame's parent frame. More... | |
| void | setLocalRotation (const agx::Quat &q) |
| Set the rotation of the assembly relative to its frame's parent frame. More... | |
| void | setLocalRotation (const agx::EulerAngles &e) |
| Set the rotation of the assembly relative to its frame's parent frame. More... | |
| void | setLocalTransform (const agx::AffineMatrix4x4 &matrix) |
| Assign the local transformation matrix for this assembly, ignoring any eventual parent transformation. More... | |
| virtual void | setMaterial (agx::Material *material) |
| Assign material to all segments in this linked structure. More... | |
| void | setName (const agx::Name &name) |
| Set the name of this Assembly. More... | |
| bool | setParentFrame (agx::Frame *frame) |
| Set the parent frame of this assembly's frame. More... | |
| void | setPosition (const agx::Vec3 &p) |
| Set the position of the frame in world coordinates. More... | |
| void | setPosition (agx::Real x, agx::Real y, agx::Real z) |
| Set the position of the frame in world coordinates. More... | |
| void | setProperties (agxVehicle::TrackProperties *properties) |
| Assign properties to this track. More... | |
| void | setRotation (const agx::Quat &q) |
| Set the rotation of the assembly relative to world frame. More... | |
| void | setRotation (const agx::EulerAngles &e) |
| Set the rotation of the assembly relative to world frame. More... | |
| void | setRotation (const agx::OrthoMatrix3x3 &m) |
| Set the rotation of the assembly relative to world frame. More... | |
| void | setTransform (const agx::AffineMatrix4x4 &matrix) |
| Set the transform of the assembly. More... | |
| void | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. More... | |
| virtual void | setVelocity (const agx::Vec3 &velocity) |
| Set the linear velocity (in world frame) recursively for all rigid bodies stored in assembly. More... | |
| virtual void | store (agxStream::OutputArchive &out) const override |
| virtual void | traverse (AssemblyVisitor *visitor) |
| Traverse the assembly tree recursively using a visitor. More... | |
| virtual void | traverse (const AssemblyVisitor *visitor) 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 Assembly * | asAssembly (agxStream::Serializable *obj) |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
| static agxStream::Serializable * | create () |
| static Track * | find (agxSDK::Simulation *simulation, const agx::Name &name) |
| Find track instance given simulation and name. More... | |
| static Track * | find (agxSDK::Simulation *simulation, const agx::Uuid &uuid) |
| Find track instance given simulation and unique id. More... | |
| static agxVehicle::TrackPtrVector | findAll (agxSDK::Simulation *simulation) |
| Finds all agxVehicle::Track instances in the given simulation. More... | |
| static agxVehicle::TrackPtrVector | findAll (agxSDK::Simulation *simulation, const agx::Name &name) |
| Finds all track instances given simulation and name. More... | |
| static LinkedStructure * | get (agxCollide::Geometry *geometry) |
| static const LinkedStructure * | get (const agxCollide::Geometry *geometry) |
| static Track * | get (agx::RigidBody *rb) |
| static const Track * | get (const agx::RigidBody *rb) |
| static Track * | get (Wheel *wheel) |
| static const Track * | get (const Wheel *wheel) |
| static const char * | getConstructClassId () |
| 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 Types | |
| using | State = agx::BitState< StateEnum, agx::UInt32 > |
| enum | StateEnum : agx::UInt32 { INITIALIZED = 1 << 0 } |
Protected Member Functions | |
| Track () | |
| virtual | ~Track () |
| void | add (LinkedSegment *segment) |
| Add segment to this linked structure. More... | |
| bool | addParticleSystem (agx::ParticleSystem *particleSystem) |
| Add a particle system to this assembly. More... | |
| void | addToSimulation (Simulation *simulation) |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
| void | generateUuid () |
| LinkedStructureObjectData * | getData (const agx::RigidBody *rb) const |
| agx::UInt | getNumSegments () const |
| LinkedSegment * | getSegment (agx::UInt index) const |
| template<typename ObjT > | |
| LinkedSegment * | getSegment (const ObjT *rb) const |
| template<typename T > | |
| LinkedSegmentIterator< T > | getSegmentIterator (agx::UInt index, agx::Bool boundaryless=false) const |
| template<typename T , typename ObjT > | |
| LinkedSegmentIterator< T > | getSegmentIterator (const ObjT *rb, agx::Bool boundaryless=false) const |
| template<typename T > | |
| LinkedSegmentRange< T > | getSegments () const |
| Constructs a segment range over all segments. More... | |
| template<typename T > | |
| LinkedSegmentRange< T > | getSegments (agx::UInt beginIndex, agx::UInt endIndex) const |
| Range given begin and end segment index. More... | |
| virtual void | onAddNotification (agxSDK::Simulation *simulation) override |
| Called when addNotification is executed when this linked structure is added to the simulation. More... | |
| virtual void | onGroupAdd (const IdData &group) |
| Called when a new group has been added. More... | |
| virtual void | onGroupRemove (const IdData &group) |
| Called when an existing group has been removed. More... | |
| virtual void | onLastStep () |
| Called on simulation last step event - after user lastStep. More... | |
| virtual void | onMaterialNew () |
| Called when a new material has been assigned. More... | |
| virtual void | onPostStep () override |
| Called on simulation post step event - after user postStep. More... | |
| virtual void | onPreCollideStep () override |
| Called on simulation pre-collide step event - after user preCollide. More... | |
| virtual void | onPreStep () override |
| Called on simulation pre step event - after user preStep. More... | |
| virtual void | onRemoveNotification (agxSDK::Simulation *simulation) override |
| Called when removeNotification is executed when this linked structure is removed from the simulation. More... | |
| virtual void | onSetEnableCollisions (agxCollide::Geometry *geometry, agx::Bool enable) |
| Called when collision state changed for given geometry. More... | |
| void | removeFromSimulation (Simulation *simulation) |
| bool | removeParticleSystem (agx::ParticleSystem *particleSystem) |
| Remove a particle system from this assembly. More... | |
Static Protected Member Functions | |
| static DeleteHandler * | getDeleteHandler () |
| template<typename T > | |
| static T * | getT (agx::RigidBody *rb) |
| template<typename T > | |
| static const T * | getT (const agx::RigidBody *rb) |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
Protected Attributes | |
| Mutex | m_mutex |
| AtomicValue | m_refCount |
Assembly object representing a continuous track with a given number of shoes (nodes).
Definition at line 36 of file agxVehicle/Track.h.
Definition at line 41 of file agxVehicle/Track.h.
Definition at line 42 of file agxVehicle/Track.h.
Definition at line 43 of file agxVehicle/Track.h.
| using agxVehicle::Track::OnNodeInitializeCallback = std::function<void( const TrackNode& )> |
Definition at line 44 of file agxVehicle/Track.h.
| using agxVehicle::Track::RigidBodyTrackWheelTable = agx::HashTable<const agx::RigidBody*, TrackWheel*> |
Definition at line 40 of file agxVehicle/Track.h.
|
protected |
Definition at line 284 of file agxVehicle/Track.h.
Definition at line 39 of file agxVehicle/Track.h.
|
protected |
| Enumerator | |
|---|---|
| INITIALIZED | |
Definition at line 280 of file agxVehicle/Track.h.
|
inherited |
Specifies the type an assembly is.
| Enumerator | |
|---|---|
| ASSEMBLY |
This is a full fledged Assembly which uses Frame for the hierarchy. |
| COLLECTION |
This is only a collection of objects NOT using Frame for the hierarchy. |
Definition at line 615 of file Assembly.h.
| agxVehicle::Track::Track | ( | agx::UInt | numberOfNodes, |
| agx::Real | width, | ||
| agx::Real | thickness, | ||
| agx::Real | initialDistanceTension = agx::Real(0) |
||
| ) |
Construct track given number of nodes, size and initial tension distance.
| numberOfNodes | - number of nodes in the track |
| width | - width of the track (this is an implicit definition, the geometry may be any size) |
| thickness | - thickness of the track (this is an implicit definition, the geometry may be any size) |
| initialDistanceTension | - value (distance) of how much shorter each node should be which causes tension in the system of tracks and wheels. Ideal case track_tension = initialDistanceTension * track_constraint_compliance. Since contacts and other factors are included it's not possible to know the exact tension after the system has been created. |
| agxVehicle::Track::Track | ( | agxVehicle::TrackRoute * | route | ) |
Construct given a track route.
| route | - track route |
|
protected |
|
protectedvirtual |
|
inherited |
Add a constraint to the assembly.
|
inherited |
Add an interaction to this assembly.
|
inherited |
Add a listener to the assembly.
|
inherited |
Add a rigid body to the assembly.
| agx::Bool agxVehicle::Track::add | ( | agxVehicle::TrackWheelRef | wheel | ) |
Add track wheel to this track before this track has been initialized.
| wheel | - track wheel to add |
|
inherited |
Add a geometry to the assembly.
|
inherited |
Add another assembly as child to this assembly.
|
inherited |
Add a contact material to this assembly.
|
inherited |
Add an emitter to this assembly.
|
inherited |
Add an ObserverFrame to this assembly.
|
inherited |
|
protectedinherited |
Add segment to this linked structure.
The segment will inherit our material, unique id and all externally added groups.
segment to be a valid pointer and not already added. | segment | segment to add |
|
virtualinherited |
Add new component to this linked structure.
| component | - component to add |
|
virtualinherited |
Add group id to all segments in this linked structure.
| id | - id to add |
Add group name to all segments in this linked structure.
| name | - name to add |
|
finaloverridevirtualinherited |
Called when this linked structure is added to the simulation.
This callback is reserved for LinkedStructure but onAddNotification will be called in a similar way.
Reimplemented from agxSDK::Assembly.
Called when this assembly is added to another assembly.
Reimplemented in agxPowerLine::PowerLine.
Definition at line 589 of file Assembly.h.
|
protectedinherited |
Add a particle system to this assembly.
ParticleSystems should only be added to Collections.
|
protectedinherited |
|
protectedinherited |
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), getNode(), and agx::InternalData::getOrCreate().
|
inherited |
|
inlinestaticinherited |
Definition at line 636 of file Assembly.h.
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
|
inlinestatic |
Definition at line 275 of file agxVehicle/Track.h.
|
inlinestatic |
Definition at line 275 of file agxVehicle/Track.h.
|
protectedinherited |
|
static |
Find track instance given simulation and name.
| simulation | - simulation |
| name | - name of track instance to find |
|
static |
Find track instance given simulation and unique id.
| simulation | - simulation |
| uuid | - UUID of track instance to find |
|
static |
Finds all agxVehicle::Track instances in the given simulation.
| simulation | - simulation |
|
static |
Finds all track instances given simulation and name.
| simulation | - simulation |
| name | - name of track instances to find |
|
virtualinherited |
| agxVehicle::TrackWheel* agxVehicle::Track::findReferenceWheel | ( | ) | const |
Reference wheel's rotation axis is defining the plane in which this track will be created.
The reference wheel is (in priority order) either a (first) sprocket, a (first) idler or the first wheel added to this track.
|
protectedinherited |
|
staticinherited |
|
staticinherited |
|
inlinestatic |
| rb | - rigid body |
rb belongs to, given rb is a TrackNode body Definition at line 346 of file agxVehicle/Track.h.
|
inlinestatic |
| rb | - rigid body |
rb belongs to, given rb is a TrackNode body Definition at line 351 of file agxVehicle/Track.h.
| wheel | - track wheel |
wheel belongs to, nullptr if wheel isn't a TrackWheel or not added to a track | wheel | - track wheel |
wheel belongs to, nullptr if wheel isn't a TrackWheel or not added to a track
|
virtualinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inlineoverridevirtual |
Reimplemented from agxSDK::LinkedStructure.
Definition at line 275 of file agxVehicle/Track.h.
|
inherited |
Definition at line 482 of file LinkedStructure.h.
|
inherited |
|
inherited |
Find (linear search) and return a pointer to a Constraint with the given uuid.
| uuid | - uuid of the requested constraint |
| recursive | - if true (default) the search will include sub-assemblies |
Referenced by agxSDK::Assembly::getConstraint().
|
inherited |
Find and return a pointer to a Constraint with the given uuid.
| uuid | - uuid of the requested constraint |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return named Constraint.
| name | - name of the Constraint to find |
| recursive | - if true (default) the search will include sub-assemblies |
Definition at line 763 of file Assembly.h.
References agxSDK::Assembly::getConstraint().
|
inherited |
Find (linear search) and return named Constraint.
| name | - name of the Constraint to find |
| recursive | - if true (default) the search will include sub-assemblies |
Definition at line 757 of file Assembly.h.
References agxSDK::Assembly::getConstraint().
|
inherited |
Find and return named Constraint of a template type, for example Hinge:
agx::Hinge *hinge = simulation->getConstraint<agx::Hinge>("FrontWheelHinge");
| name | - name of the Constraint to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find and return named Constraint of a template type, for example Hinge:
const agx::Hinge* hinge = simulation->getConstraint<agx::Hinge>("FrontWheelHinge");
| name | - name of the Constraint to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inlineinherited |
Definition at line 632 of file Assembly.h.
|
inlineinherited |
Definition at line 633 of file Assembly.h.
|
inherited |
|
inlinestatic |
Definition at line 275 of file agxVehicle/Track.h.
|
virtualinherited |
Calculates and returns the total length of this linked structure, at current state.
Reimplemented in agxCable::Cable.
|
inlineprotectedinherited |
Definition at line 555 of file LinkedStructure.h.
Referenced by agxSDK::LinkedStructure::getSegmentIndex().
|
staticprotectedinherited |
|
virtualinherited |
|
inherited |
|
virtualinherited |
|
virtualinherited |
|
inherited |
Definition at line 273 of file Serializable.h.
|
inherited |
|
inlinevirtualinherited |
Return a reference to the frame containing transformation and velocity information for this assembly.
Definition at line 690 of file Assembly.h.
References agx::ref_ptr< T >::get().
|
inlinevirtualinherited |
Definition at line 695 of file Assembly.h.
References agx::ref_ptr< T >::get().
|
inherited |
Referenced by agxSDK::matchFilter().
|
inherited |
Find (linear search) and return named collision Geometry.
| name | - name of the collision Geometry to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return named collision Geometry.
| name | - name of the collision Geometry to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return a Geometry matching the given uuid.
| uuid | - uuid of the collision Geometry to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return a Geometry matching the given uuid.
| uuid | - uuid of the collision Geometry to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
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 |
| agxVehicle::TrackInternalMergeProperties* agxVehicle::Track::getInternalMergeProperties | ( | ) | const |
|
inline |
Definition at line 404 of file agxVehicle/Track.h.
Referenced by agxVehicle::utils::createRangeExcludingNodeIndex(), and getIterator().
| Iterator agxVehicle::Track::getIterator | ( | const T * | obj | ) | const |
|
inline |
Definition at line 410 of file agxVehicle/Track.h.
|
inline |
Definition at line 416 of file agxVehicle/Track.h.
References agxSDK::LinkedSegmentIterator< T >::end(), getIterator(), agxSDK::LinkedSegment::getRigidBody(), and agxSDK::LinkedStructure::getSegmentsContainer().
|
virtualinherited |
|
inherited |
|
inherited |
|
inherited |
|
virtualinherited |
Calculates and returns the total mass of this linked structure.
I.e., the total sum of all segments masses.
|
virtualinherited |
Definition at line 387 of file agxVehicle/Track.h.
References agx::Referenced::as(), and agxSDK::LinkedStructure::getSegment().
| agxVehicle::TrackNode* agxVehicle::Track::getNode | ( | const T * | obj | ) | const |
|
inline |
Definition at line 393 of file agxVehicle/Track.h.
|
inline |
Definition at line 399 of file agxVehicle/Track.h.
|
inline |
Definition at line 382 of file agxVehicle/Track.h.
References agxSDK::LinkedStructure::getNumSegments().
|
inlineprotectedinherited |
Definition at line 498 of file LinkedStructure.h.
References agx::Container::size().
Referenced by getNumNodes().
|
inherited |
Find (linear search) and return an ObserverFrame matching the given uuid.
| name | - name of the ObserverFrame to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return an ObserverFrame matching the given uuid.
| name | - name of the ObserverFrame to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return an ObserverFrame matching the given uuid.
| uuid | - uuid of the ObserverFrame to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return an ObserverFrame matching the given uuid.
| uuid | - uuid of the ObserverFrame to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
| agxVehicle::TrackProperties* agxVehicle::Track::getProperties | ( | ) | const |
|
inherited |
|
virtualinherited |
Calculates and returns the total length of this linked structure, at rest.
Reimplemented in agxCable::Cable.
|
virtualinherited |
Calculates and returns the total volume of this linked structure, at rest.
|
inherited |
|
inherited |
Find (linear search) and return named RigidBody.
| name | - name of the body to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return named RigidBody.
| name | - name of the body to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return a pointer to a RigidBody with the given uuid.
| uuid | - uuid of the requested rigidbody |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return a pointer to a RigidBody with the given uuid.
| uuid | - uuid of the requested rigidbody |
| recursive | - if true (default) the search will include sub-assemblies |
| agxVehicle::TrackRoute* agxVehicle::Track::getRoute | ( | ) | const |
|
inlineprotectedinherited |
Definition at line 517 of file LinkedStructure.h.
References agxAssert, and agx::Container::size().
Referenced by getNode(), and agxSDK::LinkedStructure::getSegmentIterator().
|
protectedinherited |
|
inlineinherited |
Definition at line 524 of file LinkedStructure.h.
References agxSDK::LinkedStructure::getSegmentIndex(), and agx::InvalidIndex.
|
inlineinherited |
Definition at line 532 of file LinkedStructure.h.
References agxSDK::LinkedStructure::getData(), and agx::InvalidIndex.
Referenced by agxSDK::LinkedStructure::getSegment().
|
protectedinherited |
Definition at line 541 of file LinkedStructure.h.
|
protectedinherited |
Definition at line 547 of file LinkedStructure.h.
References agxSDK::LinkedSegmentIterator< T >::end(), and agxSDK::LinkedStructure::getSegment().
|
protectedinherited |
Constructs a segment range over all segments.
Definition at line 504 of file LinkedStructure.h.
References agxSDK::LinkedSegmentIterator< T >::begin(), and agxSDK::LinkedSegmentIterator< T >::end().
|
protectedinherited |
Range given begin and end segment index.
If end index is before begin, begin will become boundaryless. E.g., size = 10, begin = 8, end = 3, the resulting range will be 8, 9, 0, 1, 2 (3 is end).
Definition at line 511 of file LinkedStructure.h.
|
inlineinherited |
Definition at line 493 of file LinkedStructure.h.
Referenced by getIterator().
|
inherited |
|
inherited |
|
inlineoverridevirtual |
Reimplemented from agxSDK::LinkedStructure.
Definition at line 275 of file agxVehicle/Track.h.
|
staticprotectedinherited |
Definition at line 469 of file LinkedStructure.h.
|
staticprotectedinherited |
Definition at line 476 of file LinkedStructure.h.
|
inherited |
|
virtualinherited |
|
inherited |
Definition at line 268 of file Serializable.h.
|
inline |
Definition at line 377 of file agxVehicle/Track.h.
References agx::LinearProbingHashTableImplementation< KeyT, ValueT, HashT, AllocatorT >::get_or_return_default().
| const agxVehicle::Track::TrackWheelContainer& agxVehicle::Track::getWheels | ( | ) | const |
|
virtual |
|
virtualinherited |
|
virtualinherited |
|
virtual |
Initialize this track given already assigned route, added wheels, number of nodes and an initialize node callback.
If onInitializeCallback isn't given, a default function will be used that will add a box shape to the node rigid body.
| onInitializeCallback | - callback when node has been created and is about to be added to this track. If desired, this callback should add shape(s) to the node rigid body. |
|
virtual |
Initialize this track given already assigned route, added wheels, number of nodes and an initialize node callback.
If onInitializeCallback isn't given, a default function will be used that will add a box shape to the node rigid body.
| onInitializeCallback | - callback when node has been created and is about to be added to this track. If desired, this callback should add shape(s) to the node rigid body. |
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::Buffer::getElement(), and agx::Object::getResource().
|
inherited |
Definition at line 252 of file Serializable.h.
| NodeRange agxVehicle::Track::nodes | ( | ) | const |
Referenced by agxVehicle::utils::createRangeExcludingNodeIndex(), and agxVehicle::utils::splitNonconsecutive().
| NodeRange agxVehicle::Track::nodes | ( | IndexRange | range | ) | const |
|
overrideprotectedvirtual |
Called when addNotification is executed when this linked structure is added to the simulation.
Reimplemented from agxSDK::LinkedStructure.
Called when a new group has been added.
|
protectedvirtualinherited |
Called when an existing group has been removed.
|
protectedvirtualinherited |
Called on simulation last step event - after user lastStep.
|
protectedvirtualinherited |
Called when a new material has been assigned.
|
overrideprotectedvirtual |
Called on simulation post step event - after user postStep.
Reimplemented from agxSDK::LinkedStructure.
|
overrideprotectedvirtual |
Called on simulation pre-collide step event - after user preCollide.
Reimplemented from agxSDK::LinkedStructure.
| agx::UInt32Vector agxVehicle::Track::onPreGetNodeContacts | ( | const agxVehicle::TrackWheel * | wheel | ) | const |
|
overrideprotectedvirtual |
Called on simulation pre step event - after user preStep.
Reimplemented from agxSDK::LinkedStructure.
|
overrideprotectedvirtual |
Called when removeNotification is executed when this linked structure is removed from the simulation.
Reimplemented from agxSDK::LinkedStructure.
|
protectedvirtualinherited |
Called when collision state changed for given geometry.
|
virtualinherited |
Make the current relative positions of all nodes the rest state.
That is, when this call returns no constraint in this linked structure will be violated.
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 |
Remove a constraint from this assembly (does not recurse down in tree).
|
inherited |
Remove an interaction from this assembly.
|
inherited |
Remove an EventListener from the assembly.
|
inherited |
Remove a rigid body from this assembly (does not recurse down in tree).
| body | - The body to be removed |
| removeAssociatedGeometries | - If true, the geometries associated to this body will also be removed |
| agx::Bool agxVehicle::Track::remove | ( | agxVehicle::TrackWheelRef | wheel | ) |
Remove track wheel.
| wheel | - wheel to remove |
|
inherited |
Remove a geometry from this assembly (does not recurse down in tree).
|
inherited |
Remove a child assembly from a parent.
|
inherited |
Remove a contact material from this assembly.
|
inherited |
Remove an emitter from this assembly.
|
inherited |
Remove an ObserverFrame from this assembly.
|
virtualinherited |
Remove an added component from this linked structure.
| component | - component to remove |
|
protectedinherited |
|
virtualinherited |
Remove group id from all segments in this linked structure.
| id | - id to remove |
Remove group name from all segments in this linked structure.
| name | - name to remove |
|
finaloverridevirtualinherited |
Called when this linked structure is added to the simulation.
This callback is reserved for LinkedStructure but onRemoveNotification will be called in a similar way.
Reimplemented from agxSDK::Assembly.
Called when this assembly is removed from another assembly.
Reimplemented in agxPowerLine::PowerLine.
Definition at line 594 of file Assembly.h.
|
protectedinherited |
Remove a particle system from this assembly.
|
overridevirtual |
Reimplemented from agxSDK::LinkedStructure.
|
inherited |
Set the angular velocity (in world frame) recursively for all rigid bodies stored in assembly.
| velocity | - The angular velocity in world frame that will be set for all rigid bodies. |
|
virtualinherited |
Assigns angular velocity damping to all segments in this linked structure.
| angularVelocityDamping | - angular velocity damping (default: (0, 0, 0)) |
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
|
virtualinherited |
Enable/disable collisions between the rigid body and all segments of this linked structure.
| rb | - rigid body to enable/disable collisions with |
| enable | - true to enable, false to disable |
|
virtualinherited |
Enable/disable collisions between the geometry and all segments of this linked structure.
| geometry | - geometry to enable/disable collisions with |
| enable | - true to enable, false to disable |
|
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.
|
virtualinherited |
Assigns linear velocity damping to all segments in this linked structure.
| linearVelocityDamping | - linear velocity damping (default: (0, 0, 0)) |
Set the position of the assembly relative to its frame's parent frame.
| p | - local translate of assembly as a 3D vector |
Set the position of the assembly relative to its frame's parent frame.
| x | - local x translate |
| y | - local y translate |
| z | - local z translate |
Set the rotation of the assembly relative to its frame's parent frame.
| q | - rotation given as a quaternion |
|
inherited |
Set the rotation of the assembly relative to its frame's parent frame.
| e | - rotation given as Euler angles |
|
inherited |
Assign the local transformation matrix for this assembly, ignoring any eventual parent transformation.
| matrix | - transformation matrix relative to parent transform for the assembly's frame |
|
virtualinherited |
Assign material to all segments in this linked structure.
| material | - material for the segments |
|
inherited |
Set the parent frame of this assembly's frame.
This means that getLocalTranslate, getLocalRotate, getLocalTransform will be given in the parents coordinate frame. I.e., this frame's transformation will be concatenated with the parents.
| frame | - new parent frame, 0 to remove parent |
Set the position of the frame in world coordinates.
| p | - desired position in world coordinates. |
Set the position of the frame in world coordinates.
| x | - desired x-coordinate in world frame |
| y | - desired y-coordinate in world frame |
| z | - desired z-coordinate in world frame |
| void agxVehicle::Track::setProperties | ( | agxVehicle::TrackProperties * | properties | ) |
Assign properties to this track.
| properties | - new properties of this track, if null, a new default instance is created |
Set the rotation of the assembly relative to world frame.
| q | - rotation given as a quaternion |
|
inherited |
Set the rotation of the assembly relative to world frame.
| e | - rotation given as Euler angles |
|
inherited |
Set the rotation of the assembly relative to world frame.
| m | - rotation given as an orthogonal transformation matrix |
|
inherited |
Set the transform of the assembly.
Its frame will move to the specified transform, which is given in world coordinates.
| matrix | - desired transform for the frame in world coordinates. |
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!
Set the linear velocity (in world frame) recursively for all rigid bodies stored in assembly.
| velocity | - The linear velocity in world frame that will be set for all rigid bodies. |
|
overridevirtual |
Reimplemented from agxSDK::LinkedStructure.
|
virtualinherited |
Traverse the assembly tree recursively using a visitor.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
virtualinherited |
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 |
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.