AGX Dynamics  2.35.0.1
agxPowerLine::detail::Rotational Struct Reference

RigidBody accessor helper that knows how to extract rotational data from a RigidBody. More...

#include <DimensionStateStorage.h>

Public Member Functions

 Rotational ()
 
void addLoad (agx::RigidBody &body, const agx::UInt8 slot, const agx::Real load)
 
void addLoad (agx::RigidBody &body, const agx::Vec3 &worldDirection, const agx::Real load)
 
agx::Vec3 getAddedLoad (const agx::RigidBody &body) const
 
agx::Real getAddedLoad (const agx::RigidBody &body, const agx::UInt8 slot) const
 
agx::Real getAddedLoad (const agx::RigidBody &body, const agx::Vec3 &worldDirection) const
 
agx::Vec3 getGradient (const agx::RigidBody &body) const
 
agx::Real getGradient (const agx::RigidBody &body, const agx::UInt8 slot) const
 
agx::Real getGradient (const agx::RigidBody &body, const agx::Vec3 &worldDirection) const
 
agx::Vec3 getMassProperty (const agx::RigidBody &body) const
 
agx::Real getMassProperty (const agx::RigidBody &body, agx::UInt8 slot) const
 
agx::Real getMassProperty (const agx::RigidBody &body, const agx::Vec3 &worldDirection) const
 
agx::Vec3 getSecondGradient (const agx::RigidBody &body) const
 
agx::Real getSecondGradient (const agx::RigidBody &body, const agx::UInt8 slot) const
 
agx::Real getSecondGradient (const agx::RigidBody &body, const agx::Vec3 &worldDirection) const
 
agx::Vec3 getValue (const agx::RigidBody &body) const
 
agx::Real getValue (const agx::RigidBody &body, const agx::UInt8 slot) const
 
agx::Real getValue (const agx::RigidBody &body, const agx::Vec3 &worldDirection) const
 
agx::Vec3f getVelocityDamping (const agx::RigidBody &body) const
 
float getVelocityDamping (const agx::RigidBody &body, const agx::UInt8 slot) const
 
float getVelocityDamping (const agx::RigidBody &body, const agx::Vec3 &worldDirection) const
 
void integrateValue (agx::RigidBody &body, const agx::UInt8 slot, const agx::Real timeStep)
 
void move (agx::RigidBody &oldBody, const agx::UInt8 oldSlot, agx::RigidBody &newBody, const agx::UInt8 newSlot)
 
void restore (agxStream::InputArchive &in)
 
void restore (agxStream::StorageStream &in, agx::RigidBody &body, const agx::UInt8 slot)
 
void restore (agxStream::StorageStream &in, agx::RigidBody &body, const agx::Vec3 &worldDirection)
 
void setAddedLoad (agx::RigidBody &body, agx::UInt8 slot, agx::Real load)
 
void setAddedLoad (agx::RigidBody &body, const agx::Vec3 &worldDirection, agx::Real load)
 
void setGradient (agx::RigidBody &body, const agx::UInt8 slot, const agx::Real angularVelocity)
 
void setGradient (agx::RigidBody &body, const agx::Vec3 &worldDirection, const agx::Real angularVelocity)
 
bool setMassProperty (agx::RigidBody &body, const agx::UInt8 slot, const agx::Real inertia)
 
bool setMassProperty (agx::RigidBody &body, const agx::Vec3 &inertia)
 
bool setMassProperty (agx::RigidBody &body, const agx::Vec3 &worldDirection, const agx::Real inertia)
 
void setValue (agx::RigidBody &body, const agx::UInt8 slot, const agx::Real angle)
 
void setValue (agx::RigidBody &body, const agx::Vec3 &worldDirection, const agx::Real angle)
 
void setVelocityDamping (agx::RigidBody &body, const agx::UInt8 slot, const float damping)
 
void setVelocityDamping (agx::RigidBody &body, const agx::Vec3 &worldDirection, const float damping)
 
void store (agxStream::OutputArchive &out) const
 
void store (agxStream::StorageStream &out, const agx::RigidBody &body, const agx::UInt8 slot) const
 
void store (agxStream::StorageStream &out, const agx::RigidBody &body, const agx::Vec3 &worldDirection) const
 
void writeJacobian (agx::Jacobian6DOFElement &G, const agx::Vec3 &jacobian) const
 

Static Public Member Functions

static bool getAllowPacking ()
 

Detailed Description

RigidBody accessor helper that knows how to extract rotational data from a RigidBody.

A dimension state using one of these becomes a rotational dimension state. Supports both one dimensional and three dimensional accessing.

Definition at line 52 of file DimensionStateStorage.h.

Constructor & Destructor Documentation

◆ Rotational()

agxPowerLine::detail::Rotational::Rotational ( )

Member Function Documentation

◆ addLoad() [1/2]

void agxPowerLine::detail::Rotational::addLoad ( agx::RigidBody &  body,
const agx::UInt8  slot,
const agx::Real  load 
)

◆ addLoad() [2/2]

void agxPowerLine::detail::Rotational::addLoad ( agx::RigidBody &  body,
const agx::Vec3 &  worldDirection,
const agx::Real  load 
)

◆ getAddedLoad() [1/3]

agx::Vec3 agxPowerLine::detail::Rotational::getAddedLoad ( const agx::RigidBody &  body) const

◆ getAddedLoad() [2/3]

agx::Real agxPowerLine::detail::Rotational::getAddedLoad ( const agx::RigidBody &  body,
const agx::UInt8  slot 
) const

◆ getAddedLoad() [3/3]

agx::Real agxPowerLine::detail::Rotational::getAddedLoad ( const agx::RigidBody &  body,
const agx::Vec3 &  worldDirection 
) const

◆ getAllowPacking()

static bool agxPowerLine::detail::Rotational::getAllowPacking ( )
static

◆ getGradient() [1/3]

agx::Vec3 agxPowerLine::detail::Rotational::getGradient ( const agx::RigidBody &  body) const

◆ getGradient() [2/3]

agx::Real agxPowerLine::detail::Rotational::getGradient ( const agx::RigidBody &  body,
const agx::UInt8  slot 
) const

◆ getGradient() [3/3]

agx::Real agxPowerLine::detail::Rotational::getGradient ( const agx::RigidBody &  body,
const agx::Vec3 &  worldDirection 
) const

◆ getMassProperty() [1/3]

agx::Vec3 agxPowerLine::detail::Rotational::getMassProperty ( const agx::RigidBody &  body) const

◆ getMassProperty() [2/3]

agx::Real agxPowerLine::detail::Rotational::getMassProperty ( const agx::RigidBody &  body,
agx::UInt8  slot 
) const

◆ getMassProperty() [3/3]

agx::Real agxPowerLine::detail::Rotational::getMassProperty ( const agx::RigidBody &  body,
const agx::Vec3 &  worldDirection 
) const

◆ getSecondGradient() [1/3]

agx::Vec3 agxPowerLine::detail::Rotational::getSecondGradient ( const agx::RigidBody &  body) const

◆ getSecondGradient() [2/3]

agx::Real agxPowerLine::detail::Rotational::getSecondGradient ( const agx::RigidBody &  body,
const agx::UInt8  slot 
) const

◆ getSecondGradient() [3/3]

agx::Real agxPowerLine::detail::Rotational::getSecondGradient ( const agx::RigidBody &  body,
const agx::Vec3 &  worldDirection 
) const

◆ getValue() [1/3]

agx::Vec3 agxPowerLine::detail::Rotational::getValue ( const agx::RigidBody &  body) const

◆ getValue() [2/3]

agx::Real agxPowerLine::detail::Rotational::getValue ( const agx::RigidBody &  body,
const agx::UInt8  slot 
) const

◆ getValue() [3/3]

agx::Real agxPowerLine::detail::Rotational::getValue ( const agx::RigidBody &  body,
const agx::Vec3 &  worldDirection 
) const

◆ getVelocityDamping() [1/3]

agx::Vec3f agxPowerLine::detail::Rotational::getVelocityDamping ( const agx::RigidBody &  body) const

◆ getVelocityDamping() [2/3]

float agxPowerLine::detail::Rotational::getVelocityDamping ( const agx::RigidBody &  body,
const agx::UInt8  slot 
) const

◆ getVelocityDamping() [3/3]

float agxPowerLine::detail::Rotational::getVelocityDamping ( const agx::RigidBody &  body,
const agx::Vec3 &  worldDirection 
) const

◆ integrateValue()

void agxPowerLine::detail::Rotational::integrateValue ( agx::RigidBody &  body,
const agx::UInt8  slot,
const agx::Real  timeStep 
)

◆ move()

void agxPowerLine::detail::Rotational::move ( agx::RigidBody &  oldBody,
const agx::UInt8  oldSlot,
agx::RigidBody &  newBody,
const agx::UInt8  newSlot 
)

◆ restore() [1/3]

void agxPowerLine::detail::Rotational::restore ( agxStream::InputArchive &  in)

◆ restore() [2/3]

void agxPowerLine::detail::Rotational::restore ( agxStream::StorageStream &  in,
agx::RigidBody &  body,
const agx::UInt8  slot 
)

◆ restore() [3/3]

void agxPowerLine::detail::Rotational::restore ( agxStream::StorageStream &  in,
agx::RigidBody &  body,
const agx::Vec3 &  worldDirection 
)

◆ setAddedLoad() [1/2]

void agxPowerLine::detail::Rotational::setAddedLoad ( agx::RigidBody &  body,
agx::UInt8  slot,
agx::Real  load 
)

◆ setAddedLoad() [2/2]

void agxPowerLine::detail::Rotational::setAddedLoad ( agx::RigidBody &  body,
const agx::Vec3 &  worldDirection,
agx::Real  load 
)

◆ setGradient() [1/2]

void agxPowerLine::detail::Rotational::setGradient ( agx::RigidBody &  body,
const agx::UInt8  slot,
const agx::Real  angularVelocity 
)

◆ setGradient() [2/2]

void agxPowerLine::detail::Rotational::setGradient ( agx::RigidBody &  body,
const agx::Vec3 &  worldDirection,
const agx::Real  angularVelocity 
)

◆ setMassProperty() [1/3]

bool agxPowerLine::detail::Rotational::setMassProperty ( agx::RigidBody &  body,
const agx::UInt8  slot,
const agx::Real  inertia 
)

◆ setMassProperty() [2/3]

bool agxPowerLine::detail::Rotational::setMassProperty ( agx::RigidBody &  body,
const agx::Vec3 &  inertia 
)

◆ setMassProperty() [3/3]

bool agxPowerLine::detail::Rotational::setMassProperty ( agx::RigidBody &  body,
const agx::Vec3 &  worldDirection,
const agx::Real  inertia 
)

◆ setValue() [1/2]

void agxPowerLine::detail::Rotational::setValue ( agx::RigidBody &  body,
const agx::UInt8  slot,
const agx::Real  angle 
)

◆ setValue() [2/2]

void agxPowerLine::detail::Rotational::setValue ( agx::RigidBody &  body,
const agx::Vec3 &  worldDirection,
const agx::Real  angle 
)

◆ setVelocityDamping() [1/2]

void agxPowerLine::detail::Rotational::setVelocityDamping ( agx::RigidBody &  body,
const agx::UInt8  slot,
const float  damping 
)

◆ setVelocityDamping() [2/2]

void agxPowerLine::detail::Rotational::setVelocityDamping ( agx::RigidBody &  body,
const agx::Vec3 &  worldDirection,
const float  damping 
)

◆ store() [1/3]

void agxPowerLine::detail::Rotational::store ( agxStream::OutputArchive &  out) const

◆ store() [2/3]

void agxPowerLine::detail::Rotational::store ( agxStream::StorageStream &  out,
const agx::RigidBody &  body,
const agx::UInt8  slot 
) const

◆ store() [3/3]

void agxPowerLine::detail::Rotational::store ( agxStream::StorageStream &  out,
const agx::RigidBody &  body,
const agx::Vec3 &  worldDirection 
) const

◆ writeJacobian()

void agxPowerLine::detail::Rotational::writeJacobian ( agx::Jacobian6DOFElement &  G,
const agx::Vec3 &  jacobian 
) const

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