AGX Dynamics 2.42.3.0
Loading...
Searching...
No Matches
agx::AddedMassInteraction::RigidBodyStorage Class Reference

Class containing a rigid body and the 6x6 matrix to be written in the diagonal of the system matrix. More...

#include <AddedMassInteraction.h>

Public Member Functions

 RigidBodyStorage (agx::RigidBody *rb)
 Construct given rigid body.
 
agx::AddedMassInteraction::Matrix6x6 & getBlock ()
 
const agx::AddedMassInteraction::Matrix6x6 & getBlock () const
 
agx::RigidBody * getRigidBody () const
 
agx::Physics::RigidBodyPtr getRigidBodyEntity () const
 
agx::Bool getValid () const
 
void restore (agxStream::InputArchive &in)
 Internal.
 
void store (agxStream::OutputArchive &out) const
 Internal.
 

Detailed Description

Class containing a rigid body and the 6x6 matrix to be written in the diagonal of the system matrix.

This object also keeps track if a rigid body has been deleted.

Definition at line 185 of file AddedMassInteraction.h.

Constructor & Destructor Documentation

◆ RigidBodyStorage()

agx::AddedMassInteraction::RigidBodyStorage::RigidBodyStorage ( agx::RigidBody *  rb)

Construct given rigid body.

Parameters
rb- rigid body for this storage
Note
If rigid body is null, getValid will always return true. If the rigid body is valid (not null) and later is deleted, getValid returns false.

Member Function Documentation

◆ getBlock() [1/2]

AddedMassInteraction::Matrix6x6 & agx::AddedMassInteraction::RigidBodyStorage::getBlock ( )
Returns
the 6x6 matrix block associated to the rigid body in this storage

Definition at line 426 of file AddedMassInteraction.h.

◆ getBlock() [2/2]

const AddedMassInteraction::Matrix6x6 & agx::AddedMassInteraction::RigidBodyStorage::getBlock ( ) const
Returns
the 6x6 matrix block associated to the rigid body in this storage

Definition at line 421 of file AddedMassInteraction.h.

◆ getRigidBody()

agx::RigidBody * agx::AddedMassInteraction::RigidBodyStorage::getRigidBody ( ) const
Returns
rigid body of this storage, can be null

◆ getRigidBodyEntity()

agx::Physics::RigidBodyPtr agx::AddedMassInteraction::RigidBodyStorage::getRigidBodyEntity ( ) const
Returns
entity pointer to the rigid body of this storage

◆ getValid()

agx::Bool agx::AddedMassInteraction::RigidBodyStorage::getValid ( ) const
Returns
true if the rigid body is valid or if this storage was constructed with a null rigid body pointer

◆ restore()

void agx::AddedMassInteraction::RigidBodyStorage::restore ( agxStream::InputArchive &  in)

Internal.

Restore this object.

◆ store()

void agx::AddedMassInteraction::RigidBodyStorage::store ( agxStream::OutputArchive &  out) const

Internal.

Store this object.


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