|
AGX Dynamics 2.42.3.0
|
#include <ActiveZone.h>
Inheritance diagram for agxTerrain::ActiveZone:Public Types | |
| enum class | Type { PRIMARY_ACTIVE_ZONE , DEFORMER_ACTIVE_ZONE } |
Public Member Functions | |
| 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 |
| virtual ActiveZone::Type | getType () const =0 |
| 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) |
| virtual void | onPost (Terrain *terrain, const agx::Line &cuttingEdge, const agx::Line &topEdge, const agx::Vec3 &forwardVector)=0 |
| virtual void | onPre (Terrain *terrain, const agx::Line &cuttingEdge, const agx::Line &topEdge, const agx::Vec3 &forwardVector)=0 |
| virtual void | onPreCollide (Terrain *terrain, const agx::Line &cuttingEdge, const agx::Line &topEdge, const agx::Vec3 &forwardVector)=0 |
| agx::Bool | overlapsVoxel (const agx::Vec3i &index) const |
| void | removeWedgeShapes () |
| bool | soilWedgeCreationFailed () const |
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. | |
Protected Member Functions | |
| virtual | ~ActiveZone () |
| void | createSoilWedges (const Terrain *terrain, const agx::Line &cuttingEdge, const agx::Line &topEdge, const agx::Vec3 &forwardVector, const agx::Vec3 &flatForwardVector, const ShovelDebugRenderSettings *dbgSettings) |
| agx::Vec3 | projectVectorToTerrainPlane (const agx::Vec3 &vec, const agx::Vec3 &upVector) const |
Protected Member Functions inherited from agx::Referenced | |
| virtual | ~Referenced () |
| Destructor. | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Protected Attributes | |
| 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 |
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. | |
Definition at line 49 of file ActiveZone.h.
|
strong |
| Enumerator | |
|---|---|
| PRIMARY_ACTIVE_ZONE | |
| DEFORMER_ACTIVE_ZONE | |
Definition at line 53 of file ActiveZone.h.
| agxTerrain::ActiveZone::ActiveZone | ( | agx::Frame * | parentFrame | ) |
|
protectedvirtual |
|
protected |
| agx::String agxTerrain::ActiveZone::getActiveZoneTypeName | ( | ) | const |
| agx::Real agxTerrain::ActiveZone::getFailureAngle | ( | ) | const |
| agx::Vec3iVector agxTerrain::ActiveZone::getFailurePlaneVoxels | ( | const Terrain * | terrain | ) | const |
| agxCollide::Geometry * agxTerrain::ActiveZone::getGeometry | ( | ) |
| const agxCollide::Geometry * agxTerrain::ActiveZone::getGeometry | ( | ) | const |
| WedgePlaneVector agxTerrain::ActiveZone::getSoilWedgePlanes | ( | ) | const |
| agx::Plane agxTerrain::ActiveZone::getSplittingPlane | ( | ) | const |
| agx::Real agxTerrain::ActiveZone::getTerrainInclination | ( | ) | const |
| agx::Real agxTerrain::ActiveZone::getToolInclination | ( | ) | const |
|
pure virtual |
Implemented in agxTerrain::PrimaryActiveZone, and agxTerrain::DeformerActiveZone.
| agx::Bound3i agxTerrain::ActiveZone::getVoxelOverlapBound | ( | ) | const |
| agx::Line agxTerrain::ActiveZone::getWedgeCuttingEdge | ( | ) | const |
| agx::Line agxTerrain::ActiveZone::getWedgeFailureEdge | ( | ) | const |
| const agx::Vector< agxCollide::ConvexRef > & agxTerrain::ActiveZone::getWedgeShapes | ( | ) | const |
| agx::Line agxTerrain::ActiveZone::getWedgeTopEdge | ( | ) | const |
| bool agxTerrain::ActiveZone::isAnySoilWedgeEnabled | ( | ) | const |
| bool agxTerrain::ActiveZone::isSoilWedgeEnabled | ( | agx::UInt | index | ) | const |
| void agxTerrain::ActiveZone::onEnableChange | ( | bool | enable | ) |
|
pure virtual |
Implemented in agxTerrain::PrimaryActiveZone, and agxTerrain::DeformerActiveZone.
|
pure virtual |
Implemented in agxTerrain::PrimaryActiveZone, and agxTerrain::DeformerActiveZone.
|
pure virtual |
Implemented in agxTerrain::PrimaryActiveZone, and agxTerrain::DeformerActiveZone.
| agx::Bool agxTerrain::ActiveZone::overlapsVoxel | ( | const agx::Vec3i & | index | ) | const |
|
protected |
| void agxTerrain::ActiveZone::removeWedgeShapes | ( | ) |
| bool agxTerrain::ActiveZone::soilWedgeCreationFailed | ( | ) | const |
|
protected |
Definition at line 136 of file ActiveZone.h.
|
protected |
Definition at line 144 of file ActiveZone.h.
|
protected |
Definition at line 142 of file ActiveZone.h.
|
protected |
Definition at line 140 of file ActiveZone.h.
|
protected |
Definition at line 146 of file ActiveZone.h.
|
protected |
Definition at line 137 of file ActiveZone.h.