AGX Dynamics  2.37.2.0
agxModel::WindAndWaterController::WireLinkedStructureData Class Reference

Data for a wire or a linked structure. More...

#include <WindAndWaterController.h>

+ Inheritance diagram for agxModel::WindAndWaterController::WireLinkedStructureData:

Public Member Functions

 WireLinkedStructureData (agx::Real radius, const AerodynamicsParameters *aeroParams, const HydrodynamicsParameters *hydroParams)
 Constructor. More...
 
void addAirSegment (const Segment &segment)
 Adds a segment of the wire that is affected by aerodynamics. More...
 
void addWaterSegment (const Segment &segment)
 Adds a segment of the wire that is affected by hydrodynamics. More...
 
SegmentContainer & getAirSegments ()
 
agx::Real getRadius ()
 
SegmentContainer & getWaterSegments ()
 
- 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 ~WireLinkedStructureData ()
 
- 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

Data for a wire or a linked structure.

Definition at line 408 of file WindAndWaterController.h.

Constructor & Destructor Documentation

◆ WireLinkedStructureData()

agxModel::WindAndWaterController::WireLinkedStructureData::WireLinkedStructureData ( agx::Real  radius,
const AerodynamicsParameters *  aeroParams,
const HydrodynamicsParameters *  hydroParams 
)

Constructor.

Parameters
radius- Radius of the wire (a positive value).
aeroParams- Aerodynamic parameters for this object. If there are no specific parameters for this object default parameters should be used.
hydroParams- Hydrodynamic parameters for this object. If there are no specific parameters for this object default parameters should be used.

◆ ~WireLinkedStructureData()

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

Member Function Documentation

◆ addAirSegment()

void agxModel::WindAndWaterController::WireLinkedStructureData::addAirSegment ( const Segment &  segment)

Adds a segment of the wire that is affected by aerodynamics.

◆ addWaterSegment()

void agxModel::WindAndWaterController::WireLinkedStructureData::addWaterSegment ( const Segment &  segment)

Adds a segment of the wire that is affected by hydrodynamics.

◆ getAirSegments()

SegmentContainer& agxModel::WindAndWaterController::WireLinkedStructureData::getAirSegments ( )
Returns
the segments of the wire that are affected by aerodynamics.

◆ getRadius()

agx::Real agxModel::WindAndWaterController::WireLinkedStructureData::getRadius ( )
Returns
the radius of the wire

◆ getWaterSegments()

SegmentContainer& agxModel::WindAndWaterController::WireLinkedStructureData::getWaterSegments ( )
Returns
the segments of the wire that are affected by hydrodynamics.

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