AGXDynamics  2.31.1.0
agxModel::DynamicHeightFieldSimulation Class Reference

#include <TerrainUtils.h>

+ Inheritance diagram for agxModel::DynamicHeightFieldSimulation:

Public Types

enum  CleanupSelectionMask {
  STEP_LISTENERS = EventManager::STEP_LISTENERS, CONTACT_LISTENERS = EventManager::CONTACT_LISTENERS, GUI_LISTENERS = EventManager::GUI_LISTENERS, LISTENERS = EventManager::LISTENERS,
  SYSTEM = 0x200, SPACE = 0x400, MATERIALS = 0x800, ASSEMBLIES = 0x1000,
  PARTICLE_SYSTEMS = 0x2000, CONTACT_DATA = 0x4000, PLOTSYSTEM = 0x8000, CLEANUP_ALL = LISTENERS | SYSTEM | SPACE | MATERIALS | ASSEMBLIES | PARTICLE_SYSTEMS | CONTACT_DATA | PLOTSYSTEM
}
 Specification of what should be cleaned up from a simulation during a call to the cleanup() method. More...
 
typedef agx::Event2< Simulation *, agx::Constraint * > ConstraintEvent
 
typedef agx::Event2< Simulation *, agx::ContactMaterial * > ContactMaterialEvent
 
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::Event2< Simulation *, agxCollide::Geometry * > GeometryEvent
 
typedef agx::Event2< Simulation *, agx::Journal * > JournalAttachEvent
 
typedef agx::Event2< Simulation *, agx::Material * > MaterialEvent
 
typedef Event2< Component *, Object * > ObjectEvent
 Event when adding removing child objects. More...
 
enum  ReadSelectionMask {
  READ_NONE = 0x0, READ_TIMESTEP = 0x1, READ_TIMESTAMP = 0x2, READ_GRAVITY = 0x4,
  READ_SOLVER = 0x8, READ_ALL = READ_TIMESTEP + READ_TIMESTAMP + READ_GRAVITY + READ_SOLVER, READ_DEFAULT = READ_TIMESTEP + READ_GRAVITY + READ_SOLVER
}
 Enum for specifying some additional, part of a simulation that can be restored from a serialization. More...
 
typedef agx::Event2< Simulation *, agx::RigidBody * > RigidBodyEvent
 
typedef Callback1< Object * > TraverseCallback
 

Public Member Functions

 DynamicHeightFieldSimulation ()
 
bool add (agx::Material *material)
 Add a material to the simulation. More...
 
bool add (agx::ContactMaterial *material)
 Add an explicit contact material to the simulation. More...
 
bool add (agxCollide::Geometry *geometry)
 
bool add (agx::RigidBody *body, bool addGeometries=true)
 
bool add (agx::MergedBody *mergedBody)
 Add a merged body to this simulation. More...
 
bool add (agx::Constraint *constraint)
 Add a constraint to the simulation. More...
 
bool add (agx::Interaction *interaction)
 Add an Interaction to the Simulation. More...
 
bool add (agxSDK::Assembly *assembly, bool addAllEntries=true)
 Add an assembly to the simulation including all its parts. More...
 
bool add (agx::Component *subComponent)
 Add a sub component to the Simulation. More...
 
bool add (agx::ObserverFrame *observerFrame)
 Add a ObserverFrame to the Simulation. More...
 
bool add (agxControl::Action *action)
 Register an action to this simulation. More...
 
bool add (agxControl::Operation *operation)
 Register an operation to this simulation. More...
 
bool add (agx::ParticleSystem *particleSystem)
 Add a particle system to the simulation. More...
 
bool add (agx::Emitter *emitter)
 Add an emitter to the Simulation. More...
 
bool add (agx::ParticleContactSensor *sensor)
 Add a particle contact sensor to the Simulation. More...
 
bool add (agxSDK::TerrainInstance *terrain)
 Add terrain (agxTerrain::Terrain) instance to this simulation. More...
 
bool add (agxSDK::EventListener *listener, int priority=EventManager::DEFAULT_PRIORITY)
 Add an event listener The listener will get a call to its addNotification method if adding was successful. More...
 
bool add (agxStream::Serializable *object)
 Add an object as a serializable object. More...
 
bool add (agxSDK::SimulationParameter *parameter)
 Add a parameter to the simulation configuration interface. More...
 
bool addEventListener (agxSDK::EventListener *listener, int priority=EventManager::DEFAULT_PRIORITY)
 Add an event listener The listener will get a call to its addNotification method if adding was successful. More...
 
void addListener (EventListener *listener)
 
virtual void addObject (agx::Object *object, bool assignContext=true)
 Add an object to the component. More...
 
bool addRestoreListener (agxStream::RestoreListener *listener)
 Add a restore listener to the Simulation. More...
 
void addSolveModel (agx::SolveModel *model)
 
 AGX_DECLARE_VECTOR_TYPES (Event)
 
bool allowCreateParticles () const
 
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
 
bool breakStepTo ()
 Break an initiated stepTo() after the current simulation step. More...
 
virtual void buildNavigationTree (agxJson::Value &eNode) const override
 
void cleanup (agx::UInt selection=CLEANUP_ALL, bool fast=false)
 This method will remove/cleanup selected parts of the simulation. More...
 
void clearContactData ()
 Clears contact data in the simulation. More...
 
void commit (agxSDK::SimulationProxy *simulationProxy)
 Internal method. More...
 
virtual void configure (TiXmlElement *eComponent) override
 
void configure (Model *model)
 
bool contains (const agx::Component *object) const
 Is the object contained in the simulation? More...
 
void createRenderTask ()
 
void dumpMemoryUsage (const agx::String &filePath="TaskTimers.xml")
 Print current agxData buffer allocations to a file. More...
 
void dumpTaskTimers (const agx::String &filePath="BufferAllocations.xml")
 Print current task performance timers to a file. More...
 
agx::String fullName () const
 
agx::String fullPath () const
 
agx::String fullPath (const agx::Object *root) const
 
void garbageCollect ()
 Use with caution! More...
 
agxControl::ActionManager * getActionManager ()
 Gets the action manager. More...
 
const AssemblyHash & getAssemblies () const
 
const agxSDK::Assembly * getAssembly (const agx::Name &name) const
 Find (linear search) and return named Assembly. More...
 
agxSDK::Assembly * getAssembly (const agx::Name &name)
 Find (linear search) and return named Assembly. More...
 
const agxSDK::Assembly * getAssembly (const agx::Uuid &uuid) const
 Find (linear search) and return an Assembly matching the given uuid. More...
 
agxSDK::Assembly * getAssembly (const agx::Uuid &uuid)
 Find (linear search) and return an Assembly matching the given uuid. More...
 
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
 
agx::Clock * getClock ()
 
const agx::Clock * getClock () const
 
const agx::Constraint * getConstraint (const agx::Uuid &uuid) const
 Find (linear search) and return a pointer to a Constraint with the given uuid. More...
 
agx::Constraint * getConstraint (const agx::Uuid &uuid)
 Find and return a pointer to a Constraint with the given uuid. More...
 
const agx::Constraint * getConstraint (const agx::Name &name) const
 Find (linear search) and return named Constraint. More...
 
agx::Constraint * getConstraint (const agx::Name &name)
 Find (linear search) and return named Constraint. More...
 
template<typename T >
T * getConstraint (const agx::Uuid &uuid)
 Find and return named Constraint of a templated type, for example Hinge: More...
 
template<typename T >
const T * getConstraint (const agx::Uuid &uuid) const
 Find and return named Constraint of a templated type, for example Hinge: More...
 
template<typename T >
T * getConstraint (const agx::Name &name)
 Find and return named Constraint of a templated type, for example Hinge: More...
 
template<typename T >
const T * getConstraint (const agx::Name &name) const
 Find and return named Constraint of a templated type, for example Hinge: More...
 
agx::Constraint1DOF * getConstraint1DOF (const agx::Name &name)
 
agx::Constraint2DOF * getConstraint2DOF (const agx::Name &name)
 
const agx::ConstraintRefSetVector & getConstraints () const
 
agx::ConstraintRefSetVector & getConstraints ()
 
ContactGenerator * getContactGenerator ()
 
agx::UInt8 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
 
agx::DynamicsSystem * getDynamicsSystem ()
 
const agx::DynamicsSystem * getDynamicsSystem () const
 
const agx::Emitter * getEmitter (const agx::Uuid &uuid) const
 Find (linear search) and return an emitter matching the given uuid. More...
 
agx::Emitter * getEmitter (const agx::Uuid &uuid)
 Find (linear search) and return an emitter matching the given uuid. More...
 
agx::Emitter * getEmitter (const agx::Name &name) const
 Find (linear search) and return an emitter matching the given name. More...
 
agx::Emitter * getEmitter (const agx::Name &name)
 Find (linear search) and return an emitter matching the given name. More...
 
agx::EmitterRefVector getEmitters ()
 
agx::RigidBodyPtrSetVector & getEnabledRigidBodies ()
 
const agx::RigidBodyPtrSetVector & getEnabledRigidBodies () const
 
bool getEnableRemoteDebugging () const
 
bool getEnableStatistics () const
 
bool getEnableStatisticsRendering () const
 
agxSDK::EnergyManager * getEnergyManager () const
 return the energy manager of the system. More...
 
const agxSDK::EventListener * getEventListener (const agx::Name &name) const
 Find and return the first matching named event listener. More...
 
agxSDK::EventListener * getEventListener (const agx::Name &name)
 Find and return the first matching named event listener. More...
 
const agxSDK::EventListener * getEventListener (const agx::Uuid &uuid) const
 Find (linear search) and return the first event listener matching the uuid. More...
 
agxSDK::EventListener * getEventListener (const agx::Uuid &uuid)
 Find (linear search) and return the first event listener matching the uuid. More...
 
void getEventListeners (EventListenerPtrVector &eventListeners) const
 Get a vector containing all the registered event listeners. More...
 
const agxCollide::GeometryRefVector & getGeometries () const
 
const agxCollide::Geometry * getGeometry (const agx::Name &name) const
 Find (linear search) and return named collision Geometry. More...
 
agxCollide::Geometry * getGeometry (const agx::Name &name)
 Find (linear search) and return named collision Geometry. More...
 
const agxCollide::Geometry * getGeometry (const agx::Uuid &uuid) const
 Find (linear search) and return a geometry matching the given uuid. More...
 
agxCollide::Geometry * getGeometry (const agx::Uuid &uuid)
 Find (linear search) and return a geometry matching the given uuid. More...
 
agx::GravityField * getGravityField ()
 
const agx::GravityField * getGravityField () const
 
agx::Component * getHeader ()
 
agx::UInt32 getId () const
 
const agx::Name & getImplementationName () const
 
agx::Journal * getJournal ()
 
const agx::Journal * getJournal () const
 
const agx::Material * getMaterial (const agx::Name &materialName) const
 
agx::Material * getMaterial (const agx::Name &materialName)
 
agx::Material * getMaterial (const agx::Uuid &uuid)
 
MaterialManager * getMaterialManager ()
 
const MaterialManager * getMaterialManager () const
 
agx::MergedBody * getMergedBody (agx::UInt i) const
 
agx::MergeSplit * getMergeSplit ()
 
const agx::MergeSplit * getMergeSplit () const
 
agxSDK::MergeSplitHandler * getMergeSplitHandler () const
 Merge split handler is an object that enables performance boosts by merging rigid bodies together which results in fewer rigid bodies for the solver to solve for. More...
 
agx::Model * getModel ()
 
const agx::Model * getModel () const
 
const agx::Name & getName () const
 
agx::Object * getNextSibling ()
 
const agx::Object * getNextSibling () const
 
agx::UInt getNumMergedBodies () const
 
size_t getNumObjects (const agx::Name &name) const
 
agx::UInt getNumTerrains () 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::ObserverFrame * getObserver (const agx::Name &name)
 Find (linear search) and return named ObserverFrame. More...
 
const agx::ObserverFrame * getObserver (const agx::Name &name) const
 Find (linear search) and return named ObserverFrame. More...
 
agx::ObserverFrame * getObserver (const agx::Uuid &uuid)
 Find (linear search) and return a pointer to a ObserverFrame with the given uuid. More...
 
const agx::ObserverFrame * getObserver (const agx::Uuid &uuid) const
 Find (linear search) and return a pointer to a ObserverFrame with the given uuid. More...
 
const agx::ObserverFrame * getObserverFrame (const agx::Uuid &uuid) const
 Find (linear search) and return a pointer to a ObserverFrame with the given uuid. More...
 
agx::ObserverFrame * getObserverFrame (const agx::Uuid &uuid)
 Find and return a pointer to a ObserverFrame with the given uuid. More...
 
agx::ObserverFrame * getObserverFrame (const agx::Name &name)
 Find (linear search) the first ObserverFrame object in the system that matches the name. More...
 
const agx::ObserverFrame * getObserverFrame (const agx::Name &name) const
 Find (linear search) the first ObserverFrame object in the system that matches the name. More...
 
const agx::ObserverFrameRefSetVector & getObserverFrames () const
 
agx::ObserverFrameRefSetVector & getObserverFrames ()
 
agxSDK::SimulationParameter * getParameter (const agx::Name &name)
 
const agxSDK::SimulationParameterRefVector & getParameters () const
 
ParticleCoordinateSystem & getParticleCoordinateSystem ()
 
agx::ParticleEmitterRefVector getParticleEmitters ()
 
agx::Real getParticleRadius ()
 
agx::ParticleSystem * getParticleSystem () const
 
agx::ParticleSystemRefVector & getParticleSystems ()
 
const agx::ParticleSystemRefVector & getParticleSystems () const
 
agx::UInt32 getParticleUniqueId () const
 
agx::Path getPath () const
 
agx::Path getPath (const agx::Object *root) const
 
agxSDK::PickHandler * getPickHandler ()
 
const agxSDK::PickHandler * getPickHandler () const
 
agxPlot::System * getPlotSystem ()
 
const agxPlot::System * getPlotSystem () const
 
bool getPreIntegratePositions () const
 
agx::Real getProfilingFrequency () const
 
int getReferenceCount () const
 
agx::Real getRemoteDebuggingTimeStep () const
 
agxRender::RenderManager * getRenderManager ()
 
const agxRender::RenderManager * getRenderManager () 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
 
const agx::RigidBodyRefVector & getRigidBodies () const
 
agx::RigidBodyRefVector & getRigidBodies ()
 
agx::RigidBody * getRigidBody (const agx::Name &name)
 Find (linear search) and return named RigidBody. More...
 
const agx::RigidBody * getRigidBody (const agx::Name &name) const
 Find (linear search) and return named RigidBody. More...
 
agx::RigidBody * getRigidBody (const agx::Uuid &uuid)
 Find (linear search) and return a pointer to a RigidBody with the given uuid. More...
 
const agx::RigidBody * getRigidBody (const agx::Uuid &uuid) const
 Find (linear search) and return a pointer to a RigidBody with the given uuid. More...
 
agx::Object * getRootContext ()
 
const agx::Object * getRootContext () const
 
SimulationSerializer * getSerializer ()
 
const SimulationSerializer * getSerializer () const
 
agxSDK::SimulationProxy * getSimulationProxy () const
 Internal method. More...
 
SimulationStatisticsListener * getSimulationStatisticsListener ()
 
const SimulationStatisticsListener * getSimulationStatisticsListener () const
 
agx::SolveModel * getSolveModel (const agx::Name &name)
 
const agx::SolveModelRefVector & getSolveModels () const
 
agx::Solver * getSolver ()
 
const agx::Solver * getSolver () const
 
agxCollide::Space * getSpace ()
 
const agxCollide::Space * getSpace () const
 
agxSDK::TerrainInstance * getTerrain (agx::UInt i) const
 
const agxPlot::DataSeries * getTimeDataSeries () const
 A data series that contains all time stamps of the simulation. More...
 
agxPlot::DataSeries * getTimeDataSeries ()
 A data series that contains all time stamps of the simulation. More...
 
agx::Real getTimeStamp () const
 
agx::Real getTimeStep () const
 
agx::Vec3 getUniformGravity () const
 If the current gravity field is not a uniform one (for example PointGravityField), 0,0,0 will be returned. More...
 
agx::TaskGroup * getUpdateTask ()
 
bool getUseComplexImpactStage () const
 
const agxWire::Wire * getWire (const agx::Name &name) const
 Find and return the first matching named wire. More...
 
agxWire::Wire * getWire (const agx::Name &name)
 Find and return the first matching named wire. More...
 
const agxWire::Wire * getWire (const agx::Uuid &uuid) const
 Find (linear search) and return the first wire matching the uuid. More...
 
agxWire::Wire * getWire (const agx::Uuid &uuid)
 Find (linear search) and return the first wire matching the uuid. More...
 
void handleStabiltyReport (const agx::StabilityReport *stabilityReport)
 Internal method. More...
 
bool hasListener (EventListener *listener)
 
bool hasParent (const agx::Object *node) const
 
template<typename T >
bool is () const
 Subclass test. More...
 
bool isUnique () const
 
void loadSolveModels (const agx::String &path, bool clear=false)
 
virtual void printSubtree () const override
 
void printSubtree (std::ostream &stream, int depth=0) const
 
size_t read (const agx::String &filename, agxSDK::Assembly *parent=nullptr, agx::UInt selection=READ_DEFAULT)
 Read serialized simulation from the specified file and append to this simulation. More...
 
size_t read (std::istream &stream, bool isBinary, agxSDK::Assembly *parent=nullptr, agx::UInt selection=READ_DEFAULT)
 Read serialized simulation from the specified stream. More...
 
void readStoragePermutations (agxStream::InputArchive &in, bool clearStorages=false)
 
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 (agx::ContactMaterial *material)
 Remove an explicit contact material from the set of existing ContactMaterials. More...
 
bool remove (agx::Material *material)
 Remove a specified material from the simulation. More...
 
bool remove (agxCollide::Geometry *geometry)
 Remove geometry from collision space. More...
 
bool remove (agx::RigidBody *body, bool removeGeometries=true)
 Remove a body from the Simulation, the body will be disabled! More...
 
bool remove (agx::MergedBody *mergedBody)
 Removes the merged body from this simulation. More...
 
bool remove (agx::Constraint *constraint)
 Remove a constraint from the simulation. More...
 
bool remove (agx::Interaction *interaction)
 Remove an Interaction from the Simulation. More...
 
bool remove (agxSDK::Assembly *assembly, bool removeAllEntries=true)
 Remove an assembly from the simulation. More...
 
bool remove (agx::Component *subComponent)
 Remove a sub component from Simulation. More...
 
bool remove (agx::ObserverFrame *observerFrame)
 Remove a ObserverFrame to the Simulation. More...
 
bool remove (agxControl::Action *action)
 Remove an action from this simulation. More...
 
bool remove (agxControl::Operation *operation)
 Remove an operation from this simulation. More...
 
bool remove (agx::ParticleSystem *particleSystem)
 Remove a particle system from the simulation. More...
 
bool remove (agx::Emitter *emitter)
 Remove an emitter from the system. More...
 
bool remove (agx::ParticleContactSensor *sensor)
 Remove a particle contact sensor from the system. More...
 
bool remove (agxSDK::TerrainInstance *terrain)
 Remove terrain (agxTerrain::Terrain) instance from this simulation. More...
 
bool remove (agxSDK::EventListener *listener)
 Remove a Event listener. More...
 
bool remove (agxStream::Serializable *object)
 Remove an object as a serializable object. More...
 
bool remove (agxSDK::SimulationParameter *parameter)
 Remove a parameter from the simulation configuration interface. More...
 
void removeAllObjects ()
 Remove all components. More...
 
bool removeEventListener (agxSDK::EventListener *listener)
 Remove the specified listener. More...
 
void removeListener (EventListener *listener)
 
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...
 
bool removeRestoreListener (agxStream::RestoreListener *listener)
 Remove an existing listener in a simulation. More...
 
void removeSolveModel (agx::SolveModel *model)
 
void renderComponents ()
 
void resetTaskTimers ()
 Reset profiling timers. More...
 
bool restore (const agx::String &filename, agx::UInt selection=READ_DEFAULT)
 Restore state from a serialized scene file. More...
 
bool restore (std::istream &stream, bool isBinary, agx::UInt selection=READ_DEFAULT)
 
void restore (agxStream::InputArchive &in, agxSDK::Assembly *parent=nullptr, agx::UInt selection=READ_DEFAULT, bool replaceUsingCache=false)
 Read data from the input archive and add to the simulation. More...
 
virtual void save (TiXmlElement *) const
 
void sendSimulation ()
 Send the simulation to the remote debugger (if enabled) More...
 
void setActionManagerTimeStamp (const agx::TimeStamp &time)
 Truncating an AGX simulation does not reset the timestamp in the action manager. More...
 
void setContactReductionBinResolution (agx::UInt8 binResolution)
 Specify the bin resolution used when evaluating contacts for reduction between body-body contacts. More...
 
void setContactReductionThreshold (agx::UInt threshold)
 Specify the lower threshold for the number of contact points needed per rigid body contact in order to do contact reduction per rigid body contact. More...
 
virtual void setContext (agx::Object *context)
 
void setDynamicsSystem (agx::DynamicsSystem *system)
 Replace the current DynamicsSystem with system. More...
 
void setEnableRemoteDebugging (bool flag, agx::Int16 port=-1, bool useCompression=false, bool waitForSynchronization=true)
 Enable/Disable remote debugging. More...
 
void setEnableSimulationStatisticsListener (bool flag)
 Enable/disable the listener that collects all statistics data from the simulation. More...
 
void setEnableStatistics (bool enable)
 Enable/disable statistics logging to disk. More...
 
void setEnableStatisticsRendering (bool enable)
 
void setGravityField (agx::GravityField *gravityField)
 Set the GravityField model used in gravity calculations. More...
 
void setId (UInt32 id)
 
void setMainWorkThread (agx::Thread *thread)
 Specify which is the main working thread for the Simulation. More...
 
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 setParticleRadius (agx::Real radius)
 
void setPickHandler (agxSDK::PickHandler *pickHandler)
 Assign interface for pick handler. More...
 
void setPlotSystem (agxPlot::System *plotSystem)
 Replace the current PlotSystem with plotSystem. More...
 
void setPreIntegratePositions (bool flag)
 Set true to integrate positions at the start of the timestep rather than at the end. More...
 
void setProfilingFrequency (agx::Real frequency)
 Specify the frequency for performance profiling. More...
 
void setRemoteDebuggingTimeStep (agx::Real timeStep)
 Sets the time step for remote debugging. More...
 
void setSerializer (SimulationSerializer *serializer)
 Replace the current SimulationSerializer with a new instance. More...
 
void setSpace (agxCollide::Space *space)
 Replace the current Collision space with space. More...
 
void setStatisticsInterval (agx::Real interval)
 
void setStatisticsPath (const agx::String &path)
 Specify the path to a file where the statistics information will be written when enabled. More...
 
void setTimeStamp (agx::TimeStamp t)
 Set the timestamp for the simulation (and the DynamicsSystem) More...
 
bool setTimeStep (agx::Real timeStep)
 Sets the time step determined by the TimeGovernor in the DynamicsSystem. More...
 
bool setUniformGravity (const agx::Vec3 &g)
 Set the uniform gravity. More...
 
void setUseComplexImpactStage (bool flag)
 
virtual void snapshot (TiXmlNode *eParent, const String &directory) const override
 
void stepForward ()
 Take one step forward in the simulation. More...
 
agx::TimeStamp stepTo (agx::TimeStamp t)
 Step the simulation forward 1 or more time steps in time until we get to the time t. More...
 
void store (agxStream::OutputArchive &archive) const
 Save this simulation to the output archive. More...
 
void traverse (const TraverseCallback &callback)
 
void traverse (ComponentVisitor *)
 
bool triggerEvent (const GuiEvent &e)
 Execute a GuiEvent. More...
 
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 updateActionManager ()
 Internal method. More...
 
void updateRenderManager ()
 Make an explicit call to RenderManager::update() to update the debug rendering information. More...
 
void updateStatisticsRenderData ()
 Make an explicit call to RenderManager::update() to update the statistics rendering information. More...
 
size_t write (const agx::String &filename) const
 Serialize the simulation to the specified file. More...
 
size_t write (std::ostream &stream, bool binary) const
 Serialize the simulation to the specified file. More...
 
void writeStatisticsFiles (const agx::String &directoryPath="Statistics", bool taskProfile=true, bool threadTimeline=true, const agx::Vector< agx::String > &timelineFormats=agx::Vector< agx::String >(), bool bufferAllocations=true)
 
void writeStoragePermutations (agxStream::OutputArchive &archive) const
 

Static Public Member Functions

static Component * _load (TiXmlElement *eComponent, Device *device)
 
static agx::Model * ClassModel ()
 Internal method. More...
 
static agxSDK::SimulationProxyRef createDefaultProxy (agxSDK::Simulation *simulation)
 Creates new simulation proxy of default type. More...
 
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 Simulation * load (agx::TiXmlElement *eSimulation, agx::Device *device)
 
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...
 
template<typename T >
static bool ValidateCast (const Referenced *object)
 

Public Attributes

ConstraintEvent addConstraintEvent
 
ContactMaterialEvent addContactMaterialEvent
 
GeometryEvent addGeometryEvent
 
MaterialEvent addMaterialEvent
 
ObjectEvent addObjectEvent
 
RigidBodyEvent addRigidBodyEvent
 
JournalAttachEvent journalAttachedEvent
 
ConstraintEvent removeConstraintEvent
 
ContactMaterialEvent removeContactMaterialEvent
 
GeometryEvent removeGeometryEvent
 
MaterialEvent removeMaterialEvent
 
ObjectEvent removeObjectEvent
 
RigidBodyEvent removeRigidBodyEvent
 

Protected Member Functions

void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 
String expandAutoCompletionMatch (const String &query, const StringVector &matchingNames) const
 
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

ContactGeneratorRef m_contactGenerator
 
ParticleCoordinateSystem m_dynamicHeightFieldParticleCoordinateSystem
 
Mutex m_mutex
 
ObserverContainer m_observers
 
agx::Real m_particleRadius
 
AtomicValue m_refCount
 
agx::UInt32 m_uniqueParticleId
 
bool m_useDistanceJoint
 

Detailed Description

Deprecated:
This class is deprecated and will be removed in a future version of AGX.
See also
agxTerrain::Terrain

Definition at line 273 of file TerrainUtils.h.

Member Typedef Documentation

◆ ConstraintEvent

◆ ContactMaterialEvent

◆ EventConstObserver

Definition at line 62 of file Object.h.

◆ EventConstRef

typedef agx::ref_ptr< const Event > agx::Object::EventConstRef
inherited

Definition at line 62 of file Object.h.

◆ EventObserver

Definition at line 62 of file Object.h.

◆ EventRef

Definition at line 62 of file Object.h.

◆ GeometryEvent

◆ JournalAttachEvent

◆ MaterialEvent

Definition at line 127 of file Simulation.h.

◆ ObjectEvent

typedef Event2<Component *, Object *> agx::Component::ObjectEvent
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.

◆ RigidBodyEvent

Definition at line 125 of file Simulation.h.

◆ TraverseCallback

typedef Callback1<Object*> agx::Component::TraverseCallback
inherited

Definition at line 141 of file Component.h.

Member Enumeration Documentation

◆ CleanupSelectionMask

Specification of what should be cleaned up from a simulation during a call to the cleanup() method.

These flags can be bit masked/or:ed together.

Enumerator
STEP_LISTENERS 

Remove all step contact listeners.

CONTACT_LISTENERS 

Remove all contact contact listeners.

GUI_LISTENERS 

Remove all gui event listeners.

LISTENERS 

Remove all listeners.

SYSTEM 

Remove the dynamic system.

SPACE 

Remove the collision space.

MATERIALS 

Remove all materials.

ASSEMBLIES 

Remove all assemblies.

PARTICLE_SYSTEMS 

Remove all particle systems.

CONTACT_DATA 

Remove all contact data.

PLOTSYSTEM 

Remove plotsystem.

CLEANUP_ALL 

Definition at line 965 of file Simulation.h.

◆ ReadSelectionMask

Enum for specifying some additional, part of a simulation that can be restored from a serialization.

Enumerator
READ_NONE 

! Select to read none of the items below

READ_TIMESTEP 

! Select to read and restore the TimeStep of the Simulation.

READ_TIMESTAMP 

! Select to read the TimeStamp (current time of the simulation)

READ_GRAVITY 

! Select to read and restore the Gravity model of the simulation.

READ_SOLVER 

! Select to read solver parameters.

READ_ALL 
READ_DEFAULT 

Definition at line 985 of file Simulation.h.

Constructor & Destructor Documentation

◆ DynamicHeightFieldSimulation()

agxModel::DynamicHeightFieldSimulation::DynamicHeightFieldSimulation ( )

Member Function Documentation

◆ _load()

static Component* agx::Component::_load ( TiXmlElement *  eComponent,
Device *  device 
)
staticinherited

◆ add() [1/19]

bool agxSDK::Simulation::add ( agx::Material *  material)
inherited

Add a material to the simulation.

If a material with the same name already exists, it will return false.

Returns
true if adding the material was successfully added to the simulation.

◆ add() [2/19]

bool agxSDK::Simulation::add ( agx::ContactMaterial *  material)
inherited

Add an explicit contact material to the simulation.

Returns
true if the contact material was successfully added to the simulation

◆ add() [3/19]

bool agxSDK::Simulation::add ( agxCollide::Geometry *  geometry)
inherited

Add a geometry to the Simulation Side effect: Will add the material associated to the geometry to the material manager too.

Returns
true if adding was successful (and not already added)

◆ add() [4/19]

bool agxSDK::Simulation::add ( agx::RigidBody *  body,
bool  addGeometries = true 
)
inherited

Add a body to the Simulation. Side effect: the associated Geometries will also be added to Collision space (if addGeometries is == true)

Parameters
body- The body that will be added to the simulation.
addGeometries- If true, then all geometries in body will also be added to simulation.
Returns
true if adding was successful (and not already added)

◆ add() [5/19]

bool agxSDK::Simulation::add ( agx::MergedBody *  mergedBody)
inherited

Add a merged body to this simulation.

Parameters
mergedBody- merged body to add
Returns
true if added, otherwise false

◆ add() [6/19]

bool agxSDK::Simulation::add ( agx::Constraint *  constraint)
inherited

Add a constraint to the simulation.

Parameters
constraint- The constraint to be added.
Returns
true if the constraint was successfully added (and not already added)

◆ add() [7/19]

bool agxSDK::Simulation::add ( agx::Interaction *  interaction)
inherited

Add an Interaction to the Simulation.

Parameters
interaction
Returns
true if adding was successful (and not already added)

◆ add() [8/19]

bool agxSDK::Simulation::add ( agxSDK::Assembly *  assembly,
bool  addAllEntries = true 
)
inherited

Add an assembly to the simulation including all its parts.

Parameters
assembly- The assembly to be added
addAllEntries- If true (default) all its contained entries will also be added.
Returns
false if one of the elements in the assembly failed to be added

◆ add() [9/19]

bool agxSDK::Simulation::add ( agx::Component *  subComponent)
inherited

Add a sub component to the Simulation.

Parameters
subComponent- The component to be added as a sub component to this Simulation
Returns
true if adding the component was successful.

◆ add() [10/19]

bool agxSDK::Simulation::add ( agx::ObserverFrame *  observerFrame)
inherited

Add a ObserverFrame to the Simulation.

Parameters
observerFramethe frame to add
Returns
true if adding the frame was successful

◆ add() [11/19]

bool agxSDK::Simulation::add ( agxControl::Action *  action)
inherited

Register an action to this simulation.

Parameters
action- action to add
Returns
true if added (and not already added)

◆ add() [12/19]

bool agxSDK::Simulation::add ( agxControl::Operation *  operation)
inherited

Register an operation to this simulation.

Parameters
operation- operation to add
Returns
true if added (and not already added)

◆ add() [13/19]

bool agxSDK::Simulation::add ( agx::ParticleSystem *  particleSystem)
inherited

Add a particle system to the simulation.

Parameters
particleSystem- The particle system to be added.
Returns
true if the particle system was successfully added.

◆ add() [14/19]

bool agxSDK::Simulation::add ( agx::Emitter *  emitter)
inherited

Add an emitter to the Simulation.

Parameters
emitter- The emitter to be added.
Returns
true if the emitter was successfully added.

◆ add() [15/19]

bool agxSDK::Simulation::add ( agx::ParticleContactSensor *  sensor)
inherited

Add a particle contact sensor to the Simulation.

Parameters
sensor- The particle contact sensor to be added.
Returns
true if the particle contact sensor was successfully added.

◆ add() [16/19]

bool agxSDK::Simulation::add ( agxSDK::TerrainInstance *  terrain)
inherited

Add terrain (agxTerrain::Terrain) instance to this simulation.

Parameters
terrain- terrain to add
Returns
true if added, false if nullptr or already present in this or another simulation

◆ add() [17/19]

bool agxSDK::Simulation::add ( agxSDK::EventListener *  listener,
int  priority = EventManager::DEFAULT_PRIORITY 
)
inherited

Add an event listener The listener will get a call to its addNotification method if adding was successful.

Parameters
listener- Pointer to the listener that will be activated during events.
priority- An execution priority for this listener. Higher executed earlier in the list of added listeners. Range of priority is [EventManager::LOWEST_PRIORITY, EventManager::HIGHEST_PRIORITY]
Returns
false if listener was already added, or if priority is outside of the valid range, otherwise true.

◆ add() [18/19]

bool agxSDK::Simulation::add ( agxStream::Serializable *  object)
inherited

Add an object as a serializable object.

Might be any of the above classes having an add method: Geometry, RigidBody etc.

Return values

◆ add() [19/19]

bool agxSDK::Simulation::add ( agxSDK::SimulationParameter *  parameter)
inherited

Add a parameter to the simulation configuration interface.

◆ addEventListener()

bool agxSDK::Simulation::addEventListener ( agxSDK::EventListener *  listener,
int  priority = EventManager::DEFAULT_PRIORITY 
)
inherited

Add an event listener The listener will get a call to its addNotification method if adding was successful.

Parameters
listener- Pointer to the listener that will be activated during events.
priority- An execution priority for this listener. Higher executed earlier in the list of added listeners. Range of priority is [EventManager::LOWEST_PRIORITY, EventManager::HIGHEST_PRIORITY]
Returns
false if listener was already added, or if priority is outside of the valid range, otherwise true.

◆ addListener()

void agx::Object::addListener ( EventListener *  listener)
inherited

◆ addObject()

virtual void agx::Component::addObject ( agx::Object *  object,
bool  assignContext = true 
)
virtualinherited

Add an object to the component.

Parameters
objectThe object to be added
assignContextTrue if the child get the component as the context, set to false to allow 'weak' coupled children

Referenced by agxSDK::StatisticsListenerData< agx::Real >::StatisticsListenerData().

◆ addRestoreListener()

bool agxSDK::Simulation::addRestoreListener ( agxStream::RestoreListener *  listener)
inherited

Add a restore listener to the Simulation.

Whenever a simulation is restored from a serialization, these listeners will be called upon.

Parameters
listener- A pointer to a RestoreListener
Returns
true if listener did not previously existed, and hence is added

◆ addSolveModel()

void agxSDK::Simulation::addSolveModel ( agx::SolveModel *  model)
inherited

◆ AGX_DECLARE_VECTOR_TYPES()

agx::Object::AGX_DECLARE_VECTOR_TYPES ( Event  )
inherited

◆ allocateObserverVector()

void agx::Referenced::allocateObserverVector ( ) const
protectedinherited

◆ allowCreateParticles()

bool agxSDK::Simulation::allowCreateParticles ( ) const
inherited
Returns
true if particles are allowed to be created at this point in the simulaion step

Definition at line 1794 of file Simulation.h.

◆ as() [1/2]

template<typename T >
T* agx::Referenced::as ( )
inherited

Subclass casting.

Template type must match actual type, dynamic_cast assertion will fail otherwise.

Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), agx::InternalData::getOrCreate(), and agx::InternalData::hasData().

◆ as() [2/2]

template<typename T >
const T* agx::Referenced::as ( ) const
inherited

◆ asSafe() [1/2]

template<typename T >
T* agx::Referenced::asSafe ( )
inherited

Safe subclass casting, return nullptr if template type does not match.

Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().

◆ asSafe() [2/2]

template<typename T >
const T* agx::Referenced::asSafe ( ) const
inherited

◆ autoComplete()

virtual String agx::Component::autoComplete ( const String &  partialName,
StringVector &  matchingNames 
) const
virtualinherited

Reimplemented in agx::Namespace.

◆ breakStepTo()

bool agxSDK::Simulation::breakStepTo ( )
inherited

Break an initiated stepTo() after the current simulation step.

When stepTo() is called, a number if iterations calling stepForward() will be done. If you want to cancel these iterations from within an EventListener you can call breakStepTo().

Returns
true if a started stepTo() is stopped, otherwise it returns false and does nothing.

◆ buildNavigationTree()

virtual void agx::Component::buildNavigationTree ( agxJson::Value &  eNode) const
overridevirtualinherited

Reimplemented from agx::Object.

Reimplemented in agxData::Buffer, and agx::Model.

◆ ClassModel()

static agx::Model* agxSDK::Simulation::ClassModel ( )
staticinherited

Internal method.

◆ cleanup()

void agxSDK::Simulation::cleanup ( agx::UInt  selection = CLEANUP_ALL,
bool  fast = false 
)
inherited

This method will remove/cleanup selected parts of the simulation.

By using the CleanupSelectionMask one can select what should be removed, for example all contact listeners.

Parameters
selection- Specify from enum CleanupSelectionMask what should be cleaned up
fast- If true, we will try to remove bodies, geometries, listeners one by one instead of creating new DynamicsSystem, Space etc. which does have a lot of overhead.

◆ clearContactData()

void agxSDK::Simulation::clearContactData ( )
inherited

Clears contact data in the simulation.

◆ commit()

void agxSDK::Simulation::commit ( agxSDK::SimulationProxy *  simulationProxy)
inherited

Internal method.

Add content from a simulation proxy to this simulation.

Parameters
simulationProxy- simulation proxy to commit

◆ configure() [1/2]

virtual void agx::Component::configure ( TiXmlElement *  eComponent)
overridevirtualinherited

Reimplemented from agx::Object.

Reimplemented in agx::Clock, agx::Task, agx::Kernel, agx::UnresolvedTask, and agx::Clock.

◆ configure() [2/2]

void agx::Component::configure ( Model *  model)
inherited

◆ contains()

bool agxSDK::Simulation::contains ( const agx::Component *  object) const
inherited

Is the object contained in the simulation?

Parameters
object- The object to test
Returns
true if the object is contained in the simulation.
Note
Might be linear complexity in all the objects of the same type in the simulation.

◆ createDefaultProxy()

static agxSDK::SimulationProxyRef agxSDK::Simulation::createDefaultProxy ( agxSDK::Simulation *  simulation)
staticinherited

Creates new simulation proxy of default type.

Returns
new simulation proxy of default type

◆ createRenderTask()

void agxSDK::Simulation::createRenderTask ( )
inherited

◆ deleteUsingDeleteHandler()

void agx::Referenced::deleteUsingDeleteHandler ( ) const
protectedinherited

◆ dumpMemoryUsage()

void agxSDK::Simulation::dumpMemoryUsage ( const agx::String &  filePath = "TaskTimers.xml")
inherited

Print current agxData buffer allocations to a file.

◆ dumpTaskTimers()

void agxSDK::Simulation::dumpTaskTimers ( const agx::String &  filePath = "BufferAllocations.xml")
inherited

Print current task performance timers to a file.

◆ expandAutoCompletionMatch()

String agx::Component::expandAutoCompletionMatch ( const String &  query,
const StringVector &  matchingNames 
) const
protectedinherited

◆ fullName()

agx::String agx::Object::fullName ( ) const
inherited
Returns
name:implementation

◆ fullPath() [1/2]

agx::String agx::Object::fullPath ( ) const
inherited
Returns
path:implementation

◆ fullPath() [2/2]

agx::String agx::Object::fullPath ( const agx::Object *  root) const
inherited

◆ garbageCollect()

void agxSDK::Simulation::garbageCollect ( )
inherited

Use with caution!

Collect garbage of internal states (e.g., removed geometries and rigid bodies). The garbage will default be collected automatically during next simulation step.

Note
After calling this method e.g., the geometry contact list could be invalid. Other internal structures may as well become invalid. So in general it is not recommended to call this method at all.

◆ generateName()

static agx::String agx::Object::generateName ( const agx::String &  bindPath)
staticinherited

◆ getActionManager()

agxControl::ActionManager* agxSDK::Simulation::getActionManager ( )
inherited

Gets the action manager.

◆ getActiveObjects()

static const HashSet<Object *>& agx::Object::getActiveObjects ( )
staticinherited

◆ getAssemblies()

const AssemblyHash& agxSDK::Simulation::getAssemblies ( ) const
inherited
Returns
all assemblies in the added to the Simulation.

◆ getAssembly() [1/4]

const agxSDK::Assembly* agxSDK::Simulation::getAssembly ( const agx::Name &  name) const
inherited

Find (linear search) and return named Assembly.

Parameters
name- name of the Assembly to find
Returns
pointer to the found Assembly, null if not found

◆ getAssembly() [2/4]

agxSDK::Assembly* agxSDK::Simulation::getAssembly ( const agx::Name &  name)
inherited

Find (linear search) and return named Assembly.

Parameters
name- name of the Assembly to find
Returns
pointer to the found Assembly, null if not found

◆ getAssembly() [3/4]

const agxSDK::Assembly* agxSDK::Simulation::getAssembly ( const agx::Uuid &  uuid) const
inherited

Find (linear search) and return an Assembly matching the given uuid.

Parameters
uuid- uuid of the Assembly to find
Returns
pointer to the found Assembly, null if not found

◆ getAssembly() [4/4]

agxSDK::Assembly* agxSDK::Simulation::getAssembly ( const agx::Uuid &  uuid)
inherited

Find (linear search) and return an Assembly matching the given uuid.

Parameters
uuid- uuid of the Assembly to find
Returns
pointer to the found Assembly, null if not found

◆ getAutoScopedResource() [1/4]

agx::Object* agx::Object::getAutoScopedResource ( const agx::Path &  path,
agx::Model *  model = nullptr 
)
inherited
Returns
The resource with the first matching subpath starting from this node and traversing upwards to the root.

◆ getAutoScopedResource() [2/4]

const agx::Object* agx::Object::getAutoScopedResource ( const agx::Path &  path,
agx::Model *  model = nullptr 
) const
inherited

◆ getAutoScopedResource() [3/4]

template<typename T >
T * agx::Object::getAutoScopedResource ( const agx::Path &  path)
inherited

Definition at line 428 of file Object.h.

References agx::Referenced::is().

◆ getAutoScopedResource() [4/4]

template<typename T >
const T * agx::Object::getAutoScopedResource ( const agx::Path &  path) const
inherited

Definition at line 435 of file Object.h.

◆ getClock() [1/2]

agx::Clock * agxSDK::Simulation::getClock ( )
inherited
Returns
The clock.

Definition at line 1784 of file Simulation.h.

◆ getClock() [2/2]

const agx::Clock * agxSDK::Simulation::getClock ( ) const
inherited
Returns
The clock.

Definition at line 1789 of file Simulation.h.

◆ getConstraint() [1/8]

const agx::Constraint* agxSDK::Simulation::getConstraint ( const agx::Uuid &  uuid) const
inherited

Find (linear search) and return a pointer to a Constraint with the given uuid.

Parameters
uuid- uuid of the requested constraint
Returns
const pointer to the found constraint, null if not found

◆ getConstraint() [2/8]

agx::Constraint* agxSDK::Simulation::getConstraint ( const agx::Uuid &  uuid)
inherited

Find and return a pointer to a Constraint with the given uuid.

Parameters
uuid- uuid of the requested constraint
Returns
pointer to the found Constraint, null if not found

◆ getConstraint() [3/8]

const agx::Constraint* agxSDK::Simulation::getConstraint ( const agx::Name &  name) const
inherited

Find (linear search) and return named Constraint.

Parameters
name- name of the Constraint to find
Returns
pointer to the found Constraint, null if not found

◆ getConstraint() [4/8]

agx::Constraint* agxSDK::Simulation::getConstraint ( const agx::Name &  name)
inherited

Find (linear search) and return named Constraint.

Parameters
name- name of the Constraint to find
Returns
pointer to the found Constraint, null if not found

◆ getConstraint() [5/8]

template<typename T >
T * agxSDK::Simulation::getConstraint ( const agx::Uuid &  uuid)
inherited

Find and return named Constraint of a templated type, for example Hinge:

agx::Hinge *hinge = simulation->getConstraint<agx::Hinge>(uuid);

Parameters
uuid- uuid of the Constraint to find
Returns
typed pointer to the found Constraint, null if not found

Definition at line 1805 of file Simulation.h.

◆ getConstraint() [6/8]

template<typename T >
const T * agxSDK::Simulation::getConstraint ( const agx::Uuid &  uuid) const
inherited

Find and return named Constraint of a templated type, for example Hinge:

const agx::Hinge* hinge = simulation->getConstraint<agx::Hinge>(uuid);

Parameters
uuid- uuid of the Constraint to find
Returns
typed pointer to the found Constraint, null if not found

Definition at line 1811 of file Simulation.h.

◆ getConstraint() [7/8]

template<typename T >
T * agxSDK::Simulation::getConstraint ( const agx::Name &  name)
inherited

Find and return named Constraint of a templated type, for example Hinge:

agx::Hinge *hinge = simulation->getConstraint<agx::Hinge>("FrontWheelHinge");

Parameters
name- name of the Constraint to find
Returns
typed pointer to the found Constraint, null if not found

Definition at line 1817 of file Simulation.h.

◆ getConstraint() [8/8]

template<typename T >
const T * agxSDK::Simulation::getConstraint ( const agx::Name &  name) const
inherited

Find and return named Constraint of a templated type, for example Hinge:

const agx::Hinge* hinge = simulation->getConstraint<agx::Hinge>("FrontWheelHinge");

Parameters
name- name of the Constraint to find
Returns
typed pointer to the found Constraint, null if not found

Definition at line 1823 of file Simulation.h.

◆ getConstraint1DOF()

agx::Constraint1DOF* agxSDK::Simulation::getConstraint1DOF ( const agx::Name &  name)
inlineinherited

Definition at line 1486 of file Simulation.h.

◆ getConstraint2DOF()

agx::Constraint2DOF* agxSDK::Simulation::getConstraint2DOF ( const agx::Name &  name)
inlineinherited

Definition at line 1487 of file Simulation.h.

References agxStream::in().

◆ getConstraints() [1/2]

const agx::ConstraintRefSetVector& agxSDK::Simulation::getConstraints ( ) const
inherited
Returns
All constraints in the system.

◆ getConstraints() [2/2]

agx::ConstraintRefSetVector& agxSDK::Simulation::getConstraints ( )
inherited
Returns
All constraints in the system.

◆ getContactGenerator()

ContactGenerator* agxModel::DynamicHeightFieldSimulation::getContactGenerator ( )
inline

Definition at line 282 of file TerrainUtils.h.

◆ getContactReductionBinResolution()

agx::UInt8 agxSDK::Simulation::getContactReductionBinResolution ( ) const
inherited
Returns
the bin resolution used in body-body contact reduction for this Simulation.

◆ getContactReductionThreshold()

agx::UInt agxSDK::Simulation::getContactReductionThreshold ( ) const
inherited
Returns
Lower threshold for number of contact points in a rigid body contact in order run contact reduction on it.

◆ getContext() [1/4]

Object * agx::Object::getContext ( )
inherited
Returns
The parent node in the system tree.

Definition at line 373 of file Object.h.

◆ getContext() [2/4]

const Object * agx::Object::getContext ( ) const
inherited

Definition at line 374 of file Object.h.

◆ getContext() [3/4]

template<typename T >
T * agx::Object::getContext ( )
inherited

Definition at line 401 of file Object.h.

◆ getContext() [4/4]

template<typename T >
const T * agx::Object::getContext ( ) const
inherited

Definition at line 407 of file Object.h.

◆ getDeleteHandler()

static DeleteHandler* agx::Referenced::getDeleteHandler ( )
staticprotectedinherited
Returns
a DeleteHandler.

◆ getDevice() [1/4]

Device * agx::Component::getDevice ( )
inherited
Returns
The device which the component stored on.

Definition at line 222 of file Component.h.

◆ getDevice() [2/4]

const Device * agx::Component::getDevice ( ) const
inherited

Definition at line 223 of file Component.h.

◆ getDevice() [3/4]

template<typename T >
T * agx::Component::getDevice ( )
inherited

Definition at line 226 of file Component.h.

References agxAssert.

◆ getDevice() [4/4]

template<typename T >
const T * agx::Component::getDevice ( ) const
inherited

Definition at line 233 of file Component.h.

References agxAssert.

◆ getDynamicsSystem() [1/2]

agx::DynamicsSystem * agxSDK::Simulation::getDynamicsSystem ( )
inherited
Returns
A pointer to the DynamicsSystem used in the Simulation

Definition at line 1748 of file Simulation.h.

◆ getDynamicsSystem() [2/2]

const agx::DynamicsSystem * agxSDK::Simulation::getDynamicsSystem ( ) const
inherited
Returns
A pointer to the DynamicsSystem used in the Simulation

Definition at line 1743 of file Simulation.h.

◆ getEmitter() [1/4]

const agx::Emitter* agxSDK::Simulation::getEmitter ( const agx::Uuid &  uuid) const
inherited

Find (linear search) and return an emitter matching the given uuid.

Parameters
uuid- uuid of the emitter to find
Returns
pointer to the found emitter, null if not found

◆ getEmitter() [2/4]

agx::Emitter* agxSDK::Simulation::getEmitter ( const agx::Uuid &  uuid)
inherited

Find (linear search) and return an emitter matching the given uuid.

Parameters
uuid- uuid of the emitter to find
Returns
pointer to the found emitter, null if not found

◆ getEmitter() [3/4]

agx::Emitter* agxSDK::Simulation::getEmitter ( const agx::Name &  name) const
inherited

Find (linear search) and return an emitter matching the given name.

Parameters
name- name of the emitter to find
Returns
pointer to the found emitter, null if not found

◆ getEmitter() [4/4]

agx::Emitter* agxSDK::Simulation::getEmitter ( const agx::Name &  name)
inherited

Find (linear search) and return an emitter matching the given name.

Parameters
name- name of the emitter to find
Returns
pointer to the found emitter, null if not found

◆ getEmitters()

agx::EmitterRefVector agxSDK::Simulation::getEmitters ( )
inherited
Returns
a vector of all emitters in the simulation, including ParticleEmitters and RigidBodyEmitters

◆ getEnabledRigidBodies() [1/2]

agx::RigidBodyPtrSetVector& agxSDK::Simulation::getEnabledRigidBodies ( )
inherited
Returns
a set of all enabled bodies in this system

◆ getEnabledRigidBodies() [2/2]

const agx::RigidBodyPtrSetVector& agxSDK::Simulation::getEnabledRigidBodies ( ) const
inherited
Returns
a set of all enabled bodies in this system

◆ getEnableRebind()

static bool agx::Object::getEnableRebind ( )
staticinherited

Should rebinding be allowed? Right now a global setting.

◆ getEnableRemoteDebugging()

bool agxSDK::Simulation::getEnableRemoteDebugging ( ) const
inherited
Returns
true if remote debugging is enabled

◆ getEnableStatistics()

bool agxSDK::Simulation::getEnableStatistics ( ) const
inherited
Returns
true if statistics logging is enabled

◆ getEnableStatisticsRendering()

bool agxSDK::Simulation::getEnableStatisticsRendering ( ) const
inherited
Returns
true if rendering of statistics is enabled

◆ getEnergyManager()

agxSDK::EnergyManager* agxSDK::Simulation::getEnergyManager ( ) const
inherited

return the energy manager of the system.

◆ getEventListener() [1/4]

const agxSDK::EventListener* agxSDK::Simulation::getEventListener ( const agx::Name &  name) const
inherited

Find and return the first matching named event listener.

Parameters
name- name of the event listener to find
Returns
pointer to the found event listener, null if not found

◆ getEventListener() [2/4]

agxSDK::EventListener* agxSDK::Simulation::getEventListener ( const agx::Name &  name)
inherited

Find and return the first matching named event listener.

Parameters
name- name of the event listener to find
Returns
pointer to the found event listener, null if not found

◆ getEventListener() [3/4]

const agxSDK::EventListener* agxSDK::Simulation::getEventListener ( const agx::Uuid &  uuid) const
inherited

Find (linear search) and return the first event listener matching the uuid.

Parameters
uuid- uuid of the event listener to find
Returns
pointer to the found event listener, null if not found

◆ getEventListener() [4/4]

agxSDK::EventListener* agxSDK::Simulation::getEventListener ( const agx::Uuid &  uuid)
inherited

Find (linear search) and return the first event listener matching the uuid.

Parameters
uuid- uuid of the event listener to find
Returns
pointer to the found event listener, null if not found

◆ getEventListeners()

void agxSDK::Simulation::getEventListeners ( EventListenerPtrVector &  eventListeners) const
inherited

Get a vector containing all the registered event listeners.

◆ getGeometries()

const agxCollide::GeometryRefVector& agxSDK::Simulation::getGeometries ( ) const
inherited
Returns
vector of geometries which has been added to this space

◆ getGeometry() [1/4]

const agxCollide::Geometry* agxSDK::Simulation::getGeometry ( const agx::Name &  name) const
inherited

Find (linear search) and return named collision Geometry.

Parameters
name- name of the collision Geometry to find
Returns
pointer to the found collision Geometry, null if not found

◆ getGeometry() [2/4]

agxCollide::Geometry* agxSDK::Simulation::getGeometry ( const agx::Name &  name)
inherited

Find (linear search) and return named collision Geometry.

Parameters
name- name of the collision Geometry to find
Returns
pointer to the found collision Geometry, null if not found

◆ getGeometry() [3/4]

const agxCollide::Geometry* agxSDK::Simulation::getGeometry ( const agx::Uuid &  uuid) const
inherited

Find (linear search) and return a geometry matching the given uuid.

Parameters
uuid- uuid of the collision Geometry to find
Returns
pointer to the found collision Geometry, null if not found

◆ getGeometry() [4/4]

agxCollide::Geometry* agxSDK::Simulation::getGeometry ( const agx::Uuid &  uuid)
inherited

Find (linear search) and return a geometry matching the given uuid.

Parameters
uuid- uuid of the collision Geometry to find
Returns
pointer to the found collision Geometry, null if not found

◆ getGravityField() [1/2]

agx::GravityField* agxSDK::Simulation::getGravityField ( )
inherited
Returns
the current GravityField

◆ getGravityField() [2/2]

const agx::GravityField* agxSDK::Simulation::getGravityField ( ) const
inherited
Returns
the current GravityField

◆ getHeader()

agx::Component* agxSDK::Simulation::getHeader ( )
inherited

◆ getId()

UInt32 agx::Object::getId ( ) const
inherited
Returns
The global object id.

Definition at line 370 of file Object.h.

Referenced by agxData::EntityStorage::indexToId().

◆ getImplementationName()

const agx::Name& agx::Object::getImplementationName ( ) const
inherited
Returns
The implementation name of the model. Alias for getModel()->getImplementationName()

◆ getJournal() [1/2]

agx::Journal* agxSDK::Simulation::getJournal ( )
inherited
Returns
The attached simulation journal.

◆ getJournal() [2/2]

const agx::Journal* agxSDK::Simulation::getJournal ( ) const
inherited
Returns
The attached simulation journal.

◆ getMaterial() [1/3]

const agx::Material* agxSDK::Simulation::getMaterial ( const agx::Name &  materialName) const
inherited
Returns
a material given a name, null if not found.

◆ getMaterial() [2/3]

agx::Material* agxSDK::Simulation::getMaterial ( const agx::Name &  materialName)
inherited
Returns
a material given a name, null if not found.

◆ getMaterial() [3/3]

agx::Material* agxSDK::Simulation::getMaterial ( const agx::Uuid &  uuid)
inherited
Returns
a material given a name, null if not found.

◆ getMaterialManager() [1/2]

MaterialManager* agxSDK::Simulation::getMaterialManager ( )
inherited
Returns
the material manager.

◆ getMaterialManager() [2/2]

const MaterialManager* agxSDK::Simulation::getMaterialManager ( ) const
inherited
Returns
the material manager.

◆ getMergedBody()

agx::MergedBody* agxSDK::Simulation::getMergedBody ( agx::UInt  i) const
inherited
See also
getNumMergedBodies
Returns
merged body with index i

◆ getMergeSplit() [1/2]

agx::MergeSplit* agxSDK::Simulation::getMergeSplit ( )
inherited
Returns
a pointer to the mergeSplit object. nullptr if mergeSplit is not enabled.

◆ getMergeSplit() [2/2]

const agx::MergeSplit* agxSDK::Simulation::getMergeSplit ( ) const
inherited
Returns
a const pointer to the mergeSplit object. nullptr if mergeSplit is not enabled.

◆ getMergeSplitHandler()

agxSDK::MergeSplitHandler* agxSDK::Simulation::getMergeSplitHandler ( ) const
inherited

Merge split handler is an object that enables performance boosts by merging rigid bodies together which results in fewer rigid bodies for the solver to solve for.

Returns
the merge split handler for this simulation

◆ getModel() [1/2]

Model * agx::Object::getModel ( )
inherited
Returns
The object model.

Definition at line 371 of file Object.h.

◆ getModel() [2/2]

const Model * agx::Object::getModel ( ) const
inherited

Definition at line 372 of file Object.h.

◆ getName()

const Name & agx::Object::getName ( ) const
inherited
Returns
Then name of the object.

Definition at line 369 of file Object.h.

Referenced by agxData::EntityStorage::get(), agxData::FormatBinding< T >::getFormat(), and agxData::EntityPtr::operator()().

◆ getNextSibling() [1/2]

agx::Object* agx::Object::getNextSibling ( )
inherited
Returns
The next sibling with identical name.

◆ getNextSibling() [2/2]

const agx::Object* agx::Object::getNextSibling ( ) const
inherited

◆ getNumMergedBodies()

agx::UInt agxSDK::Simulation::getNumMergedBodies ( ) const
inherited
Returns
the number of merged bodies

◆ getNumObjects()

size_t agx::Component::getNumObjects ( const agx::Name &  name) const
inherited
Returns
The number of child objects with a specified name.

◆ getNumTerrains()

agx::UInt agxSDK::Simulation::getNumTerrains ( ) const
inherited
Returns
the number of current terrains in the simulation

◆ getObject() [1/6]

Object * agx::Component::getObject ( const agx::Name &  name,
size_t  index = 0 
)
inherited
Returns
The child object with specified name (and optional index).

Definition at line 194 of file Component.h.

◆ getObject() [2/6]

const Object * agx::Component::getObject ( const agx::Name &  name,
size_t  index = 0 
) const
inherited

Definition at line 195 of file Component.h.

◆ getObject() [3/6]

Object * agx::Component::getObject ( const agx::Name &  name,
agx::Model *  model,
size_t  index = 0 
)
inherited

Definition at line 197 of file Component.h.

◆ getObject() [4/6]

const Object * agx::Component::getObject ( const agx::Name &  name,
agx::Model *  model,
size_t  index = 0 
) const
inherited

Definition at line 198 of file Component.h.

◆ getObject() [5/6]

template<typename T >
T * agx::Component::getObject ( const agx::Name &  name,
size_t  index = 0 
)
inherited

Definition at line 202 of file Component.h.

◆ getObject() [6/6]

template<typename T >
const T * agx::Component::getObject ( const agx::Name &  name,
size_t  index = 0 
) const
inherited

Definition at line 216 of file Component.h.

◆ getObjects() [1/4]

const ObjectRefVector & agx::Component::getObjects ( ) const
inherited
Returns
All child objects.

Definition at line 192 of file Component.h.

Referenced by agx::Component::getObjects().

◆ getObjects() [2/4]

template<typename T >
void agx::Component::getObjects ( agx::ObjectPtrVector &  result,
bool  recursive = false 
) const
inherited
Returns
All child objects of a specified type.

◆ getObjects() [3/4]

void agx::Component::getObjects ( agx::ObjectPtrVector &  result,
const agx::Model *  model,
bool  recursive = false 
) const
inherited

◆ getObjects() [4/4]

template<typename T >
void agx::Component::getObjects ( ObjectPtrVector &  result,
bool  recursive 
) const
inherited

Definition at line 241 of file Component.h.

References agx::Component::getObjects().

◆ getObserver() [1/4]

agx::ObserverFrame* agxSDK::Simulation::getObserver ( const agx::Name &  name)
inherited

Find (linear search) and return named ObserverFrame.

Parameters
name- name of the observer to find
Returns
pointer to the found ObserverFrame, null if not found

◆ getObserver() [2/4]

const agx::ObserverFrame* agxSDK::Simulation::getObserver ( const agx::Name &  name) const
inherited

Find (linear search) and return named ObserverFrame.

Parameters
name- name of the observer to find
Returns
pointer to the found ObserverFrame, null if not found

◆ getObserver() [3/4]

agx::ObserverFrame* agxSDK::Simulation::getObserver ( const agx::Uuid &  uuid)
inherited

Find (linear search) and return a pointer to a ObserverFrame with the given uuid.

Parameters
uuid- uuid of the requested observer frame
Returns
pointer to the found ObserverFrame, null if not found

◆ getObserver() [4/4]

const agx::ObserverFrame* agxSDK::Simulation::getObserver ( const agx::Uuid &  uuid) const
inherited

Find (linear search) and return a pointer to a ObserverFrame with the given uuid.

Parameters
uuid- uuid of the requested observer frame
Returns
pointer to the found ObserverFrame, null if not found

◆ getObserverFrame() [1/4]

const agx::ObserverFrame* agxSDK::Simulation::getObserverFrame ( const agx::Uuid &  uuid) const
inherited

Find (linear search) and return a pointer to a ObserverFrame with the given uuid.

Parameters
uuid- uuid of the requested observer frame
Returns
const pointer to the found observer frame, null if not found

◆ getObserverFrame() [2/4]

agx::ObserverFrame* agxSDK::Simulation::getObserverFrame ( const agx::Uuid &  uuid)
inherited

Find and return a pointer to a ObserverFrame with the given uuid.

Parameters
uuid- uuid of the requested observer frame
Returns
pointer to the found observer frame, null if not found

◆ getObserverFrame() [3/4]

agx::ObserverFrame* agxSDK::Simulation::getObserverFrame ( const agx::Name &  name)
inherited

Find (linear search) the first ObserverFrame object in the system that matches the name.

Returns
a pointer to the found observer frame, nullptr if none found.

◆ getObserverFrame() [4/4]

const agx::ObserverFrame* agxSDK::Simulation::getObserverFrame ( const agx::Name &  name) const
inherited

Find (linear search) the first ObserverFrame object in the system that matches the name.

Returns
a pointer to the found observer frame, nullptr if none found.

◆ getObserverFrames() [1/2]

const agx::ObserverFrameRefSetVector& agxSDK::Simulation::getObserverFrames ( ) const
inherited
Returns
All observer frames in the system.

◆ getObserverFrames() [2/2]

agx::ObserverFrameRefSetVector& agxSDK::Simulation::getObserverFrames ( )
inherited
Returns
All observer frames in the system.

◆ getParameter()

agxSDK::SimulationParameter* agxSDK::Simulation::getParameter ( const agx::Name &  name)
inherited
Returns
The parameter with a specified name.

◆ getParameters()

const agxSDK::SimulationParameterRefVector& agxSDK::Simulation::getParameters ( ) const
inherited
Returns
The set of published simulation parameters.

◆ getParticleCoordinateSystem()

ParticleCoordinateSystem& agxModel::DynamicHeightFieldSimulation::getParticleCoordinateSystem ( )
inline

Definition at line 278 of file TerrainUtils.h.

◆ getParticleEmitters()

agx::ParticleEmitterRefVector agxSDK::Simulation::getParticleEmitters ( )
inherited
Returns
a vector of all particle emitters in the simulation

◆ getParticleRadius()

agx::Real agxModel::DynamicHeightFieldSimulation::getParticleRadius ( )
inline

Definition at line 290 of file TerrainUtils.h.

◆ getParticleSystem()

agx::ParticleSystem* agxSDK::Simulation::getParticleSystem ( ) const
inherited
Returns
The active particle system in the simulation.

◆ getParticleSystems() [1/2]

agx::ParticleSystemRefVector& agxSDK::Simulation::getParticleSystems ( )
inherited
Returns
a vector of all particle systems which is added to this Simulation

◆ getParticleSystems() [2/2]

const agx::ParticleSystemRefVector& agxSDK::Simulation::getParticleSystems ( ) const
inherited
Returns
a vector of all particle systems which is added to this Simulation

◆ getParticleUniqueId()

agx::UInt32 agxModel::DynamicHeightFieldSimulation::getParticleUniqueId ( ) const
inline

Definition at line 294 of file TerrainUtils.h.

◆ getPath() [1/2]

agx::Path agx::Object::getPath ( ) const
inherited
Returns
The path to the object in the system tree.

Referenced by agxData::EntityStorage::dereferenceMultipliedAttribute(), and agxData::EntityInstance::verifyIndex().

◆ getPath() [2/2]

agx::Path agx::Object::getPath ( const agx::Object *  root) const
inherited
Returns
A relative path from a specified root
Parameters
rootA node along the parent path from this object.

◆ getPickHandler() [1/2]

agxSDK::PickHandler* agxSDK::Simulation::getPickHandler ( )
inherited
Returns
the interface to the pick handler associated to this simulation object
Note
If no pick handler has been set, these methods will return zero.

◆ getPickHandler() [2/2]

const agxSDK::PickHandler* agxSDK::Simulation::getPickHandler ( ) const
inherited
Returns
the interface to the pick handler associated to this simulation object
Note
If no pick handler has been set, these methods will return zero.

◆ getPlotSystem() [1/2]

agxPlot::System * agxSDK::Simulation::getPlotSystem ( )
inherited
Returns
A pointer to the PlotSystem used in the Simulation

Definition at line 1760 of file Simulation.h.

◆ getPlotSystem() [2/2]

const agxPlot::System * agxSDK::Simulation::getPlotSystem ( ) const
inherited
Returns
A pointer to the PlotSystem used in the Simulation

Definition at line 1755 of file Simulation.h.

◆ getPreIntegratePositions()

bool agxSDK::Simulation::getPreIntegratePositions ( ) const
inherited
Returns
True if the positions are integrated at the start of the timestep, false if integrated at the end.

◆ getProfilingFrequency()

agx::Real agxSDK::Simulation::getProfilingFrequency ( ) const
inherited
Returns
The profiling frequency

◆ getReferenceCount()

int agx::Referenced::getReferenceCount ( ) const
inherited
Returns
the number pointers currently referencing this object.

◆ getRemoteDebuggingTimeStep()

agx::Real agxSDK::Simulation::getRemoteDebuggingTimeStep ( ) const
inherited
Returns
the time step for remote debugging. Should be a multiple of the simulation time step.

◆ getRenderManager() [1/2]

agxRender::RenderManager* agxSDK::Simulation::getRenderManager ( )
inherited
Returns
a pointer to the RenderManager for this simulation

◆ getRenderManager() [2/2]

const agxRender::RenderManager* agxSDK::Simulation::getRenderManager ( ) const
inherited
Returns
a pointer to the RenderManager for this simulation

◆ getResource() [1/4]

agx::Object* agx::Object::getResource ( const agx::Path &  path,
agx::Model *  model = nullptr 
)
inherited
Returns
A resource in the subtree below this object.

◆ getResource() [2/4]

const agx::Object* agx::Object::getResource ( const agx::Path &  path,
agx::Model *  model = nullptr 
) const
inherited

◆ getResource() [3/4]

template<typename T >
T * agx::Object::getResource ( const agx::Path &  path)
inherited

Definition at line 414 of file Object.h.

References agx::Referenced::is().

◆ getResource() [4/4]

template<typename T >
const T * agx::Object::getResource ( const agx::Path &  path) const
inherited

Definition at line 421 of file Object.h.

◆ getResourceImpl()

virtual Object* agx::Component::getResourceImpl ( const Path &  path,
agx::Model *  model 
)
overridevirtualinherited

Reimplemented from agx::Object.

Reimplemented in agx::Task, and agxData::EntityStorage.

◆ getRigidBodies() [1/2]

const agx::RigidBodyRefVector& agxSDK::Simulation::getRigidBodies ( ) const
inherited
Returns
a vector of all bodies in the DynamicsSystem, both enabled and disabled

◆ getRigidBodies() [2/2]

agx::RigidBodyRefVector& agxSDK::Simulation::getRigidBodies ( )
inherited
Returns
a vector of all bodies in the DynamicsSystem, both enabled and disabled

◆ getRigidBody() [1/4]

agx::RigidBody* agxSDK::Simulation::getRigidBody ( const agx::Name &  name)
inherited

Find (linear search) and return named RigidBody.

Parameters
name- name of the body to find
Returns
pointer to the found RigidBody body, null if not found

◆ getRigidBody() [2/4]

const agx::RigidBody* agxSDK::Simulation::getRigidBody ( const agx::Name &  name) const
inherited

Find (linear search) and return named RigidBody.

Parameters
name- name of the body to find
Returns
pointer to the found RigidBody body, null if not found

◆ getRigidBody() [3/4]

agx::RigidBody* agxSDK::Simulation::getRigidBody ( const agx::Uuid &  uuid)
inherited

Find (linear search) and return a pointer to a RigidBody with the given uuid.

Parameters
uuid- uuid of the requested rigid body
Returns
pointer to the found RigidBody, null if not found

◆ getRigidBody() [4/4]

const agx::RigidBody* agxSDK::Simulation::getRigidBody ( const agx::Uuid &  uuid) const
inherited

Find (linear search) and return a pointer to a RigidBody with the given uuid.

Parameters
uuid- uuid of the requested rigid body
Returns
pointer to the found RigidBody, null if not found

◆ getRootContext() [1/2]

agx::Object* agx::Object::getRootContext ( )
inherited
Returns
The root context.

◆ getRootContext() [2/2]

const agx::Object* agx::Object::getRootContext ( ) const
inherited

◆ getSerializer() [1/2]

SimulationSerializer* agxSDK::Simulation::getSerializer ( )
inherited
Returns
a pointer to the SimulationSerializer which is a StepEventListener that will be periodically called from the Simulation's stepForward method to store the simulation state to disk (if enabled)

◆ getSerializer() [2/2]

const SimulationSerializer* agxSDK::Simulation::getSerializer ( ) const
inherited
Returns
a pointer to the SimulationSerializer which is a StepEventListener that will be periodically called from the Simulation's stepForward method to store the simulation state to disk (if enabled)

◆ getSimulationProxy()

agxSDK::SimulationProxy* agxSDK::Simulation::getSimulationProxy ( ) const
inherited

Internal method.

Proxy of this object used by objects running in parallel and still needs to add/remove things from this simulation.

◆ getSimulationStatisticsListener() [1/2]

SimulationStatisticsListener* agxSDK::Simulation::getSimulationStatisticsListener ( )
inherited

◆ getSimulationStatisticsListener() [2/2]

const SimulationStatisticsListener* agxSDK::Simulation::getSimulationStatisticsListener ( ) const
inherited

◆ getSolveModel()

agx::SolveModel* agxSDK::Simulation::getSolveModel ( const agx::Name &  name)
inherited

◆ getSolveModels()

const agx::SolveModelRefVector & agxSDK::Simulation::getSolveModels ( ) const
inherited

Definition at line 1799 of file Simulation.h.

◆ getSolver() [1/2]

agx::Solver* agxSDK::Simulation::getSolver ( )
inherited
Returns
the solver.

◆ getSolver() [2/2]

const agx::Solver* agxSDK::Simulation::getSolver ( ) const
inherited
Returns
the solver.

◆ getSpace() [1/2]

agxCollide::Space * agxSDK::Simulation::getSpace ( )
inherited
Returns
A pointer to the Collision space used in the Simulation

Definition at line 1733 of file Simulation.h.

◆ getSpace() [2/2]

const agxCollide::Space * agxSDK::Simulation::getSpace ( ) const
inherited
Returns
A pointer to the Collision space used in the Simulation

Definition at line 1738 of file Simulation.h.

◆ getTerrain()

agxSDK::TerrainInstance* agxSDK::Simulation::getTerrain ( agx::UInt  i) const
inherited
Parameters
i- index (i < getNumTerrains())
Returns
terrain instance at given index i

◆ getTimeDataSeries() [1/2]

const agxPlot::DataSeries * agxSDK::Simulation::getTimeDataSeries ( ) const
inherited

A data series that contains all time stamps of the simulation.

Definition at line 1765 of file Simulation.h.

◆ getTimeDataSeries() [2/2]

agxPlot::DataSeries * agxSDK::Simulation::getTimeDataSeries ( )
inherited

A data series that contains all time stamps of the simulation.

Definition at line 1770 of file Simulation.h.

◆ getTimeStamp()

agx::Real agxSDK::Simulation::getTimeStamp ( ) const
inherited
Returns
The current accumulated simulation time.

Definition at line 1728 of file Simulation.h.

◆ getTimeStep()

agx::Real agxSDK::Simulation::getTimeStep ( ) const
inherited
Returns
the time step determined by the TimeGovernor in the DynamicsSystem.

Definition at line 1778 of file Simulation.h.

◆ getUniformGravity()

agx::Vec3 agxSDK::Simulation::getUniformGravity ( ) const
inherited

If the current gravity field is not a uniform one (for example PointGravityField), 0,0,0 will be returned.

Returns
the uniform gravity

◆ getUpdateTask()

agx::TaskGroup* agxSDK::Simulation::getUpdateTask ( )
inherited

◆ getUseComplexImpactStage()

bool agxSDK::Simulation::getUseComplexImpactStage ( ) const
inherited

◆ getWire() [1/4]

const agxWire::Wire* agxSDK::Simulation::getWire ( const agx::Name &  name) const
inherited

Find and return the first matching named wire.

Parameters
name- name of the wire to find
Returns
pointer to the found wire, null if not found

◆ getWire() [2/4]

agxWire::Wire* agxSDK::Simulation::getWire ( const agx::Name &  name)
inherited

Find and return the first matching named wire.

Parameters
name- name of the wire to find
Returns
pointer to the found wire, null if not found

◆ getWire() [3/4]

const agxWire::Wire* agxSDK::Simulation::getWire ( const agx::Uuid &  uuid) const
inherited

Find (linear search) and return the first wire matching the uuid.

Parameters
uuid- uuid of the wire to find
Returns
pointer to the found wire, null if not found

◆ getWire() [4/4]

agxWire::Wire* agxSDK::Simulation::getWire ( const agx::Uuid &  uuid)
inherited

Find (linear search) and return the first wire matching the uuid.

Parameters
uuid- uuid of the wire to find
Returns
pointer to the found wire, null if not found

◆ handleStabiltyReport()

void agxSDK::Simulation::handleStabiltyReport ( const agx::StabilityReport *  stabilityReport)
inherited

Internal method.

Handles stability report sent from the solver.

◆ hasListener()

bool agx::Object::hasListener ( EventListener *  listener)
inherited

◆ hasParent()

bool agx::Object::hasParent ( const agx::Object *  node) const
inherited
Returns
True if the specified node is located somewhere in the path above the object.

◆ is()

template<typename T >
bool agx::Referenced::is ( ) const
inherited

◆ isUnique()

bool agx::Object::isUnique ( ) const
inherited

Definition at line 375 of file Object.h.

◆ load() [1/8]

static Component* agx::Component::load ( const String &  path,
const Path &  _namespace = Path() 
)
staticinherited

◆ load() [2/8]

static Component* agx::Component::load ( const String &  path,
Device *  device,
const Path &  _namespace = Path() 
)
staticinherited

◆ load() [3/8]

static Component* agx::Component::load ( const Path &  path,
const Name &  implementation,
Device *  device,
const Path &  _namespace = Path() 
)
staticinherited

◆ load() [4/8]

static Component* agx::Component::load ( TiXmlElement *  eComponent,
Device *  device 
)
staticinherited

◆ load() [5/8]

static Object* agx::Object::load ( const String &  path,
Device *  device,
const String &  type = "",
size_t  instance = 0 
)
staticinherited

◆ load() [6/8]

static Object* agx::Object::load ( const String &  path,
Device *  device,
const String &  type,
const String &  attribute,
const String &  value 
)
staticinherited

◆ load() [7/8]

static void agx::Object::load ( const String &  path,
Device *  device,
ObjectPtrVector &  loadedObjects 
)
staticinherited

◆ load() [8/8]

static Simulation* agxSDK::Simulation::load ( agx::TiXmlElement *  eSimulation,
agx::Device *  device 
)
staticinherited

◆ loadSolveModels()

void agxSDK::Simulation::loadSolveModels ( const agx::String &  path,
bool  clear = false 
)
inherited

◆ openDocument()

static TiXmlDocument agx::Object::openDocument ( const String &  path)
staticinherited

◆ printSubtree() [1/2]

virtual void agx::Component::printSubtree ( ) const
overridevirtualinherited

Reimplemented from agx::Object.

◆ printSubtree() [2/2]

void agx::Component::printSubtree ( std::ostream &  stream,
int  depth = 0 
) const
inherited

◆ read() [1/2]

size_t agxSDK::Simulation::read ( const agx::String &  filename,
agxSDK::Assembly *  parent = nullptr,
agx::UInt  selection = READ_DEFAULT 
)
inherited

Read serialized simulation from the specified file and append to this simulation.

Parameters
parent- If != nullptr, all read objects will be added to this parent too.
selection- Options for reading in. See ReadSelectionMask.
Returns
number of serialized objects read from file

◆ read() [2/2]

size_t agxSDK::Simulation::read ( std::istream &  stream,
bool  isBinary,
agxSDK::Assembly *  parent = nullptr,
agx::UInt  selection = READ_DEFAULT 
)
inherited

Read serialized simulation from the specified stream.

Parameters
stream- Stream from which serialized data is to be read.
isBinary- if true, it's a binary dataset.
parent- If != nullptr, all read objects will be added to this parent too.
selection- Options for reading in. See ReadSelectionMask.
Returns
number of serialized objects read from file

◆ readStoragePermutations()

void agxSDK::Simulation::readStoragePermutations ( agxStream::InputArchive &  in,
bool  clearStorages = false 
)
inherited

◆ rebind()

virtual void agx::Component::rebind ( )
overridevirtualinherited

Reimplemented from agx::Object.

Reimplemented in agx::Task, and agx::Clock.

◆ reference()

void agx::Referenced::reference ( void *  ptr = nullptr) const
inherited

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.

◆ remove() [1/19]

bool agxSDK::Simulation::remove ( agx::ContactMaterial *  material)
inherited

Remove an explicit contact material from the set of existing ContactMaterials.

Returns
true if the contact material existed and was successfully removed

◆ remove() [2/19]

bool agxSDK::Simulation::remove ( agx::Material *  material)
inherited

Remove a specified material from the simulation.

Returns
true if material was successfully removed

◆ remove() [3/19]

bool agxSDK::Simulation::remove ( agxCollide::Geometry *  geometry)
inherited

Remove geometry from collision space.

Any subsequent call to Space::testGeometryOverlap will not contain this geometry.

Space will keep one reference to the geometry until next call to Space::update() where it will be released. Also The Geometry will also possibly be present in the list of contacts and BroadPhase overlaps. This will also be cleaned up after next call to Space::update()

Returns
true if removal was successful.

◆ remove() [4/19]

bool agxSDK::Simulation::remove ( agx::RigidBody *  body,
bool  removeGeometries = true 
)
inherited

Remove a body from the Simulation, the body will be disabled!

Parameters
body- The body that should be removed
removeGeometries- If true, any geometries associated with this body should also silently be removed. If the removal of any of these geometries fails, it is not reported in the return value of this method.
Returns
true if the body was successfully removed

◆ remove() [5/19]

bool agxSDK::Simulation::remove ( agx::MergedBody *  mergedBody)
inherited

Removes the merged body from this simulation.

Parameters
mergedBody- merged body to remove
Returns
true if removed, otherwise false

◆ remove() [6/19]

bool agxSDK::Simulation::remove ( agx::Constraint *  constraint)
inherited

Remove a constraint from the simulation.

Parameters
constraint- The constraint to be removed.
Returns
true if removal was successful (was part of the simulation)

◆ remove() [7/19]

bool agxSDK::Simulation::remove ( agx::Interaction *  interaction)
inherited

Remove an Interaction from the Simulation.

Parameters
interaction- The object to be removed
Returns
true if the interaction was successfully removed

◆ remove() [8/19]

bool agxSDK::Simulation::remove ( agxSDK::Assembly *  assembly,
bool  removeAllEntries = true 
)
inherited

Remove an assembly from the simulation.

Parameters
removeAllEntries- If true (default) it will also remove all its contained entries, such as geometries, bodies, EventListeners, sub-assemblies and constraints
Returns
true if assembly and all its contained elements (if removeAllEntries==true are) successfully removed

◆ remove() [9/19]

bool agxSDK::Simulation::remove ( agx::Component *  subComponent)
inherited

Remove a sub component from Simulation.

Parameters
subComponent- The component to be removed
Returns
true if the removal was successful.

◆ remove() [10/19]

bool agxSDK::Simulation::remove ( agx::ObserverFrame *  observerFrame)
inherited

Remove a ObserverFrame to the Simulation.

Parameters
observerFramethe frame to remove
Returns
true if removal of the frame was successful

◆ remove() [11/19]

bool agxSDK::Simulation::remove ( agxControl::Action *  action)
inherited

Remove an action from this simulation.

Parameters
action- action to remove
Returns
true if removed

◆ remove() [12/19]

bool agxSDK::Simulation::remove ( agxControl::Operation *  operation)
inherited

Remove an operation from this simulation.

Parameters
operation- operation to remove
Returns
true if removed (and not already added)

◆ remove() [13/19]

bool agxSDK::Simulation::remove ( agx::ParticleSystem *  particleSystem)
inherited

Remove a particle system from the simulation.

Parameters
particleSystem- The particle system to be removed.
Returns
true if the particle system was successfully removed.

◆ remove() [14/19]

bool agxSDK::Simulation::remove ( agx::Emitter *  emitter)
inherited

Remove an emitter from the system.

Parameters
emitter- The emitter to be removed.
Returns
true if the emitter was successfully removed.

◆ remove() [15/19]

bool agxSDK::Simulation::remove ( agx::ParticleContactSensor *  sensor)
inherited

Remove a particle contact sensor from the system.

Parameters
sensor- The particle contact sensor to be removed.
Returns
true if the particle contact sensor was successfully removed.

◆ remove() [16/19]

bool agxSDK::Simulation::remove ( agxSDK::TerrainInstance *  terrain)
inherited

Remove terrain (agxTerrain::Terrain) instance from this simulation.

Parameters
terrain- terrain to remove
Returns
true if removed, false if nullptr or not part of this simulation

◆ remove() [17/19]

bool agxSDK::Simulation::remove ( agxSDK::EventListener *  listener)
inherited

Remove a Event listener.

Parameters
listenerThe listener to remove.
Return values
trueif successfully removed (and part of Simulation before).

◆ remove() [18/19]

bool agxSDK::Simulation::remove ( agxStream::Serializable *  object)
inherited

Remove an object as a serializable object.

Might be any of the above classes having an add method: Geometry, RigidBody etc.

Return values

◆ remove() [19/19]

bool agxSDK::Simulation::remove ( agxSDK::SimulationParameter *  parameter)
inherited

Remove a parameter from the simulation configuration interface.

◆ removeAllObjects()

void agx::Component::removeAllObjects ( )
inherited

Remove all components.

◆ removeEventListener()

bool agxSDK::Simulation::removeEventListener ( agxSDK::EventListener *  listener)
inherited

Remove the specified listener.

The listener will get a call to its removeNotification method if removal was successful.

Returns
true if the listener was successfully removed.

◆ removeListener()

void agx::Object::removeListener ( EventListener *  listener)
inherited

◆ removeObject() [1/2]

virtual void agx::Component::removeObject ( agx::Object *  object)
virtualinherited

Remove an object from the component.

◆ removeObject() [2/2]

void agx::Component::removeObject ( const agx::Name &  name,
size_t  index = 0 
)
inherited

Remove an object with a specified name (and optional index) from the component.

◆ removeRestoreListener()

bool agxSDK::Simulation::removeRestoreListener ( agxStream::RestoreListener *  listener)
inherited

Remove an existing listener in a simulation.

Parameters
listenerThe listener to be removed
Returns
true if listener existed and hence was removed

◆ removeSolveModel()

void agxSDK::Simulation::removeSolveModel ( agx::SolveModel *  model)
inherited

◆ renderComponents()

void agxSDK::Simulation::renderComponents ( )
inherited

◆ resetTaskTimers()

void agxSDK::Simulation::resetTaskTimers ( )
inherited

Reset profiling timers.

◆ restore() [1/3]

bool agxSDK::Simulation::restore ( const agx::String &  filename,
agx::UInt  selection = READ_DEFAULT 
)
inherited

Restore state from a serialized scene file.

Matching object UUIDs, so any object present in both current simulation and the serialized scene will retain the current object.

Returns
true if successful

◆ restore() [2/3]

bool agxSDK::Simulation::restore ( std::istream &  stream,
bool  isBinary,
agx::UInt  selection = READ_DEFAULT 
)
inherited

◆ restore() [3/3]

void agxSDK::Simulation::restore ( agxStream::InputArchive &  in,
agxSDK::Assembly *  parent = nullptr,
agx::UInt  selection = READ_DEFAULT,
bool  replaceUsingCache = false 
)
inherited

Read data from the input archive and add to the simulation.

Parameters
in- Archive to read from
parent- if != nullptr, all items will also be added to this assembly
selection- Options for reading in. See ReadSelectionMask.
replaceUsingCache- Replace current state by archive, but reuse matching objects that exist in both representations

◆ save()

virtual void agx::Object::save ( TiXmlElement *  ) const
inlinevirtualinherited

Reimplemented in agx::Clock.

Definition at line 105 of file Object.h.

◆ sendSimulation()

void agxSDK::Simulation::sendSimulation ( )
inherited

Send the simulation to the remote debugger (if enabled)

◆ setActionManagerTimeStamp()

void agxSDK::Simulation::setActionManagerTimeStamp ( const agx::TimeStamp &  time)
inherited

Truncating an AGX simulation does not reset the timestamp in the action manager.

This function allows for resetting the action manager timestamp from Simulation.h

◆ setContactReductionBinResolution()

void agxSDK::Simulation::setContactReductionBinResolution ( agx::UInt8  binResolution)
inherited

Specify the bin resolution used when evaluating contacts for reduction between body-body contacts.

(Body-body contact reduction is not done by default, see settings in ContactMaterial to enable it). A high value will keep more contacts, lower will result in more aggressive reduction the default. Commonly a value of 2-3 will give good results. Values from 1 to 10 are valid.

Parameters
binResolution- parameter to ContactReducer.

◆ setContactReductionThreshold()

void agxSDK::Simulation::setContactReductionThreshold ( agx::UInt  threshold)
inherited

Specify the lower threshold for the number of contact points needed per rigid body contact in order to do contact reduction per rigid body contact.

Parameters
threshold- Lower threshold for number of contact points in a rigid body contact in order run contact reduction on it.

◆ setContext()

virtual void agx::Object::setContext ( agx::Object *  context)
virtualinherited

Reimplemented in agx::Task, and agxData::FunctionValue.

◆ setDeleteHandler()

static void agx::Referenced::setDeleteHandler ( DeleteHandler *  handler)
staticprotectedinherited

Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.

◆ setDevice()

void agx::Component::setDevice ( Device *  device)
protectedinherited

◆ setDynamicsSystem()

void agxSDK::Simulation::setDynamicsSystem ( agx::DynamicsSystem *  system)
inherited

Replace the current DynamicsSystem with system.

◆ setEnableRebind()

static void agx::Object::setEnableRebind ( 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.

◆ setEnableRemoteDebugging()

void agxSDK::Simulation::setEnableRemoteDebugging ( bool  flag,
agx::Int16  port = -1,
bool  useCompression = false,
bool  waitForSynchronization = true 
)
inherited

Enable/Disable remote debugging.

Parameters
flag- If true, a server for remote debugging will be created
port- Socket port. If -1, the default port will be used.
useCompression- If true the data will be compressed before sent to the remote listener
waitForSynchronization- If true the server will wait for the client to ask for more data before it sends another frame

◆ setEnableSimulationStatisticsListener()

void agxSDK::Simulation::setEnableSimulationStatisticsListener ( bool  flag)
inherited

Enable/disable the listener that collects all statistics data from the simulation.

Disabling will remove/delete the previous listener, hence no data will be stored. Make sure you update any external pointers to the SimulationStatisticsListener retrieved through the getSimulationStatisticsListener() method.

◆ setEnableStatistics()

void agxSDK::Simulation::setEnableStatistics ( bool  enable)
inherited

Enable/disable statistics logging to disk.

This will also toggle the agx::Statistics::instance()->setEnable() which will control whether statistics data is logged at all.

◆ setEnableStatisticsRendering()

void agxSDK::Simulation::setEnableStatisticsRendering ( bool  enable)
inherited
Parameters
enable- if true, the rendering of statistics will be dispatched to the agxRender::RenderManager

◆ setGravityField()

void agxSDK::Simulation::setGravityField ( agx::GravityField *  gravityField)
inherited

Set the GravityField model used in gravity calculations.

Default is UniformGravityField.

Parameters
gravityField- The model used.

◆ setId()

void agx::Object::setId ( UInt32  id)
inherited

◆ setMainWorkThread()

void agxSDK::Simulation::setMainWorkThread ( agx::Thread *  thread)
inherited

Specify which is the main working thread for the Simulation.

All calls from event listeners (StepEventListener::pre() etc.) will come from this thread.

Parameters
thread- A pointer to the thread that should be the main thread.

◆ setModel()

void agx::Object::setModel ( agx::Model *  model)
inherited

Set the object model (handled automatically).

◆ setName()

void agx::Object::setName ( const agx::Name &  name)
inherited

Set the name of the object.

◆ setParticleRadius()

void agxModel::DynamicHeightFieldSimulation::setParticleRadius ( agx::Real  radius)
inline

Definition at line 286 of file TerrainUtils.h.

◆ setPickHandler()

void agxSDK::Simulation::setPickHandler ( agxSDK::PickHandler *  pickHandler)
inherited

Assign interface for pick handler.

Parameters
pickHandler- pick handler interface

◆ setPlotSystem()

void agxSDK::Simulation::setPlotSystem ( agxPlot::System *  plotSystem)
inherited

Replace the current PlotSystem with plotSystem.

◆ setPreIntegratePositions()

void agxSDK::Simulation::setPreIntegratePositions ( bool  flag)
inherited

Set true to integrate positions at the start of the timestep rather than at the end.

◆ setProfilingFrequency()

void agxSDK::Simulation::setProfilingFrequency ( agx::Real  frequency)
inherited

Specify the frequency for performance profiling.

◆ setRemoteDebuggingTimeStep()

void agxSDK::Simulation::setRemoteDebuggingTimeStep ( agx::Real  timeStep)
inherited

Sets the time step for remote debugging.

Should be a multiple of the simulation time step. If timeStep=0, then the simulation time step will be used.

◆ setSerializer()

void agxSDK::Simulation::setSerializer ( SimulationSerializer *  serializer)
inherited

Replace the current SimulationSerializer with a new instance.

◆ setSpace()

void agxSDK::Simulation::setSpace ( agxCollide::Space *  space)
inherited

Replace the current Collision space with space.

◆ setStatisticsInterval()

void agxSDK::Simulation::setStatisticsInterval ( agx::Real  interval)
inherited
Parameters
interval- specifies the interval in seconds for writing statistics data down to disk

◆ setStatisticsPath()

void agxSDK::Simulation::setStatisticsPath ( const agx::String &  path)
inherited

Specify the path to a file where the statistics information will be written when enabled.

Parameters
path- The path to a filename into which statistics information will be written.

◆ setTimeStamp()

void agxSDK::Simulation::setTimeStamp ( agx::TimeStamp  t)
inherited

Set the timestamp for the simulation (and the DynamicsSystem)

Parameters
t- New timestamp

◆ setTimeStep()

bool agxSDK::Simulation::setTimeStep ( agx::Real  timeStep)
inherited

Sets the time step determined by the TimeGovernor in the DynamicsSystem.

Parameters
timeStep- The new time step.
Returns
true if the timestep was set successfully, false otherwise.

◆ setUniformGravity()

bool agxSDK::Simulation::setUniformGravity ( const agx::Vec3 &  g)
inherited

Set the uniform gravity.

If a non-uniform gravity field is currently used (for example PointGravityField), this method will return false and will not change anything. If this is the case, and you want a uniform field, you need to create a uniform gravity field: sim->setGravityField(new agx::UniformGravityField(g))

Parameters
g- Gravity vector
Returns
True if the uniform gravity could be set. False if a non-uniform gravity field is currently being used in the DynamicsSystem

◆ setUseComplexImpactStage()

void agxSDK::Simulation::setUseComplexImpactStage ( bool  flag)
inherited

◆ snapshot()

virtual void agx::Component::snapshot ( TiXmlNode *  eParent,
const String &  directory 
) const
overridevirtualinherited

Reimplemented from agx::Object.

◆ stepForward()

void agxSDK::Simulation::stepForward ( )
inherited

Take one step forward in the simulation.

Length of time step is determined by the TimeGovernor in the DynamicsSystem

◆ stepTo()

agx::TimeStamp agxSDK::Simulation::stepTo ( agx::TimeStamp  t)
inherited

Step the simulation forward 1 or more time steps in time until we get to the time t.

The length of time step is determined by the TimeGovernor in the DynamicsSystem.

Returns
the current timestamp of the system. This can be now+t, but it can also be less due to a call to the breakStepTo() method from a method in an EventListener.

◆ store()

void agxSDK::Simulation::store ( agxStream::OutputArchive &  archive) const
inherited

Save this simulation to the output archive.

Parameters
archive- Archive associated to a stream to which the data will be written.

◆ traverse() [1/2]

void agx::Component::traverse ( const TraverseCallback &  callback)
inherited

◆ traverse() [2/2]

void agx::Component::traverse ( ComponentVisitor *  )
inherited

◆ triggerEvent()

bool agxSDK::Simulation::triggerEvent ( const GuiEvent &  e)
inherited

Execute a GuiEvent.

Returns
true if event is listened to and handled.

◆ unreference()

void agx::Referenced::unreference ( void *  ptr = nullptr) const
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.

Referenced by agxData::EntityRef< ContactMaterialPtr >::~EntityRef().

◆ unreference_nodelete()

void agx::Referenced::unreference_nodelete ( ) const
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.

◆ updateActionManager()

void agxSDK::Simulation::updateActionManager ( )
inherited

Internal method.

Update the internal active ActionManager in the simulation

◆ updateRenderManager()

void agxSDK::Simulation::updateRenderManager ( )
inherited

Make an explicit call to RenderManager::update() to update the debug rendering information.

◆ updateStatisticsRenderData()

void agxSDK::Simulation::updateStatisticsRenderData ( )
inherited

Make an explicit call to RenderManager::update() to update the statistics rendering information.

◆ ValidateCast()

template<typename T >
static bool agx::Referenced::ValidateCast ( const Referenced *  object)
staticinherited

◆ write() [1/2]

size_t agxSDK::Simulation::write ( const agx::String &  filename) const
inherited

Serialize the simulation to the specified file.

Parameters
filename- Name of file to which the simulation will be written
Returns
Number of objects serialized to disk

◆ write() [2/2]

size_t agxSDK::Simulation::write ( std::ostream &  stream,
bool  binary 
) const
inherited

Serialize the simulation to the specified file.

Parameters
stream- The stream to which the simulation object will be written
binary- if true, it's a binary dataset.
Returns
Number of objects serialized to disk

◆ writeStatisticsFiles()

void agxSDK::Simulation::writeStatisticsFiles ( const agx::String &  directoryPath = "Statistics",
bool  taskProfile = true,
bool  threadTimeline = true,
const agx::Vector< agx::String > &  timelineFormats = agx::Vector< agx::String >(),
bool  bufferAllocations = true 
)
inherited

◆ writeStoragePermutations()

void agxSDK::Simulation::writeStoragePermutations ( agxStream::OutputArchive &  archive) const
inherited

Member Data Documentation

◆ addConstraintEvent

ConstraintEvent agxSDK::Simulation::addConstraintEvent
inherited

Definition at line 137 of file Simulation.h.

◆ addContactMaterialEvent

ContactMaterialEvent agxSDK::Simulation::addContactMaterialEvent
inherited

Definition at line 143 of file Simulation.h.

◆ addGeometryEvent

GeometryEvent agxSDK::Simulation::addGeometryEvent
inherited

Definition at line 131 of file Simulation.h.

◆ addMaterialEvent

MaterialEvent agxSDK::Simulation::addMaterialEvent
inherited

Definition at line 140 of file Simulation.h.

◆ addObjectEvent

ObjectEvent agx::Component::addObjectEvent
inherited

Definition at line 63 of file Component.h.

◆ addRigidBodyEvent

RigidBodyEvent agxSDK::Simulation::addRigidBodyEvent
inherited

Definition at line 134 of file Simulation.h.

◆ journalAttachedEvent

JournalAttachEvent agxSDK::Simulation::journalAttachedEvent
inherited

Definition at line 146 of file Simulation.h.

◆ m_contactGenerator

ContactGeneratorRef agxModel::DynamicHeightFieldSimulation::m_contactGenerator
protected

Definition at line 301 of file TerrainUtils.h.

◆ m_dynamicHeightFieldParticleCoordinateSystem

ParticleCoordinateSystem agxModel::DynamicHeightFieldSimulation::m_dynamicHeightFieldParticleCoordinateSystem
protected

Definition at line 300 of file TerrainUtils.h.

◆ m_mutex

Mutex agx::Referenced::m_mutex
mutableprotectedinherited

Definition at line 240 of file Referenced.h.

◆ m_observers

ObserverContainer agx::Referenced::m_observers
mutableprotectedinherited

Definition at line 239 of file Referenced.h.

◆ m_particleRadius

agx::Real agxModel::DynamicHeightFieldSimulation::m_particleRadius
protected

Definition at line 302 of file TerrainUtils.h.

◆ m_refCount

AtomicValue agx::Referenced::m_refCount
mutableprotectedinherited

Definition at line 241 of file Referenced.h.

◆ m_uniqueParticleId

agx::UInt32 agxModel::DynamicHeightFieldSimulation::m_uniqueParticleId
protected

Definition at line 299 of file TerrainUtils.h.

◆ m_useDistanceJoint

bool agxModel::DynamicHeightFieldSimulation::m_useDistanceJoint
protected

Definition at line 303 of file TerrainUtils.h.

◆ removeConstraintEvent

ConstraintEvent agxSDK::Simulation::removeConstraintEvent
inherited

Definition at line 138 of file Simulation.h.

◆ removeContactMaterialEvent

ContactMaterialEvent agxSDK::Simulation::removeContactMaterialEvent
inherited

Definition at line 144 of file Simulation.h.

◆ removeGeometryEvent

GeometryEvent agxSDK::Simulation::removeGeometryEvent
inherited

Definition at line 132 of file Simulation.h.

◆ removeMaterialEvent

MaterialEvent agxSDK::Simulation::removeMaterialEvent
inherited

Definition at line 141 of file Simulation.h.

◆ removeObjectEvent

ObjectEvent agx::Component::removeObjectEvent
inherited

Definition at line 64 of file Component.h.

◆ removeRigidBodyEvent

RigidBodyEvent agxSDK::Simulation::removeRigidBodyEvent
inherited

Definition at line 135 of file Simulation.h.


The documentation for this class was generated from the following file: