|
AGXDynamics
2.31.1.0
|
This class contains all Geometries and performs Broad Phase and Narrow Phase collision detection to calculate overlapping Geometry pairs. More...
#include <Space.h>
Inheritance diagram for agxCollide::Space:Public Types | |
| enum | BroadPhaseAlgorithm { INVALID_BROAD_PHASE_ALGORITHM = -1, SWEEP_AND_PRUNE, HIERARCHICAL_GRID } |
| Enum for specifying which BroadPhase algorithm space should use. More... | |
| typedef agx::observer_ptr < const Event > | EventConstObserver |
| typedef agx::ref_ptr< const Event > | EventConstRef |
| typedef agx::observer_ptr< Event > | EventObserver |
| typedef agx::ref_ptr< Event > | EventRef |
| typedef agx::SetVector < GeometryPair > | GeometryPairHash |
| typedef Event2< Component *, Object * > | ObjectEvent |
| Event when adding removing child objects. More... | |
| typedef Callback1< Object * > | TraverseCallback |
Public Member Functions | |
| Space () | |
| Default constructor. More... | |
| Space (agx::Device *device) | |
| Instantiate Space with a specific device. More... | |
| bool | add (Geometry *geometry) |
| Insert a new geometry into the Space so it can collide with other geometries. More... | |
| void | addGeometryContacts (const LocalGeometryContactVector &localContacts) |
| Explicitly add geometry contacts. More... | |
| void | addListener (EventListener *listener) |
| void | addListener (agxCollide::SpaceListener *listener) |
| Add a listener to space. More... | |
| virtual void | addObject (agx::Object *object, bool assignContext=true) |
| Add an object to the component. More... | |
| AGX_DECLARE_VECTOR_TYPES (Event) | |
| 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 String | autoComplete (const String &partialName, StringVector &matchingNames) const |
| virtual void | buildNavigationTree (agxJson::Value &eNode) const override |
| bool | canCollide (const Geometry *g1, const Geometry *g2) const |
| Check if two geometries can collide. More... | |
| void | cleanup () |
| Cleanup the internal state of the object. More... | |
| void | commitRemovedContacts () |
| Go through all the contact and contact points scheduled for removal and remove them from the list of contacts. More... | |
| virtual void | configure (TiXmlElement *eComponent) override |
| void | configure (Model *model) |
| template<typename F > | |
| void | disableForContacts (F relevantCollision) |
| If for some reason a geometry or several geometries collides with less geometries now than previously, we need to make sure that previous overlaps are removed, as they might remain otherwise. More... | |
| template<typename F > | |
| void | enableForContacts (F relevantCollision) |
| If for some reason a geometry or several geometries collides with more geometries now than previously, we need to make sure that current overlaps are reported, as they might be ignored otherwise. More... | |
| void | eraseDisabledGroupPair (agx::UInt32 group1, agx::UInt32 group2) |
| Consider using setEnablePair( group1, group2, true ) instead. More... | |
| agxCollide::DisabledCollisionsState | findDisabledCollisionsState () const |
| Find the complete state of disabled collisions, including name <-> name pairs, id <-> id pairs and geometry <-> geometry pairs. More... | |
| agx::String | fullName () const |
| agx::String | fullPath () const |
| agx::String | fullPath (const agx::Object *root) const |
| agx::Object * | getAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr) |
| const agx::Object * | getAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr) const |
| template<typename T > | |
| T * | getAutoScopedResource (const agx::Path &path) |
| template<typename T > | |
| const T * | getAutoScopedResource (const agx::Path &path) const |
| BroadPhaseAlgorithm | getBroadPhaseAlgorithm () const |
| const BroadPhasePairVector & | getBroadPhasePairs () const |
| virtual const char * | getClassName () const |
| GeometryContact | getContact (Geometry *g1, Geometry *g2) const |
| Returns geometry contact between two geometries, if existing. More... | |
| agx::UInt | getContactReductionBinResolution () const |
| agx::UInt | getContactReductionThreshold () const |
| agx::Object * | getContext () |
| const agx::Object * | getContext () const |
| template<typename T > | |
| T * | getContext () |
| template<typename T > | |
| const T * | getContext () const |
| agx::Device * | getDevice () |
| const agx::Device * | getDevice () const |
| template<typename T > | |
| T * | getDevice () |
| template<typename T > | |
| const T * | getDevice () const |
| const GeometryPairHash & | getDisabledPairs () const |
| bool | getEnableContactReduction () const |
| bool | getEnablePair (agx::UInt32 group1, agx::UInt32 group2) const |
Get information if group1 and group2 are allowed to collide. More... | |
| bool | getEnablePair (const agx::Name &group1, const agx::Name &group2) const |
Get information if group1 and group2 are allowed to collide. More... | |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| const GeometryRefVector & | getGeometries () const |
| const Geometry * | getGeometry (const agx::Name &name) const |
| Find (linear search) the first Geometry in space with a matching name. More... | |
| Geometry * | getGeometry (const agx::Name &name) |
| Find (linear search) the first Geometry in space with a matching name. More... | |
| const Geometry * | getGeometry (const agx::Uuid &uuid) const |
| Find (linear search) the first Geometry in space matching the specified uuid. More... | |
| Geometry * | getGeometry (const agx::Uuid &uuid) |
| Find (linear search) the first Geometry in space matching the specified uuid. More... | |
| const Geometry * | getGeometry (agx::Index id) const |
| Find (linear search) the first Geometry in space matching the specified id. More... | |
| Geometry * | getGeometry (agx::Index id) |
| Find (linear search) the first Geometry in space matching the specified id. More... | |
| const GeometryContactPtrVector & | getGeometryContacts () const |
| Access to the vector containing all narrow phase contacts. More... | |
| size_t | getGeometryContacts (GeometryContactPtrVector &matches, const agxCollide::Geometry *geometry1, const agxCollide::Geometry *geometry2=nullptr) const |
| Extract a vector with all matching geometry contacts involving the two specified geometries. More... | |
| size_t | getGeometryContacts (GeometryContactPtrVector &matches, const agx::RigidBody *body1, const agx::RigidBody *body2=nullptr) const |
| Extract a vector with all matching geometry contacts involving the two specified rigid bodies This method will perform a linear search through all contact points. More... | |
| HierarchicalGrid * | getHierarchicalGrid () |
| agx::UInt32 | getId () const |
| const agx::Name & | getImplementationName () const |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. More... | |
| agx::Model * | getModel () |
| const agx::Model * | getModel () const |
| const agx::Name & | getName () const |
| agx::Object * | getNextSibling () |
| const agx::Object * | getNextSibling () const |
| size_t | getNumObjects (const agx::Name &name) const |
| agx::Object * | getObject (const agx::Name &name, size_t index=0) |
| const agx::Object * | getObject (const agx::Name &name, size_t index=0) const |
| agx::Object * | getObject (const agx::Name &name, agx::Model *model, size_t index=0) |
| const agx::Object * | getObject (const agx::Name &name, agx::Model *model, size_t index=0) const |
| template<typename T > | |
| T * | getObject (const agx::Name &name, size_t index=0) |
| template<typename T > | |
| const T * | getObject (const agx::Name &name, size_t index=0) const |
| const agx::ObjectRefVector & | getObjects () const |
| template<typename T > | |
| void | getObjects (agx::ObjectPtrVector &result, bool recursive=false) const |
| void | getObjects (agx::ObjectPtrVector &result, const agx::Model *model, bool recursive=false) const |
| template<typename T > | |
| void | getObjects (ObjectPtrVector &result, bool recursive) const |
| agx::Real | getOrientedBoundsThreshold () const |
| Returns the current threshold for where oriented bounds are created for Geometries. More... | |
| const ParticleGeometryContactVector & | getParticleGeometryContacts () |
| Returns the current ParticleGeometryContacts in the simulation. More... | |
| const ParticlePairContactVector & | getParticleParticleContacts () |
| Returns the current ParticleParticle contacts in the simulation. More... | |
| agx::Path | getPath () const |
| agx::Path | getPath (const agx::Object *root) const |
| int | getReferenceCount () const |
| agx::Object * | getResource (const agx::Path &path, agx::Model *model=nullptr) |
| const agx::Object * | getResource (const agx::Path &path, agx::Model *model=nullptr) const |
| template<typename T > | |
| T * | getResource (const agx::Path &path) |
| template<typename T > | |
| const T * | getResource (const agx::Path &path) const |
| virtual Object * | getResourceImpl (const Path &path, agx::Model *model) override |
| agx::Object * | getRootContext () |
| const agx::Object * | getRootContext () const |
| const SeparationPairVector & | getSeparationPairs () const |
| size_t | getSeparationPairs (agx::Physics::GeometryPairPtrVector &matches, const agxCollide::Geometry *geometry1, const agxCollide::Geometry *geometry2=nullptr) const |
| Extract a new vector including geometries which just recently separated. More... | |
| size_t | getSeparationPairs (agx::Physics::GeometryPairPtrVector &matches, const agx::RigidBody *body1, const agx::RigidBody *body2=nullptr) const |
| Extract a new vector including rigid bodies which just recently separated. More... | |
| virtual StorageAgent * | getStorageAgent () const =0 |
| agxCollide::SweepAndPrune * | getSweepAndPrune () |
| agx::UInt32 | getUniqueGroupID () |
| agx::Uuid | getUuid () const |
| bool | hasListener (EventListener *listener) |
| bool | hasParent (const agx::Object *node) const |
| void | insertDisabledGroupPair (agx::UInt32 group1, agx::UInt32 group2) |
| Consider using setEnablePair( group1, group2, false ) instead. More... | |
| bool | intersect (const agx::Vec3 &point, const agx::Vec3 &direction, LocalGeometryContactVector &geometryContacts, LocalParticleGeometryContactVector &particleGeometryContacts, const agx::Real length=FLT_MAX/4) |
| Sends a ray into the collision space and returns information about the objects the ray hits. More... | |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| bool | isFinished () const |
| bool | isUnique () const |
| virtual void | printSubtree () const override |
| void | printSubtree (std::ostream &stream, int depth=0) const |
| virtual void | rebind () override |
| 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 (Geometry *geometry) |
| Remove a geometry from Space. More... | |
| void | removeAllObjects () |
| Remove all components. More... | |
| GeometryContactPtrVector::const_iterator | removeContact (GeometryContactPtrVector::const_iterator contact) |
| Remove a specified GeometryContact from the list of contacts. More... | |
| void | removeContact (agx::Physics::GeometryContactPtr contact) |
| Schedule a removal of a specified Narrow phase contact, the contact will not be removed until the method commitRemovedContacts() is called (during the next update()) More... | |
| void | removeListener (EventListener *listener) |
| bool | removeListener (agxCollide::SpaceListener *listener) |
| Remove a listener from Space. More... | |
| virtual void | removeObject (agx::Object *object) |
| Remove an object from the component. More... | |
| void | removeObject (const agx::Name &name, size_t index=0) |
| Remove an object with a specified name (and optional index) from the component. More... | |
| void | removeOverlap (agxCollide::Geometry *geometry1, agxCollide::Geometry *geometry2) |
Remove a (Sweep and Prune) bounding overlap, if it exists, between geometry1 and geoemtry2. More... | |
| void | reportOverlap (agxCollide::Geometry *geometry1, agxCollide::Geometry *geometry2) |
| Add an explicit bounding volume overlap between the two specified geometries. More... | |
| void | resetGeometryCellAssignments (agxCollide::Geometry *geometry) |
| void | resetParticleCellAssignments () |
| virtual void | save (TiXmlElement *) const |
| bool | setBroadPhaseAlgorithm (BroadPhaseAlgorithm algorithm) |
| Specify a new broad phase algorithm implementation. More... | |
| void | setContactReductionBinResolution (agx::UInt binResolution) |
| Specify the default (for this Simulation) resolution used when evaluating contacts for reduction between geometry-geometry contacts. More... | |
| void | setContactReductionThreshold (agx::UInt threshold) |
| Specify the lower threshold for the number of contact points needed per geometry contact in order to do contact reduction per geometry contact. More... | |
| virtual void | setContext (agx::Object *context) |
| void | setEnableCollisions (const Geometry *g1, const Geometry *g2, bool flag) |
| Explicitly disable/enable a geometry pair. More... | |
| void | setEnableContactReduction (bool flag) |
| Enable/Disable contact reduction between pairs of geometries. More... | |
| void | setEnableGeometry (Geometry *geometry, bool flag) |
| void | setEnablePair (agx::UInt32 group1, agx::UInt32 group2, bool flag) |
| Enable/disable collisions between two geometry group ID:s. More... | |
| void | setEnablePair (const agx::Name &group1, const agx::Name &group2, bool flag) |
| 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 | setId (UInt32 id) |
| void | setModel (agx::Model *model) |
| Set the object model (handled automatically). More... | |
| void | setName (const agx::Name &name) |
| Set the name of the object. More... | |
| void | setOrientedBoundsThreshold (agx::Real threshold) |
| Sets the threshold where oriented bounds are created for Geometries. More... | |
| void | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. More... | |
| virtual void | snapshot (TiXmlNode *eParent, const String &directory) const override |
| bool | testBoundingVolumeOverlap (GeometryPtrVector &testGeometries, GeometryPairVector &geometryPairs, ParticleGeometryPairVector &particleGeometryPairs, bool skip=true) |
| Tests a number of geometries for bounding volume overlaps without changing the geometries already in space besides from updating bounding volumes. More... | |
| bool | testGeometryOverlap (GeometryPtrVector &testGeometries, LocalGeometryContactVector &geometryContacts, LocalParticleGeometryContactVector &particleGeometryContacts, bool skip=true) |
| Test if a number of geometries collides with something already present in space without changing space, besides from updating some bounding volumes. More... | |
| void | traverse (const TraverseCallback &callback) |
| void | traverse (ComponentVisitor *) |
| 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... | |
| void | update () |
| Update the contact state of the entire space including Broad Phase and narrow phase. More... | |
| void | updateBroadPhase () |
| Update the broad-phase state of the space. More... | |
| void | updateNarrowPhase () |
| Update the narrow phase state, calculating contact data for all overlapping geometry pairs. More... | |
Static Public Member Functions | |
| static Component * | _load (TiXmlElement *eComponent, Device *device) |
| static agx::Model * | ClassModel () |
| static agx::String | generateName (const agx::String &bindPath) |
| static const HashSet< Object * > & | getActiveObjects () |
| static bool | getEnableRebind () |
| Should rebinding be allowed? Right now a global setting. More... | |
| static Component * | load (const String &path, const Path &_namespace=Path()) |
| static Component * | load (const String &path, Device *device, const Path &_namespace=Path()) |
| static Component * | load (const Path &path, const Name &implementation, Device *device, const Path &_namespace=Path()) |
| static Component * | load (TiXmlElement *eComponent, Device *device) |
| static Object * | load (const String &path, Device *device, const String &type="", size_t instance=0) |
| static Object * | load (const String &path, Device *device, const String &type, const String &attribute, const String &value) |
| static void | load (const String &path, Device *device, ObjectPtrVector &loadedObjects) |
| static TiXmlDocument | openDocument (const String &path) |
| static void | setEnableRebind (bool flag) |
| Sets if rebinding of objects should be allowed (Right now a global setting). More... | |
| 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) |
Public Attributes | |
| ObjectEvent | addObjectEvent |
| ObjectEvent | removeObjectEvent |
Protected Member Functions | |
| virtual | ~Space () |
| Destructor. More... | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
| String | expandAutoCompletionMatch (const String &query, const StringVector &matchingNames) const |
| void | generateUuid () |
| void | setDevice (Device *device) |
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 | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
This class contains all Geometries and performs Broad Phase and Narrow Phase collision detection to calculate overlapping Geometry pairs.
It also contains methods for explicit overlapping tests with rays etc.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
| typedef agx::SetVector<GeometryPair> agxCollide::Space::GeometryPairHash |
|
inherited |
Event when adding removing child objects.
NOTE: Events are triggered recursively up the parent structure Example: B is added to root node A, one event is triggered (A.addObjectEvent(A, B)). Then when C is added to B two events are triggered (B.addObjectEvent(B, C), and A.addObjectEvent(B,C))
Definition at line 61 of file Component.h.
|
inherited |
Definition at line 141 of file Component.h.
Enum for specifying which BroadPhase algorithm space should use.
| agxCollide::Space::Space | ( | ) |
Default constructor.
| agxCollide::Space::Space | ( | agx::Device * | device | ) |
Instantiate Space with a specific device.
|
protectedvirtual |
Destructor.
|
staticinherited |
| bool agxCollide::Space::add | ( | Geometry * | geometry | ) |
Insert a new geometry into the Space so it can collide with other geometries.
| void agxCollide::Space::addGeometryContacts | ( | const LocalGeometryContactVector & | localContacts | ) |
Explicitly add geometry contacts.
This must be done after Space::update(), and not from within a ContactEventListener; preferable via agxSDK::StepEventListener::pre(t). Contact materials are not automatically calculated; they must be explicitly set for each contact. Contacts without a contact material will be ignored. Impact state for each LocalGeometryContact has to be set manually by using the 'solveImpact'-member (default: on).
|
inherited |
| void agxCollide::Space::addListener | ( | agxCollide::SpaceListener * | listener | ) |
Add a listener to space.
The listener will be signaled at add/remove geometry events.
|
virtualinherited |
Add an object to the component.
| object | The object to be added |
| assignContext | True if the child get the component as the context, set to false to allow 'weak' coupled children |
|
inherited |
|
protectedinherited |
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), and agx::InternalData::getOrCreate().
|
inherited |
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
|
virtualinherited |
Reimplemented in agx::Namespace.
|
overridevirtualinherited |
Reimplemented from agx::Object.
Reimplemented in agxData::Buffer, and agx::Model.
Check if two geometries can collide.
Following has to be true to make this method return true.
Both geometries have to be enabled if they belong to a group pair that is not disabled g1 != g2. collisions for g1 are not disabled against g2 (g1->setEnableCollisions(g2, false) if they both have a body, that it is not the same body.
Definition at line 851 of file Space.h.
References agx::RigidBody::getEnable().
|
staticinherited |
| void agxCollide::Space::cleanup | ( | ) |
Cleanup the internal state of the object.
All Geometries will be removed one by one. The state after calling this method should be the same as creating a new object.
| void agxCollide::Space::commitRemovedContacts | ( | ) |
Go through all the contact and contact points scheduled for removal and remove them from the list of contacts.
|
overridevirtualinherited |
Reimplemented from agx::Object.
Reimplemented in agx::Clock, agx::Task, agx::Kernel, agx::UnresolvedTask, and agx::Clock.
|
protectedinherited |
|
inline |
If for some reason a geometry or several geometries collides with less geometries now than previously, we need to make sure that previous overlaps are removed, as they might remain otherwise.
| relevantCollision | A class that has the function const bool operator()(const agxCollide::Geometry*, const agxCollide::Geometry*) that returns whether or not the collision between the two geometries should be reevaluated |
Definition at line 448 of file Space.h.
References agx::Vector< T, Allocator >::back(), agx::Container::empty(), agx::Physics::GeometryPairPtr::geometry1(), agx::Physics::GeometryPairPtr::geometry2(), agx::Physics::GeometryPtr::model(), agx::Vector< T, Allocator >::pop_back(), agx::Vector< T, Allocator >::push_back(), agx::Vector< T, Allocator >::reserve(), and agx::Container::size().
|
inline |
If for some reason a geometry or several geometries collides with more geometries now than previously, we need to make sure that current overlaps are reported, as they might be ignored otherwise.
| relevantCollision | A class that has the function const bool operator()(const agxCollide::Geometry*, const agxCollide::Geometry*) that returns whether or not the collision between the two geometries should be reevaluated |
| void agxCollide::Space::eraseDisabledGroupPair | ( | agx::UInt32 | group1, |
| agx::UInt32 | group2 | ||
| ) |
Consider using setEnablePair( group1, group2, true ) instead.
Similar to setEnablePair( group1, group2, true ) but this method doesn't look for (and adds) broad phase pairs matching the groups. I.e., this method isn't safe to use if you are unsure there are geometries overlapping matching the groups.
| group1 | - first group id |
| group2 | - second group id |
|
protectedinherited |
| agxCollide::DisabledCollisionsState agxCollide::Space::findDisabledCollisionsState | ( | ) | const |
Find the complete state of disabled collisions, including name <-> name pairs, id <-> id pairs and geometry <-> geometry pairs.
|
inherited |
Referenced by agx::ScalarParameter::get(), agx::ArrayParameter::get(), agxData::Buffer::getArray(), and agxData::Buffer::getElement().
|
inherited |
|
inherited |
|
staticinherited |
|
protectedinherited |
|
staticinherited |
|
inherited |
Referenced by agx::Object::getAutoScopedResource().
|
inherited |
|
inherited |
Definition at line 428 of file Object.h.
References agx::Object::getAutoScopedResource(), and agx::Referenced::is().
|
inherited |
| BroadPhaseAlgorithm agxCollide::Space::getBroadPhaseAlgorithm | ( | ) | const |
| const BroadPhasePairVector & agxCollide::Space::getBroadPhasePairs | ( | ) | const |
Definition at line 940 of file Space.h.
References agx::Vector< T, Allocator >::allocator(), and agxData::BufferProxyAllocator::update().
|
virtualinherited |
Reimplemented in agxWire::StopNode, agxWire::ConnectingNode, agxWire::EyeNode, agxWire::BodyFixedNode, agx::RigidBody, agx::Twist, agxWire::FreeNode, agx::ScrewController, agx::LockController, agxModel::WaterWrapper, agx::MergedBody, agx::MergedBody, agxModel::ConstantWindGenerator, agx::RangeController, agxModel::ConstantWaterFlowGenerator, agx::MergedBody, agx::ElectricMotorController, agx::MergedBody, agx::FrictionController, agx::MergedBody, agx::TargetSpeedController, agxModel::WindAndWaterController, agxSDK::Assembly, agx::QuatLock, agx::SphericalRel, agx::Spherical, agxWire::WireSimpleDrumController, agx::Dot2, agxModel::FractureAlgorithmBreakOnStress, agx::Swing, agxModel::FractureAlgorithmBreakOnContactForce, agx::Dot1, agxModel::FractureAlgorithmBreakOnContact, agx::Frame, agxPowerLine::detail::DimensionState3Dof< DimensionType >, agxUtil::ConstraintHolder, agxDriveTrain::PidControlledEngine, agxCable::CableDamage, agxControl::TeleportToSensorOperation, agxCollide::Geometry, agxDriveTrain::deprecated::Clutch, agxModel::Terrain, agxModel::TerrainDataInterface, agx::ObserverFrame, agxControl::StoreParticlesOperation, agxModel::SlidingNodeAttachment, agxDriveTrain::deprecated::GearBox, agxControl::EventSensor, agxPowerLine::Connection, agxModel::FractureGenerator, agxControl::LoadParticleAGXFileOperation, agxPowerLine::TranslationalConstraintImplementation, agxModel::RotatingNodeAttachment, agxModel::TwoBodyTire, agxPowerLine::detail::DimensionState1Dof< DimensionType >, agxModel::Deformable1DNodeRoute, agxPowerLine::ElementaryTranslationalConstraint, agxControl::SetVelocityOperation, agx::AddedMassInteraction, agxPowerLine::TranslationalActuator, agxDriveTrain::RpmController, agx::RigidBodyAttachment, agxVehicle::Track, agxModel::RigidNodeAttachment, agxControl::WriteParticleDataToAGXOperation, agxModel::TerrainIterativeProjectedConeFrictionModel, agxModel::Deformable1DSphereGeometryFactory, agxModel::DeformableParticleCreator, agxPowerLine::GearConstraintImplementation, agxControl::MakeParticleKinematicOperation, agxModel::ConvexSoil, agx::IterativeProjectedConeFriction, agxSDK::SimulationStatisticsListener, agxSDK::LinkedStructure, agx::ConstantNormalForceOrientedBoxFrictionModel, agxDriveTrain::deprecated::FixedGear, agxVehicle::TrackProperties, agxHydraulics::HydraulicPumpActuator, agxPowerLine::ElementaryGearConstraint, agxModel::Deformable1DPointRoute, agxModel::PointNodeAttachment, agx::PropertyContainer, agxModel::SoilParticle, agxSDK::MaterialManager::MaterialManagerSerializer, agxModel::Deformable1DCylinderGeometryFactory, agxDriveTrain::deprecated::HighLevelDifferential, agxPowerLine::TorqueGenerator, agxPowerLine::PowerLine, agx::ScaleBoxFrictionModel, agxHydraulics::PistonActuator, agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation, agx::SeparationAngle, agxWire::ConvexAreaDefinition, agxCollide::Trimesh, agxControl::LoadParticleJournalOperation, agxControl::ReplaceParticleMaterialOperation, agxWire::ShapeContactNode, agxModel::Deformable1DCapsuleGeometryFactory, agx::CubicSplineLookupTable, agxHydraulics::HydraulicMotorActuator, agxSDK::GeometryContactMergeSplitThresholds, agxDriveTrain::deprecated::TorqueConverterTable, agxDriveTrain::HolonomicGear, agxModel::Deformable1DNode, agx::BoxFrictionModel, agxPowerLine::RotationalConnector, agxWire::CircularAreaDefinition, agxPowerLine::ActuatorBodyUnit, agxPowerLine::RotationalActuator, agxModel::Deformable1DBulkProperties, agx::Attachment, agxModel::Deformable1D, agx::GranularImpactDataWriter, agxPowerLine::PowerTimeIntegralLookupTable, agx::WheelJoint, agx::OrientedIterativeProjectedConeFrictionModel, agxControl::ParticleContactDumper, agxDriveTrain::deprecated::TorqueConverter, agxCable::Route, agx::Hinge, agx::RotationalAngle, agx::CubicFunction2D, agxControl::RecordParticleShapshotJournalOperation, agxDriveTrain::deprecated::HighLevelGearBox, agxTerrain::TerrainRasterizer, agxVehicle::Wheel, agxControl::SensorOperation, agxHydraulics::FlowDimension, agxModel::HeightFieldDeformerJournalRecorder, agxModel::ParticleAttributes, agxDriveTrain::Engine, agxWire::EyeNodeArea, agxModel::SurfaceVelocityConveyorBelt, agxCable::PathRoute, agx::WorldFrameBallJoint, agx::OrientedScaleBoxFrictionModel, agxPowerLine::LinearLookupTable, agxCollide::Line, agxDriveTrain::Differential, agxVehicle::TrackRoute, agxCollide::RenderMaterial, agxControl::MeasurementSensor, agxModel::DeformableMineFace, agx::AutoSleepThreshold, agxCollide::CollisionGroupManager, agxControl::ColorParticles, agxHydraulics::NeedleValve, agxModel::DeformableParticleMesh, agxDriveTrain::ElectricMotor, agxDriveTrain::SlipGear, agxModel::OneBodyTire, agxPowerLine::ActuatorRotationalDimension, agxCable::SegmentingRoute, agx::LinearLookupTable, agx::MergeSplit, agxCollide::RenderData, agxControl::RecordParticleJournalOperation, agxPowerLine::RotationalTranslationalHolonomicConnector, agxUtil::RawMesh, agxPowerLine::RotationalDimension, agxModel::WindAndWaterController::WindGenerator, agx::Physics::GranularBodySystem, agx::Prismatic, agx::VirtualConstraintInertia, agx::OrientedBoxFrictionModel, agxModel::ThreeBodyTire, agxSDK::ConstraintMergeSplitThresholds, agx::RegularizationParameters, agxSDK::LinkedSegment, agxCollide::CollisionMeshData, agx::SphericalRelSlack, agx::SlackHingeJoint, agx::SlackLockJoint, agxDriveTrain::deprecated::HighLevelTorqueConverter, agxDriveTrain::GearBox, agxCollide::Plane, agxHydraulics::detail::GraphJoiningConnector, agxModel::Deformable1DBoxGeometryFactory, agx::CylindricalJoint, agxCable::CableDamageState, agxHydraulics::CheckValve, agxPowerLine::RotationalUnit, agx::BallJoint, agx::SlackPrismaticJoint, agx::Interaction, agx::DistanceJoint, agxPowerLine::SlotMapper, agxSDK::EventListener, agx::JournalCustomDataRecorder, agxControl::SensorEvent, agxSDK::StepEventListener, agxControl::TagOperation, agx::PrismaticUniversalJoint, agx::UniversalJoint, agxCollide::Convex, agx::SlackCylindricalJoint, agxCable::IdentityRoute, agxHydraulics::deprecated::PumpUnit, agxDriveTrain::Clutch, agxHydraulics::deprecated::MotorUnit, agxModel::HeightController, agxSDK::WireMergeSplitThresholds, agxModel::WindAndWaterController::WaterFlowGenerator, agxVehicle::TrackNode, agx::ContactTangent, agxDriveTrain::ElectricMotorConstraint, agx::LockJoint, agx::SwingTwistLock, agxCollide::WireShape, agxHydraulics::detail::SpoolValveConnector, agx::SleepThreshold, agxSDK::ConstraintMergeSplitAlgorithm, agxSDK::GeometryContactMergeSplitAlgorithm, agx::Dot2Slack, agxDriveTrain::Gear, agxPowerLine::RotationalTranslationalConnector, agxPowerLine::WireWinchActuator, agxSDK::WireMergeSplitAlgorithm, agxHydraulics::Accumulator, agxHydraulics::detail::GraphJoiningConstraintImplementation, agxModel::HeightFieldDeformer, agxDriveTrain::EnginePowerGenerator, agx::AngularLockJoint, agx::PointGravityField, agx::SplineJoint, agxControl::BaseRecordParticleJournalOperation, agx::Dot1Joint, agxPowerLine::detail::RigidBodyRotationalAttachmentSentry, agxControl::RemoveParticles, agxSDK::LinkedStructureComponent, agxDriveTrain::DifferentialLockConnector, agxDriveTrain::Shaft, agx::UniformGravityField, agxLua::LuaScriptOperation, agx::ParticleContactSensor, agxCollide::MeshData, agxDriveTrain::deprecated::TorqueConverterSpeedRatioLookup, agxSDK::Collection, agx::ContactNormal, agxHydraulics::detail::ElementaryGraphJoiningConstraint, agxPowerLine::detail::WireWinchConnectorConstraintImplementation, agx::MergeSplitBodyStorage, agx::StrongInteractionConstraint, agxSDK::EnergyManager, agx::PlaneJoint, agx::ParticleSink, agx::Dot1Slack, agxDriveTrain::ElectricMotorConstraintImplementation, agxSDK::GranularContactMergeSplitAlgorithm, agxControl::SplitSensorOperation, agxDriveTrain::EngineDampingUpdater, agxControl::RemoveRigidBody, agxPowerLine::detail::WireWinchConnector, agxPowerLine::detail::ElementaryWireWinchConnectorConstraint, agxPowerLine::detail::RigidBodyTranslationalAttachmentSentry, agxSDK::MergedBodyMergeSplitAlgorithm, agxCable::RoutingNode, agxCable::CablePlasticity, agxHydraulics::detail::SpoolValveStaticFlowUnit, agxModel::PlasticityComponent, and agxCable::GeometryFactory.
Referenced by agxStream::InputArchive::readRef().
| GeometryContact agxCollide::Space::getContact | ( | Geometry * | g1, |
| Geometry * | g2 | ||
| ) | const |
Returns geometry contact between two geometries, if existing.
| g1 | The first geometry. |
| g2 | The second geometry. |
| agx::UInt agxCollide::Space::getContactReductionBinResolution | ( | ) | const |
| agx::UInt agxCollide::Space::getContactReductionThreshold | ( | ) | const |
|
inherited |
Definition at line 373 of file Object.h.
Referenced by agxData::Value::get(), and agx::Model::getNamespace().
|
inherited |
|
inherited |
|
staticprotectedinherited |
|
inherited |
Definition at line 222 of file Component.h.
Referenced by agx::Component::getDevice().
|
inherited |
Definition at line 223 of file Component.h.
References agx::Component::getDevice().
|
inherited |
|
inherited |
| const GeometryPairHash& agxCollide::Space::getDisabledPairs | ( | ) | const |
| bool agxCollide::Space::getEnableContactReduction | ( | ) | const |
| bool agxCollide::Space::getEnablePair | ( | agx::UInt32 | group1, |
| agx::UInt32 | group2 | ||
| ) | const |
|
staticinherited |
Should rebinding be allowed? Right now a global setting.
|
inherited |
Definition at line 273 of file Serializable.h.
|
inherited |
| const GeometryRefVector & agxCollide::Space::getGeometries | ( | ) | const |
| const Geometry* agxCollide::Space::getGeometry | ( | agx::Index | id | ) | const |
| Geometry* agxCollide::Space::getGeometry | ( | agx::Index | id | ) |
| const GeometryContactPtrVector& agxCollide::Space::getGeometryContacts | ( | ) | const |
Access to the vector containing all narrow phase contacts.
| size_t agxCollide::Space::getGeometryContacts | ( | GeometryContactPtrVector & | matches, |
| const agxCollide::Geometry * | geometry1, | ||
| const agxCollide::Geometry * | geometry2 = nullptr |
||
| ) | const |
Extract a vector with all matching geometry contacts involving the two specified geometries.
This method will perform a linear search through all contact points.
| geometry1 | - The first specified geometry to search for among geometry contacts |
| geometry2 | - The second specified geometry to search for among geometry contacts (if null only match geometry1) |
| matches | - a vector with all matching geometry contact points This vector contain pointers to GeometryContact which are valid during this simulation step only, so never store a pointer to them and use them over several time steps. |
| size_t agxCollide::Space::getGeometryContacts | ( | GeometryContactPtrVector & | matches, |
| const agx::RigidBody * | body1, | ||
| const agx::RigidBody * | body2 = nullptr |
||
| ) | const |
Extract a vector with all matching geometry contacts involving the two specified rigid bodies This method will perform a linear search through all contact points.
| body1 | - The first specified rigid body to search for among geometry contacts |
| body2 | - The second specified rigid body to search for among geometry contacts (if null only match body1) |
| matches | - a vector with all matching geometry contact points This vector contain pointers to GeometryContact which are valid during this simulation step only, so never store a pointer to them and use them over several time steps. |
| HierarchicalGrid * agxCollide::Space::getHierarchicalGrid | ( | ) |
|
inherited |
Definition at line 370 of file Object.h.
Referenced by agxData::EntityStorage::indexToId().
|
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 |
|
inherited |
Definition at line 369 of file Object.h.
Referenced by agxData::Value::get(), agxData::EntityStorage::get(), agxData::FormatBinding< T >::getFormat(), and agxData::EntityPtr::operator()().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 194 of file Component.h.
Referenced by agxData::EntityPtr::operator()().
|
inherited |
Definition at line 195 of file Component.h.
|
inherited |
Definition at line 197 of file Component.h.
|
inherited |
Definition at line 198 of file Component.h.
|
inherited |
|
inherited |
|
inherited |
Definition at line 192 of file Component.h.
Referenced by agx::Component::getObjects().
|
inherited |
|
inherited |
|
inherited |
Definition at line 241 of file Component.h.
References agx::Component::getObjects().
| agx::Real agxCollide::Space::getOrientedBoundsThreshold | ( | ) | const |
| const ParticleGeometryContactVector& agxCollide::Space::getParticleGeometryContacts | ( | ) |
Returns the current ParticleGeometryContacts in the simulation.
| const ParticlePairContactVector& agxCollide::Space::getParticleParticleContacts | ( | ) |
Returns the current ParticleParticle contacts in the simulation.
|
inherited |
Referenced by agxData::EntityStorage::dereferenceMultipliedAttribute(), agx::ScalarParameter::get(), agx::ArrayParameter::get(), agx::PointerParameter::get(), agxData::EntityInstance::verifyIndex(), and agxData::EntityPtr::verifyIndex().
|
inherited |
| root | A node along the parent path from this object. |
|
inherited |
|
inherited |
Referenced by agx::Object::getResource().
|
inherited |
|
inherited |
Definition at line 414 of file Object.h.
References agx::Object::getResource(), and agx::Referenced::is().
|
inherited |
|
overridevirtualinherited |
Reimplemented from agx::Object.
Reimplemented in agx::Task, and agxData::EntityStorage.
|
inherited |
|
inherited |
| const SeparationPairVector & agxCollide::Space::getSeparationPairs | ( | ) | const |
Definition at line 946 of file Space.h.
References agx::Vector< T, Allocator >::allocator(), and agxData::BufferProxyAllocator::update().
| size_t agxCollide::Space::getSeparationPairs | ( | agx::Physics::GeometryPairPtrVector & | matches, |
| const agxCollide::Geometry * | geometry1, | ||
| const agxCollide::Geometry * | geometry2 = nullptr |
||
| ) | const |
Extract a new vector including geometries which just recently separated.
| geometry1 | - Specifies the first geometry to search for among the separation pairs |
| geometry2 | - Specifies the second geometry to search for among the separation pairs, if nullptr then only match geometry1 |
| matches | - a vector of the geometries which are no longer overlapping (could still have overlapping bounding volumes) |
| size_t agxCollide::Space::getSeparationPairs | ( | agx::Physics::GeometryPairPtrVector & | matches, |
| const agx::RigidBody * | body1, | ||
| const agx::RigidBody * | body2 = nullptr |
||
| ) | const |
Extract a new vector including rigid bodies which just recently separated.
| body1 | - Specifies the first rigid body to search for among the separation pairs |
| body2 | - Specifies the second rigid body to search for among the separation pairs, if nullptr then only match geometry1 |
| matches | - a vector of the geometries which are no longer overlapping (could still have overlapping bounding volumes) |
|
pure virtualinherited |
Implemented in agxWire::StopNode, agxWire::ConnectingNode, agxWire::EyeNode, agxWire::BodyFixedNode, agx::RigidBody, agx::Twist, agxWire::FreeNode, agx::ScrewController, agx::LockController, agxModel::WaterWrapper, agx::MergedBody, agx::MergedBody, agxModel::ConstantWindGenerator, agx::RangeController, agxModel::ConstantWaterFlowGenerator, agx::MergedBody, agx::ElectricMotorController, agx::MergedBody, agx::FrictionController, agx::MergedBody, agx::TargetSpeedController, agxModel::WindAndWaterController, agxSDK::Assembly, agx::QuatLock, agx::SphericalRel, agx::Spherical, agxWire::WireSimpleDrumController, agx::Dot2, agxModel::FractureAlgorithmBreakOnStress, agx::Swing, agxModel::FractureAlgorithmBreakOnContactForce, agx::Dot1, agxModel::FractureAlgorithmBreakOnContact, agx::Frame, agxPowerLine::detail::DimensionState3Dof< DimensionType >, agxUtil::ConstraintHolder, agxDriveTrain::PidControlledEngine, agxCable::CableDamage, agxControl::TeleportToSensorOperation, agxCollide::Geometry, agxDriveTrain::deprecated::Clutch, agxModel::Terrain, agxModel::TerrainDataInterface, agx::ObserverFrame, agxControl::StoreParticlesOperation, agxModel::SlidingNodeAttachment, agxDriveTrain::deprecated::GearBox, agxControl::EventSensor, agxPowerLine::Connection, agxModel::FractureGenerator, agxControl::LoadParticleAGXFileOperation, agxPowerLine::TranslationalConstraintImplementation, agxModel::RotatingNodeAttachment, agxModel::TwoBodyTire, agxModel::Deformable1DNodeRoute, agxPowerLine::detail::DimensionState1Dof< DimensionType >, agxPowerLine::ElementaryTranslationalConstraint, agxControl::SetVelocityOperation, agx::AddedMassInteraction, agxPowerLine::TranslationalActuator, agxDriveTrain::RpmController, agx::RigidBodyAttachment, agxVehicle::Track, agxModel::RigidNodeAttachment, agxControl::WriteParticleDataToAGXOperation, agxModel::TerrainIterativeProjectedConeFrictionModel, agxModel::Deformable1DSphereGeometryFactory, agxModel::DeformableParticleCreator, agxPowerLine::GearConstraintImplementation, agxControl::MakeParticleKinematicOperation, agxModel::ConvexSoil, agx::IterativeProjectedConeFriction, agxSDK::SimulationStatisticsListener, agxSDK::LinkedStructure, agx::ConstantNormalForceOrientedBoxFrictionModel, agxDriveTrain::deprecated::FixedGear, agxVehicle::TrackProperties, agxHydraulics::HydraulicPumpActuator, agxPowerLine::ElementaryGearConstraint, agxModel::Deformable1DPointRoute, agxModel::PointNodeAttachment, agx::PropertyContainer, agxModel::SoilParticle, agxSDK::MaterialManager::MaterialManagerSerializer, agxModel::Deformable1DCylinderGeometryFactory, agxDriveTrain::deprecated::HighLevelDifferential, agxPowerLine::TorqueGenerator, agxPowerLine::PowerLine, agx::ScaleBoxFrictionModel, agxHydraulics::PistonActuator, agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation, agx::SeparationAngle, agxWire::ConvexAreaDefinition, agxCollide::Trimesh, agxControl::LoadParticleJournalOperation, agxControl::ReplaceParticleMaterialOperation, agxWire::ShapeContactNode, agxModel::Deformable1DCapsuleGeometryFactory, agx::CubicSplineLookupTable, agxHydraulics::HydraulicMotorActuator, agxSDK::GeometryContactMergeSplitThresholds, agxDriveTrain::deprecated::TorqueConverterTable, agxDriveTrain::HolonomicGear, agxModel::Deformable1DNode, agx::BoxFrictionModel, agxPowerLine::RotationalConnector, agxWire::CircularAreaDefinition, agxPowerLine::ActuatorBodyUnit, agxPowerLine::RotationalActuator, agxModel::Deformable1DBulkProperties, agx::Attachment, agxModel::Deformable1D, agx::GranularImpactDataWriter, agxPowerLine::PowerTimeIntegralLookupTable, agx::WheelJoint, agx::OrientedIterativeProjectedConeFrictionModel, agxControl::ParticleContactDumper, agxDriveTrain::deprecated::TorqueConverter, agxCable::Route, agx::Hinge, agx::RotationalAngle, agx::CubicFunction2D, agxControl::RecordParticleShapshotJournalOperation, agxDriveTrain::deprecated::HighLevelGearBox, agxTerrain::TerrainRasterizer, agxVehicle::Wheel, agxControl::SensorOperation, agxHydraulics::FlowDimension, agxModel::HeightFieldDeformerJournalRecorder, agxModel::ParticleAttributes, agxDriveTrain::Engine, agxWire::EyeNodeArea, agxModel::SurfaceVelocityConveyorBelt, agxCable::PathRoute, agx::WorldFrameBallJoint, agx::OrientedScaleBoxFrictionModel, agxPowerLine::LinearLookupTable, agxCollide::Line, agxDriveTrain::Differential, agxVehicle::TrackRoute, agxCollide::RenderMaterial, agxControl::MeasurementSensor, agxModel::DeformableMineFace, agx::AutoSleepThreshold, agxCollide::CollisionGroupManager, agxControl::ColorParticles, agxHydraulics::NeedleValve, agxModel::DeformableParticleMesh, agxDriveTrain::ElectricMotor, agxDriveTrain::SlipGear, agxModel::OneBodyTire, agxPowerLine::ActuatorRotationalDimension, agxCable::SegmentingRoute, agx::LinearLookupTable, agx::MergeSplit, agxCollide::RenderData, agxControl::RecordParticleJournalOperation, agxPowerLine::RotationalTranslationalHolonomicConnector, agxUtil::RawMesh, agxPowerLine::RotationalDimension, agxModel::WindAndWaterController::WindGenerator, agx::Physics::GranularBodySystem, agx::Prismatic, agx::VirtualConstraintInertia, agx::OrientedBoxFrictionModel, agxModel::ThreeBodyTire, agxSDK::ConstraintMergeSplitThresholds, agx::RegularizationParameters, agxSDK::LinkedSegment, agxCollide::CollisionMeshData, agx::SphericalRelSlack, agx::SlackHingeJoint, agx::SlackLockJoint, agxDriveTrain::deprecated::HighLevelTorqueConverter, agxDriveTrain::GearBox, agxCollide::Plane, agxHydraulics::detail::GraphJoiningConnector, agxModel::Deformable1DBoxGeometryFactory, agx::CylindricalJoint, agxCable::CableDamageState, agxHydraulics::CheckValve, agxPowerLine::RotationalUnit, agx::BallJoint, agx::SlackPrismaticJoint, agx::Interaction, agx::DistanceJoint, agxPowerLine::SlotMapper, agxSDK::EventListener, agx::JournalCustomDataRecorder, agxControl::SensorEvent, agxSDK::StepEventListener, agxControl::TagOperation, agx::PrismaticUniversalJoint, agx::UniversalJoint, agxCollide::Convex, agx::SlackCylindricalJoint, agxCable::IdentityRoute, agxHydraulics::deprecated::PumpUnit, agxDriveTrain::Clutch, agxHydraulics::deprecated::MotorUnit, agxModel::HeightController, agxSDK::WireMergeSplitThresholds, agxModel::WindAndWaterController::WaterFlowGenerator, agxVehicle::TrackNode, agx::ContactTangent, agxDriveTrain::ElectricMotorConstraint, agx::LockJoint, agx::SwingTwistLock, agxCollide::WireShape, agxHydraulics::detail::SpoolValveConnector, agx::SleepThreshold, agxSDK::ConstraintMergeSplitAlgorithm, agxSDK::GeometryContactMergeSplitAlgorithm, agx::Dot2Slack, agxDriveTrain::Gear, agxPowerLine::RotationalTranslationalConnector, agxPowerLine::WireWinchActuator, agxSDK::WireMergeSplitAlgorithm, agxHydraulics::Accumulator, agxHydraulics::detail::GraphJoiningConstraintImplementation, agxModel::HeightFieldDeformer, agxDriveTrain::EnginePowerGenerator, agx::AngularLockJoint, agx::PointGravityField, agx::SplineJoint, agxControl::BaseRecordParticleJournalOperation, agx::Dot1Joint, agxControl::RemoveParticles, agxSDK::LinkedStructureComponent, agxDriveTrain::DifferentialLockConnector, agxDriveTrain::Shaft, agxPowerLine::detail::RigidBodyRotationalAttachmentSentry, agx::UniformGravityField, agxLua::LuaScriptOperation, agx::ParticleContactSensor, agxCollide::MeshData, agxDriveTrain::deprecated::TorqueConverterSpeedRatioLookup, agxSDK::Collection, agx::ContactNormal, agxHydraulics::detail::ElementaryGraphJoiningConstraint, agxPowerLine::detail::WireWinchConnectorConstraintImplementation, agx::MergeSplitBodyStorage, agx::StrongInteractionConstraint, agxSDK::EnergyManager, agx::PlaneJoint, agx::ParticleSink, agx::Dot1Slack, agxDriveTrain::ElectricMotorConstraintImplementation, agxSDK::GranularContactMergeSplitAlgorithm, agxControl::SplitSensorOperation, agxDriveTrain::EngineDampingUpdater, agxControl::RemoveRigidBody, agxPowerLine::detail::WireWinchConnector, agxPowerLine::detail::ElementaryWireWinchConnectorConstraint, agxSDK::MergedBodyMergeSplitAlgorithm, agxCable::RoutingNode, agxCable::CablePlasticity, agxHydraulics::detail::SpoolValveStaticFlowUnit, agxPowerLine::detail::RigidBodyTranslationalAttachmentSentry, agxModel::PlasticityComponent, and agxCable::GeometryFactory.
| agxCollide::SweepAndPrune* agxCollide::Space::getSweepAndPrune | ( | ) |
| agx::UInt32 agxCollide::Space::getUniqueGroupID | ( | ) |
|
inherited |
Definition at line 268 of file Serializable.h.
|
inherited |
|
inherited |
| void agxCollide::Space::insertDisabledGroupPair | ( | agx::UInt32 | group1, |
| agx::UInt32 | group2 | ||
| ) |
Consider using setEnablePair( group1, group2, false ) instead.
Similar to setEnablePair( group1, group2, false ) but this method doesn't look for (and removes) broad phase pairs matching the groups. I.e., this method isn't safe to use if you are unsure there are geometries overlapping matching the groups.
| group1 | - first group id |
| group2 | - second group id |
| bool agxCollide::Space::intersect | ( | const agx::Vec3 & | point, |
| const agx::Vec3 & | direction, | ||
| LocalGeometryContactVector & | geometryContacts, | ||
| LocalParticleGeometryContactVector & | particleGeometryContacts, | ||
| const agx::Real | length = FLT_MAX/4 |
||
| ) |
Sends a ray into the collision space and returns information about the objects the ray hits.
The ray does not have to hit anything and the returned contact data can be empty.
| point | start point of the ray |
| direction | Direction of the ray |
| geometryContacts | A GeometryContactPtrVector where contact data will be stored for the objects the ray intersected the objects are sorted closest to furthest away |
| particleGeometryContacts | A GeometryContactPtrVector where contact data will be stored for the objects the ray intersected the objects are sorted closest to furthest away |
| length | Max length of ray, objects further away than length will not be hit even if they are in the path of the ray |
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::Buffer::getElement(), and agx::Object::getResource().
|
inherited |
Definition at line 252 of file Serializable.h.
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
Definition at line 379 of file Object.h.
References agx::Object::load().
|
staticinherited |
Definition at line 386 of file Object.h.
References agx::Object::load().
|
staticinherited |
|
staticinherited |
|
overridevirtualinherited |
Reimplemented from agx::Object.
|
inherited |
|
overridevirtualinherited |
Reimplemented from agx::Object.
Reimplemented in agx::Task, and agx::Clock.
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().
| bool agxCollide::Space::remove | ( | Geometry * | geometry | ) |
|
inherited |
Remove all components.
| GeometryContactPtrVector::const_iterator agxCollide::Space::removeContact | ( | GeometryContactPtrVector::const_iterator | contact | ) |
Remove a specified GeometryContact from the list of contacts.
It is important that this iterator is valid, i.e. accessed during the same time step and that the list of contacts is not modified since it is acquired.
| contact | - iterator taken from the getGeometryContacts() at the same time step. |
| void agxCollide::Space::removeContact | ( | agx::Physics::GeometryContactPtr | contact | ) |
Schedule a removal of a specified Narrow phase contact, the contact will not be removed until the method commitRemovedContacts() is called (during the next update())
| contact | - Remove the specified contact. |
Definition at line 952 of file Space.h.
References agx::Physics::GeometryContactPtr::enabled().
|
inherited |
| bool agxCollide::Space::removeListener | ( | agxCollide::SpaceListener * | listener | ) |
Remove a listener from Space.
|
virtualinherited |
Remove an object from the component.
Remove an object with a specified name (and optional index) from the component.
| void agxCollide::Space::removeOverlap | ( | agxCollide::Geometry * | geometry1, |
| agxCollide::Geometry * | geometry2 | ||
| ) |
| void agxCollide::Space::reportOverlap | ( | agxCollide::Geometry * | geometry1, |
| agxCollide::Geometry * | geometry2 | ||
| ) |
Add an explicit bounding volume overlap between the two specified geometries.
| geometry1,geometry2 | - The two geometries in the new Broad phase overlap. |
Definition at line 958 of file Space.h.
References agxCollide::Geometry::isEnabled().
| void agxCollide::Space::resetGeometryCellAssignments | ( | agxCollide::Geometry * | geometry | ) |
| void agxCollide::Space::resetParticleCellAssignments | ( | ) |
|
inlinevirtualinherited |
Reimplemented in agx::Clock.
| bool agxCollide::Space::setBroadPhaseAlgorithm | ( | BroadPhaseAlgorithm | algorithm | ) |
Specify a new broad phase algorithm implementation.
Specify the default (for this Simulation) resolution used when evaluating contacts for reduction between geometry-geometry contacts.
A high value will keep more contacts, lower will result in more aggressive reduction the default. If no resolution is specified per material this value will be used. Commonly a value of 2-3 will give good results. Values from 1 to 10 are valid. This value will be used for all geometry contacts where either no contact material is set, or where the ContactReductionBinResolution of the contact material is 0.
| binResolution | - parameter to ContactReducer. |
Specify the lower threshold for the number of contact points needed per geometry contact in order to do contact reduction per geometry contact.
| threshold | - Lower threshold for number of contact points in a geometry contact in order run contact reduction on it. |
|
virtualinherited |
Reimplemented in agx::Task, and agxData::FunctionValue.
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
Explicitly disable/enable a geometry pair.
| void agxCollide::Space::setEnableContactReduction | ( | bool | flag | ) |
Enable/Disable contact reduction between pairs of geometries.
| flag | - if true, contact reduction is enabled. |
| void agxCollide::Space::setEnablePair | ( | agx::UInt32 | group1, |
| agx::UInt32 | group2, | ||
| bool | flag | ||
| ) |
Enable/disable collisions between two geometry group ID:s.
This can be used to group Geometries into separate collision groups, where collisions can be enabled/disabled between the different GeometryID groups.
The largest number for a group ID is defined to be 2^31 - 1 (2 147 483 647), the rest are reserved by space and can be accessed via getUniqueGroupID().
| group1 | - First group id |
| group2 | - Second group id |
| flag | - If true, the geometries in groupID1 and groupID2 can collide, otherwise not. |
| void agxCollide::Space::setEnablePair | ( | const agx::Name & | group1, |
| const agx::Name & | group2, | ||
| bool | flag | ||
| ) |
|
staticinherited |
Sets if rebinding of objects should be allowed (Right now a global setting).
Allowing it when adding larger parts to the system tree might hit performance, so it might be smarter to disable it first, then add, and then enable again.
|
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 |
Set the object model (handled automatically).
Sets the threshold where oriented bounds are created for Geometries.
Changing the value will create or destroy oriented bounds as necessary for already created Geometries.
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!
|
overridevirtualinherited |
Reimplemented from agx::Object.
| bool agxCollide::Space::testBoundingVolumeOverlap | ( | GeometryPtrVector & | testGeometries, |
| GeometryPairVector & | geometryPairs, | ||
| ParticleGeometryPairVector & | particleGeometryPairs, | ||
| bool | skip = true |
||
| ) |
Tests a number of geometries for bounding volume overlaps without changing the geometries already in space besides from updating bounding volumes.
| testGeometries | - The vector with geometries that should be tested for overlaps. These may be rearranged to speed up testing. |
| geometryPairs | - The geometry pairs which have overlapping bounding volumes |
| particleGeometryPairs | - The particle-geometry pairs which have overlapping bounding volumes |
| skip | - If true, skip collisions between geometries that both are in the testGeometries vector. Useful when some geometries are already added to space. |
| bool agxCollide::Space::testGeometryOverlap | ( | GeometryPtrVector & | testGeometries, |
| LocalGeometryContactVector & | geometryContacts, | ||
| LocalParticleGeometryContactVector & | particleGeometryContacts, | ||
| bool | skip = true |
||
| ) |
Test if a number of geometries collides with something already present in space without changing space, besides from updating some bounding volumes.
| testGeometries | The vector with geometries that should be tested for overlaps. These may be rearranged to speed up testing. |
| geometryContacts | - The geometry contacts that were found |
| particleGeometryContacts | - The particle-geometry contacts that were found |
| skip | - If true, skip collisions between geometries that both are in the testGeometries vector. Useful when some geometries are already added to space. |
|
inherited |
|
inherited |
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.
| void agxCollide::Space::update | ( | ) |
Update the contact state of the entire space including Broad Phase and narrow phase.
| void agxCollide::Space::updateBroadPhase | ( | ) |
Update the broad-phase state of the space.
| void agxCollide::Space::updateNarrowPhase | ( | ) |
Update the narrow phase state, calculating contact data for all overlapping geometry pairs.
i.e. check all current bounding box overlaps for possible contacts
|
staticinherited |
|
inherited |
Definition at line 63 of file Component.h.
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.
|
inherited |
Definition at line 64 of file Component.h.