AGX Dynamics  2.37.3.2
agxSDK Namespace Reference

The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simulation system including Material, event listeners etc. More...

Namespaces

 MergeSplitUtils
 

Classes

class  Assembly
 An assembly is a collection of basic simulation objects, such as rigid bodies, constraints, geometries. More...
 
class  AssemblyVisitor
 Class for visiting all elements in a tree of Assemblies. More...
 
class  BoolPropertyFilter
 Class for matching bool properties. More...
 
class  Collection
 A Collection is a collection of basic simulation objects, such as rigid bodies, constraints, geometries. More...
 
class  CollisionGroupFilter
 An ExecuteFilter that is used to filter out contacts matching a specified criteria based on Collision groups. More...
 
class  ConstraintEnergyData
 
class  ConstraintLogListener
 Class that will log various properties of constraints. More...
 
class  ConstraintMergedState
 
class  ConstraintMergeSplitAlgorithm
 
class  ConstraintMergeSplitThresholds
 Specific thresholds used to split and merge objects given constraints. More...
 
class  ContactEventListener
 Derive from this class to implement a listener for Collision events. More...
 
class  ContactFilterReducerListener
 Class that execute the agxCollide::ContactReducer::reduce on contact points that are collected via a specific ExecuteFilter. More...
 
class  DoublePropertyFilter
 Class for matching double properties. More...
 
class  EnergyManager
 Keeps track of the energy flow in the system. More...
 
class  EventListener
 An EventListener can be associated to a Simulation and triggered upon various events. More...
 
class  ExecuteFilter
 Abstract base class that implements a filter that selects which events should trigger a Listener. More...
 
class  ExecuteFilterT
 Templated version of ExecuteFilter, for objects which contain geometries and inherit from agx::Referenced, such as agxCollide::Geometry, agx::RigidBody, or agxSDK::Assembly. More...
 
class  FloatPropertyFilter
 Class for matching float properties. More...
 
class  FrictionModelFilter
 Execute filter matching friction model instance of the geometry contact. More...
 
class  GeometryContactMergeSplitAlgorithm
 
class  GeometryContactMergeSplitThresholds
 Specific thresholds used to merge and split given geometry contacts. More...
 
class  GranularContactMergeSplitAlgorithm
 
class  GuiEvent
 Class for storing an Event which will be executed later inside Simulation. More...
 
class  GuiEventAdapter
 Base class for inserting mouse and keyboard event into agxSDK::Simulation. More...
 
class  GuiEventListener
 Derive from this class to implement a listener for simulation GuiEvents. More...
 
class  IntPropertyFilter
 Class for matching int properties. More...
 
class  KinematicPathListener
 Class that will update a rigid body's transformation and velocities based on a given path of transformations and time stamps. More...
 
class  LineContactEdge
 
class  LineContactPosition
 
class  LinkedSegment
 Segment object in a linked structure. More...
 
class  LinkedSegmentIterator
 Optionally unbounded linked structure segment iterator object to iterate segments in a SegmentStructure. More...
 
class  LinkedSegmentRange
 Segment range object for linked structure. More...
 
class  LinkedStructure
 Basic implementation of any structure where bodies are linked/constrained together in a well defined consecutive order. More...
 
class  LinkedStructureComponent
 Base implementation of a component (e.g., specific functionality) in linked structures. More...
 
struct  LinkedStructureObjectData
 Connection back from bodies, constraints etc. More...
 
class  LogListener
 Abstract class for logging properties per time step to a file/standard out. More...
 
class  LongPropertyFilter
 Class for matching Long int properties. More...
 
class  MaterialManager
 Simulation unique manager that handles logics around and parameters in contact materials given two agx::Materials. More...
 
class  MergedBodyMergeSplitAlgorithm
 
class  MergedBodySolverData
 Collection of external (active) interactions, interacting with merged rigid bodies. More...
 
class  MergedState
 Object holding merged bodies and state given a pair of rigid bodies. More...
 
class  MergeIgnoreFilter
 A collection of merge ignore group ID pairs for which merge should be rejected. More...
 
class  MergeIgnoreGroups
 A collection of merge ignore groups, some named and some not. More...
 
class  MergeSplitAction
 Data for merge or split actions created in an implementation of an agxSDK::MergeSplitAlgorithm. More...
 
class  MergeSplitActionContainer
 Object containing merge-split actions to be processed by the agxSDK::MergeSplitHandler. More...
 
class  MergeSplitAlgorithm
 Stateless base class for merge and split of interactions. More...
 
class  MergeSplitHandler
 Base class for a merge split algorithm handling a set of merged bodies. More...
 
class  MergeSplitParallelRaContainerKernel
 
class  MergeSplitParallelReferencedDataKernel
 
struct  MergeSplitPostSolveData
 
class  MergeSplitProperties
 
class  MergeSplitThresholds
 Base class for thresholds/constants/values used in agxSDK::MergeSplitAlgorithm. More...
 
class  MultiCollisionFilterContactHandler
 A step event listener managing N contact event listeners with different filters. More...
 
class  PickHandler
 
struct  PickResult
 
class  PropertyFilter
 A class for filtering contacts based on the geometries' properties (as in: their property container). More...
 
class  RigidBodyLogListener
 Class that will log various properties of rigid bodies. More...
 
class  Simulation
 Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation system agx::DynamicsSystem. More...
 
class  SimulationControl
 A class for adding input and output arguments, to be used when running a co-simulation. More...
 
class  SimulationControlArgument
 Base class for input/output arguments. More...
 
class  SimulationFrameReader
 
class  SimulationFrameWriter
 
class  SimulationObject
 Deprecated, used only for internal examples*. More...
 
class  SimulationParameter
 
class  SimulationParameterT
 
class  SimulationProxy
 Interface class used by internal objects running in parallel. More...
 
class  SimulationSerializer
 class for serializing a simulation into a series for files on disk <filename>_0001.agx etc. More...
 
class  SimulationStatisticsListener
 This class will collect statistics and sizes of a simulation. More...
 
class  StatisticsData
 Store all the various statistics of a simulation. More...
 
class  StatisticsEntries
 
class  StatisticsListenerData
 Class for storing min/max values together with a ID for the associated RigidBody/Geometry. More...
 
class  StepEventListener
 Derive from this class to implement a listener for simulation step events. More...
 
class  StringPropertyFilter
 Class for matching bool properties. More...
 
class  TerrainInstance
 agxTerrain::Terrain instance in a simulation, receiving step and contact callbacks in a controllable way to avoid interference with user step and contact callbacks. More...
 
class  UuidHashCollisionFilter
 Contact event filter matching UUID of instances, such as agxCollide::Geometry, agx::RigidBody, agxWire::Wire, agxCable::Cable, agxVehicle::Track and/or agxTerrain::Terrain. More...
 
class  WireMergeSplitAlgorithm
 
class  WireMergeSplitThresholds
 Specific thresholds used to split and merge objects given wires. More...
 

Typedefs

typedef agx::observer_ptr< const Assembly > AssemblyConstObserver
 
using AssemblyConstRef = agx::ref_ptr< const agxSDK::Assembly >
 
typedef ExecuteFilterT< agxSDK::Assembly, agxSDK::Assembly > AssemblyFilter
 
typedef agx::ref_ptr< AssemblyFilter > AssemblyFilterRef
 
typedef ExecuteFilterT< agxSDK::Assembly, agxCollide::Geometry > AssemblyGeometryFilter
 
typedef agx::ref_ptr< AssemblyGeometryFilter > AssemblyGeometryFilterRef
 
typedef agx::HashVector< agxSDK::Assembly *, agxSDK::AssemblyRef > AssemblyHash
 
typedef agx::observer_ptr< Assembly > AssemblyObserver
 
using AssemblyRef = agx::ref_ptr< agxSDK::Assembly >
 
typedef agx::SetVector< agx::ref_ptr< agxSDK::Assembly > > AssemblyRefSetVector
 
typedef ExecuteFilterT< agxSDK::Assembly, agx::RigidBody > AssemblyRigidBodyFilter
 
typedef agx::ref_ptr< AssemblyRigidBodyFilter > AssemblyRigidBodyFilterRef
 
using CollectionRef = agx::ref_ptr< agxSDK::Collection >
 
typedef agx::observer_ptr< const CollisionGroupFilter > CollisionGroupFilterConstObserver
 
typedef agx::ref_ptr< const CollisionGroupFilter > CollisionGroupFilterConstRef
 
typedef agx::observer_ptr< CollisionGroupFilter > CollisionGroupFilterObserver
 
typedef agx::Vector< CollisionGroupFilterObserver > CollisionGroupFilterObserverVector
 
typedef agx::VectorPOD< CollisionGroupFilter * > CollisionGroupFilterPtrVector
 
typedef agx::ref_ptr< CollisionGroupFilter > CollisionGroupFilterRef
 
typedef agx::Vector< CollisionGroupFilterRef > CollisionGroupFilterRefVector
 
typedef agx::ref_ptr< ConstraintLogListener > ConstraintLogListenerRef
 
typedef agx::observer_ptr< const ConstraintMergeSplitAlgorithm > ConstraintMergeSplitAlgorithmConstObserver
 
typedef agx::ref_ptr< const ConstraintMergeSplitAlgorithm > ConstraintMergeSplitAlgorithmConstRef
 
typedef agx::observer_ptr< ConstraintMergeSplitAlgorithm > ConstraintMergeSplitAlgorithmObserver
 
typedef agx::ref_ptr< ConstraintMergeSplitAlgorithm > ConstraintMergeSplitAlgorithmRef
 
typedef agx::observer_ptr< const ConstraintMergeSplitThresholds > ConstraintMergeSplitThresholdsConstObserver
 
typedef agx::ref_ptr< const ConstraintMergeSplitThresholds > ConstraintMergeSplitThresholdsConstRef
 
typedef agx::observer_ptr< ConstraintMergeSplitThresholds > ConstraintMergeSplitThresholdsObserver
 
typedef agx::ref_ptr< ConstraintMergeSplitThresholds > ConstraintMergeSplitThresholdsRef
 
typedef agx::ref_ptr< ContactEventListener > ContactEventListenerRef
 
typedef agx::observer_ptr< const ContactFilterReducerListener > ContactFilterReducerListenerConstObserver
 
typedef agx::ref_ptr< const ContactFilterReducerListener > ContactFilterReducerListenerConstRef
 
typedef agx::observer_ptr< ContactFilterReducerListener > ContactFilterReducerListenerObserver
 
typedef agx::ref_ptr< ContactFilterReducerListener > ContactFilterReducerListenerRef
 
typedef agx::ContactMaterial *(* ContactMaterialFunction) (const agx::Material *m1, const agx::Material *m2)
 
typedef agx::observer_ptr< const EnergyManager > EnergyManagerConstObserver
 
typedef agx::ref_ptr< const EnergyManager > EnergyManagerConstRef
 
typedef agx::observer_ptr< EnergyManager > EnergyManagerObserver
 
typedef agx::ref_ptr< EnergyManager > EnergyManagerRef
 
typedef agx::observer_ptr< const EventListener > EventListenerConstObserver
 
typedef agx::ref_ptr< const EventListener > EventListenerConstRef
 
typedef agx::observer_ptr< EventListener > EventListenerObserver
 
typedef agx::Vector< EventListener * > EventListenerPtrVector
 
typedef agx::ref_ptr< EventListener > EventListenerRef
 
typedef agx::SetVector< agx::ref_ptr< agxSDK::EventListener > > EventListenerRefSetVector
 
typedef agx::observer_ptr< const ExecuteFilter > ExecuteFilterConstObserver
 
typedef agx::ref_ptr< const ExecuteFilter > ExecuteFilterConstRef
 
typedef agx::observer_ptr< ExecuteFilter > ExecuteFilterObserver
 
typedef agx::ref_ptr< ExecuteFilter > ExecuteFilterRef
 
typedef agx::observer_ptr< const GeometryContactMergeSplitAlgorithm > GeometryContactMergeSplitAlgorithmConstObserver
 
typedef agx::ref_ptr< const GeometryContactMergeSplitAlgorithm > GeometryContactMergeSplitAlgorithmConstRef
 
typedef agx::observer_ptr< GeometryContactMergeSplitAlgorithm > GeometryContactMergeSplitAlgorithmObserver
 
typedef agx::ref_ptr< GeometryContactMergeSplitAlgorithm > GeometryContactMergeSplitAlgorithmRef
 
typedef agx::observer_ptr< const GeometryContactMergeSplitThresholds > GeometryContactMergeSplitThresholdsConstObserver
 
typedef agx::ref_ptr< const GeometryContactMergeSplitThresholds > GeometryContactMergeSplitThresholdsConstRef
 
typedef agx::observer_ptr< GeometryContactMergeSplitThresholds > GeometryContactMergeSplitThresholdsObserver
 
typedef agx::ref_ptr< GeometryContactMergeSplitThresholds > GeometryContactMergeSplitThresholdsRef
 
typedef ExecuteFilterT< agxCollide::Geometry, agxCollide::Geometry > GeometryFilter
 
typedef agx::ref_ptr< GeometryFilter > GeometryFilterRef
 
typedef agx::observer_ptr< const GranularContactMergeSplitAlgorithm > GranularContactMergeSplitAlgorithmConstObserver
 
typedef agx::ref_ptr< const GranularContactMergeSplitAlgorithm > GranularContactMergeSplitAlgorithmConstRef
 
typedef agx::observer_ptr< GranularContactMergeSplitAlgorithm > GranularContactMergeSplitAlgorithmObserver
 
typedef agx::ref_ptr< GranularContactMergeSplitAlgorithm > GranularContactMergeSplitAlgorithmRef
 
typedef agx::ref_ptr< GuiEventListener > GuiEventListenerRef
 
typedef agx::ref_ptr< KinematicPathListener > KinematicPathListenerRef
 
typedef agx::observer_ptr< const LinkedSegment > LinkedSegmentConstObserver
 
typedef agx::ref_ptr< const LinkedSegment > LinkedSegmentConstRef
 
using LinkedSegmentContainer = agx::Vector< agxSDK::LinkedSegmentRef >
 
typedef agx::observer_ptr< LinkedSegment > LinkedSegmentObserver
 
typedef agx::ref_ptr< LinkedSegment > LinkedSegmentRef
 
typedef agx::observer_ptr< const LinkedStructureComponent > LinkedStructureComponentConstObserver
 
typedef agx::ref_ptr< const LinkedStructureComponent > LinkedStructureComponentConstRef
 
using LinkedStructureComponentContainer = agx::Vector< LinkedStructureComponentRef >
 
typedef agx::observer_ptr< LinkedStructureComponent > LinkedStructureComponentObserver
 
typedef agx::ref_ptr< LinkedStructureComponent > LinkedStructureComponentRef
 
typedef agx::observer_ptr< const LinkedStructure > LinkedStructureConstObserver
 
typedef agx::ref_ptr< const LinkedStructure > LinkedStructureConstRef
 
typedef agx::observer_ptr< LinkedStructure > LinkedStructureObserver
 
typedef agx::ref_ptr< LinkedStructure > LinkedStructureRef
 
typedef agx::ref_ptr< LogListener > LogListenerRef
 
typedef agx::observer_ptr< const MaterialManager > MaterialManagerConstObserver
 
typedef agx::ref_ptr< const MaterialManager > MaterialManagerConstRef
 
typedef agx::observer_ptr< MaterialManager > MaterialManagerObserver
 
typedef agx::ref_ptr< MaterialManager > MaterialManagerRef
 
typedef agx::SymmetricPair< const agx::Material * > MaterialPair
 
typedef agx::QuadraticProbingHashTable< SymmetricMaterialPair, agx::ContactMaterialRef > MaterialSPairContactMaterialRefTable
 
typedef agx::observer_ptr< const MergeSplitAlgorithm > MergeSplitAlgorithmConstObserver
 
typedef agx::ref_ptr< const MergeSplitAlgorithm > MergeSplitAlgorithmConstRef
 
typedef agx::observer_ptr< MergeSplitAlgorithm > MergeSplitAlgorithmObserver
 
typedef agx::ref_ptr< MergeSplitAlgorithm > MergeSplitAlgorithmRef
 
typedef agx::observer_ptr< const MergeSplitProperties > MergeSplitPropertiesConstObserver
 
typedef agx::ref_ptr< const MergeSplitProperties > MergeSplitPropertiesConstRef
 
typedef agx::observer_ptr< MergeSplitProperties > MergeSplitPropertiesObserver
 
typedef agx::ref_ptr< MergeSplitProperties > MergeSplitPropertiesRef
 
typedef agx::observer_ptr< const MergeSplitThresholds > MergeSplitThresholdsConstObserver
 
typedef agx::ref_ptr< const MergeSplitThresholds > MergeSplitThresholdsConstRef
 
typedef agx::observer_ptr< MergeSplitThresholds > MergeSplitThresholdsObserver
 
typedef agx::ref_ptr< MergeSplitThresholds > MergeSplitThresholdsRef
 
typedef agx::observer_ptr< const MultiCollisionFilterContactHandler > MultiCollisionFilterContactHandlerConstObserver
 
typedef agx::ref_ptr< const MultiCollisionFilterContactHandler > MultiCollisionFilterContactHandlerConstRef
 
typedef agx::observer_ptr< MultiCollisionFilterContactHandler > MultiCollisionFilterContactHandlerObserver
 
typedef agx::ref_ptr< MultiCollisionFilterContactHandler > MultiCollisionFilterContactHandlerRef
 
typedef agx::ref_ptr< PickHandler > PickHandlerRef
 
typedef agx::ref_ptr< PropertyFilter > PropertyFilterRef
 
typedef StatisticsListenerData< agx::Real > RealStatisticsListenerData
 
typedef ExecuteFilterT< agx::RigidBody, agx::RigidBody > RigidBodyFilter
 
typedef agx::ref_ptr< RigidBodyFilter > RigidBodyFilterRef
 
typedef ExecuteFilterT< agx::RigidBody, agxCollide::Geometry > RigidBodyGeometryFilter
 
typedef agx::ref_ptr< RigidBodyGeometryFilter > RigidBodyGeometryFilterRef
 
typedef agx::ref_ptr< RigidBodyLogListener > RigidBodyLogListenerRef
 
typedef agx::observer_ptr< const Simulation > SimulationConstObserver
 
typedef agx::ref_ptr< const Simulation > SimulationConstRef
 
typedef agx::observer_ptr< const SimulationControlArgument > SimulationControlArgumentConstObserver
 
typedef agx::ref_ptr< const SimulationControlArgument > SimulationControlArgumentConstRef
 
typedef agx::observer_ptr< SimulationControlArgument > SimulationControlArgumentObserver
 
typedef agx::ref_ptr< SimulationControlArgument > SimulationControlArgumentRef
 
typedef agx::observer_ptr< const SimulationFrameReader > SimulationFrameReaderConstObserver
 
typedef agx::ref_ptr< const SimulationFrameReader > SimulationFrameReaderConstRef
 
typedef agx::observer_ptr< SimulationFrameReader > SimulationFrameReaderObserver
 
typedef agx::ref_ptr< SimulationFrameReader > SimulationFrameReaderRef
 
typedef agx::observer_ptr< const SimulationFrameWriter > SimulationFrameWriterConstObserver
 
typedef agx::ref_ptr< const SimulationFrameWriter > SimulationFrameWriterConstRef
 
typedef agx::observer_ptr< SimulationFrameWriter > SimulationFrameWriterObserver
 
typedef agx::ref_ptr< SimulationFrameWriter > SimulationFrameWriterRef
 
typedef agx::observer_ptr< Simulation > SimulationObserver
 
typedef agx::observer_ptr< const SimulationParameter > SimulationParameterConstObserver
 
typedef agx::ref_ptr< const SimulationParameter > SimulationParameterConstRef
 
typedef agx::observer_ptr< SimulationParameter > SimulationParameterObserver
 
typedef agx::Vector< SimulationParameterObserver > SimulationParameterObserverVector
 
typedef agx::VectorPOD< SimulationParameter * > SimulationParameterPtrVector
 
typedef agx::ref_ptr< SimulationParameter > SimulationParameterRef
 
typedef agx::Vector< SimulationParameterRef > SimulationParameterRefVector
 
typedef agx::ref_ptr< SimulationProxy > SimulationProxyRef
 
using SimulationRef = agx::ref_ptr< Simulation >
 
typedef agx::ref_ptr< SimulationSerializer > SimulationSerializerRef
 
typedef agx::ref_ptr< SimulationStatisticsListener > SimulationStatisticsListenerRef
 
typedef agx::ref_ptr< StatisticsData > StatisticsDataRef
 
typedef agx::observer_ptr< const StepEventListener > StepEventListenerConstObserver
 
typedef agx::ref_ptr< const StepEventListener > StepEventListenerConstRef
 
typedef agx::observer_ptr< StepEventListener > StepEventListenerObserver
 
typedef agx::Vector< StepEventListenerObserver > StepEventListenerObserverVector
 
typedef agx::VectorPOD< StepEventListener * > StepEventListenerPtrVector
 
typedef agx::ref_ptr< StepEventListener > StepEventListenerRef
 
typedef agx::Vector< StepEventListenerRef > StepEventListenerRefVector
 
typedef agx::HashTable< agx::String, agx::MaterialRef > StringMaterialRefTable
 
typedef agx::SymmetricPair< const agx::Material *> SymmetricMaterialPair
 
typedef StatisticsListenerData< agx::UInt32 > UInt32StatisticsListenerData
 
typedef agx::observer_ptr< const WireMergeSplitThresholds > WireMergeSplitThresholdsConstObserver
 
typedef agx::ref_ptr< const WireMergeSplitThresholds > WireMergeSplitThresholdsConstRef
 
typedef agx::observer_ptr< WireMergeSplitThresholds > WireMergeSplitThresholdsObserver
 
typedef agx::ref_ptr< WireMergeSplitThresholds > WireMergeSplitThresholdsRef
 

Functions

static agx::Vec3 calculateBoxOffset (const agx::Vec3 &shapeEdge, const agx::Vec3 &shapeContactPosition, agx::Real radius)
 
static agx::Vec3 calculateCylinderOffset (const agx::Vec3 &shapeEdge, const agx::Vec3 &shapeContactPosition, agx::Real radius)
 
static agx::Vec3 calculateMeshOffset (const agxCollide::Mesh *mesh, const size_t triangleIndex, const uint8_t edgeIndex, const agx::Vec3 &, const agx::Real radius)
 
static void copyVectors (agx::Vec3Vector &newContactShapeTranslates, const agx::Vec3Vector &newContactShapeTranslatesB, agx::Vector< size_t > &newTriangleIndices, const agx::Vector< size_t > &newTriangleIndicesB, agx::Vector< size_t > &newEdgeIndices, const agx::Vector< size_t > &newEdgeIndicesB)
 
static void fillEdgeVector (agx::Vector< std::pair< agx::Vec3, agx::Vec3 > > &v, const agx::Vec3 &halfExtent)
 
static agx::Real findAdjustmentForMeshEdge (const agx::Vec3 &lineEndW, const agx::Vec3 &lineStartW, const agx::Vec3 &edgeStart, const agx::Vec3 &edgeEnd, agx::Real lineRadius)
 Shorten the movement range due to neighboring triangles. More...
 
static agx::Real findDistanceFromPointToLine (const agx::Vec3 &L1, const agx::Vec3 &L2, const agx::Vec3 &P)
 
static void findMostParallelEdgeAmongNeighboringTriangles (const agxCollide::Mesh *mesh, const agx::Vec3 &, const size_t triangleIndex, const uint8_t edgeIndex, size_t &tempNewTriangleStartIndex, size_t &tempNewEdgeLocalStartIndex, const bool atBegin)
 
static bool findPlaneLineSegmentIntersection (const agx::Vec3 &A, const agx::Vec3 &B, const agx::Vec3 &planeOrigin, const agx::Vec3 &planeNormal, agx::Real nearEndsThreshold, agx::Vec3 &Q)
 
static bool findSegmentCircleIntersection3D (const agx::Vec3 &A, const agx::Vec3 &B, const agx::Vec3 &circleOrigin, const agx::Vec3 &circleNormal, agx::Real circleRadius, agx::Real nearEndsThreshold, agx::Vec3 &intersectionPoint)
 
static bool findSegmentCircleIntersections2D (const agx::Vec3 &A, const agx::Vec3 &B, const agx::Vec3 &circlePos, agx::Real radius, agx::Vec3 &Q1, agx::Vec3 &Q2, bool &Q1Found, bool &Q2Found, const agx::Real epsilon=agx::AGX_EQUIVALENT_EPSILON)
 
static uint8_t getEdgeEndLocalVertexIndex (const uint8_t localEdgeIndex, const bool atBegin)
 
static uint8_t getEdgeStartLocalVertexIndex (const uint8_t localEdgeIndex, const bool atBegin)
 
static agx::AffineMatrix4x4 getFuturePosition (const agx::Vec3 &velocity, const agx::Vec3 &angularVelocity, const agx::Vec3 &position, const agx::Quat &rotation, agx::Real time)
 
static uint8_t getLocalEdgeIndexFromVertexIndices (const size_t iteratedVertexIndex, const size_t oppositeVertexIndex)
 
static agx::Vec3 getProjection (const agx::Vec3 contactPoint, agx::Vec3 edge, bool normalizedEdge=false)
 
static agx::Vec3 getSigned (const agx::Vec3 &v)
 
static agx::Real getTotalAngleShapeCoordinates (agx::Vec3 edge, agx::Vec3 contactToCenter, const agx::Vec3 &pos1, const agx::Vec3 &pos2, const agx::Vec3 &pos3, bool &onSameEdge)
 
static bool inBound (agx::Real val, agx::Real boundLower, agx::Real boundUpper, agx::Real threshold=agx::Real(1E-6))
 
template<>
bool matchFilter (const agxCollide::Geometry *geo, const agxSDK::Assembly *a)
 
template<>
bool matchFilter (const agxCollide::Geometry *geo1, const agxCollide::Geometry *geo2)
 
template<>
bool matchFilter (const agxCollide::Geometry *geo, const agx::RigidBody *rb)
 
template<typename T >
bool matchFilter (const agxCollide::Geometry *, const T *)
 For templated version of ExecuteFilter. Has to be specialized for each class. More...
 
static bool pointInsideCircle (const agx::Vec3 &point, const agx::Vec3 &circleOrigin, agx::Real radius)
 
static agx::Real scalarTripleProduct (const agx::Vec3 &p, const agx::Vec3 &q, const agx::Vec3 &r)
 

Detailed Description

The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simulation system including Material, event listeners etc.

Typedef Documentation

◆ AssemblyConstObserver

Definition at line 41 of file Assembly.h.

◆ AssemblyConstRef

Definition at line 55 of file InverseDynamics.h.

◆ AssemblyFilter

◆ AssemblyFilterRef

◆ AssemblyGeometryFilter

◆ AssemblyGeometryFilterRef

◆ AssemblyHash

◆ AssemblyObserver

Definition at line 41 of file Assembly.h.

◆ AssemblyRef

Definition at line 54 of file InverseDynamics.h.

◆ AssemblyRefSetVector

◆ AssemblyRigidBodyFilter

◆ AssemblyRigidBodyFilterRef

◆ CollectionRef

Definition at line 58 of file InverseDynamics.h.

◆ CollisionGroupFilterConstObserver

◆ CollisionGroupFilterConstRef

◆ CollisionGroupFilterObserver

◆ CollisionGroupFilterObserverVector

◆ CollisionGroupFilterPtrVector

◆ CollisionGroupFilterRef

◆ CollisionGroupFilterRefVector

◆ ConstraintLogListenerRef

◆ ConstraintMergeSplitAlgorithmConstObserver

◆ ConstraintMergeSplitAlgorithmConstRef

◆ ConstraintMergeSplitAlgorithmObserver

◆ ConstraintMergeSplitAlgorithmRef

◆ ConstraintMergeSplitThresholdsConstObserver

◆ ConstraintMergeSplitThresholdsConstRef

◆ ConstraintMergeSplitThresholdsObserver

◆ ConstraintMergeSplitThresholdsRef

◆ ContactEventListenerRef

◆ ContactFilterReducerListenerConstObserver

◆ ContactFilterReducerListenerConstRef

◆ ContactFilterReducerListenerObserver

◆ ContactFilterReducerListenerRef

◆ ContactMaterialFunction

typedef agx::ContactMaterial*(* agxSDK::ContactMaterialFunction) (const agx::Material *m1, const agx::Material *m2)

Definition at line 37 of file MaterialManager.h.

◆ EnergyManagerConstObserver

◆ EnergyManagerConstRef

◆ EnergyManagerObserver

◆ EnergyManagerRef

◆ EventListenerConstObserver

◆ EventListenerConstRef

Definition at line 31 of file EventListener.h.

◆ EventListenerObserver

◆ EventListenerPtrVector

◆ EventListenerRef

Definition at line 31 of file EventListener.h.

◆ EventListenerRefSetVector

◆ ExecuteFilterConstObserver

◆ ExecuteFilterConstRef

Definition at line 28 of file ExecuteFilter.h.

◆ ExecuteFilterObserver

◆ ExecuteFilterRef

Definition at line 28 of file ExecuteFilter.h.

◆ GeometryContactMergeSplitAlgorithmConstObserver

◆ GeometryContactMergeSplitAlgorithmConstRef

◆ GeometryContactMergeSplitAlgorithmObserver

◆ GeometryContactMergeSplitAlgorithmRef

◆ GeometryContactMergeSplitThresholdsConstObserver

◆ GeometryContactMergeSplitThresholdsConstRef

◆ GeometryContactMergeSplitThresholdsObserver

◆ GeometryContactMergeSplitThresholdsRef

◆ GeometryFilter

◆ GeometryFilterRef

◆ GranularContactMergeSplitAlgorithmConstObserver

◆ GranularContactMergeSplitAlgorithmConstRef

◆ GranularContactMergeSplitAlgorithmObserver

◆ GranularContactMergeSplitAlgorithmRef

◆ GuiEventListenerRef

◆ KinematicPathListenerRef

◆ LinkedSegmentConstObserver

◆ LinkedSegmentConstRef

Definition at line 28 of file LinkedSegment.h.

◆ LinkedSegmentContainer

◆ LinkedSegmentObserver

◆ LinkedSegmentRef

Definition at line 28 of file LinkedSegment.h.

◆ LinkedStructureComponentConstObserver

◆ LinkedStructureComponentConstRef

◆ LinkedStructureComponentContainer

◆ LinkedStructureComponentObserver

◆ LinkedStructureComponentRef

◆ LinkedStructureConstObserver

◆ LinkedStructureConstRef

◆ LinkedStructureObserver

◆ LinkedStructureRef

◆ LogListenerRef

Definition at line 86 of file LogListener.h.

◆ MaterialManagerConstObserver

◆ MaterialManagerConstRef

◆ MaterialManagerObserver

◆ MaterialManagerRef

◆ MaterialPair

Definition at line 36 of file MaterialManager.h.

◆ MaterialSPairContactMaterialRefTable

◆ MergeSplitAlgorithmConstObserver

◆ MergeSplitAlgorithmConstRef

◆ MergeSplitAlgorithmObserver

◆ MergeSplitAlgorithmRef

◆ MergeSplitPropertiesConstObserver

◆ MergeSplitPropertiesConstRef

◆ MergeSplitPropertiesObserver

◆ MergeSplitPropertiesRef

◆ MergeSplitThresholdsConstObserver

◆ MergeSplitThresholdsConstRef

◆ MergeSplitThresholdsObserver

◆ MergeSplitThresholdsRef

◆ MultiCollisionFilterContactHandlerConstObserver

◆ MultiCollisionFilterContactHandlerConstRef

◆ MultiCollisionFilterContactHandlerObserver

◆ MultiCollisionFilterContactHandlerRef

◆ PickHandlerRef

◆ PropertyFilterRef

◆ RealStatisticsListenerData

◆ RigidBodyFilter

◆ RigidBodyFilterRef

◆ RigidBodyGeometryFilter

◆ RigidBodyGeometryFilterRef

◆ RigidBodyLogListenerRef

◆ SimulationConstObserver

◆ SimulationConstRef

Definition at line 26 of file StatisticsTrack.h.

◆ SimulationControlArgumentConstObserver

◆ SimulationControlArgumentConstRef

◆ SimulationControlArgumentObserver

◆ SimulationControlArgumentRef

◆ SimulationFrameReaderConstObserver

◆ SimulationFrameReaderConstRef

◆ SimulationFrameReaderObserver

◆ SimulationFrameReaderRef

◆ SimulationFrameWriterConstObserver

◆ SimulationFrameWriterConstRef

◆ SimulationFrameWriterObserver

◆ SimulationFrameWriterRef

◆ SimulationObserver

◆ SimulationParameterConstObserver

◆ SimulationParameterConstRef

◆ SimulationParameterObserver

◆ SimulationParameterObserverVector

◆ SimulationParameterPtrVector

◆ SimulationParameterRef

◆ SimulationParameterRefVector

◆ SimulationProxyRef

◆ SimulationRef

Definition at line 26 of file StatisticsTrack.h.

◆ SimulationSerializerRef

◆ SimulationStatisticsListenerRef

◆ StatisticsDataRef

◆ StepEventListenerConstObserver

◆ StepEventListenerConstRef

◆ StepEventListenerObserver

◆ StepEventListenerObserverVector

◆ StepEventListenerPtrVector

◆ StepEventListenerRef

◆ StepEventListenerRefVector

◆ StringMaterialRefTable

◆ SymmetricMaterialPair

◆ UInt32StatisticsListenerData

◆ WireMergeSplitThresholdsConstObserver

◆ WireMergeSplitThresholdsConstRef

◆ WireMergeSplitThresholdsObserver

◆ WireMergeSplitThresholdsRef

Function Documentation

◆ calculateBoxOffset()

static agx::Vec3 agxSDK::calculateBoxOffset ( const agx::Vec3 &  shapeEdge,
const agx::Vec3 &  shapeContactPosition,
agx::Real  radius 
)
inlinestatic

◆ calculateCylinderOffset()

static agx::Vec3 agxSDK::calculateCylinderOffset ( const agx::Vec3 &  shapeEdge,
const agx::Vec3 &  shapeContactPosition,
agx::Real  radius 
)
inlinestatic

◆ calculateMeshOffset()

static agx::Vec3 agxSDK::calculateMeshOffset ( const agxCollide::Mesh *  mesh,
const size_t  triangleIndex,
const uint8_t  edgeIndex,
const agx::Vec3 &  ,
const agx::Real  radius 
)
inlinestatic

◆ copyVectors()

static void agxSDK::copyVectors ( agx::Vec3Vector &  newContactShapeTranslates,
const agx::Vec3Vector &  newContactShapeTranslatesB,
agx::Vector< size_t > &  newTriangleIndices,
const agx::Vector< size_t > &  newTriangleIndicesB,
agx::Vector< size_t > &  newEdgeIndices,
const agx::Vector< size_t > &  newEdgeIndicesB 
)
inlinestatic

◆ fillEdgeVector()

static void agxSDK::fillEdgeVector ( agx::Vector< std::pair< agx::Vec3, agx::Vec3 > > &  v,
const agx::Vec3 &  halfExtent 
)
inlinestatic

◆ findAdjustmentForMeshEdge()

static agx::Real agxSDK::findAdjustmentForMeshEdge ( const agx::Vec3 &  lineEndW,
const agx::Vec3 &  lineStartW,
const agx::Vec3 &  edgeStart,
const agx::Vec3 &  edgeEnd,
agx::Real  lineRadius 
)
inlinestatic

Shorten the movement range due to neighboring triangles.

This function does not consider if the actual edge is in start - end direction, all it assumes is that the two startpositions is at same position

Parameters
lineEndW- end position for the edge linecontact is located on
lineStartW- start position for the edge linecontact is located on
edgeStart- start position for edge on next triangle ( should be same position as lineStartW )
edgeEnd- end position for edge on next triangle
Returns
t - the clamp position on the parametrized edge between lineEndW (0) and lineStartW( 0)

Definition at line 648 of file LineCollisionUtils.h.

References agx::clamp(), and agx::Vec3T< T >::normalize().

◆ findDistanceFromPointToLine()

static agx::Real agxSDK::findDistanceFromPointToLine ( const agx::Vec3 &  L1,
const agx::Vec3 &  L2,
const agx::Vec3 &  P 
)
inlinestatic

◆ findMostParallelEdgeAmongNeighboringTriangles()

◆ findPlaneLineSegmentIntersection()

static bool agxSDK::findPlaneLineSegmentIntersection ( const agx::Vec3 &  A,
const agx::Vec3 &  B,
const agx::Vec3 &  planeOrigin,
const agx::Vec3 &  planeNormal,
agx::Real  nearEndsThreshold,
agx::Vec3 &  Q 
)
static

◆ findSegmentCircleIntersection3D()

static bool agxSDK::findSegmentCircleIntersection3D ( const agx::Vec3 &  A,
const agx::Vec3 &  B,
const agx::Vec3 &  circleOrigin,
const agx::Vec3 &  circleNormal,
agx::Real  circleRadius,
agx::Real  nearEndsThreshold,
agx::Vec3 &  intersectionPoint 
)
inlinestatic

Definition at line 257 of file LineCollisionUtils.h.

References agx::equalsZero(), and findPlaneLineSegmentIntersection().

◆ findSegmentCircleIntersections2D()

static bool agxSDK::findSegmentCircleIntersections2D ( const agx::Vec3 &  A,
const agx::Vec3 &  B,
const agx::Vec3 &  circlePos,
agx::Real  radius,
agx::Vec3 &  Q1,
agx::Vec3 &  Q2,
bool &  Q1Found,
bool &  Q2Found,
const agx::Real  epsilon = agx::AGX_EQUIVALENT_EPSILON 
)
inlinestatic

◆ getEdgeEndLocalVertexIndex()

static uint8_t agxSDK::getEdgeEndLocalVertexIndex ( const uint8_t  localEdgeIndex,
const bool  atBegin 
)
inlinestatic

Definition at line 456 of file LineCollisionUtils.h.

References getEdgeStartLocalVertexIndex().

◆ getEdgeStartLocalVertexIndex()

static uint8_t agxSDK::getEdgeStartLocalVertexIndex ( const uint8_t  localEdgeIndex,
const bool  atBegin 
)
inlinestatic

◆ getFuturePosition()

static agx::AffineMatrix4x4 agxSDK::getFuturePosition ( const agx::Vec3 &  velocity,
const agx::Vec3 &  angularVelocity,
const agx::Vec3 &  position,
const agx::Quat &  rotation,
agx::Real  time 
)
inlinestatic

◆ getLocalEdgeIndexFromVertexIndices()

static uint8_t agxSDK::getLocalEdgeIndexFromVertexIndices ( const size_t  iteratedVertexIndex,
const size_t  oppositeVertexIndex 
)
inlinestatic

Definition at line 469 of file LineCollisionUtils.h.

Referenced by findMostParallelEdgeAmongNeighboringTriangles().

◆ getProjection()

static agx::Vec3 agxSDK::getProjection ( const agx::Vec3  contactPoint,
agx::Vec3  edge,
bool  normalizedEdge = false 
)
inlinestatic

Definition at line 47 of file LineCollisionUtils.h.

References agx::Vec3T< T >::normalize().

◆ getSigned()

static agx::Vec3 agxSDK::getSigned ( const agx::Vec3 &  v)
inlinestatic

◆ getTotalAngleShapeCoordinates()

static agx::Real agxSDK::getTotalAngleShapeCoordinates ( agx::Vec3  edge,
agx::Vec3  contactToCenter,
const agx::Vec3 &  pos1,
const agx::Vec3 &  pos2,
const agx::Vec3 &  pos3,
bool &  onSameEdge 
)
inlinestatic

◆ inBound()

static bool agxSDK::inBound ( agx::Real  val,
agx::Real  boundLower,
agx::Real  boundUpper,
agx::Real  threshold = agx::Real( 1E-6 ) 
)
inlinestatic

Definition at line 30 of file LineCollisionUtils.h.

Referenced by findPlaneLineSegmentIntersection().

◆ matchFilter() [1/4]

template<>
bool agxSDK::matchFilter ( const agxCollide::Geometry *  geo,
const agxSDK::Assembly *  a 
)
inline

◆ matchFilter() [2/4]

template<>
bool agxSDK::matchFilter ( const agxCollide::Geometry *  geo1,
const agxCollide::Geometry *  geo2 
)
inline

Definition at line 32 of file GeometryFilter.h.

◆ matchFilter() [3/4]

template<>
bool agxSDK::matchFilter ( const agxCollide::Geometry *  geo,
const agx::RigidBody *  rb 
)
inline

Definition at line 34 of file RigidBodyFilter.h.

References agxCollide::Geometry::getRigidBody().

◆ matchFilter() [4/4]

template<typename T >
bool agxSDK::matchFilter ( const agxCollide::Geometry *  ,
const T *   
)
inline

For templated version of ExecuteFilter. Has to be specialized for each class.

◆ pointInsideCircle()

static bool agxSDK::pointInsideCircle ( const agx::Vec3 &  point,
const agx::Vec3 &  circleOrigin,
agx::Real  radius 
)
inlinestatic

Definition at line 268 of file LineCollisionUtils.h.

References agx::Vec3T< T >::distance2(), agx::equalsZero(), and agx::leq().

◆ scalarTripleProduct()

static agx::Real agxSDK::scalarTripleProduct ( const agx::Vec3 &  p,
const agx::Vec3 &  q,
const agx::Vec3 &  r 
)
inlinestatic

Definition at line 42 of file LineCollisionUtils.h.