|
AGX Dynamics
2.35.0.1
|
#include <AvalancheController.h>
Inheritance diagram for agxTerrain::AvalancheController:Public Types | |
| using | TerrainIndexSet = agx::HashSet< agx::Vec2i > |
Public Member Functions | |
| AvalancheController () | |
| AvalancheController (Terrain *terrain) | |
| Construct given terrain instance. More... | |
| void | addIndicesToAvalanche (const TerrainIndexSet &indicesToAvalanche) |
| agx::Real | getAvalancheDecayPrecent () const |
| const TerrainIndexSet & | getAvalanchedVertices () const |
| agx::Real | getAvalancheMaxHeightGrowth () const |
| const TerrainIndexSet & | getModifiedVertices () const |
| void | resetIndices () |
| void | setAvalancheDecayPrecent (agx::Real avalancheDecayPrecent) |
| void | setAvalancheMaxHeightGrowth (agx::Real maxHeightGrowth) |
| void | setForbiddenVertices (const TerrainIndexSet &forbiddenVertices) |
| void | setIndicesToAvalanche (const TerrainIndexSet &indicesToAvalanche) |
| void | update () |
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 Types | |
| typedef agx::HashTable< agx::Vec2i, std::pair< agx::Vec3i, agx::Real > > | SurfaceInfoTable |
Protected Member Functions | |
| virtual | ~AvalancheController () |
| void | applyGrowthMap () |
| agx::Real | calculateMaximumOccupancyTransfer () |
| agx::Real | calculateOccupancyTransfer (const agx::Vec2i &surfaceVertex, agx::Real heightDifference) |
| agx::Real | findReposeHeightDifference (const agx::Vec2i &v1, const agx::Vec2i &v2) |
| void | generateVertexNeighborList (const agx::Vec2i &surfaceVertex, agx::StackArray< agx::Vec2i, 8 > &neighborList) |
Protected Member Functions inherited from agx::Referenced | |
| virtual | ~Referenced () |
| Destructor. More... | |
| void | allocateObserverVector () const |
| void | deleteUsingDeleteHandler () const |
Protected Attributes | |
| SurfaceInfoTable | m_surfaceInfoTable |
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. More... | |
Definition at line 33 of file AvalancheController.h.
|
protected |
Definition at line 86 of file AvalancheController.h.
Definition at line 36 of file AvalancheController.h.
| agxTerrain::AvalancheController::AvalancheController | ( | Terrain * | terrain | ) |
Construct given terrain instance.
| terrain | - terrain instance |
| agxTerrain::AvalancheController::AvalancheController | ( | ) |
|
protectedvirtual |
| void agxTerrain::AvalancheController::addIndicesToAvalanche | ( | const TerrainIndexSet & | indicesToAvalanche | ) |
|
protected |
|
protected |
References agxAssert, and agxTerrain::Profiler::clear().
|
protected |
|
protected |
|
protected |
| agx::Real agxTerrain::AvalancheController::getAvalancheDecayPrecent | ( | ) | const |
| const AvalancheController::TerrainIndexSet & agxTerrain::AvalancheController::getAvalanchedVertices | ( | ) | const |
Definition at line 204 of file AvalancheController.h.
| agx::Real agxTerrain::AvalancheController::getAvalancheMaxHeightGrowth | ( | ) | const |
| const AvalancheController::TerrainIndexSet & agxTerrain::AvalancheController::getModifiedVertices | ( | ) | const |
Definition at line 199 of file AvalancheController.h.
| void agxTerrain::AvalancheController::resetIndices | ( | ) |
| void agxTerrain::AvalancheController::setAvalancheDecayPrecent | ( | agx::Real | avalancheDecayPrecent | ) |
| void agxTerrain::AvalancheController::setAvalancheMaxHeightGrowth | ( | agx::Real | maxHeightGrowth | ) |
| void agxTerrain::AvalancheController::setForbiddenVertices | ( | const TerrainIndexSet & | forbiddenVertices | ) |
| void agxTerrain::AvalancheController::setIndicesToAvalanche | ( | const TerrainIndexSet & | indicesToAvalanche | ) |
| void agxTerrain::AvalancheController::update | ( | ) |
|
protected |
Definition at line 87 of file AvalancheController.h.