AGX Dynamics  2.37.2.0
agxTerrain::DeformController Class Reference

#include <DeformController.h>

+ Inheritance diagram for agxTerrain::DeformController:

Public Member Functions

 DeformController (agx::Frame *parentFrame, const agx::Line &cuttingEdge, const agx::Line &topEdge, const agx::Vec3 &forwardVector, const agxCollide::GeometryRefVector &voxelCollisionGeometries)
 
void addNotification (agxSDK::Simulation *simulation, Terrain *terrain)
 
agx::Real calculateShovelAggregateContactArea (const agx::Vec3Vector &contactPoints, agx::Real voxelArea) const
 
agxCollide::GeometryPtrVector getActiveZoneGeometries ()
 
ActiveZonePtrVector getActiveZones ()
 
const agxTerrain::AggregateContactDepthModel & getAggregateDepthModel (agx::UInt i) const
 
agx::ContactMaterial * getAggregateShovelContactMaterial (agx::UInt i) const
 Get the internal shovel <-> aggregate contact material of the specified deformer denoted by an index. More...
 
agx::ContactMaterial * getAggregateTerrainContactMaterial (agx::UInt i) const
 Get the internal aggregate <-> terrain contact material of the specified deformer denoted by an index. More...
 
DeformerCollection * getDeformerCollection (size_t i)
 
bool getEnableCustomFrictionModels () const
 
agxCollide::GeometryContactPtrVector getGeometryContacts (agxSDK::Simulation *simulation) const
 
SoilParticleAggregatePtrVector getSoilParticleAggregates ()
 
void initializeContactMaterials (TerrainToolCollection *collection)
 
void initializeFrictionModels (TerrainToolCollection *collection)
 
void onEnableChanged (bool enable)
 
void onPost (TerrainToolCollection *collection)
 
void onPre (TerrainToolCollection *collection)
 
void onPreCollide (TerrainToolCollection *collection)
 
void removeNotification (agxSDK::Simulation *simulation, Terrain *terrain)
 
void resetAggregateContactHistories ()
 
void resetAggregateContactHistory (agx::UInt i)
 
void setEnableCustomFrictionModels (bool enable)
 
- Public Member Functions inherited from agx::Referenced
 Referenced ()
 Default constructor. More...
 
 Referenced (const Referenced &)
 
template<typename T >
T * as ()
 Subclass casting. More...
 
template<typename T >
const T * as () const
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match. More...
 
template<typename T >
const T * asSafe () const
 
int getReferenceCount () const
 
template<typename T >
bool is () const
 Subclass test. More...
 
Referenced & operator= (const Referenced &)
 Assignment operator. Will increment the number of references to the referenced object. More...
 
void reference (void *ptr=nullptr) const
 Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it. More...
 
void unreference (void *ptr=nullptr) const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 
void unreference_nodelete () const
 Decrement the reference count by one, indicating that a pointer to this object is referencing it. More...
 

Protected Member Functions

virtual ~DeformController ()
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor. More...
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 

Additional Inherited Members

- Static Public Member Functions inherited from agx::Referenced
template<typename T >
static bool ValidateCast (const Referenced *object)
 
- 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
 

Detailed Description

Definition at line 29 of file DeformController.h.

Constructor & Destructor Documentation

◆ DeformController()

agxTerrain::DeformController::DeformController ( agx::Frame *  parentFrame,
const agx::Line &  cuttingEdge,
const agx::Line &  topEdge,
const agx::Vec3 &  forwardVector,
const agxCollide::GeometryRefVector &  voxelCollisionGeometries 
)

◆ ~DeformController()

virtual agxTerrain::DeformController::~DeformController ( )
protectedvirtual

Member Function Documentation

◆ addNotification()

void agxTerrain::DeformController::addNotification ( agxSDK::Simulation *  simulation,
Terrain *  terrain 
)

◆ calculateShovelAggregateContactArea()

agx::Real agxTerrain::DeformController::calculateShovelAggregateContactArea ( const agx::Vec3Vector &  contactPoints,
agx::Real  voxelArea 
) const

◆ getActiveZoneGeometries()

agxCollide::GeometryPtrVector agxTerrain::DeformController::getActiveZoneGeometries ( )

◆ getActiveZones()

ActiveZonePtrVector agxTerrain::DeformController::getActiveZones ( )

◆ getAggregateDepthModel()

const agxTerrain::AggregateContactDepthModel& agxTerrain::DeformController::getAggregateDepthModel ( agx::UInt  i) const

◆ getAggregateShovelContactMaterial()

agx::ContactMaterial* agxTerrain::DeformController::getAggregateShovelContactMaterial ( agx::UInt  i) const

Get the internal shovel <-> aggregate contact material of the specified deformer denoted by an index.

Parameters
i- index of the deformer which contact material should be accessed. [0-2]
Returns
the contact material of the specified deformer.

◆ getAggregateTerrainContactMaterial()

agx::ContactMaterial* agxTerrain::DeformController::getAggregateTerrainContactMaterial ( agx::UInt  i) const

Get the internal aggregate <-> terrain contact material of the specified deformer denoted by an index.

Parameters
i- index of the deformer which contact material should be accessed. [0-2]
Returns
the contact material of the specified deformer.

◆ getDeformerCollection()

DeformerCollection* agxTerrain::DeformController::getDeformerCollection ( size_t  i)

◆ getEnableCustomFrictionModels()

bool agxTerrain::DeformController::getEnableCustomFrictionModels ( ) const

◆ getGeometryContacts()

agxCollide::GeometryContactPtrVector agxTerrain::DeformController::getGeometryContacts ( agxSDK::Simulation *  simulation) const

◆ getSoilParticleAggregates()

SoilParticleAggregatePtrVector agxTerrain::DeformController::getSoilParticleAggregates ( )

◆ initializeContactMaterials()

void agxTerrain::DeformController::initializeContactMaterials ( TerrainToolCollection *  collection)

◆ initializeFrictionModels()

void agxTerrain::DeformController::initializeFrictionModels ( TerrainToolCollection *  collection)

◆ onEnableChanged()

void agxTerrain::DeformController::onEnableChanged ( bool  enable)

◆ onPost()

void agxTerrain::DeformController::onPost ( TerrainToolCollection *  collection)

◆ onPre()

void agxTerrain::DeformController::onPre ( TerrainToolCollection *  collection)

◆ onPreCollide()

void agxTerrain::DeformController::onPreCollide ( TerrainToolCollection *  collection)

◆ removeNotification()

void agxTerrain::DeformController::removeNotification ( agxSDK::Simulation *  simulation,
Terrain *  terrain 
)

◆ resetAggregateContactHistories()

void agxTerrain::DeformController::resetAggregateContactHistories ( )

◆ resetAggregateContactHistory()

void agxTerrain::DeformController::resetAggregateContactHistory ( agx::UInt  i)

◆ setEnableCustomFrictionModels()

void agxTerrain::DeformController::setEnableCustomFrictionModels ( bool  enable)

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