|
AGX Dynamics
2.35.0.1
|
Collection of terrain tool (currently Shovel) related objects which are terrain instance specific. More...
#include <TerrainToolCollection.h>
Inheritance diagram for agxTerrain::TerrainToolCollection:Public Member Functions | |
| TerrainToolCollection (Terrain *terrain, Shovel *shovel) | |
| Construct given terrain and shovel. More... | |
| void | clearActiveZoneWedges () const |
| Clear the active zone wedges of the primary active zones and deformers. More... | |
| bool | collisionGeometriesAreInsideTerrain () const |
| Check if any of the collision geometries are inside terrain bounds. More... | |
| void | enable (bool enabled) |
| Set enable/disable of the ToolCollection. More... | |
| PrimaryActiveZone * | getActiveZone () const |
| AggregateContactGenerator * | getAggregateContactGenerator () const |
| agx::Real | getAggregateTerrainContactDepth (Shovel::ExcavationMode excavationMode) const |
| DeformController * | getDeformController () const |
| bool | getEnable () |
| agx::Frame * | getParentFrame () const |
| SoilPenetrationResistance * | getPenetrationResistance () const |
| agx::Bool | getSetZeroAggregateVelocity () const |
| Shovel * | getShovel () const |
| ShovelAggregateContactMaterialContainer * | getShovelTerrainContactMaterialContainer () |
| SoilParticleAggregate * | getSoilParticleAggregate () const |
| Terrain * | getTerrain () const |
| const agxCollide::GeometryRefVector & | getVoxelCollisionGeometries () const |
| const agx::RigidBody * | getWedgeAggregate (Shovel::ExcavationMode excavationMode) const |
| void | handleEnableChange () |
| Update ToolCollection if shovel enable has changed. More... | |
| virtual agx::Bool | initialize (agxSDK::Simulation *simulation) |
| agx::Bool | initialized () const |
| virtual void | onPost () |
| Callback from terrain post-solve. More... | |
| virtual void | onPre () |
| Callback from terrain pre-solve. More... | |
| virtual void | onPreCollide () |
| Callback from terrain preCollide. More... | |
| void | setActiveZone (PrimaryActiveZone *activeZone) |
| Assign active zone for the shovel in this terrain. More... | |
| void | setAggregateContactGenerator (AggregateContactGenerator *aggregateContactGenerator) |
| Assign aggregate contact generator for the soil particle aggregate in this terrain. More... | |
| void | setDeformController (DeformController *deformController) |
| Assign aggregate contact generator for the soil particle aggregate in this terrain. More... | |
| void | setEnableShovelTerrainGeometryContacts (bool enable) |
| Set if regular geometry contacts should be created between the shovel geometries and the associated terrain geometry. More... | |
| void | setPenetrationResistance (SoilPenetrationResistance *penetrationResistance) |
| Assign penetration resistance instance for the shovel in this terrain. More... | |
| void | setSoilParticleAggregate (SoilParticleAggregate *soilParticleAggregate) |
| Assign soil particle aggregate for the shovel in this terrain. More... | |
| void | setVoxelCollisionGeometries (const agxCollide::GeometryRefVector &geometries) |
| Assign collision geometries used to test voxel overlaps. More... | |
| void | setZeroAggregateVelocity (bool enable) |
| Set whenever the innerbody aggregate should have zero velocity before solve step as opposed to using particle or cached post-solve velocities from the previous time step. More... | |
| agx::Bool | shouldUpdate () |
| bool | shovelEnableHasChanged () const |
| virtual void | uninitialize (agxSDK::Simulation *simulation) |
Public Member Functions inherited from agx::Referenced | |
| Referenced () | |
| Default constructor. More... | |
| Referenced (const Referenced &) | |
| template<typename T > | |
| T * | as () |
| Subclass casting. More... | |
| template<typename T > | |
| const T * | as () const |
| template<typename T > | |
| T * | asSafe () |
| Safe subclass casting, return nullptr if template type does not match. More... | |
| template<typename T > | |
| const T * | asSafe () const |
| int | getReferenceCount () const |
| template<typename T > | |
| bool | is () const |
| Subclass test. More... | |
| Referenced & | operator= (const Referenced &) |
| Assignment operator. Will increment the number of references to the referenced object. More... | |
| void | reference (void *ptr=nullptr) const |
| Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More... | |
| void | unreference (void *ptr=nullptr) const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
| void | unreference_nodelete () const |
| Decrement the reference count by one, indicating that a pointer to this object is referencing it. More... | |
Public Member Functions inherited from agxStream::Serializable | |
| virtual | ~Serializable () |
| Destructor for normal C++ use but hidden from SWIG bindings. More... | |
| virtual const char * | getClassName () const |
| bool | getEnableSerialization () const |
| bool | getEnableUuidGeneration () |
| agx::UInt32 | getIndex () const |
| This index is given at creation of this object. More... | |
| virtual StorageAgent * | getStorageAgent () const =0 |
| agx::Uuid | getUuid () const |
| bool | isFinished () const |
| 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 | setUuid (const agx::Uuid &uuid) |
| Explicitly set a Uuid on a serializable object. More... | |
Protected Types | |
| using | Flags = agx::BitState< StateFlags, agx::UInt32 > |
| enum | StateFlags : agx::UInt32 { ENABLED = 1 << 0 , SHOVEL_ENABLED = 1 << 1 , SET_ZERO_AGGREGATE_VELOCITY = 1 << 2 } |
Protected Member Functions | |
| TerrainToolCollection () | |
| Default constructor used in serialization. More... | |
| virtual | ~TerrainToolCollection () |
| Reference counted object - protected destructor. More... | |
| bool | getShovelEnabled () const |
| void | setEnable (bool enabled) |
| void | setShovelEnabled (bool enabled) |
Protected Member Functions inherited from agx::Referenced | |
| virtual | ~Referenced () |
| Destructor. More... | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Protected Member Functions inherited from agxStream::Serializable | |
| Serializable () | |
| Default constructor. More... | |
| Serializable (const Serializable &other) | |
| Copy constructor. More... | |
| void | generateUuid () |
Additional Inherited Members | |
Static Public Member Functions inherited from agx::Referenced | |
| template<typename T > | |
| static bool | ValidateCast (const Referenced *object) |
Static Public Member Functions inherited from agxStream::Serializable | |
| static void | setEnableUuidGeneration (bool flag) |
| Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. More... | |
Static Protected Member Functions inherited from agx::Referenced | |
| static DeleteHandler * | getDeleteHandler () |
| static void | setDeleteHandler (DeleteHandler *handler) |
| Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to. More... | |
Protected Attributes inherited from agx::Referenced | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Collection of terrain tool (currently Shovel) related objects which are terrain instance specific.
Definition at line 35 of file TerrainToolCollection.h.
|
protected |
Definition at line 258 of file TerrainToolCollection.h.
|
protected |
| Enumerator | |
|---|---|
| ENABLED | |
| SHOVEL_ENABLED | |
| SET_ZERO_AGGREGATE_VELOCITY | |
Definition at line 252 of file TerrainToolCollection.h.
Construct given terrain and shovel.
| terrain | - terrain instance this collection belongs to |
| shovel | - user shovel instance |
|
protected |
Default constructor used in serialization.
|
protectedvirtual |
Reference counted object - protected destructor.
| void agxTerrain::TerrainToolCollection::clearActiveZoneWedges | ( | ) | const |
Clear the active zone wedges of the primary active zones and deformers.
| bool agxTerrain::TerrainToolCollection::collisionGeometriesAreInsideTerrain | ( | ) | const |
Check if any of the collision geometries are inside terrain bounds.
| void agxTerrain::TerrainToolCollection::enable | ( | bool | enabled | ) |
Set enable/disable of the ToolCollection.
| PrimaryActiveZone* agxTerrain::TerrainToolCollection::getActiveZone | ( | ) | const |
| AggregateContactGenerator* agxTerrain::TerrainToolCollection::getAggregateContactGenerator | ( | ) | const |
| agx::Real agxTerrain::TerrainToolCollection::getAggregateTerrainContactDepth | ( | Shovel::ExcavationMode | excavationMode | ) | const |
| DeformController* agxTerrain::TerrainToolCollection::getDeformController | ( | ) | const |
| bool agxTerrain::TerrainToolCollection::getEnable | ( | ) |
| agx::Frame* agxTerrain::TerrainToolCollection::getParentFrame | ( | ) | const |
| SoilPenetrationResistance* agxTerrain::TerrainToolCollection::getPenetrationResistance | ( | ) | const |
| agx::Bool agxTerrain::TerrainToolCollection::getSetZeroAggregateVelocity | ( | ) | const |
| Shovel* agxTerrain::TerrainToolCollection::getShovel | ( | ) | const |
|
protected |
| ShovelAggregateContactMaterialContainer* agxTerrain::TerrainToolCollection::getShovelTerrainContactMaterialContainer | ( | ) |
| SoilParticleAggregate* agxTerrain::TerrainToolCollection::getSoilParticleAggregate | ( | ) | const |
| Terrain* agxTerrain::TerrainToolCollection::getTerrain | ( | ) | const |
| const agxCollide::GeometryRefVector& agxTerrain::TerrainToolCollection::getVoxelCollisionGeometries | ( | ) | const |
| const agx::RigidBody* agxTerrain::TerrainToolCollection::getWedgeAggregate | ( | Shovel::ExcavationMode | excavationMode | ) | const |
| void agxTerrain::TerrainToolCollection::handleEnableChange | ( | ) |
Update ToolCollection if shovel enable has changed.
|
virtual |
| agx::Bool agxTerrain::TerrainToolCollection::initialized | ( | ) | const |
|
virtual |
Callback from terrain post-solve.
|
virtual |
Callback from terrain pre-solve.
|
virtual |
Callback from terrain preCollide.
| void agxTerrain::TerrainToolCollection::setActiveZone | ( | PrimaryActiveZone * | activeZone | ) |
Assign active zone for the shovel in this terrain.
| activeZone | - active zone instance |
| void agxTerrain::TerrainToolCollection::setAggregateContactGenerator | ( | AggregateContactGenerator * | aggregateContactGenerator | ) |
Assign aggregate contact generator for the soil particle aggregate in this terrain.
| aggregateContactGenerator | - aggregate contact generator instance |
| void agxTerrain::TerrainToolCollection::setDeformController | ( | DeformController * | deformController | ) |
Assign aggregate contact generator for the soil particle aggregate in this terrain.
| deformController | - aggregate contact generator instance |
|
protected |
| void agxTerrain::TerrainToolCollection::setEnableShovelTerrainGeometryContacts | ( | bool | enable | ) |
Set if regular geometry contacts should be created between the shovel geometries and the associated terrain geometry.
| void agxTerrain::TerrainToolCollection::setPenetrationResistance | ( | SoilPenetrationResistance * | penetrationResistance | ) |
Assign penetration resistance instance for the shovel in this terrain.
| penetrationResistance | - penetration resistance instance |
|
protected |
| void agxTerrain::TerrainToolCollection::setSoilParticleAggregate | ( | SoilParticleAggregate * | soilParticleAggregate | ) |
Assign soil particle aggregate for the shovel in this terrain.
| soilParticleAggregate | - soil particle aggregate instance |
| void agxTerrain::TerrainToolCollection::setVoxelCollisionGeometries | ( | const agxCollide::GeometryRefVector & | geometries | ) |
Assign collision geometries used to test voxel overlaps.
| geometries | - voxel collision geometries |
| void agxTerrain::TerrainToolCollection::setZeroAggregateVelocity | ( | bool | enable | ) |
Set whenever the innerbody aggregate should have zero velocity before solve step as opposed to using particle or cached post-solve velocities from the previous time step.
| enable | - true if the innerbody aggregate should have zero velocity, false otherwise. |
| agx::Bool agxTerrain::TerrainToolCollection::shouldUpdate | ( | ) |
| bool agxTerrain::TerrainToolCollection::shovelEnableHasChanged | ( | ) | const |
|
virtual |