AGX Dynamics  2.37.3.2
agxTerrain::DeformerActiveZone Class Reference

#include <DeformerActiveZone.h>

+ Inheritance diagram for agxTerrain::DeformerActiveZone:

Public Member Functions

 DeformerActiveZone (agx::Frame *parentFrame, DeformerCollection *deformer)
 
agx::Line getRotatedCuttingEdgeWorld () const
 
agx::Line getRotatedTopEdgeWorld () const
 
ActiveZone::Type getType () const override
 
void onPost (Terrain *terrain, const agx::Line &cuttingEdge, const agx::Line &topEdge, const agx::Vec3 &forwardVector) override
 
void onPre (Terrain *terrain, const agx::Line &cuttingEdge, const agx::Line &topEdge, const agx::Vec3 &forwardVector) override
 
void onPreCollide (Terrain *terrain, const agx::Line &cuttingEdge, const agx::Line &topEdge, const agx::Vec3 &forwardVector) override
 
- Public Member Functions inherited from agxTerrain::ActiveZone
 ActiveZone (agx::Frame *parentFrame)
 
agx::String getActiveZoneTypeName () const
 
agx::Real getFailureAngle () const
 
agx::Real getFailureAngleToTerrainPlane (const agx::Vec3 &upVector) const
 
agx::Vec3iVector getFailurePlaneVoxels (const Terrain *terrain) const
 
agxCollide::Geometry * getGeometry ()
 
const agxCollide::Geometry * getGeometry () const
 
WedgePlaneVector getSoilWedgePlanes () const
 
agx::Plane getSplittingPlane () const
 
agx::Real getTerrainInclination () const
 
agx::Real getToolInclination () const
 
agx::Real getTotalSoilWedgeVolume (const agx::Vec3 &upVector) const
 
agx::Bound3i getVoxelOverlapBound () const
 
agx::Line getWedgeCuttingEdge () const
 
agx::Line getWedgeFailureEdge () const
 
const agx::Vector< agxCollide::ConvexRef > & getWedgeShapes () const
 
agx::Line getWedgeTopEdge () const
 
bool isAnySoilWedgeEnabled () const
 
bool isSoilWedgeEnabled (agx::UInt index) const
 
void onEnableChange (bool enable)
 
agx::Bool overlapsVoxel (const agx::Vec3i &index) const
 
void removeWedgeShapes ()
 
bool soilWedgeCreationFailed () const
 
- 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 ~DeformerActiveZone ()
 
- Protected Member Functions inherited from agxTerrain::ActiveZone
virtual ~ActiveZone ()
 
void createSoilWedges (const Terrain *terrain, const agx::Line &cuttingEdge, const agx::Line &topEdge, const agx::Vec3 &forwardVector, const agx::Vec3 &flatForwardVector)
 
agx::Vec3 projectVectorToTerrainPlane (const agx::Vec3 &vec, const agx::Vec3 &upVector) const
 
- Protected Member Functions inherited from agx::Referenced
virtual ~Referenced ()
 Destructor. More...
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 

Additional Inherited Members

- Public Types inherited from agxTerrain::ActiveZone
enum  Type { Type::PRIMARY_ACTIVE_ZONE, Type::DEFORMER_ACTIVE_ZONE }
 
- 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 agxTerrain::ActiveZone
agx::Frame * m_parentFrame
 
agx::Vector< agxCollide::ConvexRef > m_soilWedgeMeshses
 
agx::Vector< SoilWedge > m_soilWedges
 
agx::UInt m_soilWedgesSize
 
agx::Plane m_splittingPlane
 
agx::Bound3i m_voxelOverlapBound
 
- Protected Attributes inherited from agx::Referenced
Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Detailed Description

Definition at line 31 of file DeformerActiveZone.h.

Constructor & Destructor Documentation

◆ DeformerActiveZone()

agxTerrain::DeformerActiveZone::DeformerActiveZone ( agx::Frame *  parentFrame,
DeformerCollection *  deformer 
)

◆ ~DeformerActiveZone()

virtual agxTerrain::DeformerActiveZone::~DeformerActiveZone ( )
protectedvirtual

Member Function Documentation

◆ getRotatedCuttingEdgeWorld()

agx::Line agxTerrain::DeformerActiveZone::getRotatedCuttingEdgeWorld ( ) const

◆ getRotatedTopEdgeWorld()

agx::Line agxTerrain::DeformerActiveZone::getRotatedTopEdgeWorld ( ) const

◆ getType()

ActiveZone::Type agxTerrain::DeformerActiveZone::getType ( ) const
overridevirtual

◆ onPost()

void agxTerrain::DeformerActiveZone::onPost ( Terrain *  terrain,
const agx::Line &  cuttingEdge,
const agx::Line &  topEdge,
const agx::Vec3 &  forwardVector 
)
overridevirtual

◆ onPre()

void agxTerrain::DeformerActiveZone::onPre ( Terrain *  terrain,
const agx::Line &  cuttingEdge,
const agx::Line &  topEdge,
const agx::Vec3 &  forwardVector 
)
overridevirtual

◆ onPreCollide()

void agxTerrain::DeformerActiveZone::onPreCollide ( Terrain *  terrain,
const agx::Line &  cuttingEdge,
const agx::Line &  topEdge,
const agx::Vec3 &  forwardVector 
)
overridevirtual

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