|
AGX Dynamics 2.42.3.1
|
#include <ShovelSettings.h>
Inheritance diagram for agxTerrain::ShovelSettings:Public Member Functions | |
| ShovelSettings (const agx::Line &cuttingEdge, const agx::Vec3 &toothDirection, agx::Real toothLength) | |
| agx::Vec3 | getCustomTeethGeometryHalfVec () const |
| Get the custom tooth geometry box half vector dimensions to be used when generating a custom teeth geometry, if it is enabled. | |
| bool | getEnableCustomTeethGeometry () const |
| Get whenever custom tooth geometry dimensions should be used instead of automatically generating a teeth geometry from the shovel settings. | |
| bool | getEnableExcavationAtTeethEdge () const |
| bool | getEnableGenerateTeethGeometry () const |
| bool | getEnableParticleFreeDeformers () const |
| agx::Real | getMaxPenetrationForce () const |
| Set the maximum limit on penetration force (N) that the terrain will generate on this shovel. | |
| agx::UInt | getNumberOfTeeth () const |
| agx::Real | getPenetrationDepthThreshold () const |
| Get the vertical penetration depth threshold for when the shovel tooth for penetration resistance should reach full effectiveness. | |
| agx::Real | getPenetrationForceScaling () const |
| agx::Vec3 | getToothDirection () const |
| agx::Real | getToothLength () const |
| agx::Real | getToothMaximumRadius () const |
| agx::Real | getToothMinimumRadius () const |
| agx::Real | getVerticalBladeSoilMergeDistance () const |
| Get the vertical distance under the blade cutting edge that the soil is allowed to instantly merge up to. | |
| void | setCustomTeethGeometryHalfVec (const agx::Vec3 &halfVec) |
| Set the custom tooth geometry box half vector dimensions to be used when generating a custom teeth geometry, if it is enabled. | |
| void | setEnableCustomTeethGeometry (bool enable) |
| Set whenever custom tooth geometry dimensions should be used instead of automatically generating a teeth geometry from the shovel settings. | |
| void | setEnableExcavationAtTeethEdge (bool enable) |
| Set whenever a excavation at the teeth edge should be enabled so that digging starts at the teeth edge instead of at the cutting edge. | |
| void | setEnableGenerateTeethGeometry (bool enable) |
| Set whenever a teeth geometry should be generated between the cutting edge and the teeth edge from the teeth radius and length. | |
| void | setEnableParticleFreeDeformers (bool enable) |
| Set true/false if the shovel deformers should make particle free deformations. | |
| void | setMaxPenetrationForce (agx::Real maxPenetrationForce) |
| Set a maximum limit on penetration force (N) that the terrain will generate on this shovel. | |
| void | setNumberOfTeeth (agx::UInt count) |
| void | setPenetrationDepthThreshold (agx::Real depthThreshold) |
| Set the vertical penetration depth threshold for when the shovel tooth for penetration resistance should reach full effectiveness. | |
| void | setPenetrationForceScaling (agx::Real penetrationForceScaling) |
| Set the linear scaling coefficient for the penetration force (Default: 1.0) | |
| void | setToothDirection (const agx::Vec3 &toothDirection) |
| Set the tooth direction of the shovel. | |
| void | setToothLength (agx::Real length) |
| void | setToothMaximumRadius (agx::Real radius) |
| void | setToothMinimumRadius (agx::Real radius) |
| void | setVerticalBladeSoilMergeDistance (agx::Real verticalSoilBladeMergeDistance) |
| Sets the vertical distance under the blade cutting edge that the soil is allowed to instantly merge up to. | |
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 |
Definition at line 36 of file ShovelSettings.h.
| agxTerrain::ShovelSettings::ShovelSettings | ( | const agx::Line & | cuttingEdge, |
| const agx::Vec3 & | toothDirection, | ||
| agx::Real | toothLength | ||
| ) |
| agx::Vec3 agxTerrain::ShovelSettings::getCustomTeethGeometryHalfVec | ( | ) | const |
Get the custom tooth geometry box half vector dimensions to be used when generating a custom teeth geometry, if it is enabled.
| bool agxTerrain::ShovelSettings::getEnableCustomTeethGeometry | ( | ) | const |
Get whenever custom tooth geometry dimensions should be used instead of automatically generating a teeth geometry from the shovel settings.
Also see: setCustomTeethGeometryHalfVec.
| bool agxTerrain::ShovelSettings::getEnableExcavationAtTeethEdge | ( | ) | const |
| bool agxTerrain::ShovelSettings::getEnableGenerateTeethGeometry | ( | ) | const |
| bool agxTerrain::ShovelSettings::getEnableParticleFreeDeformers | ( | ) | const |
| agx::Real agxTerrain::ShovelSettings::getMaxPenetrationForce | ( | ) | const |
Set the maximum limit on penetration force (N) that the terrain will generate on this shovel.
(Default: Infinity)
| agx::UInt agxTerrain::ShovelSettings::getNumberOfTeeth | ( | ) | const |
| agx::Real agxTerrain::ShovelSettings::getPenetrationDepthThreshold | ( | ) | const |
Get the vertical penetration depth threshold for when the shovel tooth for penetration resistance should reach full effectiveness.
The penetration depth is defined as the vertical distance between the tip of a shovel tooth and the surface position of the height field. The penetration resistance will increase from a baseline of 10% until maximum effectiveness is reached when the vertical penetration depth of the shovel reaches the specified value. (Default: 0.5 m)
| agx::Real agxTerrain::ShovelSettings::getPenetrationForceScaling | ( | ) | const |
| agx::Vec3 agxTerrain::ShovelSettings::getToothDirection | ( | ) | const |
| agx::Real agxTerrain::ShovelSettings::getToothLength | ( | ) | const |
| agx::Real agxTerrain::ShovelSettings::getToothMaximumRadius | ( | ) | const |
| agx::Real agxTerrain::ShovelSettings::getToothMinimumRadius | ( | ) | const |
| agx::Real agxTerrain::ShovelSettings::getVerticalBladeSoilMergeDistance | ( | ) | const |
Get the vertical distance under the blade cutting edge that the soil is allowed to instantly merge up to.
Default: 0.0 m.
| void agxTerrain::ShovelSettings::setCustomTeethGeometryHalfVec | ( | const agx::Vec3 & | halfVec | ) |
Set the custom tooth geometry box half vector dimensions to be used when generating a custom teeth geometry, if it is enabled.
| halfVec | - The dimensions of the custom teeth geometry box to be used if custom teeth geometry is enabled. |
| void agxTerrain::ShovelSettings::setEnableCustomTeethGeometry | ( | bool | enable | ) |
Set whenever custom tooth geometry dimensions should be used instead of automatically generating a teeth geometry from the shovel settings.
Also see: setCustomTeethGeometryHalfVec.
| enable | - True if custom geometry dimensions should be used, false otherwise. Default: False. |
| void agxTerrain::ShovelSettings::setEnableExcavationAtTeethEdge | ( | bool | enable | ) |
Set whenever a excavation at the teeth edge should be enabled so that digging starts at the teeth edge instead of at the cutting edge.
| enable | - true if excavation at the teeth edge should be enabled, false otherwise. |
| void agxTerrain::ShovelSettings::setEnableGenerateTeethGeometry | ( | bool | enable | ) |
Set whenever a teeth geometry should be generated between the cutting edge and the teeth edge from the teeth radius and length.
| enable | - true if a teeth geometry should be generated, false otherwise. |
| void agxTerrain::ShovelSettings::setEnableParticleFreeDeformers | ( | bool | enable | ) |
Set true/false if the shovel deformers should make particle free deformations.
(Default: false) Note, if this is true all excavation modes will make particle free deformations. Even if enableCreateDynamicMass is set to false for one or more excavation modes.
| enable | - true if the shovel deformers mode should make particle free deformations. |
| void agxTerrain::ShovelSettings::setMaxPenetrationForce | ( | agx::Real | maxPenetrationForce | ) |
Set a maximum limit on penetration force (N) that the terrain will generate on this shovel.
(Default: Infinity)
| maxPenetrationForce | - The maximum penetration force that the terrain will act on this shovel |
| void agxTerrain::ShovelSettings::setNumberOfTeeth | ( | agx::UInt | count | ) |
| count | - new teeth count of shovel. Default: calculated as ceil((cuttingEdge.p2 - cuttingEdge.p1).length() / 0.5). |
| void agxTerrain::ShovelSettings::setPenetrationDepthThreshold | ( | agx::Real | depthThreshold | ) |
Set the vertical penetration depth threshold for when the shovel tooth for penetration resistance should reach full effectiveness.
The penetration depth is defined as the vertical distance between the tip of a shovel tooth and the surface position of the height field. The penetration resistance will increase from a baseline of 10% until maximum effectiveness is reached when the vertical penetration depth of the shovel reaches the specified value. (Default: 0.5 m)
| depthThreshold | - the vertical pressure threshold that will cause penetration resistance to start. |
| void agxTerrain::ShovelSettings::setPenetrationForceScaling | ( | agx::Real | penetrationForceScaling | ) |
Set the linear scaling coefficient for the penetration force (Default: 1.0)
| penetrationForceScaling | - The coefficient for scaling the penetration force that the terrain will give on this shovel |
| void agxTerrain::ShovelSettings::setToothDirection | ( | const agx::Vec3 & | toothDirection | ) |
Set the tooth direction of the shovel.
This will affect the direction along which the penetration resistance will act on the shovel body when submerged into the terrain. It will also affect the direction of the generated teeth geometry if it is enabled.
| toothDirection | - The direction of the teeth. Default: [0, 0, 0]. |
| void agxTerrain::ShovelSettings::setToothLength | ( | agx::Real | length | ) |
| length | - new tooth length. Default: 0.15 m. |
| void agxTerrain::ShovelSettings::setToothMaximumRadius | ( | agx::Real | radius | ) |
| radius | - new maximum radius of the shovel teeth. Default: 0.075 m. |
| void agxTerrain::ShovelSettings::setToothMinimumRadius | ( | agx::Real | radius | ) |
| radius | - new minimum radius of the shovel teeth. Default: 0.015 m. |
| void agxTerrain::ShovelSettings::setVerticalBladeSoilMergeDistance | ( | agx::Real | verticalSoilBladeMergeDistance | ) |
Sets the vertical distance under the blade cutting edge that the soil is allowed to instantly merge up to.
Default: 0.0 m.