AGXDynamics  2.31.1.0
agxTerrain::Terrain Class Referenceabstract

A terrain model based a 3D grid model with overlapping height field that can be deformed by interacting shovels objects performing digging motions, converting solid mass to dynamic mass which can be moved. More...

#include <Terrain.h>

+ Inheritance diagram for agxTerrain::Terrain:

Classes

struct  offsetIndexInfo
 

Public Types

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
 
enum  MassType { MassType::SOLID, MassType::PARTICLE, MassType::FLUID }
 
enum  MaterialType { MaterialType::TERRAIN, MaterialType::PARTICLE, MaterialType::AGGREGATE }
 
typedef Event2< Component *, Object * > ObjectEvent
 Event when adding removing child objects. More...
 
typedef Callback1< Object * > TraverseCallback
 

Public Member Functions

 Terrain (size_t resolutionX, size_t resolutionY, agx::Real elementSize, agx::Real maximumDepth)
 Constructor. More...
 
 Terrain (size_t resolutionX, size_t resolutionY, agx::Real elementSize, const agx::RealVector &heights, bool flipY, agx::Real maximumDepth)
 Constructor. More...
 
bool add (Shovel *shovel)
 Adds a shovel object in the terrain. More...
 
void addListener (EventListener *listener)
 
bool addNoMergeZoneToGeometry (agxCollide::Geometry *geometry, agx::Real extensionDistance)
 Add disable merge and avalanche inside geometry bound with added extension distance. More...
 
virtual void addObject (agx::Object *object, bool assignContext=true)
 Add an object to the component. More...
 
 AGX_DECLARE_VECTOR_TYPES (Event)
 
template<typename T >
T * as ()
 Subclass casting. More...
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match. More...
 
template<typename T >
const T * asSafe () const
 
virtual String autoComplete (const String &partialName, StringVector &matchingNames) const
 
virtual void buildNavigationTree (agxJson::Value &eNode) const override
 
agx::Real calculateTotalDynamicMass () const
 
agx::Real calculateTotalFluidMass () const
 
agx::Real calculateTotalMass () const
 
agx::Real calculateTotalSolidMass () const
 
agx::Real calculateVolume ()
 
virtual void configure (TiXmlElement *eComponent) override
 
void configure (Model *model)
 
bool contains (const Shovel *shovel) const
 Check is a shovel object is registered in the terrain. More...
 
agx::String fullName () const
 
agx::String fullPath () const
 
agx::String fullPath (const agx::Object *root) const
 
agx::Object * getAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr)
 
const agx::Object * getAutoScopedResource (const agx::Path &path, agx::Model *model=nullptr) const
 
template<typename T >
T * getAutoScopedResource (const agx::Path &path)
 
template<typename T >
const T * getAutoScopedResource (const agx::Path &path) const
 
agx::StringVector getAvailableLibraryMaterials () const
 Get the available TerrainMaterial presets from the TerrainMaterialLibrary that contains calibrated bulk and contact properties for a predefined material archetype. More...
 
virtual const char * getClassName () const
 
agx::Vec2i getClosestGridPoint (const agx::Vec3 &worldPosition, bool clampToBound=false) const
 Finds the closes terrain grid point given any point in world. More...
 
agx::Vec3 getContactForce (const Shovel *shovel) const
 Given geometry contacts exists and the solver has solved them - calculates total shovel contact force between this terrain and the given shovel. More...
 
agx::ContactMaterial * getContactMaterial (Terrain::MaterialType type1, Terrain::MaterialType type2)
 Returns one of the internal contact materials in agxTerrain. More...
 
agx::Object * getContext ()
 
const agx::Object * getContext () const
 
template<typename T >
T * getContext ()
 
template<typename T >
const T * getContext () const
 
agx::Vec3 getDeformationContactForce (const Shovel *shovel) const
 Given geometry contacts exists and the solver has solved them - calculates total contact force between the terrain deformation soil aggregate and the given shovel. More...
 
agx::Device * getDevice ()
 
const agx::Device * getDevice () const
 
template<typename T >
T * getDevice ()
 
template<typename T >
const T * getDevice () const
 
agx::Real getDynamicMass (const Shovel *shovel) const
 
agx::Real getElementSize () const
 Returns the element size of a cell in agxTerrain, which is incidentally the distance between the center of each grid point in the surface height field. More...
 
bool getEnable () const
 
bool getEnableSerialization () const
 
bool getEnableUuidGeneration ()
 
agx::Vec3 getExcavationModeContactForce (const Shovel *shovel, Shovel::ExcavationMode excavationMode) const
 calculates total contact force between the soil aggregate associated with the specified excavation mode and the given shovel. More...
 
virtual agxCollide::Geometry * getGeometry () const override
 
agx::Real getHeight (const agx::Vec2i &terrainIndex, bool includeSurfaceParticles=false) const
 Gets the terrain height at a specific terrain grid node. More...
 
const agxCollide::HeightField * getHeightField () const
 
agx::UInt32 getId () const
 
const agx::Name & getImplementationName () const
 
agx::UInt32 getIndex () const
 This index is given at creation of this object. More...
 
agx::Real getInnerVolume (const Shovel *shovel) const
 
bool getIntersectingActiveGridElements (agxCollide::Geometry *geometry, agx::Vec3iVector &gridPoints, MassType massType) const
 Get intersecting 3D grid element with specified geometry that is active/occupied with a specified mass type. More...
 
bool getIntersectingGridElements (agxCollide::Geometry *geometry, agx::Vec3iVector &gridPoints) const
 Get intersecting 3D grid element with specified geometry. More...
 
agx::AffineMatrix4x4 getInverseTransform () const
 
agx::Real getLastDeadLoadFraction (const Shovel *shovel) const
 Get the last computed dead load fraction of the shovel, i.e how much of it's inner volume that is filled with dynamic soil. More...
 
agx::Real getLastExcavatedVolume () const
 
agx::Material * getMaterial (Terrain::MaterialType type=Terrain::MaterialType::TERRAIN) const
 Returns one of the internal materials in agxTerrain. More...
 
size_t getMemoryUsage ()
 Returns the memory usage in bytes in agxTerrain. More...
 
agx::Real getMinimumAllowedHeight () const
 
agx::Model * getModel ()
 
const agx::Model * getModel () const
 
const ModifiedVerticesVector & getModifiedParticleVertices () const
 Returns the modified terrain height field (including particles) vertices during the last time step. More...
 
const ModifiedVerticesVector & getModifiedVertices () const
 Returns the modified terrain height field vertices during the last time step. More...
 
const ModifiedVerticesVector & getModifiedVoxelColumns () const
 Returns the terrain vertices which voxel columns has modified compaction during the last time step. More...
 
const agx::Name & getName () const
 
agx::Object * getNextSibling ()
 
const agx::Object * getNextSibling () const
 
bool getNoMerge ()
 Return whether this terrain is prevented from merging dynamic mass to it. More...
 
size_t getNumCreatedParticles () const
 Return the number of soil particles created during excavation this time step. More...
 
size_t getNumObjects (const agx::Name &name) const
 
size_t getNumSoilParticles () const
 Return the number of soil particles active in the simulation. More...
 
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
 
float getParticleNominalRadius ()
 Get the soil particle nominal radius from the simulation. More...
 
const ModifiedVerticesVector & getParticleVertices () const
 Returns the terrain vertices that contains soil particles during the last time step. More...
 
agx::Path getPath () const
 
agx::Path getPath (const agx::Object *root) const
 
bool getPenetrationForce (const Shovel *shovel, agx::Vec3 &force, agx::Vec3 &torque) const
 The result includes the active force and torque from the penetration resistance from the terrain on the shovel if the shovel is digging in the terrain. More...
 
agx::Vec3 getPosition () const
 
TerrainProperties * getProperties () const
 
int getReferenceCount () const
 
agx::RealVector getResizedHeightField (size_t factorX, size_t factorY) const
 Calculate a reduced version of the height field structure. More...
 
size_t getResolutionX () const
 Returns the element resolution of the terrain in the local X-axis. More...
 
size_t getResolutionY () const
 Returns the element resolution of the terrain in the local Y-axis. More...
 
agx::Object * getResource (const agx::Path &path, agx::Model *model=nullptr)
 
const agx::Object * getResource (const agx::Path &path, agx::Model *model=nullptr) const
 
template<typename T >
T * getResource (const agx::Path &path)
 
template<typename T >
const T * getResource (const agx::Path &path) const
 
virtual Object * getResourceImpl (const Path &path, agx::Model *model) override
 
agx::Object * getRootContext ()
 
const agx::Object * getRootContext () const
 
agx::Quat getRotation () const
 
agx::Vec3 getSeparationContactForce (const Shovel *shovel) const
 Given geometry contacts exists and the solver has solved them - calculates total contact force between the terrain soil particle aggregate and the given shovel. More...
 
agx::ContactMaterial * getShovelAggregateContactMaterial (const Shovel *shovel, Shovel::ExcavationMode mode=Shovel::ExcavationMode::PRIMARY) const
 Get the explicitly set contact material in a shovel-aggregate contact corresponding to a specified excavation mode for a specific shovel-terrain pair. More...
 
agxCollide::GeometryContactPtrVector getShovelAggregateContacts (const Shovel *shovel, Shovel::ExcavationMode excavationMode) const
 Get the shovel <-> aggregate contacts with the terrain given an excavation mode and a shovel. More...
 
ShovelRefVector getShovels () const
 Return the shovels currently added in the terrain. More...
 
agxSDK::Simulation * getSimulation () const
 
agx::Vec2 getSize () const
 Returns the total surface size of he terrain in X Y coordinate system. More...
 
agx::Real getSoilAggregateMass (const Shovel *shovel, Shovel::ExcavationMode excavationMode) const
 Returns the total soil aggregate mass in a terrain given a shovel and a specific excavation mode. More...
 
const agxCollide::HeightField * getSoilParticleBoundedHeightField () const
 Get the soil particle height field consisting of the highest point of either the terrain surface or the highest particle position in each terrain index. More...
 
SoilParticleStatistics getSoilParticleStatistics () const
 Get basic statistics of the soil particles active in the simulation. More...
 
SoilSimulationInterface * getSoilSimulationInterface () const
 Get the soil particle system interface used to represent the dynamic mass in the terrain. More...
 
virtual StorageAgent * getStorageAgent () const =0
 
agx::Vec3 getSurfacePosition (const agx::Vec2i &terrainIndex, bool includeSurfaceParticles=false) const
 Finds the terrain surface position, given in local coordinate frame, for a specified terrain index. More...
 
agx::Vec3 getSurfacePositionWorld (const agx::Vec2i &terrainIndex, bool includeSurfaceParticles=false) const
 Finds the terrain surface world position for a specified terrain index. More...
 
const TerrainContactRefVector & getTerrainContacts () const
 
TerrainGridControl * getTerrainGridControl () const
 Get control interface of the terrain grid data. More...
 
TerrainMaterial * getTerrainMaterial () const
 Returns the terrain material which is used to derive material and contact material parameters. More...
 
TerrainToolCollection * getToolCollection (const Shovel *shovel) const
 
const TerrainToolCollectionRefVector & getToolCollections () const
 
agx::Real getTotalSoilParticleMass () const
 Get the total mass (kg) of the active soil particles in the simulation. More...
 
agx::AffineMatrix4x4 getTransform () const
 
agx::Vec3 getUpDirection () const
 Returns the world up direction of the terrain. More...
 
agx::Uuid getUuid () const
 
agx::Real getVoxelArea () const
 
agx::Real getVoxelVolume () const
 
bool hasListener (EventListener *listener)
 
bool hasOverlap (const agxCollide::Geometry *geometry) const
 Return true if the specified geometry bounding volume overlaps the terrain geometry bounding volume. More...
 
bool hasParent (const agx::Object *node) const
 
template<typename T >
bool is () const
 Subclass test. More...
 
bool isBorderIndex (const agx::Vec2i &terrainIndex) const
 Checks if the specified index is at the border of the terrain. More...
 
bool isDigging (const Shovel *shovel) const
 Check if the specified shovel is currently in digging mode with the terrain, i.e if the cutting edge is submerged. More...
 
bool isFinished () const
 
bool isGeometryShovel (const agxCollide::Geometry *geometry) const
 Checks if the specified geometry's rigid body is contained in any of the terrain object's registered shovels. More...
 
bool isIndexWithinBounds (const agx::Vec2i &terrainIndex) const
 Checks if the specified index is within bound of the terrain [(0,0) -> (resolutionX, resolutionY)]. More...
 
bool isLocalPositionWithinBounds (const agx::Vec3 &position) const
 Checks whether the position is within terrain (x,y) position bounds in local space. More...
 
bool isRigidBodyShovel (const agx::RigidBody *body) const
 Checks if a specified rigid body is contained in any of the terrain object's registered shovels. More...
 
bool isUnique () const
 
bool isWorldPositionWithinBounds (const agx::Vec3 &position) const
 Checks whether the position is within terrain (x,y) position bounds in world space. More...
 
bool loadLibraryMaterial (const agx::String materialName)
 Loads a TerrainMaterial preset in the TerrainMaterialLibrary that contains calibrated bulk and contact properties for a predefined material archetype. More...
 
bool loadMaterialFile (const agx::String &filename)
 Load a TerrainMaterial from a specification file in JSON data format. More...
 
virtual void printSubtree () const override
 
void printSubtree (std::ostream &stream, int depth=0) const
 
agx::Bool projectPointToSurface (const agx::Vec3 &worldPosition, agx::Vec3 &result) const
 Project a world point to the grid surface. More...
 
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 (Shovel *shovel)
 Removes a shovel object in the terrain, if it exists. More...
 
void removeAllObjects ()
 Remove all components. More...
 
float removeFluidMassInGeometry (agxCollide::Geometry *geometry, float fluidMass)
 Remove fluid mass (in kg, NOT occupancy) in the intersecting 3D grid element with specified geometry. More...
 
void removeListener (EventListener *listener)
 
void removeModifiedParticleVertice (agx::Vec2i terrainIndex)
 Removes a vertex from the vector with vertices that were modified during the last time step. More...
 
bool removeNoMergeZoneToGeometry (agxCollide::Geometry *geometry)
 remove disable merge and avalanche inside geometry bound with added extension distance 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 save (TiXmlElement *) const
 
void setCompaction (agx::Real compaction, bool replaceCompactedSoil=true) const
 Set a compaction for all current active solid grid elements in the Terrain object. More...
 
virtual void setContext (agx::Object *context)
 
void setEnable (bool enable)
 Set if terrain computations should be enabled. More...
 
void setEnableSerialization (bool flag)
 Set to false to disable serialization of this object. More...
 
void setFinished ()
 Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. More...
 
void setHeight (const agx::Vec2i &terrainIndex, agx::Real height)
 Sets Terrain height at a specific terrain grid node. More...
 
bool setHeights (const agx::RealVector &heights, bool flipY=false, bool resetCompaction=true)
 Set height values of all sampled points. More...
 
void setId (UInt32 id)
 
void setMaterial (agx::Material *material)
 Assign new material to this terrain. 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 setNoMerge (bool noMerge)
 Prevent merge of dynamic mass to this terrain. More...
 
void setNoMergeEdgeMargin (size_t noMergeEdgeMargin)
 Add disable merge and avalanche a number of indices from the terrain edge. More...
 
void setPosition (const agx::Vec3 &position)
 Set the position of this terrain. More...
 
void setRotation (const agx::Quat &rotation)
 Set the rotation of this terrain. More...
 
bool setShovelAggregateContactMaterial (const Shovel *shovel, agx::ContactMaterial *contactMaterial, Shovel::ExcavationMode mode=Shovel::ExcavationMode::PRIMARY)
 Explicitly set contact material properties in a shovel-aggregate contact for a specific excavation mode for a specific shovel-terrain pair. More...
 
void setTerrainMaterial (TerrainMaterial *terrainMaterial)
 Set the material for the bulk of the terrain which is used to derive material and contact material parameters. More...
 
void setTransform (const agx::AffineMatrix4x4 &transform)
 Set the transform of this terrain. More...
 
void setUuid (const agx::Uuid &uuid)
 Explicitly set a Uuid on a serializable object. More...
 
virtual void snapshot (TiXmlNode *eParent, const String &directory) const override
 
agx::Vec3 transformPointToTerrain (const agx::Vec3 point) const
 Transform point given in world coordinate frame to local coordinate frame of this terrain. More...
 
agx::Vec3 transformPointToWorld (const agx::Vec3 point) const
 Transform point given in local coordinate frame of this terrain, to world coordinate frame. More...
 
agx::Vec3 transformVectorToTerrain (const agx::Vec3 vector) const
 Transform vector given in world coordinate frame to local coordinate frame of this terrain. More...
 
agx::Vec3 transformVectorToWorld (const agx::Vec3 vector) const
 Transform vector given in local coordinate frame of this terrain, to world coordinate frame. More...
 
void traverse (const TraverseCallback &callback)
 
void traverse (ComponentVisitor *)
 
void triggerForceAvalancheAll ()
 Triggers initial avalanching on all indices in the terrain. 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...
 

Static Public Member Functions

static Component * _load (TiXmlElement *eComponent, Device *device)
 
static agx::Model * ClassModel ()
 
static Terrain * createFromHeightField (const agxCollide::HeightField *heightField, agx::Real maximumDepth)
 Creates a terrain object by using an existing height field as a basis. More...
 
static Terrain * find (const agxSDK::Simulation *simulation, const agx::Name &name)
 Find first terrain with given name. More...
 
static Terrain * find (const agxSDK::Simulation *simulation, const agx::Uuid &uuid)
 Find terrain with given UUID. More...
 
static TerrainPtrVector findAll (const agxSDK::Simulation *simulation, const agx::Name &name)
 Find all terrains with given name. More...
 
static TerrainPtrVector findAll (const agxSDK::Simulation *simulation)
 Finds all terrains in the given simulation. More...
 
static agx::String generateName (const agx::String &bindPath)
 
static const HashSet< Object * > & getActiveObjects ()
 
static agx::Bool getEnableKinematicForParticles (const agx::RigidBody *rb)
 
static bool getEnableRebind ()
 Should rebinding be allowed? Right now a global setting. More...
 
static Component * load (const String &path, const Path &_namespace=Path())
 
static Component * load (const String &path, Device *device, const Path &_namespace=Path())
 
static Component * load (const Path &path, const Name &implementation, Device *device, const Path &_namespace=Path())
 
static Component * load (TiXmlElement *eComponent, Device *device)
 
static Object * load (const String &path, Device *device, const String &type="", size_t instance=0)
 
static Object * load (const String &path, Device *device, const String &type, const String &attribute, const String &value)
 
static void load (const String &path, Device *device, ObjectPtrVector &loadedObjects)
 
static TiXmlDocument openDocument (const String &path)
 
static void setEnableKinematicForParticles (agx::RigidBody *rb, agx::Bool enable)
 Enable/disable particles to see this rigid body as kinematic regardless of current motion control. More...
 
static void setEnableRebind (bool flag)
 Sets if rebinding of objects should be allowed (Right now a global setting). More...
 
static void setEnableUuidGeneration (bool flag)
 Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. More...
 
template<typename T >
static bool ValidateCast (const Referenced *object)
 

Public Attributes

ObjectEvent addObjectEvent
 
ObjectEvent removeObjectEvent
 

Protected Types

using GoToStopCondition = std::function< bool(const agx::Vec3i &index)>
 
typedef struct agxTerrain::Terrain::offsetIndexInfo offsetIndexInfo
 
using ParticleIslandVector = agx::Vector< agx::Vector< std::pair< agx::Vec3i, offsetIndexInfo > >>
 

Protected Member Functions

 Terrain ()
 Default constructor used in serialization. More...
 
 Terrain (agxCollide::HeightField *heightField, agx::Real maximumDepth)
 
virtual ~Terrain ()
 
bool _getIntersectingGridElements (Grid *grid, agxCollide::Geometry *geometry, agx::Vec3iVector &gridPoints, bool isOccupied=true) const
 
const agx::AffineMatrix4x4 & _getInverseTransform () const
 
const agx::AffineMatrix4x4 & _getTransform () const
 
void addDirtyVoxelsToAvalanche ()
 
void addModifiedParticleTerrainIndex (const agx::Vec2i &terrainIndex)
 
void addNeighbours (agxData::LocalVector< agx::Vec3i > &indexQueue, agx::Vec3i index)
 
virtual void addNotification () override
 Add notification executed when terrain is added to a simulation. More...
 
void allocateObserverVector () const
 
void applyFluidMassChanges (agx::HashTable< agx::Vec3i, float > &fluidMassTable)
 
void avalanche ()
 
void calculateFluidMassTransport (agx::HashTable< agx::Vec3i, float > &fluidMassTable)
 
SoilParticlePtrVector calculateParticlesInContactWithSurfaceGraph ()
 
void calculateShovelVoxelIntersection ()
 
agx::Real calculateSurfaceHeightFromVoxelIndex (const agx::Vec3i &voxelIndex)
 
void computeForbiddenBounds ()
 
void computeParticleGrowthTables (const agx::UInt64Vector &particleIndices, ParticleDeltaVector &particles)
 
agx::Real convertMassToOccupancy (agx::Real mass) const
 
agx::Real convertOccupancyToMass (agx::Real occupnacy) const
 
float convertOccupancyToParticleRadius (float occupancy) const
 
float convertParticleRadiusToOccupancy (float radius) const
 
float convertParticlesToSolidMass (agx::Vec3i voxel, ParticleWeightPairVector particles, float massToRemove, agx::Vec3iVector &changedIndices)
 
void convertRemovedOccupancyToDynamicMass ()
 
void convertVoxelsInActiveZonesToDynamicMass ()
 
void createFluidMassInVoxel (const agx::Vec3i &voxelIndex, agx::Real32 amount)
 
void createFluidMassOnTerrainSurface (const agx::Vec2i &terrainIndex, int surfaceVoxelOffset, agx::Real32 amount)
 
void createParticleIslands (ParticleIslandVector &particleIslands)
 
void createSoilParticles ()
 
agx::TaskGroupRef createTask_preCollide ()
 
void debugRenderForbiddenBounds ()
 
void debugRenderShovelForbiddenBounds ()
 
void deleteUsingDeleteHandler () const
 
void enforceIncompressibilityColumnwise ()
 
String expandAutoCompletionMatch (const String &query, const StringVector &matchingNames) const
 
agx::Real findNewHeightFromVoxelIndex (const agx::Vec3i &index)
 
bool findPathToSurfaceVoxel (const agx::Vec3i &startVoxel, std::deque< agx::Vec3i > &result)
 
bool findSurfaceVoxel (const agx::Vec3i &index, agx::Vec3i &result) const
 
agx::Real generateRandomNumber ()
 
agx::Vec3 generateRandomSoilParticlePositionPerturbation (agx::Real maxDelta)
 
agx::Quat generateRandomSoilParticleRotation ()
 
void generateUuid ()
 
AvalancheController * getAvalancheController () const
 
float getDynamicMassCompaction () const
 
agx::Real getMergeSpeedSquared () const
 
agx::HashVector< agx::Vec2i, agx::Int > getShovelHeightPerColumn ()
 
bool getSurfaceVoxel (const agx::Vec3i &voxelIndex, agx::Vec3i &result) const
 
agx::Vec3 getValidParticlePosition (const agx::Real radius, const agx::Vec3i &index, const agx::Vec3 &pos)
 
agx::Vec3f getVoxelVelocity (const agx::Vec3i &voxelIndex, agx::HashTable< agx::Vec3i, size_t > &shovelVoxels)
 
agx::Vec3i goToBoundaryVoxel (const agx::Vec3i &start) const
 
agx::Vec3i goToSurfaceVoxel (const agx::Vec3i &start) const
 
agx::Vec3i goToVoxelKernel (const agx::Vec3i &start, const GoToStopCondition &stopCondition) const
 
void growLargeParticlesFromParticleMass (ParticleDeltaVector &particles, float particleRadiusUpperLimit)
 
void growParticlesFromFluidMass (agx::Vec3i binIndex, int binVoxels, float availableFluidMass, ParticleDeltaVector &particles)
 
void growSmallParticlesFromParticleMass (ParticleDeltaVector &particles, float particleRadiusUpperLimit)
 
bool hasVoxelCompaction (const agx::Vec3i &index) const
 
void initBuildIslandTask ()
 
void initializeFromHeightField ()
 
void initializeSurfaceHeightFieldFromVoxelGrid ()
 
void initVoxelStructureFromHeightField (bool adjustForCompaction=false)
 
bool isActiveSolidVoxel (const agx::Vec3i &index) const
 
bool isDirty ()
 
agx::Bool isIndexWithinBoundsIssueWarning (const agx::Vec2i &terrainIndex) const
 
bool isSolidBoundaryVoxel (const agx::Vec3i &index) const
 
bool isSolidVoxel (const agx::Vec3i &index) const
 
bool isSubmergedVoxel (const agx::Vec3i &index) const
 
bool isSurfaceVoxel (const agx::Vec3i &index) const
 Surface voxel functions. More...
 
bool isVoxelWithinTerrainIndexBounds (const agx::Vec3i &index) const
 
virtual void last () override
 Callback to be executed at the end of the time step. More...
 
void markVoxelToAvalanche (const agx::Vec3i &changedVoxel)
 
agx::Vec3iVector mergeCuttingEdgeColumn (agx::Vec3i voxel, size_t numVoxelsToSurfaceThreshold, agx::Plane cuttingPlane)
 
bool mergeFluidMass ()
 
void mergeParticleIslands (const ParticleIslandVector &particleIslands, agxData::LocalVector< agx::Vec3i > &mergedParticleIndices)
 
void mergeSoilParticlesAndFluidMass ()
 
void mergeSoilToCuttingEdge ()
 
void moveEntityDataToCurrentThread ()
 
void moveParticlesToSurface (agx::Vec3iVector changedVoxelIndices)
 
bool particleIslandShouldMerge (const agx::Vector< std::pair< agx::Vec3i, offsetIndexInfo >> &island)
 
virtual void post () override
 Executes post-step events for agxTerrain in the simulation. More...
 
void postSolveShovels ()
 
void postSortSynchronizeParticleHeightField ()
 
void postUpdateCompaction ()
 
virtual void pre () override
 Executes pre-step events for agxTerrain in the simulation. More...
 
virtual void preCollide () override
 Executes pre-collide events for agxTerrain in the simulation. More...
 
void preSortSynchronizeParticleHeightField ()
 
void preUpdateTerrainContacts ()
 
virtual void removeNotification () override
 Remove notification executed when terrain is removed to a simulation. More...
 
void removeSoilParticlesOutsideTerrainBounds ()
 
void renderVoxelAABB (agx::Vec3i index, agx::Vec4f color)
 
void resizeOrRemoveParticles (const agx::HashTable< SoilParticlePtr, std::array< agx::Real, 2 >> &particlesToUpdate)
 
void resizeSoilParticles ()
 
virtual void runBuildIslandsTask ()
 
void sampleParticleMassVelocity ()
 
void setDevice (Device *device)
 
bool shouldDeformerActiveZoneRemoveMass (TerrainToolCollection *toolCollection, DeformerCollection *deformerCollection)
 
bool shouldPrimaryActiveZoneRemoveMass (TerrainToolCollection *toolCollection)
 
bool soilParticleShouldMerge (SoilParticlePtr &ptr) const
 
agx::HashTable< agx::Vec3i, agx::UInt64Vector > sortParticlesIntoBins (int binVoxels)
 
void sortParticlesIntoColumns ()
 
void sortParticlesIntoVoxels ()
 
void stepFluidMass ()
 
void storeModifiedTerrainIndex (const agx::Vec2i &terrainVertex)
 
void toolCollectionsPreCollide ()
 
agx::Real traceGridSurfaceHeightFromVoxelIndex (const agx::Vec3i &index, bool globalSearch=false)
 
bool traceGridSurfaceVoxel (const agx::Vec2i &voxelIndexXY, agx::Vec3i &surfaceVoxel) const
 
void updateIndicesForAvalanche (TerrainIndexSet &forbiddenVertices)
 
void updateOccupancyFromHeightChange (const agx::Vec2i &heightFieldIndex)
 
void updateSurfaceHeightFieldFromDirtyVoxels ()
 
void updateSurfaceHeightFieldFromHeightsTable (agx::HashTable< agx::Vec2i, std::pair< agx::Vec3i, agx::Real > > &table)
 
void updateSurfaceHeightFieldFromVoxelIndex (const agx::Vec3i &voxelIndex)
 
void updateSurfaceHeightFieldFromVoxelIndices (const agx::Vec3iVector &updateIndices)
 
void updateSurfaceHeightFieldFromVoxelIndices (const agxData::LocalVector< agx::Vec3i > &updateIndices)
 
void updateTransformationFromParentBody ()
 
bool voxelColumnHasParticles (const agx::Vec2i &vertex) const
 

Static Protected Member Functions

static DeleteHandler * getDeleteHandler ()
 
static void setDeleteHandler (DeleteHandler *handler)
 Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More...
 

Protected Attributes

Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Detailed Description

A terrain model based a 3D grid model with overlapping height field that can be deformed by interacting shovels objects performing digging motions, converting solid mass to dynamic mass which can be moved.

The underlying terrain data model consists of a hierarchical sparse 3D grid of cells, containing terrain data such as mass. The terrain surface is represented as a 2D height field that is updated when the underlying grid structure is changed. Mass is moved in the terrain via interacting shovels that converts solid cells to dynamic mass. Each shovel has an "Active Zone" which is defined by specifying two edges on the shovel's constructor, a top edge and a cutting edge. These edges should be perpendicular to the shovel's digging direction and parallel to the shovel's cross section. When the active zone intersects the terrain, dynamics mass is created in the overlapping area.

/

openvdb, which is a library for representing large sparse 3D hierarchal voxel structures, is used for cell storage and representation.

Definition at line 84 of file agxTerrain/Terrain.h.

Member Typedef Documentation

◆ EventConstObserver

Definition at line 62 of file Object.h.

◆ EventConstRef

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

Definition at line 62 of file Object.h.

◆ EventObserver

Definition at line 62 of file Object.h.

◆ EventRef

Definition at line 62 of file Object.h.

◆ GoToStopCondition

using agxTerrain::Terrain::GoToStopCondition = std::function<bool(const agx::Vec3i& index)>
protected

Definition at line 1181 of file agxTerrain/Terrain.h.

◆ ObjectEvent

typedef Event2<Component *, Object *> agx::Component::ObjectEvent
inherited

Event when adding removing child objects.

NOTE: Events are triggered recursively up the parent structure Example: B is added to root node A, one event is triggered (A.addObjectEvent(A, B)). Then when C is added to B two events are triggered (B.addObjectEvent(B, C), and A.addObjectEvent(B,C))

Definition at line 61 of file Component.h.

◆ offsetIndexInfo

◆ ParticleIslandVector

◆ TraverseCallback

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

Definition at line 141 of file Component.h.

Member Enumeration Documentation

◆ MassType

Enumerator
SOLID 
PARTICLE 
FLUID 

Definition at line 94 of file agxTerrain/Terrain.h.

◆ MaterialType

Enumerator
TERRAIN 
PARTICLE 
AGGREGATE 

Definition at line 87 of file agxTerrain/Terrain.h.

Constructor & Destructor Documentation

◆ Terrain() [1/4]

agxTerrain::Terrain::Terrain ( size_t  resolutionX,
size_t  resolutionY,
agx::Real  elementSize,
agx::Real  maximumDepth 
)

Constructor.

Creates a terrain object with a specific resolution of 2D grid points with elementSize as the length between them. The terrain length in each direction thus becomes (resolution - 1) * elementSize.

Parameters
resolutionX- The number of height points to use in the Terrain in the X-direction.
resolutionY- The number of height points to use in the Terrain in the Y-direction.
elementSize- The distance between the height points in the terrain.
maximumDepth- The maximum depth that the terrain can have.

◆ Terrain() [2/4]

agxTerrain::Terrain::Terrain ( size_t  resolutionX,
size_t  resolutionY,
agx::Real  elementSize,
const agx::RealVector &  heights,
bool  flipY,
agx::Real  maximumDepth 
)

Constructor.

Creates a terrain object with a specific resolution of 2D grid points with elementSize as the length between them. The terrain length in each direction thus becomes (resolution - 1) * elementSize.

Parameters
resolutionX- The number of height points to use in the Terrain in the X-direction.
resolutionY- The number of height points to use in the Terrain in the Y-direction.
elementSize- The distance between the height points in the terrain.
heights- A row major matrix, containing the specified heights, with dimensions (resolutionX, resolutionY).
flipY- set to true if y decreases with increasing indices in heights.
maximumDepth- The maximum depth that the terrain can have.

◆ Terrain() [3/4]

agxTerrain::Terrain::Terrain ( )
protected

Default constructor used in serialization.

◆ ~Terrain()

virtual agxTerrain::Terrain::~Terrain ( )
protectedvirtual

◆ Terrain() [4/4]

agxTerrain::Terrain::Terrain ( agxCollide::HeightField *  heightField,
agx::Real  maximumDepth 
)
protected

Member Function Documentation

◆ _getIntersectingGridElements()

bool agxTerrain::Terrain::_getIntersectingGridElements ( Grid *  grid,
agxCollide::Geometry *  geometry,
agx::Vec3iVector &  gridPoints,
bool  isOccupied = true 
) const
protected

◆ _getInverseTransform()

const agx::AffineMatrix4x4 & agxTerrain::Terrain::_getInverseTransform ( ) const
inlineprotected

Definition at line 1487 of file agxTerrain/Terrain.h.

◆ _getTransform()

const agx::AffineMatrix4x4 & agxTerrain::Terrain::_getTransform ( ) const
inlineprotected

Definition at line 1480 of file agxTerrain/Terrain.h.

◆ _load()

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

◆ add()

bool agxTerrain::Terrain::add ( Shovel *  shovel)

Adds a shovel object in the terrain.

The shovel objects interacts with the terrain by converting solid soil to dynamic soil in it's active zone.

Parameters
shovel- The specified shovel object.
Returns
true if the shovel object was successfully registered in the terrain object, false otherwise.

◆ addDirtyVoxelsToAvalanche()

void agxTerrain::Terrain::addDirtyVoxelsToAvalanche ( )
protected

◆ addListener()

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

◆ addModifiedParticleTerrainIndex()

void agxTerrain::Terrain::addModifiedParticleTerrainIndex ( const agx::Vec2i &  terrainIndex)
protected

◆ addNeighbours()

void agxTerrain::Terrain::addNeighbours ( agxData::LocalVector< agx::Vec3i > &  indexQueue,
agx::Vec3i  index 
)
protected

◆ addNoMergeZoneToGeometry()

bool agxTerrain::Terrain::addNoMergeZoneToGeometry ( agxCollide::Geometry *  geometry,
agx::Real  extensionDistance 
)

Add disable merge and avalanche inside geometry bound with added extension distance.

◆ addNotification()

virtual void agxTerrain::Terrain::addNotification ( )
overrideprotectedvirtual

Add notification executed when terrain is added to a simulation.

Reimplemented from agxSDK::TerrainInstance.

◆ addObject()

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

Add an object to the component.

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

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

◆ AGX_DECLARE_VECTOR_TYPES()

agx::Object::AGX_DECLARE_VECTOR_TYPES ( Event  )
inherited

◆ allocateObserverVector()

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

◆ applyFluidMassChanges()

void agxTerrain::Terrain::applyFluidMassChanges ( agx::HashTable< agx::Vec3i, float > &  fluidMassTable)
protected

◆ as() [1/2]

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

Subclass casting.

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

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

◆ as() [2/2]

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

◆ asSafe() [1/2]

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

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

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

◆ asSafe() [2/2]

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

◆ autoComplete()

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

Reimplemented in agx::Namespace.

◆ avalanche()

void agxTerrain::Terrain::avalanche ( )
protected

◆ buildNavigationTree()

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

Reimplemented from agx::Object.

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

◆ calculateFluidMassTransport()

void agxTerrain::Terrain::calculateFluidMassTransport ( agx::HashTable< agx::Vec3i, float > &  fluidMassTable)
protected

◆ calculateParticlesInContactWithSurfaceGraph()

SoilParticlePtrVector agxTerrain::Terrain::calculateParticlesInContactWithSurfaceGraph ( )
protected

◆ calculateShovelVoxelIntersection()

void agxTerrain::Terrain::calculateShovelVoxelIntersection ( )
protected

◆ calculateSurfaceHeightFromVoxelIndex()

agx::Real agxTerrain::Terrain::calculateSurfaceHeightFromVoxelIndex ( const agx::Vec3i &  voxelIndex)
protected

◆ calculateTotalDynamicMass()

agx::Real agxTerrain::Terrain::calculateTotalDynamicMass ( ) const
Returns
the calculated current total dynamic mass in the terrain in kg. This includes created soil particles and fluid mass.

◆ calculateTotalFluidMass()

agx::Real agxTerrain::Terrain::calculateTotalFluidMass ( ) const
Returns
the calculated current total fluid mass in the terrain in kg.

◆ calculateTotalMass()

agx::Real agxTerrain::Terrain::calculateTotalMass ( ) const
Returns
the calculated the total mass in the terrain, consisting of both dynamic and solid mass.

◆ calculateTotalSolidMass()

agx::Real agxTerrain::Terrain::calculateTotalSolidMass ( ) const
Returns
the calculated total solid mass in the terrain in kg.

◆ calculateVolume()

agx::Real agxTerrain::Terrain::calculateVolume ( )
Returns
the calculated total terrain volume.

◆ ClassModel()

static agx::Model* agx::Component::ClassModel ( )
staticinherited

◆ computeForbiddenBounds()

void agxTerrain::Terrain::computeForbiddenBounds ( )
protected

◆ computeParticleGrowthTables()

void agxTerrain::Terrain::computeParticleGrowthTables ( const agx::UInt64Vector &  particleIndices,
ParticleDeltaVector &  particles 
)
protected

◆ configure() [1/2]

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

Reimplemented from agx::Object.

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

◆ configure() [2/2]

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

◆ contains()

bool agxTerrain::Terrain::contains ( const Shovel *  shovel) const

Check is a shovel object is registered in the terrain.

Parameters
shovel- the shovel object that is checked against the terrain.
Returns
true if the shovel object is registered in the terrain, false otherwise.

◆ convertMassToOccupancy()

agx::Real agxTerrain::Terrain::convertMassToOccupancy ( agx::Real  mass) const
protected

◆ convertOccupancyToMass()

agx::Real agxTerrain::Terrain::convertOccupancyToMass ( agx::Real  occupnacy) const
protected

◆ convertOccupancyToParticleRadius()

float agxTerrain::Terrain::convertOccupancyToParticleRadius ( float  occupancy) const
protected

◆ convertParticleRadiusToOccupancy()

float agxTerrain::Terrain::convertParticleRadiusToOccupancy ( float  radius) const
protected

◆ convertParticlesToSolidMass()

float agxTerrain::Terrain::convertParticlesToSolidMass ( agx::Vec3i  voxel,
ParticleWeightPairVector  particles,
float  massToRemove,
agx::Vec3iVector &  changedIndices 
)
protected

◆ convertRemovedOccupancyToDynamicMass()

void agxTerrain::Terrain::convertRemovedOccupancyToDynamicMass ( )
protected

◆ convertVoxelsInActiveZonesToDynamicMass()

void agxTerrain::Terrain::convertVoxelsInActiveZonesToDynamicMass ( )
protected

◆ createFluidMassInVoxel()

void agxTerrain::Terrain::createFluidMassInVoxel ( const agx::Vec3i &  voxelIndex,
agx::Real32  amount 
)
protected

◆ createFluidMassOnTerrainSurface()

void agxTerrain::Terrain::createFluidMassOnTerrainSurface ( const agx::Vec2i &  terrainIndex,
int  surfaceVoxelOffset,
agx::Real32  amount 
)
protected

◆ createFromHeightField()

static Terrain* agxTerrain::Terrain::createFromHeightField ( const agxCollide::HeightField *  heightField,
agx::Real  maximumDepth 
)
static

Creates a terrain object by using an existing height field as a basis.

The height field data is copied into the internal terrain structure. The existing height field MUST have uniform scale in X and Y axis, otherwise the function returns nullptr.

Note
The specified height field is copied and never used inside Terrain object.
Parameters
heightField- The height field object that will be used as a basis for creating
maximumDepth- The maximum depth of the terrain.
Returns
A terrain object create from the specified height field or nullptr if an invalid height field is given.

◆ createParticleIslands()

void agxTerrain::Terrain::createParticleIslands ( ParticleIslandVector &  particleIslands)
protected

◆ createSoilParticles()

void agxTerrain::Terrain::createSoilParticles ( )
protected

◆ createTask_preCollide()

agx::TaskGroupRef agxTerrain::Terrain::createTask_preCollide ( )
protected

◆ debugRenderForbiddenBounds()

void agxTerrain::Terrain::debugRenderForbiddenBounds ( )
protected

◆ debugRenderShovelForbiddenBounds()

void agxTerrain::Terrain::debugRenderShovelForbiddenBounds ( )
protected

◆ deleteUsingDeleteHandler()

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

◆ enforceIncompressibilityColumnwise()

void agxTerrain::Terrain::enforceIncompressibilityColumnwise ( )
protected

◆ expandAutoCompletionMatch()

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

◆ find() [1/2]

static Terrain* agxTerrain::Terrain::find ( const agxSDK::Simulation *  simulation,
const agx::Name &  name 
)
static

Find first terrain with given name.

Parameters
simulation- simulation the terrain is part of
name- name of the terrain
Returns
terrain instance if found - otherwise nullptr

◆ find() [2/2]

static Terrain* agxTerrain::Terrain::find ( const agxSDK::Simulation *  simulation,
const agx::Uuid &  uuid 
)
static

Find terrain with given UUID.

Parameters
simulation- simulation the terrain is part of
uuid- UUID of the terrain
Returns
terrain instance if found - otherwise nullptr

◆ findAll() [1/2]

static TerrainPtrVector agxTerrain::Terrain::findAll ( const agxSDK::Simulation *  simulation,
const agx::Name &  name 
)
static

Find all terrains with given name.

Parameters
simulation- simulation the terrain is part of
name- name of the terrain
Returns
vector of terrains

◆ findAll() [2/2]

static TerrainPtrVector agxTerrain::Terrain::findAll ( const agxSDK::Simulation *  simulation)
static

Finds all terrains in the given simulation.

Parameters
simulation- simulation with terrains.
Returns
vector of terrains

◆ findNewHeightFromVoxelIndex()

agx::Real agxTerrain::Terrain::findNewHeightFromVoxelIndex ( const agx::Vec3i &  index)
protected

◆ findPathToSurfaceVoxel()

bool agxTerrain::Terrain::findPathToSurfaceVoxel ( const agx::Vec3i &  startVoxel,
std::deque< agx::Vec3i > &  result 
)
protected

◆ findSurfaceVoxel()

bool agxTerrain::Terrain::findSurfaceVoxel ( const agx::Vec3i &  index,
agx::Vec3i &  result 
) const
protected

◆ fullName()

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

◆ fullPath() [1/2]

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

◆ fullPath() [2/2]

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

◆ generateName()

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

◆ generateRandomNumber()

agx::Real agxTerrain::Terrain::generateRandomNumber ( )
protected

◆ generateRandomSoilParticlePositionPerturbation()

agx::Vec3 agxTerrain::Terrain::generateRandomSoilParticlePositionPerturbation ( agx::Real  maxDelta)
protected

◆ generateRandomSoilParticleRotation()

agx::Quat agxTerrain::Terrain::generateRandomSoilParticleRotation ( )
protected

◆ generateUuid()

void agxStream::Serializable::generateUuid ( )
protectedinherited

◆ getActiveObjects()

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

◆ getAutoScopedResource() [1/4]

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

◆ getAutoScopedResource() [2/4]

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

◆ getAutoScopedResource() [3/4]

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

Definition at line 428 of file Object.h.

References agx::Referenced::is().

◆ getAutoScopedResource() [4/4]

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

Definition at line 435 of file Object.h.

◆ getAvailableLibraryMaterials()

agx::StringVector agxTerrain::Terrain::getAvailableLibraryMaterials ( ) const

Get the available TerrainMaterial presets from the TerrainMaterialLibrary that contains calibrated bulk and contact properties for a predefined material archetype.

Returns
a vector containing the available TerrainMaterial presets in the TerrainMaterialLibrary.

◆ getAvalancheController()

AvalancheController* agxTerrain::Terrain::getAvalancheController ( ) const
protected

◆ getClassName()

virtual const char* agxStream::Serializable::getClassName ( ) const
virtualinherited
Returns
the class name of this class.

Reimplemented in agxWire::StopNode, agxWire::ConnectingNode, agxWire::EyeNode, agxWire::BodyFixedNode, agx::RigidBody, agx::Twist, agxWire::FreeNode, agx::ScrewController, agx::LockController, agxModel::WaterWrapper, agx::MergedBody, agx::MergedBody, agxModel::ConstantWindGenerator, agx::RangeController, agxModel::ConstantWaterFlowGenerator, agx::MergedBody, agx::ElectricMotorController, agx::MergedBody, agx::FrictionController, agx::MergedBody, agx::TargetSpeedController, agxModel::WindAndWaterController, agxSDK::Assembly, agx::QuatLock, agx::SphericalRel, agx::Spherical, agxWire::WireSimpleDrumController, agx::Dot2, agxModel::FractureAlgorithmBreakOnStress, agx::Swing, agxModel::FractureAlgorithmBreakOnContactForce, agx::Dot1, agxModel::FractureAlgorithmBreakOnContact, agx::Frame, agxPowerLine::detail::DimensionState3Dof< DimensionType >, agxUtil::ConstraintHolder, agxDriveTrain::PidControlledEngine, agxCable::CableDamage, agxControl::TeleportToSensorOperation, agxCollide::Geometry, agxDriveTrain::deprecated::Clutch, agxModel::Terrain, agxModel::TerrainDataInterface, agx::ObserverFrame, agxControl::StoreParticlesOperation, agxModel::SlidingNodeAttachment, agxDriveTrain::deprecated::GearBox, agxControl::EventSensor, agxPowerLine::Connection, agxModel::FractureGenerator, agxControl::LoadParticleAGXFileOperation, agxPowerLine::TranslationalConstraintImplementation, agxModel::RotatingNodeAttachment, agxModel::TwoBodyTire, agxPowerLine::detail::DimensionState1Dof< DimensionType >, agxModel::Deformable1DNodeRoute, agxPowerLine::ElementaryTranslationalConstraint, agxControl::SetVelocityOperation, agx::AddedMassInteraction, agxPowerLine::TranslationalActuator, agxDriveTrain::RpmController, agx::RigidBodyAttachment, agxVehicle::Track, agxModel::RigidNodeAttachment, agxControl::WriteParticleDataToAGXOperation, agxModel::TerrainIterativeProjectedConeFrictionModel, agxModel::Deformable1DSphereGeometryFactory, agxModel::DeformableParticleCreator, agxPowerLine::GearConstraintImplementation, agxControl::MakeParticleKinematicOperation, agxModel::ConvexSoil, agx::IterativeProjectedConeFriction, agxSDK::SimulationStatisticsListener, agxSDK::LinkedStructure, agx::ConstantNormalForceOrientedBoxFrictionModel, agxDriveTrain::deprecated::FixedGear, agxVehicle::TrackProperties, agxHydraulics::HydraulicPumpActuator, agxPowerLine::ElementaryGearConstraint, agxModel::Deformable1DPointRoute, agxModel::PointNodeAttachment, agx::PropertyContainer, agxModel::SoilParticle, agxSDK::MaterialManager::MaterialManagerSerializer, agxModel::Deformable1DCylinderGeometryFactory, agxDriveTrain::deprecated::HighLevelDifferential, agxPowerLine::TorqueGenerator, agxPowerLine::PowerLine, agx::ScaleBoxFrictionModel, agxHydraulics::PistonActuator, agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation, agx::SeparationAngle, agxWire::ConvexAreaDefinition, agxCollide::Trimesh, agxControl::LoadParticleJournalOperation, agxControl::ReplaceParticleMaterialOperation, agxWire::ShapeContactNode, agxModel::Deformable1DCapsuleGeometryFactory, agx::CubicSplineLookupTable, agxHydraulics::HydraulicMotorActuator, agxSDK::GeometryContactMergeSplitThresholds, agxDriveTrain::deprecated::TorqueConverterTable, agxDriveTrain::HolonomicGear, agxModel::Deformable1DNode, agx::BoxFrictionModel, agxPowerLine::RotationalConnector, agxWire::CircularAreaDefinition, agxPowerLine::ActuatorBodyUnit, agxPowerLine::RotationalActuator, agxModel::Deformable1DBulkProperties, agx::Attachment, agxModel::Deformable1D, agx::GranularImpactDataWriter, agxPowerLine::PowerTimeIntegralLookupTable, agx::WheelJoint, agx::OrientedIterativeProjectedConeFrictionModel, agxControl::ParticleContactDumper, agxDriveTrain::deprecated::TorqueConverter, agxCable::Route, agx::Hinge, agx::RotationalAngle, agx::CubicFunction2D, agxControl::RecordParticleShapshotJournalOperation, agxDriveTrain::deprecated::HighLevelGearBox, agxTerrain::TerrainRasterizer, agxVehicle::Wheel, agxControl::SensorOperation, agxHydraulics::FlowDimension, agxModel::HeightFieldDeformerJournalRecorder, agxModel::ParticleAttributes, agxDriveTrain::Engine, agxWire::EyeNodeArea, agxModel::SurfaceVelocityConveyorBelt, agxCable::PathRoute, agx::WorldFrameBallJoint, agx::OrientedScaleBoxFrictionModel, agxPowerLine::LinearLookupTable, agxCollide::Line, agxDriveTrain::Differential, agxVehicle::TrackRoute, agxCollide::RenderMaterial, agxControl::MeasurementSensor, agxModel::DeformableMineFace, agx::AutoSleepThreshold, agxCollide::CollisionGroupManager, agxControl::ColorParticles, agxHydraulics::NeedleValve, agxModel::DeformableParticleMesh, agxDriveTrain::ElectricMotor, agxDriveTrain::SlipGear, agxModel::OneBodyTire, agxPowerLine::ActuatorRotationalDimension, agxCable::SegmentingRoute, agx::LinearLookupTable, agx::MergeSplit, agxCollide::RenderData, agxControl::RecordParticleJournalOperation, agxPowerLine::RotationalTranslationalHolonomicConnector, agxUtil::RawMesh, agxPowerLine::RotationalDimension, agxModel::WindAndWaterController::WindGenerator, agx::Physics::GranularBodySystem, agx::Prismatic, agx::VirtualConstraintInertia, agx::OrientedBoxFrictionModel, agxModel::ThreeBodyTire, agxSDK::ConstraintMergeSplitThresholds, agx::RegularizationParameters, agxSDK::LinkedSegment, agxCollide::CollisionMeshData, agx::SphericalRelSlack, agx::SlackHingeJoint, agx::SlackLockJoint, agxDriveTrain::deprecated::HighLevelTorqueConverter, agxDriveTrain::GearBox, agxCollide::Plane, agxHydraulics::detail::GraphJoiningConnector, agxModel::Deformable1DBoxGeometryFactory, agx::CylindricalJoint, agxCable::CableDamageState, agxHydraulics::CheckValve, agxPowerLine::RotationalUnit, agx::BallJoint, agx::SlackPrismaticJoint, agx::Interaction, agx::DistanceJoint, agxPowerLine::SlotMapper, agxSDK::EventListener, agx::JournalCustomDataRecorder, agxControl::SensorEvent, agxSDK::StepEventListener, agxControl::TagOperation, agx::PrismaticUniversalJoint, agx::UniversalJoint, agxCollide::Convex, agx::SlackCylindricalJoint, agxCable::IdentityRoute, agxHydraulics::deprecated::PumpUnit, agxDriveTrain::Clutch, agxHydraulics::deprecated::MotorUnit, agxModel::HeightController, agxSDK::WireMergeSplitThresholds, agxModel::WindAndWaterController::WaterFlowGenerator, agxVehicle::TrackNode, agx::ContactTangent, agxDriveTrain::ElectricMotorConstraint, agx::LockJoint, agx::SwingTwistLock, agxCollide::WireShape, agxHydraulics::detail::SpoolValveConnector, agx::SleepThreshold, agxSDK::ConstraintMergeSplitAlgorithm, agxSDK::GeometryContactMergeSplitAlgorithm, agx::Dot2Slack, agxDriveTrain::Gear, agxPowerLine::RotationalTranslationalConnector, agxPowerLine::WireWinchActuator, agxSDK::WireMergeSplitAlgorithm, agxHydraulics::Accumulator, agxHydraulics::detail::GraphJoiningConstraintImplementation, agxModel::HeightFieldDeformer, agxDriveTrain::EnginePowerGenerator, agx::AngularLockJoint, agx::PointGravityField, agx::SplineJoint, agxControl::BaseRecordParticleJournalOperation, agx::Dot1Joint, agxPowerLine::detail::RigidBodyRotationalAttachmentSentry, agxControl::RemoveParticles, agxSDK::LinkedStructureComponent, agxDriveTrain::DifferentialLockConnector, agxDriveTrain::Shaft, agx::UniformGravityField, agx::ParticleContactSensor, agxCollide::MeshData, agxDriveTrain::deprecated::TorqueConverterSpeedRatioLookup, agxSDK::Collection, agx::ContactNormal, agxHydraulics::detail::ElementaryGraphJoiningConstraint, agxPowerLine::detail::WireWinchConnectorConstraintImplementation, agx::MergeSplitBodyStorage, agx::StrongInteractionConstraint, agxSDK::EnergyManager, agx::PlaneJoint, agx::ParticleSink, agx::Dot1Slack, agxDriveTrain::ElectricMotorConstraintImplementation, agxSDK::GranularContactMergeSplitAlgorithm, agxControl::SplitSensorOperation, agxDriveTrain::EngineDampingUpdater, agxControl::RemoveRigidBody, agxPowerLine::detail::WireWinchConnector, agxPowerLine::detail::ElementaryWireWinchConnectorConstraint, agxPowerLine::detail::RigidBodyTranslationalAttachmentSentry, agxSDK::MergedBodyMergeSplitAlgorithm, agxCable::RoutingNode, agxCable::CablePlasticity, agxHydraulics::detail::SpoolValveStaticFlowUnit, agxModel::PlasticityComponent, and agxCable::GeometryFactory.

Referenced by agxStream::InputArchive::readRef().

◆ getClosestGridPoint()

agx::Vec2i agxTerrain::Terrain::getClosestGridPoint ( const agx::Vec3 &  worldPosition,
bool  clampToBound = false 
) const

Finds the closes terrain grid point given any point in world.

Parameters
worldPosition- position in world
clampToBound- true if the grid point should be clamped to border if position is outside bounds
Returns
the closest terrain grid index, going from (0,0) -> (resolutionX-1, resolutionY-1)

◆ getContactForce()

agx::Vec3 agxTerrain::Terrain::getContactForce ( const Shovel *  shovel) const

Given geometry contacts exists and the solver has solved them - calculates total shovel contact force between this terrain and the given shovel.

This is the contact force that prevents the shovel from falling through the terrain when not in excavation mode, where contact feedback is generated from the soil aggregates.

Note
- This method returns regular contact forces ONLY when no soil aggregates are present to generate excavation feedback!
Parameters
shovel- interacting shovel
Returns
the total non-excavation contact force between this terrain and the given shovel.

◆ getContactMaterial()

agx::ContactMaterial* agxTerrain::Terrain::getContactMaterial ( Terrain::MaterialType  type1,
Terrain::MaterialType  type2 
)

Returns one of the internal contact materials in agxTerrain.

TODO fix this.

Contact materials exist between MaterialType::TERRAIN - MaterialType::PARTICLE MaterialType::PARTICLE - MaterialType::PARTICLE MaterialType::TERRAIN - MaterialType::AGGREGATE

Returns
The specified internal contact material in agxTerrain.

◆ getContext() [1/4]

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

Definition at line 373 of file Object.h.

◆ getContext() [2/4]

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

Definition at line 374 of file Object.h.

◆ getContext() [3/4]

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

Definition at line 401 of file Object.h.

◆ getContext() [4/4]

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

Definition at line 407 of file Object.h.

◆ getDeformationContactForce()

agx::Vec3 agxTerrain::Terrain::getDeformationContactForce ( const Shovel *  shovel) const

Given geometry contacts exists and the solver has solved them - calculates total contact force between the terrain deformation soil aggregate and the given shovel.

This represents the deformation force that is required to move soil via shovel deformation instead of excavation, i.e not excavation or digging. Examples of this would be side movement and backwards grading of the soil.

Parameters
shovel- interacting shovel
Returns
the total contact force between given shovel and the deformer soil aggregates in the terrain.

◆ getDeleteHandler()

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

◆ getDevice() [1/4]

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

Definition at line 222 of file Component.h.

◆ getDevice() [2/4]

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

Definition at line 223 of file Component.h.

◆ getDevice() [3/4]

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

Definition at line 226 of file Component.h.

References agxAssert.

◆ getDevice() [4/4]

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

Definition at line 233 of file Component.h.

References agxAssert.

◆ getDynamicMass()

agx::Real agxTerrain::Terrain::getDynamicMass ( const Shovel *  shovel) const
Parameters
shovel- interacting shovel
Returns
dynamic mass in given shovel, including both particles and fluid mass

◆ getDynamicMassCompaction()

float agxTerrain::Terrain::getDynamicMassCompaction ( ) const
protected

◆ getElementSize()

agx::Real agxTerrain::Terrain::getElementSize ( ) const
inline

Returns the element size of a cell in agxTerrain, which is incidentally the distance between the center of each grid point in the surface height field.

Returns
the element size of a single cell in Terrain.

Definition at line 1462 of file agxTerrain/Terrain.h.

◆ getEnable()

bool agxTerrain::Terrain::getEnable ( ) const
Returns
true if terrain computations should be enabled, false otherwise.
Note
- updates for ToolCollections will still be executed if false.

◆ getEnableKinematicForParticles()

static agx::Bool agxTerrain::Terrain::getEnableKinematicForParticles ( const agx::RigidBody *  rb)
static
Returns
true if particles sees given rigid body as kinematic (regardless of motion control)

◆ getEnableRebind()

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

Should rebinding be allowed? Right now a global setting.

◆ getEnableSerialization()

bool agxStream::Serializable::getEnableSerialization ( ) const
inherited
Returns
true if serialization is enabled for this object

Definition at line 273 of file Serializable.h.

◆ getEnableUuidGeneration()

bool agxStream::Serializable::getEnableUuidGeneration ( )
inherited
Returns
true if Uuid:s should be generated for each new Serializable object

◆ getExcavationModeContactForce()

agx::Vec3 agxTerrain::Terrain::getExcavationModeContactForce ( const Shovel *  shovel,
Shovel::ExcavationMode  excavationMode 
) const

calculates total contact force between the soil aggregate associated with the specified excavation mode and the given shovel.

This represents the deformation force that is required to move soil via shovel deformation instead of excavation, i.e not excavation or digging. Examples of this would be side movement and backwards grading of the soil.

Parameters
shovel- interacting shovel
excavationMode- the excavation mode that the specified soil aggregate belongs to
Returns
the total contact force between given shovel and the soil aggregate specified by the excavation mode

◆ getGeometry()

virtual agxCollide::Geometry* agxTerrain::Terrain::getGeometry ( ) const
overridevirtual
Note
It's undefined to modify this geometry instance.
Returns
the geometry of this terrain

Reimplemented from agxSDK::TerrainInstance.

◆ getHeight()

agx::Real agxTerrain::Terrain::getHeight ( const agx::Vec2i &  terrainIndex,
bool  includeSurfaceParticles = false 
) const

Gets the terrain height at a specific terrain grid node.

Parameters
terrainIndexAn (x,y) index specifying the grid point.
includeSurfaceParticles- Also consider particles when returning height. Default false.
Returns
the height at the specific grid node.

◆ getHeightField()

const agxCollide::HeightField* agxTerrain::Terrain::getHeightField ( ) const
Note
It's undefined to modify the terrain height field instance.
Returns
the height field shape of this terrain

◆ getId()

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

Definition at line 370 of file Object.h.

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

◆ getImplementationName()

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

◆ getIndex()

agx::UInt32 agxStream::Serializable::getIndex ( ) const
inherited

This index is given at creation of this object.

It is guaranteed to be unique for the lifetime of this library instance. As long as the application is running. This value is not serialized or restored. A new object will always get a new index no matter how it is created.

Returns
an instance index of this object. This is unique for the lifetime of this library instance.

Definition at line 247 of file Serializable.h.

◆ getInnerVolume()

agx::Real agxTerrain::Terrain::getInnerVolume ( const Shovel *  shovel) const
Returns
the shovel inner volume that is used in the dead load calculations

◆ getIntersectingActiveGridElements()

bool agxTerrain::Terrain::getIntersectingActiveGridElements ( agxCollide::Geometry *  geometry,
agx::Vec3iVector &  gridPoints,
MassType  massType 
) const

Get intersecting 3D grid element with specified geometry that is active/occupied with a specified mass type.

The x,y coordinate of the returned 3D points is the terrain index while the z coordinate is a depth index. See the 'TerrainDataGridInterface' class for further explanation.

Parameters
geometry- The geometry to test intersection with the terrain grid.
gridPoints- Reference to the container where the intersecting terrain grid elements will be put.
massType- The specific mass type (SOLID, FLUID or PARTICLE) that is active/occupied in grid points that will be extracted.
Note
- This function updates the bound of the specified geometry in order to properly do intersection tests.
Returns
true if there are intersecting voxels with specified mass type within terrain bound, false if not.

◆ getIntersectingGridElements()

bool agxTerrain::Terrain::getIntersectingGridElements ( agxCollide::Geometry *  geometry,
agx::Vec3iVector &  gridPoints 
) const

Get intersecting 3D grid element with specified geometry.

The x,y coordinate of the returned 3D points is the terrain index while the z coordinate is a depth index. See the 'TerrainDataGridInterface' class for further explanation.

Parameters
geometry- The geometry to test intersection with the terrain grid.
gridPoints- Reference to the container where the intersecting terrain grid elements will be put.
Note
- This function updates the bound of the specified geometry in order to properly do intersection tests.
Returns
true if there are intersecting voxels within terrain bound, false if not.

◆ getInverseTransform()

agx::AffineMatrix4x4 agxTerrain::Terrain::getInverseTransform ( ) const
Returns
inverse transform of this terrain

◆ getLastDeadLoadFraction()

agx::Real agxTerrain::Terrain::getLastDeadLoadFraction ( const Shovel *  shovel) const

Get the last computed dead load fraction of the shovel, i.e how much of it's inner volume that is filled with dynamic soil.

The dead load fraction ranges from 0.0 (empty), to 1.0 (full).

Parameters
shovel- interacting shovel
Returns
the last computed dead load fraction

◆ getLastExcavatedVolume()

agx::Real agxTerrain::Terrain::getLastExcavatedVolume ( ) const
Returns
the last excavated volume (m3) of the terrain.

◆ getMaterial()

agx::Material* agxTerrain::Terrain::getMaterial ( Terrain::MaterialType  type = Terrain::MaterialType::TERRAIN) const

Returns one of the internal materials in agxTerrain.

TODO fix this. MaterialType::TERRAIN - The internal material used on the terrain surface height field structure. MaterialType::PARTICLE - The internal material used on the terrain particles. MaterialType::AGGREGATE - The internal material used on aggregate used to represent the particle mass.

These materials can be used to configure contact materials with objects interacting with the terrain.

Returns
The specified internal material in agxTerrain.

◆ getMemoryUsage()

size_t agxTerrain::Terrain::getMemoryUsage ( )

Returns the memory usage in bytes in agxTerrain.

◆ getMergeSpeedSquared()

agx::Real agxTerrain::Terrain::getMergeSpeedSquared ( ) const
protected

◆ getMinimumAllowedHeight()

agx::Real agxTerrain::Terrain::getMinimumAllowedHeight ( ) const
Returns
the minimum allowed height of this terrain

◆ getModel() [1/2]

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

Definition at line 371 of file Object.h.

◆ getModel() [2/2]

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

Definition at line 372 of file Object.h.

◆ getModifiedParticleVertices()

const ModifiedVerticesVector& agxTerrain::Terrain::getModifiedParticleVertices ( ) const

Returns the modified terrain height field (including particles) vertices during the last time step.

Returns
a HashVector containing the modified particle height field indices for the last time step.

◆ getModifiedVertices()

const ModifiedVerticesVector& agxTerrain::Terrain::getModifiedVertices ( ) const

Returns the modified terrain height field vertices during the last time step.

Returns
a HashVector containing the modified terrain indices for the height field during the last time step.

◆ getModifiedVoxelColumns()

const ModifiedVerticesVector& agxTerrain::Terrain::getModifiedVoxelColumns ( ) const

Returns the terrain vertices which voxel columns has modified compaction during the last time step.

The method getCompactionController()->getCompressedTerrainIndices only returns terrain vertices that has been compressed by terrain contacts. This method takes vertices that has modified compaction by avalanching and dynamic mass mergeing back into the terrain into account aswell.

Returns
a HashVector containing the modified terrain indices which voxel columns has modified compaction during the last time step.

◆ getName()

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

Definition at line 369 of file Object.h.

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

◆ getNextSibling() [1/2]

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

◆ getNextSibling() [2/2]

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

◆ getNoMerge()

bool agxTerrain::Terrain::getNoMerge ( )

Return whether this terrain is prevented from merging dynamic mass to it.

◆ getNumCreatedParticles()

size_t agxTerrain::Terrain::getNumCreatedParticles ( ) const

Return the number of soil particles created during excavation this time step.

Note
- particles may disappear during dynamic mass distribution stage

◆ getNumObjects()

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

◆ getNumSoilParticles()

size_t agxTerrain::Terrain::getNumSoilParticles ( ) const

Return the number of soil particles active in the simulation.

◆ getObject() [1/6]

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

Definition at line 194 of file Component.h.

◆ getObject() [2/6]

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

Definition at line 195 of file Component.h.

◆ getObject() [3/6]

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

Definition at line 197 of file Component.h.

◆ getObject() [4/6]

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

Definition at line 198 of file Component.h.

◆ getObject() [5/6]

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

Definition at line 202 of file Component.h.

◆ getObject() [6/6]

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

Definition at line 216 of file Component.h.

◆ getObjects() [1/4]

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

Definition at line 192 of file Component.h.

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

◆ getObjects() [2/4]

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

◆ getObjects() [3/4]

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

◆ getObjects() [4/4]

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

Definition at line 241 of file Component.h.

References agx::Component::getObjects().

◆ getParticleNominalRadius()

float agxTerrain::Terrain::getParticleNominalRadius ( )

Get the soil particle nominal radius from the simulation.

The nominal radius is the particle radius that the terrain algorithm will aim for during the dynamic resizing of particles that occur during terrain interaction. This is calculated from the resulting element size upon construction of the terrain object.

◆ getParticleVertices()

const ModifiedVerticesVector& agxTerrain::Terrain::getParticleVertices ( ) const

Returns the terrain vertices that contains soil particles during the last time step.

Returns
a HashVector containing the terrain indices containing particles during the last time step.

◆ getPath() [1/2]

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

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

◆ getPath() [2/2]

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

◆ getPenetrationForce()

bool agxTerrain::Terrain::getPenetrationForce ( const Shovel *  shovel,
agx::Vec3 &  force,
agx::Vec3 &  torque 
) const

The result includes the active force and torque from the penetration resistance from the terrain on the shovel if the shovel is digging in the terrain.

Parameters
shovel- interacting shovel
force- the penetration force
torque- the penetration torque
Returns
true if resulting force and torque was written to force and torque - otherwise false

◆ getPosition()

agx::Vec3 agxTerrain::Terrain::getPosition ( ) const
Returns
rotation of this terrain, in world coordinate frame

◆ getProperties()

TerrainProperties* agxTerrain::Terrain::getProperties ( ) const
Returns
the properties object for the terrain.

◆ getReferenceCount()

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

◆ getResizedHeightField()

agx::RealVector agxTerrain::Terrain::getResizedHeightField ( size_t  factorX,
size_t  factorY 
) const

Calculate a reduced version of the height field structure.

Heights in terrain index segments with dimensions [factorX, factorY] are averaged and put into a reduced structure with dimensions [resolutionX/factorX, resolutionY/factorY].

Parameters
factorX- The factor to resize the height field in the X dimension.
factorY- The factor to resize the height field in the Y dimension.
Returns
a row major matrix of heights which corresponds to the reduced height field structure.

◆ getResolutionX()

size_t agxTerrain::Terrain::getResolutionX ( ) const
inline

Returns the element resolution of the terrain in the local X-axis.

Definition at line 1450 of file agxTerrain/Terrain.h.

◆ getResolutionY()

size_t agxTerrain::Terrain::getResolutionY ( ) const
inline

Returns the element resolution of the terrain in the local Y-axis.

Definition at line 1456 of file agxTerrain/Terrain.h.

◆ getResource() [1/4]

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

◆ getResource() [2/4]

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

◆ getResource() [3/4]

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

Definition at line 414 of file Object.h.

References agx::Referenced::is().

◆ getResource() [4/4]

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

Definition at line 421 of file Object.h.

◆ getResourceImpl()

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

Reimplemented from agx::Object.

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

◆ getRootContext() [1/2]

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

◆ getRootContext() [2/2]

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

◆ getRotation()

agx::Quat agxTerrain::Terrain::getRotation ( ) const
Returns
rotation of this terrain, in world coordinate frame

◆ getSeparationContactForce()

agx::Vec3 agxTerrain::Terrain::getSeparationContactForce ( const Shovel *  shovel) const

Given geometry contacts exists and the solver has solved them - calculates total contact force between the terrain soil particle aggregate and the given shovel.

This represents the separation force that is required to move the excavated soil in the shovel active zone.

Parameters
shovel- interacting shovel
Returns
the total contact force between given shovel and the soil particle aggregate in the terrain.

◆ getShovelAggregateContactMaterial()

agx::ContactMaterial* agxTerrain::Terrain::getShovelAggregateContactMaterial ( const Shovel *  shovel,
Shovel::ExcavationMode  mode = Shovel::ExcavationMode::PRIMARY 
) const

Get the explicitly set contact material in a shovel-aggregate contact corresponding to a specified excavation mode for a specific shovel-terrain pair.

This overrides the shovel-terrain contact material properties that are used in the default case.

Parameters
shovel- The specified shovel.
mode- The specified excavation mode that corresponds to the aggregate.
Note
- this returns nullptr if the shovel is not set to the terrain.
Returns
a contact material if one has been explicitly set, nullptr otherwise.

◆ getShovelAggregateContacts()

agxCollide::GeometryContactPtrVector agxTerrain::Terrain::getShovelAggregateContacts ( const Shovel *  shovel,
Shovel::ExcavationMode  excavationMode 
) const

Get the shovel <-> aggregate contacts with the terrain given an excavation mode and a shovel.

Parameters
shovel- the specified shovel
excavationMode- the excavation mode that the soil aggregate belongs too ( PRIMARY, DEFORM_BACK, DEFORM_RIGHT, DEFORM_LEFT )
Returns
vector containing the geometry contacts between the specified shovel and the aggregate.

◆ getShovelHeightPerColumn()

agx::HashVector<agx::Vec2i, agx::Int> agxTerrain::Terrain::getShovelHeightPerColumn ( )
protected

◆ getShovels()

ShovelRefVector agxTerrain::Terrain::getShovels ( ) const

Return the shovels currently added in the terrain.

◆ getSimulation()

agxSDK::Simulation* agxSDK::TerrainInstance::getSimulation ( ) const
inherited
Returns
simulation this instance is part of, nullptr if not added to one

◆ getSize()

agx::Vec2 agxTerrain::Terrain::getSize ( ) const

Returns the total surface size of he terrain in X Y coordinate system.

◆ getSoilAggregateMass()

agx::Real agxTerrain::Terrain::getSoilAggregateMass ( const Shovel *  shovel,
Shovel::ExcavationMode  excavationMode 
) const

Returns the total soil aggregate mass in a terrain given a shovel and a specific excavation mode.

This function can be used to extract the active mass that the shovel is trying to displace in the failure zones during digging and deformation.

Parameters
shovel- interacting shovel
excavationMode- The excavation mode of the aggregate that will be used to extract the mass.
Returns
the total aggregate mass, including inner shape if excavation mode is PRIMARY_EXCAVATION.

◆ getSoilParticleBoundedHeightField()

const agxCollide::HeightField* agxTerrain::Terrain::getSoilParticleBoundedHeightField ( ) const

Get the soil particle height field consisting of the highest point of either the terrain surface or the highest particle position in each terrain index.

Note
It's undefined to modify the terrain height field instance.
Returns
the soil particle height field shape of this terrain

◆ getSoilParticleStatistics()

SoilParticleStatistics agxTerrain::Terrain::getSoilParticleStatistics ( ) const

Get basic statistics of the soil particles active in the simulation.

◆ getSoilSimulationInterface()

SoilSimulationInterface* agxTerrain::Terrain::getSoilSimulationInterface ( ) const

Get the soil particle system interface used to represent the dynamic mass in the terrain.

This can be used to access and modify soil particle data.

Returns
the interface to the soil particle system used to represent the dynamic mass in the terrain.

◆ getStorageAgent()

virtual StorageAgent* agxStream::Serializable::getStorageAgent ( ) const
pure virtualinherited
Returns
the storage agent

Implemented in agxWire::StopNode, agxWire::ConnectingNode, agxWire::EyeNode, agxWire::BodyFixedNode, agx::RigidBody, agx::Twist, agxWire::FreeNode, agx::ScrewController, agx::LockController, agxModel::WaterWrapper, agx::MergedBody, agx::MergedBody, agxModel::ConstantWindGenerator, agx::RangeController, agxModel::ConstantWaterFlowGenerator, agx::MergedBody, agx::ElectricMotorController, agx::MergedBody, agx::FrictionController, agx::MergedBody, agx::TargetSpeedController, agxModel::WindAndWaterController, agxSDK::Assembly, agx::QuatLock, agx::SphericalRel, agx::Spherical, agxWire::WireSimpleDrumController, agx::Dot2, agxModel::FractureAlgorithmBreakOnStress, agx::Swing, agxModel::FractureAlgorithmBreakOnContactForce, agx::Dot1, agxModel::FractureAlgorithmBreakOnContact, agx::Frame, agxPowerLine::detail::DimensionState3Dof< DimensionType >, agxUtil::ConstraintHolder, agxDriveTrain::PidControlledEngine, agxCable::CableDamage, agxControl::TeleportToSensorOperation, agxCollide::Geometry, agxDriveTrain::deprecated::Clutch, agxModel::Terrain, agxModel::TerrainDataInterface, agx::ObserverFrame, agxControl::StoreParticlesOperation, agxModel::SlidingNodeAttachment, agxDriveTrain::deprecated::GearBox, agxControl::EventSensor, agxPowerLine::Connection, agxModel::FractureGenerator, agxControl::LoadParticleAGXFileOperation, agxPowerLine::TranslationalConstraintImplementation, agxModel::RotatingNodeAttachment, agxModel::TwoBodyTire, agxModel::Deformable1DNodeRoute, agxPowerLine::detail::DimensionState1Dof< DimensionType >, agxPowerLine::ElementaryTranslationalConstraint, agxControl::SetVelocityOperation, agx::AddedMassInteraction, agxPowerLine::TranslationalActuator, agxDriveTrain::RpmController, agx::RigidBodyAttachment, agxVehicle::Track, agxModel::RigidNodeAttachment, agxControl::WriteParticleDataToAGXOperation, agxModel::TerrainIterativeProjectedConeFrictionModel, agxModel::Deformable1DSphereGeometryFactory, agxModel::DeformableParticleCreator, agxPowerLine::GearConstraintImplementation, agxControl::MakeParticleKinematicOperation, agxModel::ConvexSoil, agx::IterativeProjectedConeFriction, agxSDK::SimulationStatisticsListener, agxSDK::LinkedStructure, agx::ConstantNormalForceOrientedBoxFrictionModel, agxDriveTrain::deprecated::FixedGear, agxVehicle::TrackProperties, agxHydraulics::HydraulicPumpActuator, agxPowerLine::ElementaryGearConstraint, agxModel::Deformable1DPointRoute, agxModel::PointNodeAttachment, agx::PropertyContainer, agxModel::SoilParticle, agxSDK::MaterialManager::MaterialManagerSerializer, agxModel::Deformable1DCylinderGeometryFactory, agxDriveTrain::deprecated::HighLevelDifferential, agxPowerLine::TorqueGenerator, agxPowerLine::PowerLine, agx::ScaleBoxFrictionModel, agxHydraulics::PistonActuator, agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation, agx::SeparationAngle, agxWire::ConvexAreaDefinition, agxCollide::Trimesh, agxControl::LoadParticleJournalOperation, agxControl::ReplaceParticleMaterialOperation, agxWire::ShapeContactNode, agxModel::Deformable1DCapsuleGeometryFactory, agx::CubicSplineLookupTable, agxHydraulics::HydraulicMotorActuator, agxSDK::GeometryContactMergeSplitThresholds, agxDriveTrain::deprecated::TorqueConverterTable, agxDriveTrain::HolonomicGear, agxModel::Deformable1DNode, agx::BoxFrictionModel, agxPowerLine::RotationalConnector, agxWire::CircularAreaDefinition, agxPowerLine::ActuatorBodyUnit, agxPowerLine::RotationalActuator, agxModel::Deformable1DBulkProperties, agx::Attachment, agxModel::Deformable1D, agx::GranularImpactDataWriter, agxPowerLine::PowerTimeIntegralLookupTable, agx::WheelJoint, agx::OrientedIterativeProjectedConeFrictionModel, agxControl::ParticleContactDumper, agxDriveTrain::deprecated::TorqueConverter, agxCable::Route, agx::Hinge, agx::RotationalAngle, agx::CubicFunction2D, agxControl::RecordParticleShapshotJournalOperation, agxDriveTrain::deprecated::HighLevelGearBox, agxTerrain::TerrainRasterizer, agxVehicle::Wheel, agxControl::SensorOperation, agxHydraulics::FlowDimension, agxModel::HeightFieldDeformerJournalRecorder, agxModel::ParticleAttributes, agxDriveTrain::Engine, agxWire::EyeNodeArea, agxModel::SurfaceVelocityConveyorBelt, agxCable::PathRoute, agx::WorldFrameBallJoint, agx::OrientedScaleBoxFrictionModel, agxPowerLine::LinearLookupTable, agxCollide::Line, agxDriveTrain::Differential, agxVehicle::TrackRoute, agxCollide::RenderMaterial, agxControl::MeasurementSensor, agxModel::DeformableMineFace, agx::AutoSleepThreshold, agxCollide::CollisionGroupManager, agxControl::ColorParticles, agxHydraulics::NeedleValve, agxModel::DeformableParticleMesh, agxDriveTrain::ElectricMotor, agxDriveTrain::SlipGear, agxModel::OneBodyTire, agxPowerLine::ActuatorRotationalDimension, agxCable::SegmentingRoute, agx::LinearLookupTable, agx::MergeSplit, agxCollide::RenderData, agxControl::RecordParticleJournalOperation, agxPowerLine::RotationalTranslationalHolonomicConnector, agxUtil::RawMesh, agxPowerLine::RotationalDimension, agxModel::WindAndWaterController::WindGenerator, agx::Physics::GranularBodySystem, agx::Prismatic, agx::VirtualConstraintInertia, agx::OrientedBoxFrictionModel, agxModel::ThreeBodyTire, agxSDK::ConstraintMergeSplitThresholds, agx::RegularizationParameters, agxSDK::LinkedSegment, agxCollide::CollisionMeshData, agx::SphericalRelSlack, agx::SlackHingeJoint, agx::SlackLockJoint, agxDriveTrain::deprecated::HighLevelTorqueConverter, agxDriveTrain::GearBox, agxCollide::Plane, agxHydraulics::detail::GraphJoiningConnector, agxModel::Deformable1DBoxGeometryFactory, agx::CylindricalJoint, agxCable::CableDamageState, agxHydraulics::CheckValve, agxPowerLine::RotationalUnit, agx::BallJoint, agx::SlackPrismaticJoint, agx::Interaction, agx::DistanceJoint, agxPowerLine::SlotMapper, agxSDK::EventListener, agx::JournalCustomDataRecorder, agxControl::SensorEvent, agxSDK::StepEventListener, agxControl::TagOperation, agx::PrismaticUniversalJoint, agx::UniversalJoint, agxCollide::Convex, agx::SlackCylindricalJoint, agxCable::IdentityRoute, agxHydraulics::deprecated::PumpUnit, agxDriveTrain::Clutch, agxHydraulics::deprecated::MotorUnit, agxModel::HeightController, agxSDK::WireMergeSplitThresholds, agxModel::WindAndWaterController::WaterFlowGenerator, agxVehicle::TrackNode, agx::ContactTangent, agxDriveTrain::ElectricMotorConstraint, agx::LockJoint, agx::SwingTwistLock, agxCollide::WireShape, agxHydraulics::detail::SpoolValveConnector, agx::SleepThreshold, agxSDK::ConstraintMergeSplitAlgorithm, agxSDK::GeometryContactMergeSplitAlgorithm, agx::Dot2Slack, agxDriveTrain::Gear, agxPowerLine::RotationalTranslationalConnector, agxPowerLine::WireWinchActuator, agxSDK::WireMergeSplitAlgorithm, agxHydraulics::Accumulator, agxHydraulics::detail::GraphJoiningConstraintImplementation, agxModel::HeightFieldDeformer, agxDriveTrain::EnginePowerGenerator, agx::AngularLockJoint, agx::PointGravityField, agx::SplineJoint, agxControl::BaseRecordParticleJournalOperation, agx::Dot1Joint, agxControl::RemoveParticles, agxSDK::LinkedStructureComponent, agxDriveTrain::DifferentialLockConnector, agxDriveTrain::Shaft, agxPowerLine::detail::RigidBodyRotationalAttachmentSentry, agx::UniformGravityField, agx::ParticleContactSensor, agxCollide::MeshData, agxDriveTrain::deprecated::TorqueConverterSpeedRatioLookup, agxSDK::Collection, agx::ContactNormal, agxHydraulics::detail::ElementaryGraphJoiningConstraint, agxPowerLine::detail::WireWinchConnectorConstraintImplementation, agx::MergeSplitBodyStorage, agx::StrongInteractionConstraint, agxSDK::EnergyManager, agx::PlaneJoint, agx::ParticleSink, agx::Dot1Slack, agxDriveTrain::ElectricMotorConstraintImplementation, agxSDK::GranularContactMergeSplitAlgorithm, agxControl::SplitSensorOperation, agxDriveTrain::EngineDampingUpdater, agxControl::RemoveRigidBody, agxPowerLine::detail::WireWinchConnector, agxPowerLine::detail::ElementaryWireWinchConnectorConstraint, agxSDK::MergedBodyMergeSplitAlgorithm, agxCable::RoutingNode, agxCable::CablePlasticity, agxHydraulics::detail::SpoolValveStaticFlowUnit, agxPowerLine::detail::RigidBodyTranslationalAttachmentSentry, agxModel::PlasticityComponent, and agxCable::GeometryFactory.

◆ getSurfacePosition()

agx::Vec3 agxTerrain::Terrain::getSurfacePosition ( const agx::Vec2i &  terrainIndex,
bool  includeSurfaceParticles = false 
) const

Finds the terrain surface position, given in local coordinate frame, for a specified terrain index.

Parameters
-terrainIndex - the terrain index, going from (0,0) -> (resolutionX-1, resolutionY-1)
includeSurfaceParticles- Also consider surface particles when calculating the height, default false.
Returns
the position of the terrain surface in the grid point, given in local coordinate frame

◆ getSurfacePositionWorld()

agx::Vec3 agxTerrain::Terrain::getSurfacePositionWorld ( const agx::Vec2i &  terrainIndex,
bool  includeSurfaceParticles = false 
) const

Finds the terrain surface world position for a specified terrain index.

Parameters
-terrainIndex - the terrain index, going from (0,0) -> (resolutionX-1, resolutionY-1)
includeSurfaceParticles- Also consider surface particles when calculating the height, default false.
Returns
the world position of the terrain surface in the grid point

◆ getSurfaceVoxel()

bool agxTerrain::Terrain::getSurfaceVoxel ( const agx::Vec3i &  voxelIndex,
agx::Vec3i &  result 
) const
protected

◆ getTerrainContacts()

const TerrainContactRefVector& agxTerrain::Terrain::getTerrainContacts ( ) const
Returns
the current active terrain contacts with external geometries on this terrain instance.

◆ getTerrainGridControl()

TerrainGridControl* agxTerrain::Terrain::getTerrainGridControl ( ) const

Get control interface of the terrain grid data.

This interface can modify and extract data from the terrain in grid cell level, properties such as mass and compaction.

Returns
the control interface of the terrain grid data.

◆ getTerrainMaterial()

TerrainMaterial * agxTerrain::Terrain::getTerrainMaterial ( ) const
inline

Returns the terrain material which is used to derive material and contact material parameters.

Returns
The set terrain material.

Definition at line 1444 of file agxTerrain/Terrain.h.

◆ getToolCollection()

TerrainToolCollection* agxTerrain::Terrain::getToolCollection ( const Shovel *  shovel) const
Parameters
shovel- shovel instance
Returns
tool collection given shovel - nullptr when shovel hasn't been added to this terrain

◆ getToolCollections()

const TerrainToolCollectionRefVector& agxTerrain::Terrain::getToolCollections ( ) const
Returns
registered tool collections for this terrain instance

◆ getTotalSoilParticleMass()

agx::Real agxTerrain::Terrain::getTotalSoilParticleMass ( ) const

Get the total mass (kg) of the active soil particles in the simulation.

◆ getTransform()

agx::AffineMatrix4x4 agxTerrain::Terrain::getTransform ( ) const
Returns
transform of this terrain

◆ getUpDirection()

agx::Vec3 agxTerrain::Terrain::getUpDirection ( ) const

Returns the world up direction of the terrain.

◆ getUuid()

agx::Uuid agxStream::Serializable::getUuid ( ) const
inherited
Returns
a unique id for this instance.

Definition at line 268 of file Serializable.h.

Referenced by agxSDK::UuidHashCollisionFilter::match().

◆ getValidParticlePosition()

agx::Vec3 agxTerrain::Terrain::getValidParticlePosition ( const agx::Real  radius,
const agx::Vec3i &  index,
const agx::Vec3 &  pos 
)
protected

◆ getVoxelArea()

agx::Real agxTerrain::Terrain::getVoxelArea ( ) const
Returns
the area of a voxel

◆ getVoxelVelocity()

agx::Vec3f agxTerrain::Terrain::getVoxelVelocity ( const agx::Vec3i &  voxelIndex,
agx::HashTable< agx::Vec3i, size_t > &  shovelVoxels 
)
protected

◆ getVoxelVolume()

agx::Real agxTerrain::Terrain::getVoxelVolume ( ) const
Returns
the volume of a voxel

◆ goToBoundaryVoxel()

agx::Vec3i agxTerrain::Terrain::goToBoundaryVoxel ( const agx::Vec3i &  start) const
protected

◆ goToSurfaceVoxel()

agx::Vec3i agxTerrain::Terrain::goToSurfaceVoxel ( const agx::Vec3i &  start) const
protected

◆ goToVoxelKernel()

agx::Vec3i agxTerrain::Terrain::goToVoxelKernel ( const agx::Vec3i &  start,
const GoToStopCondition &  stopCondition 
) const
protected

◆ growLargeParticlesFromParticleMass()

void agxTerrain::Terrain::growLargeParticlesFromParticleMass ( ParticleDeltaVector &  particles,
float  particleRadiusUpperLimit 
)
protected

◆ growParticlesFromFluidMass()

void agxTerrain::Terrain::growParticlesFromFluidMass ( agx::Vec3i  binIndex,
int  binVoxels,
float  availableFluidMass,
ParticleDeltaVector &  particles 
)
protected

◆ growSmallParticlesFromParticleMass()

void agxTerrain::Terrain::growSmallParticlesFromParticleMass ( ParticleDeltaVector &  particles,
float  particleRadiusUpperLimit 
)
protected

◆ hasListener()

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

◆ hasOverlap()

bool agxTerrain::Terrain::hasOverlap ( const agxCollide::Geometry *  geometry) const

Return true if the specified geometry bounding volume overlaps the terrain geometry bounding volume.

◆ hasParent()

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

◆ hasVoxelCompaction()

bool agxTerrain::Terrain::hasVoxelCompaction ( const agx::Vec3i &  index) const
protected

◆ initBuildIslandTask()

void agxTerrain::Terrain::initBuildIslandTask ( )
protected

◆ initializeFromHeightField()

void agxTerrain::Terrain::initializeFromHeightField ( )
protected

◆ initializeSurfaceHeightFieldFromVoxelGrid()

void agxTerrain::Terrain::initializeSurfaceHeightFieldFromVoxelGrid ( )
protected

◆ initVoxelStructureFromHeightField()

void agxTerrain::Terrain::initVoxelStructureFromHeightField ( bool  adjustForCompaction = false)
protected

◆ is()

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

◆ isActiveSolidVoxel()

bool agxTerrain::Terrain::isActiveSolidVoxel ( const agx::Vec3i &  index) const
protected

◆ isBorderIndex()

bool agxTerrain::Terrain::isBorderIndex ( const agx::Vec2i &  terrainIndex) const

Checks if the specified index is at the border of the terrain.

Parameters
terrainIndex- the terrain index to check
Returns
true if the given index is at the border, else false

◆ isDigging()

bool agxTerrain::Terrain::isDigging ( const Shovel *  shovel) const

Check if the specified shovel is currently in digging mode with the terrain, i.e if the cutting edge is submerged.

Parameters
shovel- interacting shovel
Returns
the current penetration force between given shovel and this terrain

◆ isDirty()

bool agxTerrain::Terrain::isDirty ( )
protected

◆ isFinished()

bool agxStream::Serializable::isFinished ( ) const
inherited
Returns
true if this class is restored correctly and should not be deleted during destruction of an Archive.

Definition at line 252 of file Serializable.h.

References AGX_FORCE_INLINE.

◆ isGeometryShovel()

bool agxTerrain::Terrain::isGeometryShovel ( const agxCollide::Geometry *  geometry) const

Checks if the specified geometry's rigid body is contained in any of the terrain object's registered shovels.

Parameters
geometry- the specified geometry for which its body should be checked against the registered shovels.
Returns
true if the specified geometry's body is contained in any of the registered shovels.

◆ isIndexWithinBounds()

bool agxTerrain::Terrain::isIndexWithinBounds ( const agx::Vec2i &  terrainIndex) const

Checks if the specified index is within bound of the terrain [(0,0) -> (resolutionX, resolutionY)].

Parameters
terrainIndex- the terrain index to check
Returns
true if the given index is within bounds, else false

◆ isIndexWithinBoundsIssueWarning()

agx::Bool agxTerrain::Terrain::isIndexWithinBoundsIssueWarning ( const agx::Vec2i &  terrainIndex) const
protected

◆ isLocalPositionWithinBounds()

bool agxTerrain::Terrain::isLocalPositionWithinBounds ( const agx::Vec3 &  position) const

Checks whether the position is within terrain (x,y) position bounds in local space.

Parameters
position- the position to be checked against the terrain bound.
Returns
true if the position is within bounds of terrain, false otherwise.

◆ isRigidBodyShovel()

bool agxTerrain::Terrain::isRigidBodyShovel ( const agx::RigidBody *  body) const

Checks if a specified rigid body is contained in any of the terrain object's registered shovels.

Parameters
body- the specified body to check against the registered shovels.
Returns
true if the specified body is contained in any of the registered shovels.

◆ isSolidBoundaryVoxel()

bool agxTerrain::Terrain::isSolidBoundaryVoxel ( const agx::Vec3i &  index) const
protected

◆ isSolidVoxel()

bool agxTerrain::Terrain::isSolidVoxel ( const agx::Vec3i &  index) const
protected

◆ isSubmergedVoxel()

bool agxTerrain::Terrain::isSubmergedVoxel ( const agx::Vec3i &  index) const
protected

◆ isSurfaceVoxel()

bool agxTerrain::Terrain::isSurfaceVoxel ( const agx::Vec3i &  index) const
protected

Surface voxel functions.

◆ isUnique()

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

Definition at line 375 of file Object.h.

◆ isVoxelWithinTerrainIndexBounds()

bool agxTerrain::Terrain::isVoxelWithinTerrainIndexBounds ( const agx::Vec3i &  index) const
protected

◆ isWorldPositionWithinBounds()

bool agxTerrain::Terrain::isWorldPositionWithinBounds ( const agx::Vec3 &  position) const

Checks whether the position is within terrain (x,y) position bounds in world space.

Parameters
position- the position to be checked against the terrain bound.
Returns
true if the position is within bounds of terrain, false otherwise.

◆ last()

virtual void agxTerrain::Terrain::last ( )
overrideprotectedvirtual

Callback to be executed at the end of the time step.

Reimplemented from agxSDK::TerrainInstance.

◆ load() [1/7]

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

◆ load() [2/7]

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

◆ load() [3/7]

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

◆ load() [4/7]

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

◆ load() [5/7]

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

◆ load() [6/7]

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

◆ load() [7/7]

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

◆ loadLibraryMaterial()

bool agxTerrain::Terrain::loadLibraryMaterial ( const agx::String  materialName)

Loads a TerrainMaterial preset in the TerrainMaterialLibrary that contains calibrated bulk and contact properties for a predefined material archetype.

Note - This method uses the convenience enum MaterialPreset that points to existing preset files.

Parameters
materialName- The name of the material preset that should be loaded.
Returns
true if the material was successfully loaded, false otherwise.

◆ loadMaterialFile()

bool agxTerrain::Terrain::loadMaterialFile ( const agx::String &  filename)

Load a TerrainMaterial from a specification file in JSON data format.

Parameters
filename- the name of the JSON file containing the specified material data.
Returns
true if the specification was successfully loaded, false otherwise.

◆ markVoxelToAvalanche()

void agxTerrain::Terrain::markVoxelToAvalanche ( const agx::Vec3i &  changedVoxel)
protected

◆ mergeCuttingEdgeColumn()

agx::Vec3iVector agxTerrain::Terrain::mergeCuttingEdgeColumn ( agx::Vec3i  voxel,
size_t  numVoxelsToSurfaceThreshold,
agx::Plane  cuttingPlane 
)
protected

◆ mergeFluidMass()

bool agxTerrain::Terrain::mergeFluidMass ( )
protected

◆ mergeParticleIslands()

void agxTerrain::Terrain::mergeParticleIslands ( const ParticleIslandVector &  particleIslands,
agxData::LocalVector< agx::Vec3i > &  mergedParticleIndices 
)
protected

◆ mergeSoilParticlesAndFluidMass()

void agxTerrain::Terrain::mergeSoilParticlesAndFluidMass ( )
protected

◆ mergeSoilToCuttingEdge()

void agxTerrain::Terrain::mergeSoilToCuttingEdge ( )
protected

◆ moveEntityDataToCurrentThread()

void agxTerrain::Terrain::moveEntityDataToCurrentThread ( )
protected

◆ moveParticlesToSurface()

void agxTerrain::Terrain::moveParticlesToSurface ( agx::Vec3iVector  changedVoxelIndices)
protected

◆ openDocument()

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

◆ particleIslandShouldMerge()

bool agxTerrain::Terrain::particleIslandShouldMerge ( const agx::Vector< std::pair< agx::Vec3i, offsetIndexInfo >> &  island)
protected

◆ post()

virtual void agxTerrain::Terrain::post ( )
overrideprotectedvirtual

Executes post-step events for agxTerrain in the simulation.

Reimplemented from agxSDK::TerrainInstance.

◆ postSolveShovels()

void agxTerrain::Terrain::postSolveShovels ( )
protected

◆ postSortSynchronizeParticleHeightField()

void agxTerrain::Terrain::postSortSynchronizeParticleHeightField ( )
protected

◆ postUpdateCompaction()

void agxTerrain::Terrain::postUpdateCompaction ( )
protected

◆ pre()

virtual void agxTerrain::Terrain::pre ( )
overrideprotectedvirtual

Executes pre-step events for agxTerrain in the simulation.

Reimplemented from agxSDK::TerrainInstance.

◆ preCollide()

virtual void agxTerrain::Terrain::preCollide ( )
overrideprotectedvirtual

Executes pre-collide events for agxTerrain in the simulation.

Reimplemented from agxSDK::TerrainInstance.

◆ preSortSynchronizeParticleHeightField()

void agxTerrain::Terrain::preSortSynchronizeParticleHeightField ( )
protected

◆ preUpdateTerrainContacts()

void agxTerrain::Terrain::preUpdateTerrainContacts ( )
protected

◆ printSubtree() [1/2]

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

Reimplemented from agx::Object.

◆ printSubtree() [2/2]

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

◆ projectPointToSurface()

agx::Bool agxTerrain::Terrain::projectPointToSurface ( const agx::Vec3 &  worldPosition,
agx::Vec3 &  result 
) const

Project a world point to the grid surface.

Parameters
worldPosition- position in world
result- position on this terrain, given in world coordinates
Returns
true if worldPosition successfully projected onto this terrain, false if worldPosition is outside

◆ rebind()

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

Reimplemented from agx::Object.

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

◆ reference()

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

Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.

This method should be used with care, always balanced with the same number of calls to unreference.

◆ remove()

bool agxTerrain::Terrain::remove ( Shovel *  shovel)

Removes a shovel object in the terrain, if it exists.

Parameters
shovel- The specified shovel object.
Returns
true if the shovel object was successfully removed in the terrain object, false otherwise.

◆ removeAllObjects()

void agx::Component::removeAllObjects ( )
inherited

Remove all components.

◆ removeFluidMassInGeometry()

float agxTerrain::Terrain::removeFluidMassInGeometry ( agxCollide::Geometry *  geometry,
float  fluidMass 
)

Remove fluid mass (in kg, NOT occupancy) in the intersecting 3D grid element with specified geometry.

The x,y coordinate of the returned 3D points is the terrain index while the z coordinate is a depth index. See the 'TerrainDataGridInterface' class for further explanation.

Parameters
geometry- The geometry to test intersection with the terrain grid.
fluidMass- Amount of mass to be removed
Note
- This function updates the bound of the specified geometry in order to properly do intersection tests.
Returns
The amount of fluid mass (in kg) that was removed in the grid points of the intersection.

◆ removeListener()

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

◆ removeModifiedParticleVertice()

void agxTerrain::Terrain::removeModifiedParticleVertice ( agx::Vec2i  terrainIndex)

Removes a vertex from the vector with vertices that were modified during the last time step.

◆ removeNoMergeZoneToGeometry()

bool agxTerrain::Terrain::removeNoMergeZoneToGeometry ( agxCollide::Geometry *  geometry)

remove disable merge and avalanche inside geometry bound with added extension distance

◆ removeNotification()

virtual void agxTerrain::Terrain::removeNotification ( )
overrideprotectedvirtual

Remove notification executed when terrain is removed to a simulation.

Reimplemented from agxSDK::TerrainInstance.

◆ removeObject() [1/2]

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

Remove an object from the component.

◆ removeObject() [2/2]

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

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

◆ removeSoilParticlesOutsideTerrainBounds()

void agxTerrain::Terrain::removeSoilParticlesOutsideTerrainBounds ( )
protected

◆ renderVoxelAABB()

void agxTerrain::Terrain::renderVoxelAABB ( agx::Vec3i  index,
agx::Vec4f  color 
)
protected

◆ resizeOrRemoveParticles()

void agxTerrain::Terrain::resizeOrRemoveParticles ( const agx::HashTable< SoilParticlePtr, std::array< agx::Real, 2 >> &  particlesToUpdate)
protected

◆ resizeSoilParticles()

void agxTerrain::Terrain::resizeSoilParticles ( )
protected

◆ runBuildIslandsTask()

virtual void agxSDK::TerrainInstance::runBuildIslandsTask ( )
protectedvirtualinherited

◆ sampleParticleMassVelocity()

void agxTerrain::Terrain::sampleParticleMassVelocity ( )
protected

◆ save()

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

Reimplemented in agx::Clock.

Definition at line 105 of file Object.h.

◆ setCompaction()

void agxTerrain::Terrain::setCompaction ( agx::Real  compaction,
bool  replaceCompactedSoil = true 
) const

Set a compaction for all current active solid grid elements in the Terrain object.

Note
- the terrain grid elements all start with a the nominal compaction value of 1.0, of which all user specified bulk parameters correspond to.
Parameters
compaction- The compaction value to set to every voxel in the terrain (Default: 1.0)
replaceCompactedSoil- True if all voxels which already have a compaction value (compaction != 1.0) should get overwritten.

◆ setContext()

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

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

◆ setDeleteHandler()

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

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

◆ setDevice()

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

◆ setEnable()

void agxTerrain::Terrain::setEnable ( bool  enable)

Set if terrain computations should be enabled.

Note
- updates for ToolCollections will still be executed if false.
Parameters
enable- true if terrain computations should be enabled, false otherwise.

◆ setEnableKinematicForParticles()

static void agxTerrain::Terrain::setEnableKinematicForParticles ( agx::RigidBody *  rb,
agx::Bool  enable 
)
static

Enable/disable particles to see this rigid body as kinematic regardless of current motion control.

Parameters
rb- rigid body
enable- true to enable this feature, false to disable

◆ setEnableRebind()

static void agx::Object::setEnableRebind ( bool  flag)
staticinherited

Sets if rebinding of objects should be allowed (Right now a global setting).

Allowing it when adding larger parts to the system tree might hit performance, so it might be smarter to disable it first, then add, and then enable again.

◆ setEnableSerialization()

void agxStream::Serializable::setEnableSerialization ( bool  flag)
inherited

Set to false to disable serialization of this object.

It will just be ignored during serialization (writing). It is still possible to restore TO this object.

◆ setEnableUuidGeneration()

static void agxStream::Serializable::setEnableUuidGeneration ( bool  flag)
staticinherited

Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.

◆ setFinished()

void agxStream::Serializable::setFinished ( )
inherited

Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.

◆ setHeight()

void agxTerrain::Terrain::setHeight ( const agx::Vec2i &  terrainIndex,
agx::Real  height 
)

Sets Terrain height at a specific terrain grid node.

Parameters
terrainIndexAn (x,y) index specifying the grid point to set the height to
heightthe new height in the height field.

◆ setHeights()

bool agxTerrain::Terrain::setHeights ( const agx::RealVector &  heights,
bool  flipY = false,
bool  resetCompaction = true 
)

Set height values of all sampled points.

Parameters
heights- must be a row major matrix with dimensions (resolutionX, resolutionY).
flipY- set to true if y decreases with increasing indices in heights. ( Default: false )
resetCompaction- Set to true if the compaction data should be erased to default compaction, false if compaction data should be preserved. ( Default: true )
Returns
true if heights were set successfully

◆ setId()

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

◆ setMaterial()

void agxTerrain::Terrain::setMaterial ( agx::Material *  material)

Assign new material to this terrain.

The material instance will be assigned to the geometry holding the height field (getHeightFieldGeometry()). Internal contact materials terrain <-> particles and terrain <-> soil particle aggregate will be updated.

Parameters
material- new material for this terrain

◆ setModel()

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

Set the object model (handled automatically).

◆ setName()

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

Set the name of the object.

◆ setNoMerge()

void agxTerrain::Terrain::setNoMerge ( bool  noMerge)

Prevent merge of dynamic mass to this terrain.

◆ setNoMergeEdgeMargin()

void agxTerrain::Terrain::setNoMergeEdgeMargin ( size_t  noMergeEdgeMargin)

Add disable merge and avalanche a number of indices from the terrain edge.

◆ setPosition()

void agxTerrain::Terrain::setPosition ( const agx::Vec3 &  position)

Set the position of this terrain.

Parameters
position- new position of this terrain, given in world coordinate frame

◆ setRotation()

void agxTerrain::Terrain::setRotation ( const agx::Quat &  rotation)

Set the rotation of this terrain.

Parameters
rotation- new rotation of this terrain, given in world coordinate frame

◆ setShovelAggregateContactMaterial()

bool agxTerrain::Terrain::setShovelAggregateContactMaterial ( const Shovel *  shovel,
agx::ContactMaterial *  contactMaterial,
Shovel::ExcavationMode  mode = Shovel::ExcavationMode::PRIMARY 
)

Explicitly set contact material properties in a shovel-aggregate contact for a specific excavation mode for a specific shovel-terrain pair.

This overrides the shovel-terrain contact material properties that are used in the default case.

Parameters
shovel- The specified shovel.
contactMaterial- The contact material to be set in the aggregate contact.
mode- The specified excavation mode that corresponds to the aggregate.
Note
- this returns false if the shovel is not set to the terrain.
Returns
true if the contact material was successfully set, false otherwise.

◆ setTerrainMaterial()

void agxTerrain::Terrain::setTerrainMaterial ( TerrainMaterial *  terrainMaterial)

Set the material for the bulk of the terrain which is used to derive material and contact material parameters.

◆ setTransform()

void agxTerrain::Terrain::setTransform ( const agx::AffineMatrix4x4 &  transform)

Set the transform of this terrain.

Parameters
transform- new transform of this terrain, given in world coordinate frame

◆ setUuid()

void agxStream::Serializable::setUuid ( const agx::Uuid &  uuid)
inherited

Explicitly set a Uuid on a serializable object.

Use this method with great care, as it can result in non-unique identifiers in the system!

◆ shouldDeformerActiveZoneRemoveMass()

bool agxTerrain::Terrain::shouldDeformerActiveZoneRemoveMass ( TerrainToolCollection *  toolCollection,
DeformerCollection *  deformerCollection 
)
protected

◆ shouldPrimaryActiveZoneRemoveMass()

bool agxTerrain::Terrain::shouldPrimaryActiveZoneRemoveMass ( TerrainToolCollection *  toolCollection)
protected

◆ snapshot()

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

Reimplemented from agx::Object.

◆ soilParticleShouldMerge()

bool agxTerrain::Terrain::soilParticleShouldMerge ( SoilParticlePtr &  ptr) const
protected

◆ sortParticlesIntoBins()

agx::HashTable<agx::Vec3i, agx::UInt64Vector> agxTerrain::Terrain::sortParticlesIntoBins ( int  binVoxels)
protected

◆ sortParticlesIntoColumns()

void agxTerrain::Terrain::sortParticlesIntoColumns ( )
protected

◆ sortParticlesIntoVoxels()

void agxTerrain::Terrain::sortParticlesIntoVoxels ( )
protected

◆ stepFluidMass()

void agxTerrain::Terrain::stepFluidMass ( )
protected

◆ storeModifiedTerrainIndex()

void agxTerrain::Terrain::storeModifiedTerrainIndex ( const agx::Vec2i &  terrainVertex)
protected

◆ toolCollectionsPreCollide()

void agxTerrain::Terrain::toolCollectionsPreCollide ( )
protected

◆ traceGridSurfaceHeightFromVoxelIndex()

agx::Real agxTerrain::Terrain::traceGridSurfaceHeightFromVoxelIndex ( const agx::Vec3i &  index,
bool  globalSearch = false 
)
protected

◆ traceGridSurfaceVoxel()

bool agxTerrain::Terrain::traceGridSurfaceVoxel ( const agx::Vec2i &  voxelIndexXY,
agx::Vec3i &  surfaceVoxel 
) const
protected

◆ transformPointToTerrain()

agx::Vec3 agxTerrain::Terrain::transformPointToTerrain ( const agx::Vec3  point) const

Transform point given in world coordinate frame to local coordinate frame of this terrain.

Parameters
point- point in world coordinate frame
Returns
point in local coordinate frame of this terrain

◆ transformPointToWorld()

agx::Vec3 agxTerrain::Terrain::transformPointToWorld ( const agx::Vec3  point) const

Transform point given in local coordinate frame of this terrain, to world coordinate frame.

Parameters
point- point in local coordinate frame of this terrain
Returns
point in world coordinate frame

◆ transformVectorToTerrain()

agx::Vec3 agxTerrain::Terrain::transformVectorToTerrain ( const agx::Vec3  vector) const

Transform vector given in world coordinate frame to local coordinate frame of this terrain.

Parameters
vector- vector in world coordinate frame
Returns
vector in local coordinate frame of this terrain

◆ transformVectorToWorld()

agx::Vec3 agxTerrain::Terrain::transformVectorToWorld ( const agx::Vec3  vector) const

Transform vector given in local coordinate frame of this terrain, to world coordinate frame.

Parameters
vector- vector in local coordinate frame of this terrain
Returns
vector in world coordinate frame

◆ traverse() [1/2]

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

◆ traverse() [2/2]

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

◆ triggerForceAvalancheAll()

void agxTerrain::Terrain::triggerForceAvalancheAll ( )

Triggers initial avalanching on all indices in the terrain.

If any height differences in the terrain violates the angle of repose requirement, avalanching will begin on those indices.

◆ unreference()

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

Decrement the reference count by one, indicating that a pointer to this object is referencing it.

If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.

This method should be used with care, always balanced with the same number of calls to reference.

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

◆ unreference_nodelete()

void agx::Referenced::unreference_nodelete ( ) const
inherited

Decrement the reference count by one, indicating that a pointer to this object is referencing it.

However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.

◆ updateIndicesForAvalanche()

void agxTerrain::Terrain::updateIndicesForAvalanche ( TerrainIndexSet &  forbiddenVertices)
protected

◆ updateOccupancyFromHeightChange()

void agxTerrain::Terrain::updateOccupancyFromHeightChange ( const agx::Vec2i &  heightFieldIndex)
protected

◆ updateSurfaceHeightFieldFromDirtyVoxels()

void agxTerrain::Terrain::updateSurfaceHeightFieldFromDirtyVoxels ( )
protected

◆ updateSurfaceHeightFieldFromHeightsTable()

void agxTerrain::Terrain::updateSurfaceHeightFieldFromHeightsTable ( agx::HashTable< agx::Vec2i, std::pair< agx::Vec3i, agx::Real > > &  table)
protected

◆ updateSurfaceHeightFieldFromVoxelIndex()

void agxTerrain::Terrain::updateSurfaceHeightFieldFromVoxelIndex ( const agx::Vec3i &  voxelIndex)
protected

◆ updateSurfaceHeightFieldFromVoxelIndices() [1/2]

void agxTerrain::Terrain::updateSurfaceHeightFieldFromVoxelIndices ( const agx::Vec3iVector &  updateIndices)
protected

◆ updateSurfaceHeightFieldFromVoxelIndices() [2/2]

void agxTerrain::Terrain::updateSurfaceHeightFieldFromVoxelIndices ( const agxData::LocalVector< agx::Vec3i > &  updateIndices)
protected

◆ updateTransformationFromParentBody()

void agxTerrain::Terrain::updateTransformationFromParentBody ( )
protected

◆ ValidateCast()

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

◆ voxelColumnHasParticles()

bool agxTerrain::Terrain::voxelColumnHasParticles ( const agx::Vec2i &  vertex) const
protected

Member Data Documentation

◆ addObjectEvent

ObjectEvent agx::Component::addObjectEvent
inherited

Definition at line 63 of file Component.h.

◆ m_mutex

Mutex agx::Referenced::m_mutex
mutableprotectedinherited

Definition at line 240 of file Referenced.h.

◆ m_observers

ObserverContainer agx::Referenced::m_observers
mutableprotectedinherited

Definition at line 239 of file Referenced.h.

◆ m_refCount

AtomicValue agx::Referenced::m_refCount
mutableprotectedinherited

Definition at line 241 of file Referenced.h.

◆ removeObjectEvent

ObjectEvent agx::Component::removeObjectEvent
inherited

Definition at line 64 of file Component.h.


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