|
AGXDynamics
2.31.1.0
|
#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 |
| agx::RemoteSolver * | getRemoteSolver () |
| const agx::RemoteSolver * | getRemoteSolver () 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 | setRemoteSolver (agx::RemoteSolver *remoteSolver) |
| 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) |
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 |
Definition at line 273 of file TerrainUtils.h.
|
inherited |
Definition at line 126 of file Simulation.h.
|
inherited |
Definition at line 128 of file Simulation.h.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 124 of file Simulation.h.
|
inherited |
Definition at line 129 of file Simulation.h.
|
inherited |
Definition at line 127 of file Simulation.h.
|
inherited |
Event when adding removing child objects.
NOTE: Events are triggered recursively up the parent structure Example: B is added to root node A, one event is triggered (A.addObjectEvent(A, B)). Then when C is added to B two events are triggered (B.addObjectEvent(B, C), and A.addObjectEvent(B,C))
Definition at line 61 of file Component.h.
|
inherited |
Definition at line 125 of file Simulation.h.
|
inherited |
Definition at line 141 of file Component.h.
|
inherited |
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.
Definition at line 965 of file Simulation.h.
|
inherited |
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.
| agxModel::DynamicHeightFieldSimulation::DynamicHeightFieldSimulation | ( | ) |
|
staticinherited |
|
inherited |
Add a material to the simulation.
If a material with the same name already exists, it will return false.
|
inherited |
Add an explicit contact material to the simulation.
|
inherited |
Add a geometry to the Simulation Side effect: Will add the material associated to the geometry to the material manager too.
|
inherited |
Add a body to the Simulation. Side effect: the associated Geometries will also be added to Collision space (if addGeometries is == true)
| body | - The body that will be added to the simulation. |
| addGeometries | - If true, then all geometries in body will also be added to simulation. |
|
inherited |
Add a merged body to this simulation.
| mergedBody | - merged body to add |
|
inherited |
Add a constraint to the simulation.
| constraint | - The constraint to be added. |
|
inherited |
Add an Interaction to the Simulation.
| interaction |
|
inherited |
Add an assembly to the simulation including all its parts.
| assembly | - The assembly to be added |
| addAllEntries | - If true (default) all its contained entries will also be added. |
|
inherited |
Add a sub component to the Simulation.
| subComponent | - The component to be added as a sub component to this Simulation |
|
inherited |
Add a ObserverFrame to the Simulation.
| observerFrame | the frame to add |
|
inherited |
Register an action to this simulation.
| action | - action to add |
|
inherited |
Register an operation to this simulation.
| operation | - operation to add |
|
inherited |
Add a particle system to the simulation.
| particleSystem | - The particle system to be added. |
|
inherited |
Add an emitter to the Simulation.
| emitter | - The emitter to be added. |
|
inherited |
Add a particle contact sensor to the Simulation.
| sensor | - The particle contact sensor to be added. |
|
inherited |
Add terrain (agxTerrain::Terrain) instance to this simulation.
| terrain | - terrain to add |
|
inherited |
Add an event listener The listener will get a call to its addNotification method if adding was successful.
| 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] |
|
inherited |
Add an object as a serializable object.
Might be any of the above classes having an add method: Geometry, RigidBody etc.
| successfully added (and not already added)? |
|
inherited |
Add a parameter to the simulation configuration interface.
|
inherited |
Add an event listener The listener will get a call to its addNotification method if adding was successful.
| 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] |
|
inherited |
|
virtualinherited |
Add an object to the component.
| object | The object to be added |
| assignContext | True if the child get the component as the context, set to false to allow 'weak' coupled children |
|
inherited |
Add a restore listener to the Simulation.
Whenever a simulation is restored from a serialization, these listeners will be called upon.
| listener | - A pointer to a RestoreListener |
|
inherited |
|
inherited |
|
protectedinherited |
|
inherited |
Definition at line 1794 of file Simulation.h.
|
inherited |
Subclass casting.
Template type must match actual type, dynamic_cast assertion will fail otherwise.
Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), and agx::InternalData::getOrCreate().
|
inherited |
|
inherited |
Safe subclass casting, return nullptr if template type does not match.
Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().
|
inherited |
|
virtualinherited |
Reimplemented in agx::Namespace.
|
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().
|
overridevirtualinherited |
Reimplemented from agx::Object.
Reimplemented in agxData::Buffer, and agx::Model.
|
staticinherited |
Internal method.
|
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.
| 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. |
|
inherited |
Clears contact data in the simulation.
|
inherited |
Internal method.
Add content from a simulation proxy to this simulation.
| simulationProxy | - simulation proxy to commit |
|
overridevirtualinherited |
Reimplemented from agx::Object.
Reimplemented in agx::Clock, agx::Task, agx::Kernel, agx::UnresolvedTask, and agx::Clock.
|
inherited |
Is the object contained in the simulation?
| object | - The object to test |
|
staticinherited |
Creates new simulation proxy of default type.
|
inherited |
|
protectedinherited |
|
inherited |
Print current agxData buffer allocations to a file.
|
inherited |
Print current task performance timers to a file.
|
protectedinherited |
|
inherited |
Referenced by agx::ScalarParameter::get(), agx::ArrayParameter::get(), agxData::Buffer::getArray(), and agxData::Buffer::getElement().
|
inherited |
|
inherited |
|
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.
|
staticinherited |
|
inherited |
Gets the action manager.
|
staticinherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Referenced by agx::Object::getAutoScopedResource().
|
inherited |
|
inherited |
Definition at line 428 of file Object.h.
References agx::Object::getAutoScopedResource(), and agx::Referenced::is().
|
inherited |
|
inherited |
Definition at line 1784 of file Simulation.h.
|
inherited |
Definition at line 1789 of file Simulation.h.
|
inherited |
Find (linear search) and return a pointer to a Constraint with the given uuid.
| uuid | - uuid of the requested constraint |
Definition at line 1811 of file Simulation.h.
Referenced by agxSDK::Simulation::getConstraint().
|
inherited |
Find and return a pointer to a Constraint with the given uuid.
| uuid | - uuid of the requested constraint |
Definition at line 1805 of file Simulation.h.
References agxSDK::Simulation::getConstraint().
|
inherited |
Find (linear search) and return named Constraint.
| name | - name of the Constraint to find |
Definition at line 1823 of file Simulation.h.
References agxSDK::Simulation::getConstraint().
|
inherited |
Find (linear search) and return named Constraint.
| name | - name of the Constraint to find |
Definition at line 1817 of file Simulation.h.
References agxSDK::Simulation::getConstraint().
|
inherited |
Find and return named Constraint of a templated type, for example Hinge:
agx::Hinge *hinge = simulation->getConstraint<agx::Hinge>(uuid);
| uuid | - uuid of the Constraint to find |
|
inherited |
Find and return named Constraint of a templated type, for example Hinge:
const agx::Hinge* hinge = simulation->getConstraint<agx::Hinge>(uuid);
| uuid | - uuid of the Constraint to find |
|
inherited |
Find and return named Constraint of a templated type, for example Hinge:
agx::Hinge *hinge = simulation->getConstraint<agx::Hinge>("FrontWheelHinge");
| name | - name of the Constraint to find |
|
inherited |
Find and return named Constraint of a templated type, for example Hinge:
const agx::Hinge* hinge = simulation->getConstraint<agx::Hinge>("FrontWheelHinge");
| name | - name of the Constraint to find |
|
inlineinherited |
Definition at line 1486 of file Simulation.h.
|
inlineinherited |
Definition at line 1487 of file Simulation.h.
|
inherited |
|
inherited |
|
inline |
Definition at line 282 of file TerrainUtils.h.
References m_contactGenerator.
|
inherited |
|
inherited |
|
inherited |
Definition at line 373 of file Object.h.
Referenced by agxData::Value::get(), and agx::Model::getNamespace().
|
inherited |
|
inherited |
|
staticprotectedinherited |
|
inherited |
Definition at line 222 of file Component.h.
Referenced by agx::Component::getDevice().
|
inherited |
Definition at line 223 of file Component.h.
References agx::Component::getDevice().
|
inherited |
|
inherited |
|
inherited |
Definition at line 1748 of file Simulation.h.
References agx::ref_ptr< T >::get().
|
inherited |
Definition at line 1743 of file Simulation.h.
References agx::ref_ptr< T >::get().
|
inherited |
Find (linear search) and return an emitter matching the given uuid.
| uuid | - uuid of the emitter to find |
|
inherited |
Find (linear search) and return an emitter matching the given uuid.
| uuid | - uuid of the emitter to find |
|
inherited |
Find (linear search) and return an emitter matching the given name.
| name | - name of the emitter to find |
|
inherited |
Find (linear search) and return an emitter matching the given name.
| name | - name of the emitter to find |
|
inherited |
|
inherited |
|
inherited |
|
staticinherited |
Should rebinding be allowed? Right now a global setting.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
return the energy manager of the system.
|
inherited |
Find and return the first matching named event listener.
| name | - name of the event listener to find |
|
inherited |
Find and return the first matching named event listener.
| name | - name of the event listener to find |
|
inherited |
Find (linear search) and return the first event listener matching the uuid.
| uuid | - uuid of the event listener to find |
|
inherited |
Find (linear search) and return the first event listener matching the uuid.
| uuid | - uuid of the event listener to find |
|
inherited |
Get a vector containing all the registered event listeners.
|
inherited |
|
inherited |
Find (linear search) and return named collision Geometry.
| name | - name of the collision Geometry to find |
|
inherited |
Find (linear search) and return named collision Geometry.
| name | - name of the collision Geometry to find |
|
inherited |
Find (linear search) and return a geometry matching the given uuid.
| uuid | - uuid of the collision Geometry to find |
|
inherited |
Find (linear search) and return a geometry matching the given uuid.
| uuid | - uuid of the collision Geometry to find |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 370 of file Object.h.
Referenced by agxData::EntityStorage::indexToId().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
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.
|
inherited |
|
inherited |
Definition at line 369 of file Object.h.
Referenced by agxData::Value::get(), agxData::EntityStorage::get(), agxData::FormatBinding< T >::getFormat(), and agxData::EntityPtr::operator()().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 194 of file Component.h.
Referenced by agxData::EntityPtr::operator()().
|
inherited |
Definition at line 195 of file Component.h.
|
inherited |
Definition at line 197 of file Component.h.
|
inherited |
Definition at line 198 of file Component.h.
|
inherited |
|
inherited |
|
inherited |
Definition at line 192 of file Component.h.
Referenced by agx::Component::getObjects().
|
inherited |
|
inherited |
|
inherited |
Definition at line 241 of file Component.h.
References agx::Component::getObjects().
|
inherited |
Find (linear search) and return named ObserverFrame.
| name | - name of the observer to find |
|
inherited |
Find (linear search) and return named ObserverFrame.
| name | - name of the observer to find |
|
inherited |
Find (linear search) and return a pointer to a ObserverFrame with the given uuid.
| uuid | - uuid of the requested observer frame |
|
inherited |
Find (linear search) and return a pointer to a ObserverFrame with the given uuid.
| uuid | - uuid of the requested observer frame |
|
inherited |
Find (linear search) and return a pointer to a ObserverFrame with the given uuid.
| uuid | - uuid of the requested observer frame |
|
inherited |
Find and return a pointer to a ObserverFrame with the given uuid.
| uuid | - uuid of the requested observer frame |
|
inherited |
Find (linear search) the first ObserverFrame object in the system that matches the name.
|
inherited |
Find (linear search) the first ObserverFrame object in the system that matches the name.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inline |
Definition at line 278 of file TerrainUtils.h.
References m_dynamicHeightFieldParticleCoordinateSystem.
|
inherited |
|
inline |
Definition at line 290 of file TerrainUtils.h.
References m_particleRadius.
|
inherited |
|
inherited |
|
inherited |
|
inline |
Definition at line 294 of file TerrainUtils.h.
References m_uniqueParticleId.
|
inherited |
Referenced by agxData::EntityStorage::dereferenceMultipliedAttribute(), agx::ScalarParameter::get(), agx::ArrayParameter::get(), agx::PointerParameter::get(), agxData::EntityInstance::verifyIndex(), and agxData::EntityPtr::verifyIndex().
|
inherited |
| root | A node along the parent path from this object. |
|
inherited |
|
inherited |
|
inherited |
Definition at line 1760 of file Simulation.h.
References agx::ref_ptr< T >::get().
|
inherited |
Definition at line 1755 of file Simulation.h.
References agx::ref_ptr< T >::get().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Referenced by agx::Object::getResource().
|
inherited |
|
inherited |
Definition at line 414 of file Object.h.
References agx::Object::getResource(), and agx::Referenced::is().
|
inherited |
|
overridevirtualinherited |
Reimplemented from agx::Object.
Reimplemented in agx::Task, and agxData::EntityStorage.
|
inherited |
|
inherited |
|
inherited |
Find (linear search) and return named RigidBody.
| name | - name of the body to find |
|
inherited |
Find (linear search) and return named RigidBody.
| name | - name of the body to find |
|
inherited |
Find (linear search) and return a pointer to a RigidBody with the given uuid.
| uuid | - uuid of the requested rigid body |
|
inherited |
Find (linear search) and return a pointer to a RigidBody with the given uuid.
| uuid | - uuid of the requested rigid body |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Internal method.
Proxy of this object used by objects running in parallel and still needs to add/remove things from this simulation.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 1799 of file Simulation.h.
|
inherited |
|
inherited |
|
inherited |
Definition at line 1733 of file Simulation.h.
References agx::ref_ptr< T >::get().
|
inherited |
Definition at line 1738 of file Simulation.h.
References agx::ref_ptr< T >::get().
|
inherited |
| i | - index (i < getNumTerrains()) |
i
|
inherited |
A data series that contains all time stamps of the simulation.
Definition at line 1765 of file Simulation.h.
References agx::ref_ptr< T >::get().
|
inherited |
A data series that contains all time stamps of the simulation.
Definition at line 1770 of file Simulation.h.
References agx::ref_ptr< T >::get().
|
inherited |
Definition at line 1728 of file Simulation.h.
References agx::Clock::getTime().
|
inherited |
Definition at line 1778 of file Simulation.h.
|
inherited |
If the current gravity field is not a uniform one (for example PointGravityField), 0,0,0 will be returned.
|
inherited |
|
inherited |
|
inherited |
Find and return the first matching named wire.
| name | - name of the wire to find |
|
inherited |
Find and return the first matching named wire.
| name | - name of the wire to find |
|
inherited |
Find (linear search) and return the first wire matching the uuid.
| uuid | - uuid of the wire to find |
|
inherited |
Find (linear search) and return the first wire matching the uuid.
| uuid | - uuid of the wire to find |
|
inherited |
Internal method.
Handles stability report sent from the solver.
|
inherited |
|
inherited |
|
inherited |
Subclass test.
Referenced by agx::Object::getAutoScopedResource(), agxData::Buffer::getElement(), and agx::Object::getResource().
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
|
staticinherited |
Definition at line 379 of file Object.h.
References agx::Object::load().
|
staticinherited |
Definition at line 386 of file Object.h.
References agx::Object::load().
|
staticinherited |
|
staticinherited |
|
inherited |
|
staticinherited |
|
overridevirtualinherited |
Reimplemented from agx::Object.
|
inherited |
|
inherited |
Read serialized simulation from the specified file and append to this simulation.
| parent | - If != nullptr, all read objects will be added to this parent too. |
| selection | - Options for reading in. See ReadSelectionMask. |
|
inherited |
Read serialized simulation from the specified stream.
| 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. |
|
inherited |
|
overridevirtualinherited |
Reimplemented from agx::Object.
Reimplemented in agx::Task, and agx::Clock.
Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
This method should be used with care, always balanced with the same number of calls to unreference.
Referenced by agxData::Val< UInt >::Val().
|
inherited |
Remove an explicit contact material from the set of existing ContactMaterials.
Referenced by agxUtil::GeneralContactEventListener< agxModel::TwoBodyTire >::separation().
|
inherited |
Remove a specified material from the simulation.
|
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()
|
inherited |
Remove a body from the Simulation, the body will be disabled!
| 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. |
|
inherited |
Removes the merged body from this simulation.
| mergedBody | - merged body to remove |
|
inherited |
Remove a constraint from the simulation.
| constraint | - The constraint to be removed. |
|
inherited |
Remove an Interaction from the Simulation.
| interaction | - The object to be removed |
|
inherited |
Remove an assembly from the simulation.
| removeAllEntries | - If true (default) it will also remove all its contained entries, such as geometries, bodies, EventListeners, sub-assemblies and constraints |
|
inherited |
Remove a sub component from Simulation.
| subComponent | - The component to be removed |
|
inherited |
Remove a ObserverFrame to the Simulation.
| observerFrame | the frame to remove |
|
inherited |
Remove an action from this simulation.
| action | - action to remove |
|
inherited |
Remove an operation from this simulation.
| operation | - operation to remove |
|
inherited |
Remove a particle system from the simulation.
| particleSystem | - The particle system to be removed. |
|
inherited |
Remove an emitter from the system.
| emitter | - The emitter to be removed. |
|
inherited |
Remove a particle contact sensor from the system.
| sensor | - The particle contact sensor to be removed. |
|
inherited |
Remove terrain (agxTerrain::Terrain) instance from this simulation.
| terrain | - terrain to remove |
|
inherited |
Remove a Event listener.
| listener | The listener to remove. |
| true | if successfully removed (and part of Simulation before). |
|
inherited |
Remove an object as a serializable object.
Might be any of the above classes having an add method: Geometry, RigidBody etc.
| successfully removed? |
|
inherited |
Remove a parameter from the simulation configuration interface.
|
inherited |
Remove all components.
|
inherited |
Remove the specified listener.
The listener will get a call to its removeNotification method if removal was successful.
|
inherited |
|
virtualinherited |
Remove an object from the component.
Remove an object with a specified name (and optional index) from the component.
|
inherited |
Remove an existing listener in a simulation.
| listener | The listener to be removed |
|
inherited |
|
inherited |
|
inherited |
Reset profiling timers.
|
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.
|
inherited |
|
inherited |
Read data from the input archive and add to the simulation.
| 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 |
|
inlinevirtualinherited |
Reimplemented in agx::Clock.
|
inherited |
Send the simulation to the remote debugger (if enabled)
|
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
|
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.
| binResolution | - parameter to ContactReducer. |
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.
| threshold | - Lower threshold for number of contact points in a rigid body contact in order run contact reduction on it. |
|
virtualinherited |
Reimplemented in agx::Task, and agxData::FunctionValue.
|
staticprotectedinherited |
Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
|
inherited |
Replace the current DynamicsSystem with system.
|
staticinherited |
Sets if rebinding of objects should be allowed (Right now a global setting).
Allowing it when adding larger parts to the system tree might hit performance, so it might be smarter to disable it first, then add, and then enable again.
|
inherited |
Enable/Disable remote debugging.
| 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 |
|
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.
|
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.
|
inherited |
| enable | - if true, the rendering of statistics will be dispatched to the agxRender::RenderManager |
|
inherited |
Set the GravityField model used in gravity calculations.
Default is UniformGravityField.
| gravityField | - The model used. |
|
inherited |
Specify which is the main working thread for the Simulation.
All calls from event listeners (StepEventListener::pre() etc.) will come from this thread.
| thread | - A pointer to the thread that should be the main thread. |
|
inherited |
Set the object model (handled automatically).
Definition at line 286 of file TerrainUtils.h.
References m_particleRadius.
|
inherited |
Assign interface for pick handler.
| pickHandler | - pick handler interface |
|
inherited |
Replace the current PlotSystem with plotSystem.
|
inherited |
Set true to integrate positions at the start of the timestep rather than at the end.
Specify the frequency for performance profiling.
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.
|
inherited |
|
inherited |
Replace the current SimulationSerializer with a new instance.
|
inherited |
Replace the current Collision space with space.
| interval | - specifies the interval in seconds for writing statistics data down to disk |
|
inherited |
Specify the path to a file where the statistics information will be written when enabled.
| path | - The path to a filename into which statistics information will be written. |
|
inherited |
Set the timestamp for the simulation (and the DynamicsSystem)
| t | - New timestamp |
|
inherited |
Sets the time step determined by the TimeGovernor in the DynamicsSystem.
| timeStep | - The new time step. |
|
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))
| g | - Gravity vector |
|
inherited |
|
overridevirtualinherited |
Reimplemented from agx::Object.
|
inherited |
Take one step forward in the simulation.
Length of time step is determined by the TimeGovernor in the DynamicsSystem
|
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.
|
inherited |
Save this simulation to the output archive.
| archive | - Archive associated to a stream to which the data will be written. |
|
inherited |
|
inherited |
|
inherited |
Execute a GuiEvent.
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.
This method should be used with care, always balanced with the same number of calls to reference.
|
inherited |
Decrement the reference count by one, indicating that a pointer to this object is referencing it.
However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.
|
inherited |
Internal method.
Update the internal active ActionManager in the simulation
|
inherited |
Make an explicit call to RenderManager::update() to update the debug rendering information.
|
inherited |
Make an explicit call to RenderManager::update() to update the statistics rendering information.
|
staticinherited |
|
inherited |
Serialize the simulation to the specified file.
| filename | - Name of file to which the simulation will be written |
|
inherited |
Serialize the simulation to the specified file.
| stream | - The stream to which the simulation object will be written |
| binary | - if true, it's a binary dataset. |
|
inherited |
|
inherited |
|
inherited |
Definition at line 137 of file Simulation.h.
|
inherited |
Definition at line 143 of file Simulation.h.
|
inherited |
Definition at line 131 of file Simulation.h.
|
inherited |
Definition at line 140 of file Simulation.h.
|
inherited |
Definition at line 63 of file Component.h.
|
inherited |
Definition at line 134 of file Simulation.h.
|
inherited |
Definition at line 146 of file Simulation.h.
|
protected |
Definition at line 301 of file TerrainUtils.h.
Referenced by getContactGenerator().
|
protected |
Definition at line 300 of file TerrainUtils.h.
Referenced by getParticleCoordinateSystem().
|
mutableprotectedinherited |
Definition at line 240 of file Referenced.h.
|
mutableprotectedinherited |
Definition at line 239 of file Referenced.h.
|
protected |
Definition at line 302 of file TerrainUtils.h.
Referenced by getParticleRadius(), and setParticleRadius().
|
mutableprotectedinherited |
Definition at line 241 of file Referenced.h.
|
protected |
Definition at line 299 of file TerrainUtils.h.
Referenced by getParticleUniqueId().
|
protected |
Definition at line 303 of file TerrainUtils.h.
|
inherited |
Definition at line 138 of file Simulation.h.
|
inherited |
Definition at line 144 of file Simulation.h.
|
inherited |
Definition at line 132 of file Simulation.h.
|
inherited |
Definition at line 141 of file Simulation.h.
|
inherited |
Definition at line 64 of file Component.h.
|
inherited |
Definition at line 135 of file Simulation.h.