|
AGX Dynamics
2.37.3.2
|
Static data for a shape. More...
#include <WindAndWaterController.h>
Inheritance diagram for agxModel::WindAndWaterController::ObjectData:Public Member Functions | |
| ObjectData (const agxCollide::Shape *shape, const agxModel::AerodynamicsParameters *aeroParams, const agxModel::HydrodynamicsParameters *hydroParams, const agxModel::WaterWrapper *water, const agxModel::WindAndWaterController::WindWrapper *wind, const agx::Vec3 &gravity, agxModel::PressureFieldRenderer *pressureFieldRenderer, const agx::UInt numTriangles, const agx::UInt startIndexT, const agx::UInt startIndexV, bool enableCenterOfBuoyancy) | |
| Construct given shape, parameters, wind and water definitions and gravity. More... | |
| agx::Matrix3x3 & | addedInertia () |
| Access added inertia matrix. More... | |
| agx::Matrix3x3 & | addedMass () |
| Access added mass matrix. More... | |
| agx::Vec3 & | centerOfBuoyancy () |
| Access center of buoyancy vector (in world coordinate system). More... | |
| agx::Bool & | containsAddedMass () |
| Set to/is true if this data contains added mass and/or inertia. More... | |
| const agx::Bool & | containsAddedMass () const |
| agx::Vec3 & | force () |
| Access force vector (in world coordinate system). More... | |
| agx::Vec3 & | forceComponent (ForceType type) |
| const agx::Matrix3x3 & | getAddedInertia () const |
| const agx::Matrix3x3 & | getAddedMass () const |
| const agx::Vec3 & | getCenterOfBuoyancy () const |
| agx::Real | getDensity (agx::Bool belowSurface) const |
| agx::Real | getDensity (const agxModel::TriangleData &tData) const |
| agx::Real | getDensity (const agxModel::VertexData &vData) const |
| agx::Real | getDensityAir () const |
| agx::Real | getDensityWater () const |
| bool | getEnableCenterOfBuoyancy () |
| const agx::Vec3 & | getForce () const |
| const agx::Vec3 & | getForceComponent (ForceType type) const |
| const agx::Vec3Vector & | getForceComponents () const |
| const agxCollide::Geometry * | getGeometry () const |
| const agx::Vec3 & | getGravity () const |
| agx::UInt | getNumTriangles () const |
| agxModel::PressureFieldRenderer * | getPressureFieldRenderer () const |
| const agx::RigidBody * | getRigidBody () const |
| agx::RigidBody * | getRigidBodySerial () |
| This method is unsafe to use if this object is used during parallel execution. More... | |
| const agxCollide::Shape * | getShape () const |
| agx::UInt | getStartIndexT () const |
| const agx::Vec3 & | getTorque () const |
| const agx::Vec3 & | getTorqueComponent (ForceType type) const |
| const agx::Vec3Vector & | getTorqueComponents () const |
| const agx::Real & | getVolumeInWater () const |
| const WaterWrapper * | getWater () const |
| void | lock () const |
| Perform a mutex lock for this ObjectData. More... | |
| agx::Vec3 & | torque () |
| Access torque vector (in world coordinate system). More... | |
| agx::Vec3 & | torqueComponent (ForceType type) |
| void | unLock () const |
| Perform a mutex unlock for this ObjectData. More... | |
| agx::Real & | volumeInWater () |
| Access the size of the volume in water of the geometry. More... | |
Public Member Functions inherited from agxModel::WindAndWaterController::WindAndWaterData | |
| WindAndWaterData (const agxModel::AerodynamicsParameters *aeroParams, const agxModel::HydrodynamicsParameters *hydroParams) | |
| Constructor. More... | |
| const agxModel::AerodynamicsParameters * | getAerodynamicsParameters () const |
| const agxModel::HydrodynamicsParameters * | getHydrodynamicsParameters () 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 | ~ObjectData () |
Protected Member Functions inherited from agxModel::WindAndWaterController::WindAndWaterData | |
| virtual | ~WindAndWaterData () |
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 agxModel::WindAndWaterController::WindAndWaterData | |
| const AerodynamicsParameters * | m_aeroParams |
| const HydrodynamicsParameters * | m_hydroParams |
Protected Attributes inherited from agx::Referenced | |
| Mutex | m_mutex |
| ObserverContainer | m_observers |
| AtomicValue | m_refCount |
Static data for a shape.
Definition at line 198 of file WindAndWaterController.h.
| agxModel::WindAndWaterController::ObjectData::ObjectData | ( | const agxCollide::Shape * | shape, |
| const agxModel::AerodynamicsParameters * | aeroParams, | ||
| const agxModel::HydrodynamicsParameters * | hydroParams, | ||
| const agxModel::WaterWrapper * | water, | ||
| const agxModel::WindAndWaterController::WindWrapper * | wind, | ||
| const agx::Vec3 & | gravity, | ||
| agxModel::PressureFieldRenderer * | pressureFieldRenderer, | ||
| const agx::UInt | numTriangles, | ||
| const agx::UInt | startIndexT, | ||
| const agx::UInt | startIndexV, | ||
| bool | enableCenterOfBuoyancy | ||
| ) |
Construct given shape, parameters, wind and water definitions and gravity.
|
protectedvirtual |
| agx::Matrix3x3& agxModel::WindAndWaterController::ObjectData::addedInertia | ( | ) |
Access added inertia matrix.
Must be in body frame.
| agx::Matrix3x3& agxModel::WindAndWaterController::ObjectData::addedMass | ( | ) |
Access added mass matrix.
Must be in body frame.
| agx::Vec3& agxModel::WindAndWaterController::ObjectData::centerOfBuoyancy | ( | ) |
Access center of buoyancy vector (in world coordinate system).
| agx::Bool& agxModel::WindAndWaterController::ObjectData::containsAddedMass | ( | ) |
Set to/is true if this data contains added mass and/or inertia.
| const agx::Bool& agxModel::WindAndWaterController::ObjectData::containsAddedMass | ( | ) | const |
| agx::Vec3& agxModel::WindAndWaterController::ObjectData::force | ( | ) |
Access force vector (in world coordinate system).
Referenced by agxModel::triangleIterator().
Referenced by agxModel::triangleIterator().
| const agx::Matrix3x3& agxModel::WindAndWaterController::ObjectData::getAddedInertia | ( | ) | const |
| const agx::Matrix3x3& agxModel::WindAndWaterController::ObjectData::getAddedMass | ( | ) | const |
| const agx::Vec3& agxModel::WindAndWaterController::ObjectData::getCenterOfBuoyancy | ( | ) | const |
| agx::Real agxModel::WindAndWaterController::ObjectData::getDensity | ( | const agxModel::TriangleData & | tData | ) | const |
| agx::Real agxModel::WindAndWaterController::ObjectData::getDensity | ( | const agxModel::VertexData & | vData | ) | const |
| agx::Real agxModel::WindAndWaterController::ObjectData::getDensityAir | ( | ) | const |
| agx::Real agxModel::WindAndWaterController::ObjectData::getDensityWater | ( | ) | const |
| bool agxModel::WindAndWaterController::ObjectData::getEnableCenterOfBuoyancy | ( | ) |
| const agx::Vec3& agxModel::WindAndWaterController::ObjectData::getForce | ( | ) | const |
| const agx::Vec3& agxModel::WindAndWaterController::ObjectData::getForceComponent | ( | ForceType | type | ) | const |
| const agx::Vec3Vector& agxModel::WindAndWaterController::ObjectData::getForceComponents | ( | ) | const |
| const agxCollide::Geometry* agxModel::WindAndWaterController::ObjectData::getGeometry | ( | ) | const |
| const agx::Vec3& agxModel::WindAndWaterController::ObjectData::getGravity | ( | ) | const |
| agx::UInt agxModel::WindAndWaterController::ObjectData::getNumTriangles | ( | ) | const |
Referenced by agxModel::triangleIterator().
| agxModel::PressureFieldRenderer* agxModel::WindAndWaterController::ObjectData::getPressureFieldRenderer | ( | ) | const |
| const agx::RigidBody* agxModel::WindAndWaterController::ObjectData::getRigidBody | ( | ) | const |
Referenced by agxModel::triangleIterator().
| agx::RigidBody* agxModel::WindAndWaterController::ObjectData::getRigidBodySerial | ( | ) |
This method is unsafe to use if this object is used during parallel execution.
| const agxCollide::Shape* agxModel::WindAndWaterController::ObjectData::getShape | ( | ) | const |
| agx::UInt agxModel::WindAndWaterController::ObjectData::getStartIndexT | ( | ) | const |
Referenced by agxModel::triangleIterator().
| const agx::Vec3& agxModel::WindAndWaterController::ObjectData::getTorque | ( | ) | const |
| const agx::Vec3& agxModel::WindAndWaterController::ObjectData::getTorqueComponent | ( | ForceType | type | ) | const |
| const agx::Vec3Vector& agxModel::WindAndWaterController::ObjectData::getTorqueComponents | ( | ) | const |
| const agx::Real& agxModel::WindAndWaterController::ObjectData::getVolumeInWater | ( | ) | const |
| const WaterWrapper* agxModel::WindAndWaterController::ObjectData::getWater | ( | ) | const |
|
inline |
Perform a mutex lock for this ObjectData.
Definition at line 395 of file WindAndWaterController.h.
Referenced by agxModel::triangleIterator().
| agx::Vec3& agxModel::WindAndWaterController::ObjectData::torque | ( | ) |
Access torque vector (in world coordinate system).
Referenced by agxModel::triangleIterator().
Referenced by agxModel::triangleIterator().
|
inline |
Perform a mutex unlock for this ObjectData.
Definition at line 400 of file WindAndWaterController.h.
Referenced by agxModel::triangleIterator().
| agx::Real& agxModel::WindAndWaterController::ObjectData::volumeInWater | ( | ) |
Access the size of the volume in water of the geometry.