|
AGXDynamics
2.31.1.0
|
PowerLine is the base class for a system of power transfer integrated into the rigid body simulation. More...
#include <PowerLine.h>
Inheritance diagram for agxPowerLine::PowerLine:Public Types | |
| enum | Type { ASSEMBLY, COLLECTION } |
| Specifies the type an assembly is. More... | |
Public Member Functions | |
| PowerLine () | |
| 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... | |
| bool | add (agxPowerLine::Unit *component) |
OBSOLETE SINCE ROOT STRUCTURE------------------------------------------------------------------------------------—More... | |
| bool | add (agxPowerLine::SubGraph *component) |
| 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 void | addNotification (agxSDK::Simulation *simulation) override |
| Called when this assembly is added to a simulation (given that it not already is in the simulation). More... | |
| virtual void | addNotification (agxSDK::Assembly *) override |
| 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 |
| bool | cacheAdd (agxPowerLine::SubGraph *component) |
| bool | cacheRemove (agxPowerLine::SubGraph *component) |
| void | clearAddRemoveCache (ConnectorPtrVector &addedConnectors, UnitPtrVector &addedUnits) |
| void | collectConstraintsToHolder () |
| void | createConstraintHolder () |
| Creates a constraint holder for all elementary constraints between the physical dimensions. More... | |
| agx::Bool | getAddUnitsOnConnect () 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 |
| const agxPowerLine::ConnectorRefSet & | getConnectors () 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) |
| agxUtil::ConstraintHolder * | getConstraintHolder () const |
| const agx::ConstraintRefSet & | getConstraints () const |
| int | getDimensionType (std::string name) |
| const agx::EmitterRefSet & | getEmitters () 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 |
| agx::Vec3 | getLocalPosition () const |
| agx::Quat | getLocalRotation () const |
| const agx::AffineMatrix4x4 & | getLocalTransform () const |
| agx::Name | getName () const |
| size_t | getNumConnectors () const |
| size_t | getNumUnits () 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 |
| int | getReferenceCount () const |
| 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... | |
| void | getRoots (agxPowerLine::UnitPtrPowerLinePtrHashVector &units) const |
| Get pointers to all roots, each connected to a sub graph. More... | |
| agxSDK::Simulation * | getSimulation () |
| const agxSDK::Simulation * | getSimulation () const |
| agxPowerLine::SlotMapper * | getSlotMapper () |
| agx::Constraint::SolveType | getSolveType () const |
| const agxPowerLine::Unit * | getSource () const |
| agxPowerLine::Unit * | getSource () |
| agxStream::StorageAgent * | getStorageAgent () const override |
| Type | getType () const |
| Unit * | getUnit (const agx::Name &name) |
| Find and return the first unit with the given name, if any exist. More... | |
| const Unit * | getUnit (const agx::Name &name) const |
| Find and return the first unit with the given name, if any exist. More... | |
| const agxPowerLine::UnitRefSetVector & | getUnits () const |
| agx::Uuid | getUuid () const |
| bool | hasCachedOperations () const |
| void | insertConnectorTemporary (Connector *connector) |
| void | insertSubGraphRouterTemporary (SubGraph *router) |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| bool | isFinished () const |
| bool | pointAddConnector (agxPowerLine::Connector *connector) |
| bool | pointAddUnit (agxPowerLine::Unit *unit) |
| bool | pointReplace (agxPowerLine::Unit *oldUnit, agxPowerLine::Unit *newUnit) |
| 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... | |
| bool | remove (agx::RigidBody *body, bool removeAssociatedGeometries=false) |
| Remove a rigid body from this assembly (does not recurse down in tree). More... | |
| bool | remove (agxPowerLine::SubGraph *component) |
| 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... | |
| bool | removeConnector (agxPowerLine::Connector *connector) |
| virtual void | removeNotification (agxSDK::Simulation *simulation) override |
| Called when this assembly is removed from a simulation. More... | |
| virtual void | removeNotification (agxSDK::Assembly *) override |
| Called when this assembly is removed from another assembly. More... | |
| bool | removeSubGraph (agxPowerLine::SubGraph *component) |
| bool | removeUnit (agxPowerLine::Unit *unit) |
| virtual bool | restore (agxStream::StorageStream &str) |
| Restores internal data from stream. More... | |
| virtual void | restore (agxStream::InputArchive &in) override |
| void | setAddUnitsOnConnect (agx::Bool addOnConnect) |
| Decide if: when units added to this powerLine are to be connected to units not belonging to any power line will be added to this power line, or not. More... | |
| virtual void | setAngularVelocity (const agx::Vec3 &velocity) |
| Set the angular velocity (in world frame) recursively for all rigid bodies stored in assembly. 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 | 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... | |
| 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 | 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 | setSolveType (agx::Constraint::SolveType solveType) |
| Set the current solve type DIRECT_AND_ITERATIVE is used by default. More... | |
| bool | setSource (agxPowerLine::Unit *source) |
---------------------------------------------------------------------------------——OBSOLETE SINCE ROOT STRUCTURE More... | |
| bool | setSource (agxPowerLine::SubGraph *source) |
| 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 bool | store (agxStream::StorageStream &str) const |
| Stores internal data for this PowerLine into stream. 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... | |
| bool | writeDimensionsGraph (const agx::String &path) const |
| Write the current graph state of the powerline to a .dot file (path) More... | |
| bool | writeDimensionsGraph (const char *path) const |
Static Public Member Functions | |
| static Assembly * | asAssembly (agxStream::Serializable *obj) |
| static agxStream::Serializable * | create () |
| static agxStream::Serializable * | create (agxStream::InputArchive &) |
| static agxPowerLine::PowerLine * | find (agxSDK::Simulation *simulation, const agx::Name &name) |
| Search the given simulation for a power line with the given name. More... | |
| static agxPowerLine::PowerLine * | find (agxSDK::Assembly *assembly, const agx::Name &name) |
| Search the given assembly for a power line with the given name. More... | |
| static PowerLinePtrVector | findAll (const agxSDK::Simulation *simulation, const agx::Name &name) |
| Find all powerlines with given name. More... | |
| static PowerLinePtrVector | findAll (const agxSDK::Simulation *simulation) |
| Finds all powerlines in the given simulation. More... | |
| static const char * | getConstructClassId () |
| static bool | renderDebug () |
| 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 | |
| virtual | ~PowerLine () |
| 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 () |
| virtual void | initialize () |
| void | post (agx::Real time) |
| void | pre (agx::Real time) |
| void | prepareConstraintDimensions () |
| bool | preUpdateGraph () |
| void | removeFromSimulation (Simulation *simulation) |
| bool | removeParticleSystem (agx::ParticleSystem *particleSystem) |
| Remove a particle system from this assembly. More... | |
| void | restorePre46 (agxStream::InputArchive &in) |
| void | setUnitPowerLine (agxPowerLine::Unit *unit) |
Set the given Unit's PowerLine to this. More... | |
| bool | traverseConnectors (bool(*callback)(agxPowerLine::Connector *)) |
| bool | traverseDimensions (bool(*callback)(agxPowerLine::PhysicalDimension *)) |
| bool | traverseUnits (bool(*callback)(agxPowerLine::Unit *)) |
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 | |
| bool | m_addOnConnect |
| bool | m_cacheAddsAndRemoves |
| agxPowerLine::SubGraphRefVector | m_cachedAdds |
| agxPowerLine::SubGraphRefVector | m_cachedRemoves |
| agxPowerLine::ConnectorRefSet | m_connectors |
| agxUtil::ConstraintHolderRef | m_constraintHolder |
| Mutex | m_mutex |
| agx::observer_ptr< agx::RigidBody > | m_parentBody |
| AtomicValue | m_refCount |
| agxPowerLine::SlotMapperRef | m_slotMapper |
| agx::Constraint::SolveType | m_solveType |
| ConnectorBoolHashVector | m_tempConnectorHashVector |
| SubGraphRouterBoolHashVector | m_tempRouterHashVector |
| agxPowerLine::UnitRefSetVector | m_units |
PowerLine is the base class for a system of power transfer integrated into the rigid body simulation.
Definition at line 70 of file PowerLine.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.
| agxPowerLine::PowerLine::PowerLine | ( | ) |
|
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.
| bool agxPowerLine::PowerLine::add | ( | agxPowerLine::Unit * | component | ) |
| bool agxPowerLine::PowerLine::add | ( | agxPowerLine::SubGraph * | component | ) |
|
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 |
Add an object of type serialized.
The object will be dynamically cast to the types supported by add() methods an appropriately added to this Assembly.
|
overridevirtual |
Called when this assembly is added to a simulation (given that it not already is in the simulation).
Reimplemented from agxSDK::Assembly.
|
inlineoverridevirtual |
Called when this assembly is added to another assembly.
Reimplemented from agxSDK::Assembly.
Definition at line 193 of file PowerLine.h.
References agxSDK::Assembly::addNotification(), and agxSDK::Assembly::removeNotification().
|
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(), agxVehicle::Track::getNode(), agx::InternalData::getOrCreate(), and agx::InternalData::hasData().
|
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 |
| bool agxPowerLine::PowerLine::cacheAdd | ( | agxPowerLine::SubGraph * | component | ) |
| bool agxPowerLine::PowerLine::cacheRemove | ( | agxPowerLine::SubGraph * | component | ) |
| void agxPowerLine::PowerLine::clearAddRemoveCache | ( | ConnectorPtrVector & | addedConnectors, |
| UnitPtrVector & | addedUnits | ||
| ) |
| void agxPowerLine::PowerLine::collectConstraintsToHolder | ( | ) |
|
inlinestatic |
Definition at line 223 of file PowerLine.h.
|
inlinestatic |
Definition at line 223 of file PowerLine.h.
| void agxPowerLine::PowerLine::createConstraintHolder | ( | ) |
Creates a constraint holder for all elementary constraints between the physical dimensions.
|
protectedinherited |
|
static |
Search the given simulation for a power line with the given name.
| simulation | - The simulation to search in. |
| name | - The name of the power line to search for. |
name in simulation simulation, or nullptr.
|
static |
Search the given assembly for a power line with the given name.
| assembly | - The assembly to search in. |
| name | - The name of the power line to search for. |
name in assembly assembly, or nullptr.
|
static |
Find all powerlines with given name.
| simulation | - simulation the terrain is part of |
| name | - name of the powerlines |
|
static |
Finds all powerlines in the given simulation.
| simulation | - simulation with powerlines. |
|
protectedinherited |
| agx::Bool agxPowerLine::PowerLine::getAddUnitsOnConnect | ( | ) | const |
|
inherited |
|
inherited |
Find (linear search) and return named Assembly.
| name | - name of the Assembly to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return named Assembly.
| name | - name of the Assembly to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return an Assembly matching the given uuid.
| uuid | - uuid of the Assembly to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inherited |
Find (linear search) and return an Assembly matching the given uuid.
| uuid | - uuid of the Assembly to find |
| recursive | - if true (default) the search will include sub-assemblies |
|
inlineoverridevirtual |
Reimplemented from agxStream::Serializable.
Definition at line 223 of file PowerLine.h.
| const agxPowerLine::ConnectorRefSet& agxPowerLine::PowerLine::getConnectors | ( | ) | const |
|
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 |
|
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 |
|
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 |
|
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 |
Definition at line 757 of file Assembly.h.
|
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 |
Definition at line 763 of file Assembly.h.
|
inlineinherited |
Definition at line 632 of file Assembly.h.
|
inlineinherited |
Definition at line 633 of file Assembly.h.
| agxUtil::ConstraintHolder* agxPowerLine::PowerLine::getConstraintHolder | ( | ) | const |
|
inherited |
|
inlinestatic |
Definition at line 223 of file PowerLine.h.
|
staticprotectedinherited |
| int agxPowerLine::PowerLine::getDimensionType | ( | std::string | name | ) |
|
inherited |
|
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.
|
inlinevirtualinherited |
Definition at line 695 of file Assembly.h.
|
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 |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
| size_t agxPowerLine::PowerLine::getNumConnectors | ( | ) | const |
| size_t agxPowerLine::PowerLine::getNumUnits | ( | ) | const |
|
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 |
|
inherited |
|
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 |
| void agxPowerLine::PowerLine::getRoots | ( | agxPowerLine::UnitPtrPowerLinePtrHashVector & | units | ) | const |
Get pointers to all roots, each connected to a sub graph.
the root set will be increased in size for each new root. (Existing roots are to remain in set).
|
inherited |
|
inherited |
| agxPowerLine::SlotMapper* agxPowerLine::PowerLine::getSlotMapper | ( | ) |
| agx::Constraint::SolveType agxPowerLine::PowerLine::getSolveType | ( | ) | const |
| const agxPowerLine::Unit* agxPowerLine::PowerLine::getSource | ( | ) | const |
| agxPowerLine::Unit* agxPowerLine::PowerLine::getSource | ( | ) |
|
inlineoverridevirtual |
Implements agxStream::Serializable.
Definition at line 223 of file PowerLine.h.
|
inherited |
Find and return the first unit with the given name, if any exist.
Will do a linear search through all units.
| name | - The name of the unit to get. |
Find and return the first unit with the given name, if any exist.
Will do a linear search through all units.
| name | - The name of the unit to get. |
| const agxPowerLine::UnitRefSetVector& agxPowerLine::PowerLine::getUnits | ( | ) | const |
|
inherited |
Definition at line 268 of file Serializable.h.
Referenced by agxSDK::UuidHashCollisionFilter::match().
| bool agxPowerLine::PowerLine::hasCachedOperations | ( | ) | const |
|
protectedvirtual |
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::EntityStorage::getInstances(), and agx::Object::getResource().
|
inherited |
Definition at line 252 of file Serializable.h.
References AGX_FORCE_INLINE.
| bool agxPowerLine::PowerLine::pointAddConnector | ( | agxPowerLine::Connector * | connector | ) |
| bool agxPowerLine::PowerLine::pointAddUnit | ( | agxPowerLine::Unit * | unit | ) |
| bool agxPowerLine::PowerLine::pointReplace | ( | agxPowerLine::Unit * | oldUnit, |
| agxPowerLine::Unit * | newUnit | ||
| ) |
|
protected |
|
protected |
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 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 |
| bool agxPowerLine::PowerLine::remove | ( | agxPowerLine::SubGraph * | component | ) |
|
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.
| bool agxPowerLine::PowerLine::removeConnector | ( | agxPowerLine::Connector * | connector | ) |
|
protectedinherited |
|
overridevirtual |
Called when this assembly is removed from a simulation.
Reimplemented from agxSDK::Assembly.
|
inlineoverridevirtual |
Called when this assembly is removed from another assembly.
Reimplemented from agxSDK::Assembly.
Definition at line 199 of file PowerLine.h.
|
protectedinherited |
Remove a particle system from this assembly.
| bool agxPowerLine::PowerLine::removeSubGraph | ( | agxPowerLine::SubGraph * | component | ) |
| bool agxPowerLine::PowerLine::removeUnit | ( | agxPowerLine::Unit * | unit | ) |
|
static |
|
virtual |
Restores internal data from stream.
Both the PowerLine and the StorgeStream may be left in an inconsistent state if an error occurs during restore.
| str | - The stream to read from. Must be in RESTORE mode. |
|
overridevirtual |
Reimplemented from agxSDK::Assembly.
|
protected |
Decide if: when units added to this powerLine are to be connected to units not belonging to any power line will be added to this power line, or not.
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. |
|
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.
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 |
Set the name of this Assembly.
| name | - new name of this Assembly. |
|
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 |
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 |
| void agxPowerLine::PowerLine::setSolveType | ( | agx::Constraint::SolveType | solveType | ) |
Set the current solve type DIRECT_AND_ITERATIVE is used by default.
| bool agxPowerLine::PowerLine::setSource | ( | agxPowerLine::Unit * | source | ) |
Set the unit the traverser shall start traversing from.
| bool agxPowerLine::PowerLine::setSource | ( | agxPowerLine::SubGraph * | source | ) |
|
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. |
|
protected |
Set the given Unit's PowerLine to this.
Used by unit tests to circumvent a full PowerLine::add(Unit*).
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. |
|
virtual |
Stores internal data for this PowerLine into stream.
The StorageStream may be left in an inconsistent state if an error occurs.
| str | - Stream to write into. Must be in STORE mode. |
|
overridevirtual |
Reimplemented from agxSDK::Assembly.
|
virtualinherited |
Traverse the assembly tree recursively using a visitor.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
virtualinherited |
|
protected |
|
protected |
|
protected |
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 |
| bool agxPowerLine::PowerLine::writeDimensionsGraph | ( | const agx::String & | path | ) | const |
Write the current graph state of the powerline to a .dot file (path)
| bool agxPowerLine::PowerLine::writeDimensionsGraph | ( | const char * | path | ) | const |
|
protected |
Definition at line 315 of file PowerLine.h.
|
protected |
Definition at line 324 of file PowerLine.h.
|
protected |
Definition at line 322 of file PowerLine.h.
|
protected |
Definition at line 323 of file PowerLine.h.
|
protected |
Definition at line 307 of file PowerLine.h.
|
protected |
Definition at line 313 of file PowerLine.h.
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
protected |
Definition at line 311 of file PowerLine.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.
|
protected |
Definition at line 309 of file PowerLine.h.
|
protected |
Definition at line 317 of file PowerLine.h.
|
protected |
Definition at line 320 of file PowerLine.h.
|
protected |
Definition at line 319 of file PowerLine.h.
|
protected |
Definition at line 306 of file PowerLine.h.