AGX Dynamics 2.42.3.0
Loading...
Searching...
No Matches
agxTerrain::GroundCollapse::GroundCollapseController Class Reference

Control ground collapse functionality in the terrain. More...

#include <GroundCollapseController.h>

+ Inheritance diagram for agxTerrain::GroundCollapse::GroundCollapseController:

Public Member Functions

bool addCustomFailureSurface (FailureSurface *customSurface)
 
void addGroundCollapseZone (agxCollide::Geometry *zone)
 
void clearCustomSurfaces ()
 
void clearGroundCollapseZones ()
 
TerrainContactPtrVector getCollapseContacts ()
 Get the terrain contacts that will be used in ground collpase calculations.
 
GroundCollapse::GroundCollapseResult * getCollapseResult () const
 
TerrainContactPtrVector getContactsInGroundCollapseZone ()
 
FailureSurfacePtrVector getCustomFailureSurfaces () const
 
agxCollide::GeometryPtrVector getGroundCollapseZones ()
 
GroundCollapse::CollapseRenderSettings * getRenderSettings () const
 
GroundCollapse::CollapseSettings * getSettings () const
 
GroundCollapse::SlopeDetectionSettings * getSlopeSettings () const
 
void setRenderSettings (GroundCollapse::CollapseRenderSettings *renderSettings)
 
void setSettings (GroundCollapse::CollapseSettings *settings)
 
void setSlopeSettings (GroundCollapse::SlopeDetectionSettings *slopeSettings)
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor.
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting.
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match.
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test.
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object.
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it.
 

Additional Inherited Members

- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor.
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 
- Static Protected Member Functions inherited from agx::Referenced
static DeleteHandler * getDeleteHandler ()
 
static void setDeleteHandler (DeleteHandler *handler)
 Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Detailed Description

Control ground collapse functionality in the terrain.

Ground collapse needs to be enabled beforehand via TerrainProperties::setEnableGroundCollapse.

After ground collapse is enabled and ground collapse zones are designated via addGroundCollapseZone, calculations will be performed in each time step whether external loads on the soil, from a bulldozer for example, causes the ground to collapse.

The ground collapse simulations can be configured via the related settings classes, obtained via getSettings, getRenderSettings and getSlopeSettings.

Definition at line 46 of file GroundCollapseController.h.

Member Function Documentation

◆ addCustomFailureSurface()

bool agxTerrain::GroundCollapse::GroundCollapseController::addCustomFailureSurface ( FailureSurface *  customSurface)

◆ addGroundCollapseZone()

void agxTerrain::GroundCollapse::GroundCollapseController::addGroundCollapseZone ( agxCollide::Geometry *  zone)

◆ clearCustomSurfaces()

void agxTerrain::GroundCollapse::GroundCollapseController::clearCustomSurfaces ( )

◆ clearGroundCollapseZones()

void agxTerrain::GroundCollapse::GroundCollapseController::clearGroundCollapseZones ( )

◆ getCollapseContacts()

TerrainContactPtrVector agxTerrain::GroundCollapse::GroundCollapseController::getCollapseContacts ( )

Get the terrain contacts that will be used in ground collpase calculations.

◆ getCollapseResult()

GroundCollapse::GroundCollapseResult * agxTerrain::GroundCollapse::GroundCollapseController::getCollapseResult ( ) const

◆ getContactsInGroundCollapseZone()

TerrainContactPtrVector agxTerrain::GroundCollapse::GroundCollapseController::getContactsInGroundCollapseZone ( )

◆ getCustomFailureSurfaces()

FailureSurfacePtrVector agxTerrain::GroundCollapse::GroundCollapseController::getCustomFailureSurfaces ( ) const

◆ getGroundCollapseZones()

agxCollide::GeometryPtrVector agxTerrain::GroundCollapse::GroundCollapseController::getGroundCollapseZones ( )

◆ getRenderSettings()

GroundCollapse::CollapseRenderSettings * agxTerrain::GroundCollapse::GroundCollapseController::getRenderSettings ( ) const
inline

Definition at line 90 of file GroundCollapseController.h.

◆ getSettings()

GroundCollapse::CollapseSettings * agxTerrain::GroundCollapse::GroundCollapseController::getSettings ( ) const
inline

Definition at line 79 of file GroundCollapseController.h.

◆ getSlopeSettings()

GroundCollapse::SlopeDetectionSettings * agxTerrain::GroundCollapse::GroundCollapseController::getSlopeSettings ( ) const
inline

Definition at line 101 of file GroundCollapseController.h.

◆ setRenderSettings()

void agxTerrain::GroundCollapse::GroundCollapseController::setRenderSettings ( GroundCollapse::CollapseRenderSettings *  renderSettings)

◆ setSettings()

void agxTerrain::GroundCollapse::GroundCollapseController::setSettings ( GroundCollapse::CollapseSettings *  settings)

◆ setSlopeSettings()

void agxTerrain::GroundCollapse::GroundCollapseController::setSlopeSettings ( GroundCollapse::SlopeDetectionSettings *  slopeSettings)
inline

Definition at line 107 of file GroundCollapseController.h.


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