AGX Dynamics  2.35.0.1
agxModel::WindAndWaterController::ObjectData Class Reference

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)
 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::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...
 
const agx::Matrix3x3 & getAddedInertia () const
 
const agx::Matrix3x3 & getAddedMass () 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
 
const agx::Vec3 & getForce () 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 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...
 
void unLock () const
 Perform a mutex unlock for this ObjectData. 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
 

Detailed Description

Static data for a shape.

Definition at line 189 of file WindAndWaterController.h.

Constructor & Destructor Documentation

◆ ObjectData()

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 
)

Construct given shape, parameters, wind and water definitions and gravity.

◆ ~ObjectData()

virtual agxModel::WindAndWaterController::ObjectData::~ObjectData ( )
protectedvirtual

Member Function Documentation

◆ addedInertia()

agx::Matrix3x3& agxModel::WindAndWaterController::ObjectData::addedInertia ( )

Access added inertia matrix.

Must be in body frame.

◆ addedMass()

agx::Matrix3x3& agxModel::WindAndWaterController::ObjectData::addedMass ( )

Access added mass matrix.

Must be in body frame.

◆ containsAddedMass() [1/2]

agx::Bool& agxModel::WindAndWaterController::ObjectData::containsAddedMass ( )

Set to/is true if this data contains added mass and/or inertia.

◆ containsAddedMass() [2/2]

const agx::Bool& agxModel::WindAndWaterController::ObjectData::containsAddedMass ( ) const
Returns
true if this data contains added mass and/or inertia.

◆ force()

agx::Vec3& agxModel::WindAndWaterController::ObjectData::force ( )

Access force vector (in world coordinate system).

Referenced by agxModel::triangleIterator().

◆ getAddedInertia()

const agx::Matrix3x3& agxModel::WindAndWaterController::ObjectData::getAddedInertia ( ) const
Returns
added inertia matrix in rigid body frame

◆ getAddedMass()

const agx::Matrix3x3& agxModel::WindAndWaterController::ObjectData::getAddedMass ( ) const
Returns
added mass matrix in rigid body frame

◆ getDensity() [1/3]

agx::Real agxModel::WindAndWaterController::ObjectData::getDensity ( agx::Bool  belowSurface) const
Returns
density of the water if belowSurface = true, density of air if belowSurface = false

◆ getDensity() [2/3]

agx::Real agxModel::WindAndWaterController::ObjectData::getDensity ( const agxModel::TriangleData &  tData) const
Returns
the density of the medium the triangle is currently in

◆ getDensity() [3/3]

agx::Real agxModel::WindAndWaterController::ObjectData::getDensity ( const agxModel::VertexData &  vData) const
Returns
the density of the medium the vertex is currently in

◆ getDensityAir()

agx::Real agxModel::WindAndWaterController::ObjectData::getDensityAir ( ) const
Returns
the density of air

◆ getDensityWater()

agx::Real agxModel::WindAndWaterController::ObjectData::getDensityWater ( ) const
Returns
the density of water

◆ getForce()

const agx::Vec3& agxModel::WindAndWaterController::ObjectData::getForce ( ) const
Returns
the force (in world coordinate system) applied by the wind and water algorithms given they have been executed

◆ getGeometry()

const agxCollide::Geometry* agxModel::WindAndWaterController::ObjectData::getGeometry ( ) const
Returns
the geometry of the shape

◆ getGravity()

const agx::Vec3& agxModel::WindAndWaterController::ObjectData::getGravity ( ) const
Returns
the gravity at the position of the shape

◆ getNumTriangles()

agx::UInt agxModel::WindAndWaterController::ObjectData::getNumTriangles ( ) const
Returns
number of triangles for this object

Referenced by agxModel::triangleIterator().

◆ getPressureFieldRenderer()

agxModel::PressureFieldRenderer* agxModel::WindAndWaterController::ObjectData::getPressureFieldRenderer ( ) const
Returns
the pressure field renderer if present, otherwise null

◆ getRigidBody()

const agx::RigidBody* agxModel::WindAndWaterController::ObjectData::getRigidBody ( ) const
Returns
the rigid body of the geometry

Referenced by agxModel::triangleIterator().

◆ getRigidBodySerial()

agx::RigidBody* agxModel::WindAndWaterController::ObjectData::getRigidBodySerial ( )

This method is unsafe to use if this object is used during parallel execution.

Returns
the rigid body of the geometry

◆ getShape()

const agxCollide::Shape* agxModel::WindAndWaterController::ObjectData::getShape ( ) const
Returns
the shape

◆ getStartIndexT()

agx::UInt agxModel::WindAndWaterController::ObjectData::getStartIndexT ( ) const
Returns
start index for triangles of this object

Referenced by agxModel::triangleIterator().

◆ getTorque()

const agx::Vec3& agxModel::WindAndWaterController::ObjectData::getTorque ( ) const
Returns
the torque (in world coordinate system) applied by the wind and water algorithms given they have been executed

◆ getWater()

const WaterWrapper* agxModel::WindAndWaterController::ObjectData::getWater ( ) const
Returns
the water wrapper

◆ lock()

void agxModel::WindAndWaterController::ObjectData::lock ( ) const
inline

Perform a mutex lock for this ObjectData.

Definition at line 330 of file WindAndWaterController.h.

Referenced by agxModel::triangleIterator().

◆ torque()

agx::Vec3& agxModel::WindAndWaterController::ObjectData::torque ( )

Access torque vector (in world coordinate system).

Referenced by agxModel::triangleIterator().

◆ unLock()

void agxModel::WindAndWaterController::ObjectData::unLock ( ) const
inline

Perform a mutex unlock for this ObjectData.

Definition at line 335 of file WindAndWaterController.h.

Referenced by agxModel::triangleIterator().


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