AGX Dynamics  2.37.3.2
agxModel::DynamicHeightFieldSimulation Class Reference

#include <TerrainUtils.h>

+ Inheritance diagram for agxModel::DynamicHeightFieldSimulation:

Public Member Functions

 DynamicHeightFieldSimulation ()
 
ContactGenerator * getContactGenerator ()
 
ParticleCoordinateSystem & getParticleCoordinateSystem ()
 
agx::Real getParticleRadius ()
 
agx::UInt32 getParticleUniqueId () const
 
void setParticleRadius (agx::Real radius)
 
- Public Member Functions inherited from agxSDK::Simulation
 Simulation ()
 Default constructor This constructor CAN Throw a std::runtime_exception if configuration file is broken/invalid. More...
 
 Simulation (agx::Device *device)
 Special constructor which will associate the Simulation to a specified device. More...
 
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, bool addGeometries=true)
 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...
 
bool addRestoreListener (agxStream::RestoreListener *listener)
 Add a restore listener to the Simulation. More...
 
void addSolveModel (agx::SolveModel *model)
 
bool allowCreateParticles () const
 
bool breakStepTo ()
 Break an initiated stepTo() after the current simulation step. More...
 
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...
 
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...
 
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::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 ()
 
agx::UInt8 getContactReductionBinResolution () const
 
agx::UInt getContactReductionThreshold () 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 ()
 
agxData::EntityStorage * getEmitterStorage ()
 
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::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 (const agx::Name &name)
 Find (linear search) and return named MergedBody. More...
 
const agx::MergedBody * getMergedBody (const agx::Name &name) const
 Find (linear search) and return named MergedBody. More...
 
agx::MergedBody * getMergedBody (const agx::Uuid &uuid)
 Find (linear search) and return a pointer to a MergedBody with the given uuid. More...
 
const agx::MergedBody * getMergedBody (const agx::Uuid &uuid) const
 Find (linear search) and return a pointer to a MergedBody with the given uuid. More...
 
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::UInt getNumMergedBodies () const
 
agx::UInt getNumTerrains () 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
 
agx::ParticleEmitterRefVector getParticleEmitters ()
 
agx::ParticleSystem * getParticleSystem () const
 
agx::ParticleSystemRefVector & getParticleSystems ()
 
const agx::ParticleSystemRefVector & getParticleSystems () const
 
agxSDK::PickHandler * getPickHandler ()
 
const agxSDK::PickHandler * getPickHandler () const
 
agxPlot::System * getPlotSystem () const
 
bool getPreIntegratePositions () const
 
agx::Real getProfilingFrequency () const
 
agx::Real getRemoteDebuggingTimeStep () const
 
agxRender::RenderManager * getRenderManager ()
 
const agxRender::RenderManager * getRenderManager () const
 
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...
 
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
 
agxPlot::DataSeries * getTimeDataSeries () const
 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...
 
void loadSolveModels (const agx::String &path, bool clear=false)
 
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)
 
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, bool removeGeometries=true)
 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...
 
bool removeEventListener (agxSDK::EventListener *listener)
 Remove the specified listener. 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...
 
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 minimum number of contacts between two bodies required to execute contact reduction. More...
 
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 setMainWorkThread (agx::Thread *thread)
 Specify which is the main working thread for the Simulation. More...
 
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)
 
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...
 
bool triggerEvent (const GuiEvent &e)
 Execute a GuiEvent. 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
 
- Public Member Functions inherited from agx::Component
 Component (const agx::Name &name=agx::Name(), agx::Model *model=agx::Component::ClassModel(), agx::Device *device=nullptr)
 
virtual void addObject (agx::Object *object, bool assignContext=true)
 Add an object to the component. More...
 
virtual String autoComplete (const String &partialName, StringVector &matchingNames) const
 
virtual void buildNavigationTree (agxJson::Value &eNode) const override
 
virtual void configure (TiXmlElement *eComponent) override
 
void configure (Model *model)
 
agx::Device * getDevice ()
 
const agx::Device * getDevice () const
 
template<typename T >
T * getDevice ()
 
template<typename T >
const T * getDevice () const
 
size_t getNumObjects (const agx::Name &name) const
 
agx::Object * getObject (const agx::Name &name, size_t index=0)
 
const agx::Object * getObject (const agx::Name &name, size_t index=0) const
 
agx::Object * getObject (const agx::Name &name, agx::Model *model, size_t index=0)
 
const agx::Object * getObject (const agx::Name &name, agx::Model *model, size_t index=0) const
 
template<typename T >
T * getObject (const agx::Name &name, size_t index=0)
 
template<typename T >
const T * getObject (const agx::Name &name, size_t index=0) const
 
const agx::ObjectRefVector & getObjects () const
 
template<typename T >
void getObjects (agx::ObjectPtrVector &result, bool recursive=false) const
 
void getObjects (agx::ObjectPtrVector &result, const agx::Model *model, bool recursive=false) const
 
virtual Object * getResourceImpl (const Path &path, agx::Model *model) override
 
virtual void printSubtree () const override
 
void printSubtree (std::ostream &stream, int depth=0) const
 
virtual void rebind () override
 
void removeAllObjects ()
 Remove all components. More...
 
virtual void removeObject (agx::Object *object)
 Remove an object from the component. More...
 
void removeObject (const agx::Name &name, size_t index=0)
 Remove an object with a specified name (and optional index) from the component. More...
 
virtual void snapshot (TiXmlNode *eParent, const String &directory) const override
 
void traverse (const TraverseCallback &callback)
 
void traverse (ComponentVisitor *)
 
- Public Member Functions inherited from agx::Object
 Object (const Name &name=Name(), Model *model=Object::ClassModel())
 
void addListener (EventListener *listener)
 
agx::String fullName () const
 
agx::String fullPath () const
 
agx::String fullPath (const agx::Object *root) const
 
agx::Object * getAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr)
 
const agx::Object * getAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr) const
 
template<typename T >
T * getAutoScopedResource (const agx::Path &path)
 
template<typename T >
const T * getAutoScopedResource (const agx::Path &path) const
 
agx::Object * getContext ()
 
const agx::Object * getContext () const
 
template<typename T >
T * getContext ()
 
template<typename T >
const T * getContext () const
 
agx::UInt32 getId () const
 
const agx::Name & getImplementationName () const
 
agx::Model * getModel ()
 
const agx::Model * getModel () const
 
const agx::Name & getName () const
 
agx::Object * getNextSibling ()
 
const agx::Object * getNextSibling () const
 
agx::Path getPath () const
 
agx::Path getPath (const agx::Object *root) 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
 
agx::Object * getRootContext ()
 
const agx::Object * getRootContext () const
 
bool hasListener (EventListener *listener)
 
bool hasParent (const agx::Object *node) const
 
bool isUnique () const
 
void removeListener (EventListener *listener)
 
virtual void save (TiXmlElement *) const
 
virtual void setContext (agx::Object *context)
 
void setId (UInt32 id)
 
void setModel (agx::Model *model)
 Set the object model (handled automatically). More...
 
void setName (const agx::Name &name)
 Set the name of the object. More...
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor. More...
 
 Referenced (const Referenced &)
 
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
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test. More...
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object. More...
 
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...
 
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...
 

Protected Attributes

ContactGeneratorRef m_contactGenerator
 
ParticleCoordinateSystem m_dynamicHeightFieldParticleCoordinateSystem
 
agx::Real m_particleRadius
 
agx::UInt32 m_uniqueParticleId
 
bool m_useDistanceJoint
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Additional Inherited Members

- Public Types inherited from agxSDK::Simulation
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::Event2< Simulation *, agxCollide::Geometry * > GeometryEvent
 
typedef agx::Event2< Simulation *, agx::Journal * > JournalAttachEvent
 
typedef agx::Event2< Simulation *, agx::Material * > MaterialEvent
 
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
 
- Public Types inherited from agx::Component
typedef Event2< Component *, Object * > ObjectEvent
 Event when adding removing child objects. More...
 
typedef Callback1< Object * > TraverseCallback
 
- Public Types inherited from agx::Object
typedef agx::observer_ptr< const Event > EventConstObserver
 
typedef agx::ref_ptr< const Event > EventConstRef
 
typedef agx::observer_ptr< Event > EventObserver
 
typedef agx::Vector< EventObserver > EventObserverVector
 
typedef agx::VectorPOD< Event * > EventPtrVector
 
typedef agx::ref_ptr< Event > EventRef
 
typedef agx::Vector< EventRef > EventRefVector
 
- Static Public Member Functions inherited from agxSDK::Simulation
static agx::Model * ClassModel ()
 Internal method. More...
 
static agxSDK::SimulationProxyRef createDefaultProxy (agxSDK::Simulation *simulation)
 Creates new simulation proxy of default type. More...
 
static Simulation * load (agx::TiXmlElement *eSimulation, agx::Device *device)
 
- Static Public Member Functions inherited from agx::Component
static Component * _load (TiXmlElement *eComponent, Device *device)
 
static agx::Model * ClassModel ()
 
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 Public Member Functions inherited from agx::Object
static agx::Model * ClassModel ()
 
static agx::String generateName (const agx::String &bindPath)
 
static const HashSet< Object * > & getActiveObjects ()
 
static bool getEnableRebind ()
 Should rebinding be allowed? Right now a global setting. More...
 
static Object * load (TiXmlElement *eObject, Device *device)
 
template<typename T >
static T * load (TiXmlElement *eObject, 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)
 
template<typename T >
static T * load (const String &path, Device *device, const String &type="", size_t instance=0)
 
template<typename T >
static T * load (const String &path, Device *device, const String &type, const String &attribute, const String &value)
 
static TiXmlDocument openDocument (const String &path)
 
static void setEnableRebind (bool flag)
 Sets if rebinding of objects should be allowed (Right now a global setting). More...
 
- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 
- Public Attributes inherited from agxSDK::Simulation
ConstraintEvent addConstraintEvent
 
ContactMaterialEvent addContactMaterialEvent
 
GeometryEvent addGeometryEvent
 
MaterialEvent addMaterialEvent
 
RigidBodyEvent addRigidBodyEvent
 
JournalAttachEvent journalAttachedEvent
 
ConstraintEvent removeConstraintEvent
 
ContactMaterialEvent removeContactMaterialEvent
 
GeometryEvent removeGeometryEvent
 
MaterialEvent removeMaterialEvent
 
RigidBodyEvent removeRigidBodyEvent
 
- Public Attributes inherited from agx::Component
ObjectEvent addObjectEvent
 
ObjectEvent removeObjectEvent
 
- Protected Member Functions inherited from agxSDK::Simulation
virtual ~Simulation ()
 Destructor. More...
 
- Protected Member Functions inherited from agx::Component
virtual ~Component ()
 
String expandAutoCompletionMatch (const String &query, const StringVector &matchingNames) const
 
void setDevice (Device *device)
 
- Protected Member Functions inherited from agx::Object
virtual ~Object ()
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor. More...
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 
- Static Protected Member Functions inherited from agx::Referenced
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...
 

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.

Constructor & Destructor Documentation

◆ DynamicHeightFieldSimulation()

agxModel::DynamicHeightFieldSimulation::DynamicHeightFieldSimulation ( )

Member Function Documentation

◆ getContactGenerator()

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

Definition at line 282 of file TerrainUtils.h.

◆ getParticleCoordinateSystem()

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

Definition at line 278 of file TerrainUtils.h.

◆ getParticleRadius()

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

Definition at line 290 of file TerrainUtils.h.

◆ getParticleUniqueId()

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

Definition at line 294 of file TerrainUtils.h.

◆ setParticleRadius()

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

Definition at line 286 of file TerrainUtils.h.

Member Data Documentation

◆ 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_particleRadius

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

Definition at line 302 of file TerrainUtils.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.


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