AGXDynamics  2.31.1.0
agxUtil::ConstraintHolder Class Reference

Utility class to hold custom implementations of constraints. More...

#include <agxUtil.h>

+ Inheritance diagram for agxUtil::ConstraintHolder:

Public Types

enum  SolveType { DIRECT = 1, ITERATIVE = (1<<2), DIRECT_AND_ITERATIVE = (DIRECT | ITERATIVE) }
 Specifies in what solvers the constraint will be solved. More...
 

Public Member Functions

 ConstraintHolder ()
 
bool add (agx::ConstraintImplementation *constraint)
 Add 'interface less' constraint implementation. More...
 
agx::Bool addElementaryConstraint (const agx::Name &name, agx::ElementaryConstraint *elementaryConstraint)
 Add elementary constraint (like Spherical, Dot1, Dot2 etc) given name. More...
 
agx::Bool addSecondaryConstraint (const agx::Name &name, agx::ElementaryConstraint *secondaryConstraint)
 Add secondary constraint (like motor, range and/or lock etc) given name. More...
 
 AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE (agx::Constraint)
 
template<typename T >
T * as ()
 Try to do dynamic_cast on the constraint and return a pointer to the casted constraint. More...
 
template<typename T >
const T * as () const
 Try to do dynamic_cast on the constraint and return a pointer to the casted constraint. More...
 
template<typename T >
T * asSafe ()
 Safe subclass casting, return nullptr if template type does not match. More...
 
template<typename T >
const T * asSafe () const
 
agx::UInt calculateNumActiveRows () const
 Calculates the current number of active rows, including both elementary and secondary constraints. More...
 
void clear ()
 Remove all constraints. More...
 
template<typename T >
ref_ptr< T > createFromBody (Vec3 bodyPoint, Vec3 bodyAxis, RigidBody *rb1, RigidBody *rb2)
 
template<typename T >
ref_ptr< T > createFromWorld (Vec3 worldPoint, Vec3 worldAxis, RigidBody *rb1, RigidBody *rb2)
 
agx::RigidBodyAttachment * getAttachment (const agx::RigidBody *rb) const
 
agx::Attachment * getAttachment (agx::UInt i) const
 
agx::AttachmentPair * getAttachmentPair () const
 
agx::RigidBody * getBodyAt (agx::UInt i)
 
const agx::RigidBody * getBodyAt (agx::UInt i) const
 
virtual agx::Real getCompliance (agx::UInt dof) const
 Get the compliance for DOF i. More...
 
agx::Real getCurrentForce (agx::UInt dof) const
 Consider using getLastForce instead. More...
 
virtual Real getDamping (agx::UInt dof) const
 Get the damping for DOF dof. More...
 
virtual agx::Real getElasticity (agx::UInt dof) const
 Get the elasticity for DOF i. More...
 
agx::ElementaryConstraint * getElementaryConstraint (const agx::UInt index) const
 
agx::ElementaryConstraint * getElementaryConstraintGivenName (const agx::Name &name) const
 Find elementary constraint given name. More...
 
agx::Bool getEnable () const
 
agx::Bool getEnableComputeForces () const
 
bool getEnableDebugRendering () const
 
bool getEnableLinearization () const
 
bool getEnableSerialization () const
 
bool getEnableUuidGeneration ()
 
agx::UInt32 getEntityId () const
 
agx::RangeReal getForceRange (agx::UInt dof=0) const
 Get the force range for DOF dof. More...
 
agx::UInt32 getIndex () const
 This index is given at creation of this object. More...
 
agx::Bool getLastForce (agx::UInt bodyIndex, agx::Vec3 &retForce, agx::Vec3 &retTorque, agx::Bool giveForceAtCm=false) const
 If 'compute forces' is enabled, returns the last force and torque applied by this constraint on the body with bodyIndex. More...
 
agx::Bool getLastForce (const agx::RigidBody *rb, agx::Vec3 &retForce, agx::Vec3 &retTorque, agx::Bool giveForceAtCm=false) const
 If 'compute forces' is enabled, returns the last force and torque applied by this constraint on the body rb. More...
 
agx::Bool getLastLocalForce (agx::UInt bodyIndex, agx::Vec3 &retForce, agx::Vec3 &retTorque, agx::Bool giveForceAtCm=false) const
 If 'compute forces' is enabled, returns the last force and torque applied by this constraint on the body with bodyIndex. More...
 
agx::Bool getLastLocalForce (const agx::RigidBody *rb, agx::Vec3 &retForce, agx::Vec3 &retTorque, agx::Bool giveForceAtCm=false) const
 If 'compute forces' is enabled, returns the last force and torque applied by this constraint on the body rb. More...
 
const agx::Name & getName () const
 
agx::UInt getNumBodies () const
 returns the number of bodies involved More...
 
agx::UInt getNumElementaryConstraints () const
 
agx::UInt getNumSecondaryConstraints () const
 
agx::PropertyContainer * getPropertyContainer ()
 
const agx::PropertyContainer * getPropertyContainer () const
 
int getReferenceCount () const
 
virtual agx::RegularizationParameters * getRegularizationParameters (agx::UInt i)
 
virtual const agx::RegularizationParameters * getRegularizationParameters (agx::UInt i) const
 
agx::ConstraintImplementation * getRep ()
 
const agx::ConstraintImplementation * getRep () const
 
agx::ElementaryConstraint * getSecondaryConstraint (const agx::UInt index) const
 
agx::ElementaryConstraint * getSecondaryConstraintGivenName (const agx::Name &name) const
 Find secondary constraint given name. More...
 
agxSDK::SimulationProxy * getSimulationProxy () const
 
agx::Constraint::SolveType getSolveType () const
 
agx::Uuid getUuid () const
 
agx::Bool getValid () const
 
agx::Bool hasPropertyContainer () const
 
template<typename T >
bool is () const
 Subclass test. More...
 
agx::Bool isEnabled () const
 
bool isFinished () const
 
virtual agx::Bool rebind ()
 Rebind this constraint, i.e., use current state as the initial configuration. 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...
 
bool remove (agx::ConstraintImplementation *constraint)
 Remove constraint implementation. More...
 
agx::Bool removeElementaryConstraint (agx::ElementaryConstraint *elementaryConstraint)
 Remove elementary constraint. More...
 
agx::Bool removeElementaryConstraint (const agx::Name &name)
 Remove elementary constraint. More...
 
agx::Bool removeSecondaryConstraint (agx::ElementaryConstraint *secondaryConstraint)
 Remove secondary constraint. More...
 
agx::Bool removeSecondaryConstraint (const agx::Name &name)
 Remove secondary constraint. More...
 
virtual void restoreLightData (agxStream::StorageStream &str) override
 
virtual void setCompliance (agx::Real compliance, agx::Int dof)
 Set the compliance of this constraint for the i:th DOF. More...
 
void setCompliance (agx::Real compliance)
 Set the compliance of this constraint for all DOFs. More...
 
virtual void setDamping (agx::Real damping, agx::Int dof)
 Set the damping of this constraint for the i:th DOF. More...
 
void setDamping (agx::Real damping)
 Set the damping of this constraint for all DOFs. More...
 
virtual void setElasticity (agx::Real elasticity, agx::Int dof)
 Set the elasticity of this constraint for the i:th DOF. More...
 
virtual void setElasticity (agx::Real elasticity)
 Set the elasticity of this constraint for all DOFs. More...
 
virtual void setEnable (agx::Bool enable)
 Enable/disable a constraint. More...
 
void setEnableComputeForces (agx::Bool enable)
 Enable (or disable) computation of the forces applied to the dynamic bodies in this constraint. More...
 
void setEnableDebugRendering (agx::Bool enable)
 Enable/disable debug rendering of this constraint. More...
 
void setEnableLinearization (bool enable)
 Pass true to enable linearization of constraint compliance. More...
 
void setEnableSerialization (bool flag)
 Set to false to disable serialization of this object. More...
 
void setFinished ()
 Tells this class that it is restored correctly and should not be deleted during destruction of an Archive. More...
 
void setForceRange (agx::RangeReal forceRange)
 Assign force range for all DOF of the elementary constraints. More...
 
void setForceRange (agx::RangeReal forceRange, agx::Int dof)
 Assign force range, of an elementary constraint, for a given DOF. More...
 
void setForceRange (agx::Real lower, agx::Real upper, agx::Int dof)
 Assign force range, of an elementary constraint, for a given DOF. More...
 
void setName (const agx::Name &name)
 Name this interaction. More...
 
void setPropertyContainer (agx::PropertyContainer *propertyContainer)
 Assign a new property container. More...
 
void setSolveType (agx::Constraint::SolveType solveType)
 Specify the solve type for this constraint. More...
 
void setUuid (const agx::Uuid &uuid)
 Explicitly set a Uuid on a serializable object. More...
 
virtual void storeLightData (agxStream::StorageStream &str) const override
 
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...
 
virtual void updateForce (agx::DynamicsSystem *dynamicsSystem)
 This virtual method is implemented so that it computes the interaction forces on all the physical bodies implicated. More...
 

Static Public Member Functions

static agx::Bool calculateFramesFromBody (agx::Vec3 bodyPoint, agx::Vec3 bodyAxis, const agx::RigidBody *body, agx::Frame *bodyFrame, const agx::RigidBody *otherBody, agx::Frame *otherFrame)
 Calculates the constraint attachment frames given point and axis in body coordinates of body. More...
 
static agx::Bool calculateFramesFromBody (agx::Vec3 bodyPoint, agx::Vec3 bodyAxis, agx::Vec3 secondBodyAxis, const agx::RigidBody *body, agx::Frame *bodyFrame, const agx::RigidBody *otherBody, agx::Frame *otherFrame)
 Calculates the constraint attachment frames given point and axes in body coordinates of body. More...
 
static agx::Bool calculateFramesFromWorld (agx::Vec3 worldPoint, agx::Vec3 worldAxis, const agx::RigidBody *rb1, agx::Frame *rb1Frame, const agx::RigidBody *rb2, agx::Frame *rb2Frame)
 Given a point and an axis in world, this function calculates each local attachment frame for one or two bodies. More...
 
static agx::Bool calculateFramesFromWorld (agx::Vec3 worldPoint, agx::Vec3 worldAxis, agx::Vec3 secondWorldAxis, const agx::RigidBody *rb1, agx::Frame *rb1Frame, const agx::RigidBody *rb2, agx::Frame *rb2Frame)
 Given a point and two axes in world, this function calculates each local attachment frame for one or two bodies. More...
 
template<typename T >
static agx::ref_ptr< T > createFromBody (agx::Vec3 bodyPoint, agx::Vec3 bodyAxis, agx::RigidBody *rb1, agx::RigidBody *rb2=nullptr)
 Creates a constraint given a point and an axis in rb1 model frame. More...
 
template<typename T >
static agx::ref_ptr< T > createFromWorld (agx::Vec3 worldPoint, agx::Vec3 worldAxis, agx::RigidBody *rb1, agx::RigidBody *rb2=nullptr)
 Creates a constraint given a point and an axis in world frame. More...
 
static void setEnableUuidGeneration (bool flag)
 Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled. More...
 
template<typename T >
static bool ValidateCast (const Referenced *object)
 

Protected Member Functions

virtual ~ConstraintHolder ()
 
virtual void addNotification () override
 Called when added to a simulation. More...
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 
void generateUuid ()
 
const char * getClassName () const override
 
virtual int getNumDOF () const override
 
agxStream::StorageAgent * getStorageAgent () const override
 
virtual void postSystemCallback (agx::DynamicsSystem *dynamicsSystem) override
 Called after all post step events, after solve. More...
 
virtual void preSystemCallback (agx::DynamicsSystem *dynamicsSystem) override
 Called after all pre step events, before solve. More...
 
virtual void removeNotification () override
 Called when removed from a simulation. More...
 
virtual void render (class agxRender::RenderManager *, float) const override
 Inherited method of how to render this constraint into DebugRenderer. More...
 
virtual void restore (agxStream::InputArchive &in) override
 
void setRep (agx::ConstraintImplementation *_rep)
 
virtual void setSimulation (agxSDK::Simulation *simulation) override
 Assign simulation. More...
 
virtual void setSystem (agx::DynamicsSystem *)
 
virtual void store (agxStream::OutputArchive &out) const override
 

Static Protected Member Functions

static agxStream::Serializable * create ()
 
static agxStream::Serializable * create (agxStream::InputArchive &)
 
static const char * getConstructClassId ()
 
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

Mutex m_mutex
 
ObserverContainer m_observers
 
AtomicValue m_refCount
 

Detailed Description

Utility class to hold custom implementations of constraints.

Add this constraint to a simulation then by adding implementation to this holder the implementations makes it to the solver.

Definition at line 384 of file agxUtil.h.

Member Enumeration Documentation

◆ SolveType

Specifies in what solvers the constraint will be solved.

Enumerator
DIRECT 

Solved only in the DIRECT solver.

ITERATIVE 

Solved only in the ITERATIVE solver.

DIRECT_AND_ITERATIVE 

Solved both in the ITERATIVE and the DIRECT solver.

Definition at line 90 of file Constraint.h.

Constructor & Destructor Documentation

◆ ConstraintHolder()

agxUtil::ConstraintHolder::ConstraintHolder ( )

◆ ~ConstraintHolder()

virtual agxUtil::ConstraintHolder::~ConstraintHolder ( )
protectedvirtual

Member Function Documentation

◆ add()

bool agxUtil::ConstraintHolder::add ( agx::ConstraintImplementation *  constraint)

Add 'interface less' constraint implementation.

This constraint will be added to the solver.

Parameters
constraint- constraint to add
Returns
true if add were successful - otherwise false

◆ addElementaryConstraint()

agx::Bool agx::Constraint::addElementaryConstraint ( const agx::Name &  name,
agx::ElementaryConstraint *  elementaryConstraint 
)
inherited

Add elementary constraint (like Spherical, Dot1, Dot2 etc) given name.

General for elementary constraints is that their input is based on body relative data (far from general).

Returns
true if this constraint supports the elementary constraint and the elementary constraint will be used - otherwise false

◆ addNotification()

virtual void agx::Constraint::addNotification ( )
overrideprotectedvirtualinherited

Called when added to a simulation.

Reimplemented from agx::Interaction.

Reimplemented in agx::GenericConstraint.

◆ addSecondaryConstraint()

agx::Bool agx::Constraint::addSecondaryConstraint ( const agx::Name &  name,
agx::ElementaryConstraint *  secondaryConstraint 
)
inherited

Add secondary constraint (like motor, range and/or lock etc) given name.

General for secondary constraints is that their input is based on the current constraint angle.

Returns
true if this constraint supports the secondary constraint and the secondary constraint will be used - otherwise false

◆ AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE()

agx::Constraint::AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE ( agx::Constraint  )
inherited

◆ allocateObserverVector()

void agx::Referenced::allocateObserverVector ( ) const
protectedinherited

◆ as() [1/2]

template<typename T >
T * agx::Constraint::as ( )
inherited

Try to do dynamic_cast on the constraint and return a pointer to the casted constraint.

Definition at line 902 of file Constraint.h.

◆ as() [2/2]

template<typename T >
const T * agx::Constraint::as ( ) const
inherited

Try to do dynamic_cast on the constraint and return a pointer to the casted constraint.

Definition at line 909 of file Constraint.h.

◆ asSafe() [1/2]

template<typename T >
T* agx::Referenced::asSafe ( )
inherited

Safe subclass casting, return nullptr if template type does not match.

Referenced by agxUtil::CollectBodiesAndWiresVisitor::visit().

◆ asSafe() [2/2]

template<typename T >
const T* agx::Referenced::asSafe ( ) const
inherited

◆ calculateFramesFromBody() [1/2]

static agx::Bool agx::Constraint::calculateFramesFromBody ( agx::Vec3  bodyPoint,
agx::Vec3  bodyAxis,
const agx::RigidBody *  body,
agx::Frame *  bodyFrame,
const agx::RigidBody *  otherBody,
agx::Frame *  otherFrame 
)
staticinherited

Calculates the constraint attachment frames given point and axis in body coordinates of body.

Parameters
bodyPoint- point in body coordinates of reference rigid body "body"
bodyAxis- axis in body coordinates of reference rigid body "body"
body- reference body, invalid if null
bodyFrame- reference body attachment frame, invalid if null
otherBody- other rigid body, if null otherFrame will be calculated in world frame
otherFrame- other frame, invalid if null
Returns
true if the calculations succeeded - otherwise false

◆ calculateFramesFromBody() [2/2]

static agx::Bool agx::Constraint::calculateFramesFromBody ( agx::Vec3  bodyPoint,
agx::Vec3  bodyAxis,
agx::Vec3  secondBodyAxis,
const agx::RigidBody *  body,
agx::Frame *  bodyFrame,
const agx::RigidBody *  otherBody,
agx::Frame *  otherFrame 
)
staticinherited

Calculates the constraint attachment frames given point and axes in body coordinates of body.

The frames' z-axis will be aligned with the bodyAxis and its y-axis will be normal to the bodyAxis-secondBodyAxis plane.

Parameters
bodyPoint- point in body coordinates of reference rigid body "body"
bodyAxis- axis in body coordinates of reference rigid body "body"
secondBodyAxis- non-parallel axis to bodyAxis in body coordinates of reference rigid body "body"
body- reference body, invalid if null
bodyFrame- reference body attachment frame, invalid if null
otherBody- other rigid body, if null otherFrame will be calculated in world frame
otherFrame- other frame, invalid if null
Returns
true if the calculations succeeded - otherwise false

◆ calculateFramesFromWorld() [1/2]

static agx::Bool agx::Constraint::calculateFramesFromWorld ( agx::Vec3  worldPoint,
agx::Vec3  worldAxis,
const agx::RigidBody *  rb1,
agx::Frame *  rb1Frame,
const agx::RigidBody *  rb2,
agx::Frame *  rb2Frame 
)
staticinherited

Given a point and an axis in world, this function calculates each local attachment frame for one or two bodies.

The first body, rb1, has to be valid. If the second body, rb2, is zero the second frame, rb2Frame, will be given in world frame.

Parameters
worldPoint- point in world
worldAxis- axis in world (for example prismatic- or hinge axis)
rb1- first rigid body, invalid if null
rb1Frame- frame to calculate for rb1, invalid if null
rb2- second rigid body, if null rb2Frame will be given in world
rb2Frame- frame to calculate for rb2, invalid if null
Returns
true if the calculations succeeded - otherwise false (if false, rb1Frame and rb2Frame are not touched)

◆ calculateFramesFromWorld() [2/2]

static agx::Bool agx::Constraint::calculateFramesFromWorld ( agx::Vec3  worldPoint,
agx::Vec3  worldAxis,
agx::Vec3  secondWorldAxis,
const agx::RigidBody *  rb1,
agx::Frame *  rb1Frame,
const agx::RigidBody *  rb2,
agx::Frame *  rb2Frame 
)
staticinherited

Given a point and two axes in world, this function calculates each local attachment frame for one or two bodies.

The frames' z-axis will be aligned with the worldAxis and its y-axis will be normal to the worldAxis-secondWorldAxis plane. The first body, rb1, has to be valid. If the second body, rb2, is zero the second frame, rb2Frame, will be given in world frame.

Parameters
worldPoint- point in world
worldAxis- axis in world (for example prismatic- or hinge axis)
secondWorldAxis- axis in world (must be non-parallel to worldAxis)
rb1- first rigid body, invalid if null
rb1Frame- frame to calculate for rb1, invalid if null
rb2- second rigid body, if null rb2Frame will be given in world
rb2Frame- frame to calculate for rb2, invalid if null
Returns
true if the calculations succeeded - otherwise false (if false, rb1Frame and rb2Frame are not touched)

◆ calculateNumActiveRows()

agx::UInt agx::Constraint::calculateNumActiveRows ( ) const
inherited

Calculates the current number of active rows, including both elementary and secondary constraints.

The result can be used to allocate temporary buffers for additional calls to solver related methods, e.g., getViolation.

Returns
the (current) total number of active rows in this constraint

◆ clear()

void agxUtil::ConstraintHolder::clear ( )

Remove all constraints.

◆ create() [1/2]

static agxStream::Serializable* agxUtil::ConstraintHolder::create ( )
inlinestaticprotected

Definition at line 419 of file agxUtil.h.

◆ create() [2/2]

static agxStream::Serializable* agxUtil::ConstraintHolder::create ( agxStream::InputArchive &  )
inlinestaticprotected

Definition at line 419 of file agxUtil.h.

◆ createFromBody() [1/2]

template<typename T >
static agx::ref_ptr< T > agx::Constraint::createFromBody ( agx::Vec3  bodyPoint,
agx::Vec3  bodyAxis,
agx::RigidBody *  rb1,
agx::RigidBody *  rb2 = nullptr 
)
staticinherited

Creates a constraint given a point and an axis in rb1 model frame.

Seen from body one frame - both relative attachment frames will coincide at the given point with their z-axes pointing in the axis direction.

Parameters
bodyPoint- constraint center point given in first body's frame
bodyAxis- constraint axis given in first body's frame
rb1- first rigid body (not defined if null)
rb2- second rigid body, if null, rb1 will be attached in world
Returns
the constraint of type T

◆ createFromBody() [2/2]

template<typename T >
ref_ptr< T > agx::Constraint::createFromBody ( Vec3  bodyPoint,
Vec3  bodyAxis,
RigidBody *  rb1,
RigidBody *  rb2 
)
inherited

Definition at line 891 of file Constraint.h.

◆ createFromWorld() [1/2]

template<typename T >
static agx::ref_ptr< T > agx::Constraint::createFromWorld ( agx::Vec3  worldPoint,
agx::Vec3  worldAxis,
agx::RigidBody *  rb1,
agx::RigidBody *  rb2 = nullptr 
)
staticinherited

Creates a constraint given a point and an axis in world frame.

Both relative attachment frames will coincide at the given world point with their z-axes pointing in the given world axis direction.

Parameters
worldPoint- constraint center point given in the world frame
worldAxis- constraint axis given in world frame
rb1- first rigid body (not defined if null)
rb2- second rigid body, if null, rb1 will be attached in world
Returns
the constraint of type T

◆ createFromWorld() [2/2]

template<typename T >
ref_ptr< T > agx::Constraint::createFromWorld ( Vec3  worldPoint,
Vec3  worldAxis,
RigidBody *  rb1,
RigidBody *  rb2 
)
inherited

Definition at line 881 of file Constraint.h.

◆ deleteUsingDeleteHandler()

void agx::Referenced::deleteUsingDeleteHandler ( ) const
protectedinherited

◆ generateUuid()

void agxStream::Serializable::generateUuid ( )
protectedinherited

◆ getAttachment() [1/2]

agx::RigidBodyAttachment* agx::Constraint::getAttachment ( const agx::RigidBody *  rb) const
inherited
Returns
the attachment frame for rb if present - otherwise 0

◆ getAttachment() [2/2]

agx::Attachment* agx::Constraint::getAttachment ( agx::UInt  i) const
inherited
Returns
the attachment frame for body with index i (call equal to constraint->getAttachment( constraint->getBodyAt( i ) ))

◆ getAttachmentPair()

agx::AttachmentPair* agx::Constraint::getAttachmentPair ( ) const
inherited
Returns
the attachment pair if this constraint supports it - otherwise 0

◆ getBodyAt() [1/2]

agx::RigidBody* agx::Constraint::getBodyAt ( agx::UInt  i)
inherited
Returns
rigid body at index i (the bodies are ordered as they were added)

◆ getBodyAt() [2/2]

const agx::RigidBody* agx::Constraint::getBodyAt ( agx::UInt  i) const
inherited
Returns
rigid body at index i (the bodies are ordered as they were added)

◆ getClassName()

const char* agxUtil::ConstraintHolder::getClassName ( ) const
inlineoverrideprotectedvirtual
Returns
the class name of this class.

Reimplemented from agx::Interaction.

Definition at line 419 of file agxUtil.h.

◆ getCompliance()

virtual agx::Real agx::Constraint::getCompliance ( agx::UInt  dof) const
virtualinherited

Get the compliance for DOF i.

Note that indices > number of DOF for this constraint is not defined, so compliance of index 0 will be returned.

Parameters
dof- index of the requested DOF
Returns
compliance for the given DOF

Reimplemented in agxWire::EyeNodeArea, and agx::DistanceJoint.

◆ getConstructClassId()

static const char* agxUtil::ConstraintHolder::getConstructClassId ( )
inlinestaticprotected

Definition at line 419 of file agxUtil.h.

◆ getCurrentForce()

agx::Real agx::Constraint::getCurrentForce ( agx::UInt  dof) const
inherited

Consider using getLastForce instead.

This method returns the magnitude of the force in a given degree of freedom (DOF). Enabled controllers in the given DOF will NOT be included, agx::ElementaryConstraint::getCurrentForce has to be used for that.

Returns
the current force magnitude (i.e., the force magnitude last time step) in given DOF >= 0 && <= NUM_DOFS
See also
setEnableComputeForces and getLastForce

◆ getDamping()

virtual Real agx::Constraint::getDamping ( agx::UInt  dof) const
virtualinherited

Get the damping for DOF dof.

Note that indices > number of DOF for this constraint is not defined, so damping of index 0 will be returned.

Parameters
dof- index of the requested DOF
Returns
damping for the given DOF

Reimplemented in agxWire::EyeNodeArea, and agx::DistanceJoint.

◆ getDeleteHandler()

static DeleteHandler* agx::Referenced::getDeleteHandler ( )
staticprotectedinherited
Returns
a DeleteHandler.

◆ getElasticity()

virtual agx::Real agx::Constraint::getElasticity ( agx::UInt  dof) const
virtualinherited

Get the elasticity for DOF i.

Note that indices > number of DOF for this constraint is not defined, so elasticity of index 0 will be returned.

Parameters
dof- index of the requested DOF
Returns
elasticity for the given DOF

◆ getElementaryConstraint()

agx::ElementaryConstraint* agx::Constraint::getElementaryConstraint ( const agx::UInt  index) const
inherited
Parameters
index- index of the elementary constraint
Returns
elementary constraint given index

◆ getElementaryConstraintGivenName()

agx::ElementaryConstraint* agx::Constraint::getElementaryConstraintGivenName ( const agx::Name &  name) const
inherited

Find elementary constraint given name.

Parameters
name- name of the elementary constraint
Returns
elementary constraint given name

◆ getEnable()

agx::Bool agx::Constraint::getEnable ( ) const
inherited
Returns
true if the constraint is enabled.

◆ getEnableComputeForces()

agx::Bool agx::Constraint::getEnableComputeForces ( ) const
inherited
Returns
true if this constraint has been enabled to compute the forces applied to its bodies - otherwise false

◆ getEnableDebugRendering()

bool agx::Constraint::getEnableDebugRendering ( ) const
inherited
Returns
true if this constraints debug rendering is enabled - otherwise false

◆ getEnableLinearization()

bool agx::Constraint::getEnableLinearization ( ) const
inherited
Returns
true if constraint compliance linearization is enabled for this constraint. False otherwise.

◆ getEnableSerialization()

bool agxStream::Serializable::getEnableSerialization ( ) const
inherited
Returns
true if serialization is enabled for this object

Definition at line 273 of file Serializable.h.

◆ getEnableUuidGeneration()

bool agxStream::Serializable::getEnableUuidGeneration ( )
inherited
Returns
true if Uuid:s should be generated for each new Serializable object

◆ getEntityId()

agx::UInt32 agx::Constraint::getEntityId ( ) const
inherited
Returns
the entity id of the constraint

◆ getForceRange()

agx::RangeReal agx::Constraint::getForceRange ( agx::UInt  dof = 0) const
inherited

Get the force range for DOF dof.

Note
Indices > number of DOF for this constraint is not defined, an infinite force range will be returned.
For controllers (secondary constraints), use their specific method, e.g., constraint->getMotor1D()->getForceRange().
Parameters
dof- index of the requested DOF

◆ getIndex()

agx::UInt32 agxStream::Serializable::getIndex ( ) const
inherited

This index is given at creation of this object.

It is guaranteed to be unique for the lifetime of this library instance. As long as the application is running. This value is not serialized or restored. A new object will always get a new index no matter how it is created.

Returns
an instance index of this object. This is unique for the lifetime of this library instance.

Definition at line 247 of file Serializable.h.

◆ getLastForce() [1/2]

agx::Bool agx::Constraint::getLastForce ( agx::UInt  bodyIndex,
agx::Vec3 &  retForce,
agx::Vec3 &  retTorque,
agx::Bool  giveForceAtCm = false 
) const
inherited

If 'compute forces' is enabled, returns the last force and torque applied by this constraint on the body with bodyIndex.

The force is given in world coordinates and is the one applied at the anchor position of this constraint.

The result includes force and torque from this constraint including all enabled controllers (e.g., motors, locks, ranges).

See also
setEnableComputeForces
Parameters
bodyIndex- index of body, if number of bodies = 1 and bodyIndex = 1, the force and torque applied to "the world body" is returned
retForce- the force applied by this constraint on body at bodyIndex last solve
retTorque- the torque applied by this constraint on body at bodyIndex last solve
giveForceAtCm- this parameter affects the resulting torque. The default behavior (giveForceAtCm = false) calculates the force applied by this constraint at the anchor position. Letting giveForceAtCm = true, the force will be applied at center of mass, affecting the torque as \( T_{new} = T - r \times F \) where r is the vector from the anchor point to the center of mass of the body.
Returns
true if resulting force and torque was written to retForce and retTorque - otherwise false

◆ getLastForce() [2/2]

agx::Bool agx::Constraint::getLastForce ( const agx::RigidBody *  rb,
agx::Vec3 &  retForce,
agx::Vec3 &  retTorque,
agx::Bool  giveForceAtCm = false 
) const
inherited

If 'compute forces' is enabled, returns the last force and torque applied by this constraint on the body rb.

The force is given in world coordinates and is the one applied at the anchor position of this constraint.

The result includes force and torque from this constraint including all enabled controllers (e.g., motors, locks, ranges).

See also
setEnableComputeForces
Parameters
rb- body in this constraint. If this constraint is attached in world, nullptr can be used.
retForce- the force applied by this constraint on body rb at the last solve
retTorque- the torque applied by this constraint on body rb at the last solve
giveForceAtCm- this parameter affects the resulting torque. The default behavior (giveForceAtCm = false) calculates the force applied by this constraint at the anchor position. Letting giveForceAtCm = true, the force will be applied at center of mass, affecting the torque as \(T_{new} = T - r \times F\) where r is the vector from the anchor point to the center of mass of the body.
Returns
true if resulting force and torque was written to retForce and retTorque - otherwise false

◆ getLastLocalForce() [1/2]

agx::Bool agx::Constraint::getLastLocalForce ( agx::UInt  bodyIndex,
agx::Vec3 &  retForce,
agx::Vec3 &  retTorque,
agx::Bool  giveForceAtCm = false 
) const
inherited

If 'compute forces' is enabled, returns the last force and torque applied by this constraint on the body with bodyIndex.

The force is given in the frame of the constraint.

The result includes force and torque from this constraint including all enabled controllers (e.g., motors, locks, ranges).

See also
setEnableComputeForces
Parameters
bodyIndex- index of body, if number of bodies = 1 and bodyIndex = 1, the force and torque applied to "the world body" is returned
retForce- the force applied by this constraint on body at bodyIndex last solve
retTorque- the torque applied by this constraint on body at bodyIndex last solve
giveForceAtCm- this parameter affects the resulting torque. The default behavior (giveForceAtCm = false) calculates the force applied by this constraint at the anchor position. Letting giveForceAtCm = true, the force will be applied at center of mass, affecting the torque as \(T_{new} = T - r \times F\) where r is the vector from the anchor point to the center of mass of the body.
Returns
true if resulting force and torque was written to retForce and retTorque - otherwise false

◆ getLastLocalForce() [2/2]

agx::Bool agx::Constraint::getLastLocalForce ( const agx::RigidBody *  rb,
agx::Vec3 &  retForce,
agx::Vec3 &  retTorque,
agx::Bool  giveForceAtCm = false 
) const
inherited

If 'compute forces' is enabled, returns the last force and torque applied by this constraint on the body rb.

The force is given in the frame of the constraint.

The result includes force and torque from this constraint including all enabled controllers (e.g., motors, locks, ranges).

See also
setEnableComputeForces
Parameters
rb- body in this constraint. If this constraint is attached in world, nullptr can be used.
retForce- the force applied by this constraint on body rb at the last solve
retTorque- the torque applied by this constraint on body rb at the last solve
giveForceAtCm- this parameter affects the resulting torque. The default behavior (giveForceAtCm = false) calculates the force applied by this constraint at the anchor position. Letting giveForceAtCm = true, the force will be applied at center of mass, affecting the torque as \(T_{new} = T - r \times F\) where r is the vector from the anchor point to the center of mass of the body.
Returns
true if resulting force and torque was written to retForce and retTorque - otherwise false

◆ getName()

const agx::Name& agx::Interaction::getName ( ) const
inherited
Returns
the name of this interaction

◆ getNumBodies()

agx::UInt agx::Constraint::getNumBodies ( ) const
inherited

returns the number of bodies involved

◆ getNumDOF()

virtual int agxUtil::ConstraintHolder::getNumDOF ( ) const
inlineoverrideprotectedvirtual
Returns
the number of DOF for this constraint, not including secondary constraints. -1 if num DOF is undefined for the constraint.

Implements agx::Constraint.

Definition at line 412 of file agxUtil.h.

◆ getNumElementaryConstraints()

agx::UInt agx::Constraint::getNumElementaryConstraints ( ) const
inherited
Returns
the number of elementary constraints

◆ getNumSecondaryConstraints()

agx::UInt agx::Constraint::getNumSecondaryConstraints ( ) const
inherited
Returns
the number of secondary constraints

◆ getPropertyContainer() [1/2]

agx::PropertyContainer* agx::Interaction::getPropertyContainer ( )
inherited
Returns
a property container (if it doesn't exist, a new will be created)

◆ getPropertyContainer() [2/2]

const agx::PropertyContainer* agx::Interaction::getPropertyContainer ( ) const
inherited
Returns
a property container (if it doesn't exist, a new will be created)

◆ getReferenceCount()

int agx::Referenced::getReferenceCount ( ) const
inherited
Returns
the number pointers currently referencing this object.

◆ getRegularizationParameters() [1/2]

virtual agx::RegularizationParameters* agx::Constraint::getRegularizationParameters ( agx::UInt  i)
virtualinherited
Returns
a pointer to the regularization parameter object of this constraint for the i:th DOF

Reimplemented in agx::DistanceJoint.

◆ getRegularizationParameters() [2/2]

virtual const agx::RegularizationParameters* agx::Constraint::getRegularizationParameters ( agx::UInt  i) const
virtualinherited
Returns
a pointer to the regularization parameter object of this constraint for the i:th DOF

Reimplemented in agx::DistanceJoint.

◆ getRep() [1/2]

ConstraintImplementation * agx::Constraint::getRep ( )
inlineinherited
Returns
a pointer to the internal constraint implementation

Definition at line 870 of file Constraint.h.

Referenced by agxSDK::MergeSplitHandler::getProperties().

◆ getRep() [2/2]

const ConstraintImplementation * agx::Constraint::getRep ( ) const
inlineinherited
Returns
a pointer to the internal constraint implementation

Definition at line 875 of file Constraint.h.

◆ getSecondaryConstraint()

agx::ElementaryConstraint* agx::Constraint::getSecondaryConstraint ( const agx::UInt  index) const
inherited
Parameters
index- index of the secondary constraint
Returns
secondary constraint given index

◆ getSecondaryConstraintGivenName()

agx::ElementaryConstraint* agx::Constraint::getSecondaryConstraintGivenName ( const agx::Name &  name) const
inherited

Find secondary constraint given name.

Parameters
name- name of the elementary constraint
Returns
elementary constraint given name

◆ getSimulationProxy()

agxSDK::SimulationProxy* agx::Interaction::getSimulationProxy ( ) const
inherited
Returns
the simulation proxy for this strong interaction

◆ getSolveType()

agx::Constraint::SolveType agx::Constraint::getSolveType ( ) const
inherited
Returns
the current solve type for this constraint
Note
Solve type is ignored by iterative solvers.

◆ getStorageAgent()

agxStream::StorageAgent* agxUtil::ConstraintHolder::getStorageAgent ( ) const
inlineoverrideprotectedvirtual
Returns
the storage agent

Reimplemented from agx::Interaction.

Definition at line 419 of file agxUtil.h.

◆ getUuid()

agx::Uuid agxStream::Serializable::getUuid ( ) const
inherited
Returns
a unique id for this instance.

Definition at line 268 of file Serializable.h.

Referenced by agxSDK::UuidHashCollisionFilter::match().

◆ getValid()

agx::Bool agx::Constraint::getValid ( ) const
inherited
Returns
true if this constraints is valid It is possible for a constraint to declare itself invalid during a simulation. This may happen if for example a body that is included in this constraint is removed from the simulation.

◆ hasPropertyContainer()

agx::Bool agx::Interaction::hasPropertyContainer ( ) const
inherited
Returns
true if a property container has been created, otherwise false

◆ is()

template<typename T >
bool agx::Referenced::is ( ) const
inherited

◆ isEnabled()

agx::Bool agx::Constraint::isEnabled ( ) const
inherited
Returns
true if the constraint is enabled.

◆ isFinished()

bool agxStream::Serializable::isFinished ( ) const
inherited
Returns
true if this class is restored correctly and should not be deleted during destruction of an Archive.

Definition at line 252 of file Serializable.h.

References AGX_FORCE_INLINE.

◆ postSystemCallback()

virtual void agx::Constraint::postSystemCallback ( agx::DynamicsSystem *  )
overrideprotectedvirtualinherited

Called after all post step events, after solve.

Reimplemented from agx::Interaction.

◆ preSystemCallback()

virtual void agx::Constraint::preSystemCallback ( agx::DynamicsSystem *  )
overrideprotectedvirtualinherited

Called after all pre step events, before solve.

Reimplemented from agx::Interaction.

◆ rebind()

virtual agx::Bool agx::Constraint::rebind ( )
virtualinherited

Rebind this constraint, i.e., use current state as the initial configuration.

Returns
true if the rebinding is successful - false otherwise

◆ reference()

void agx::Referenced::reference ( void *  ptr = nullptr) const
inherited

Explicitly increment the reference count by one, indicating that this object has another pointer which is referencing it.

This method should be used with care, always balanced with the same number of calls to unreference.

◆ remove()

bool agxUtil::ConstraintHolder::remove ( agx::ConstraintImplementation *  constraint)

Remove constraint implementation.

Parameters
constraint- constraint to remove
Returns
true if the constraint was actually removed - otherwise false

◆ removeElementaryConstraint() [1/2]

agx::Bool agx::Constraint::removeElementaryConstraint ( agx::ElementaryConstraint *  elementaryConstraint)
inherited

Remove elementary constraint.

Parameters
elementaryConstraint- elementary constraint to remove
Returns
true if removed

◆ removeElementaryConstraint() [2/2]

agx::Bool agx::Constraint::removeElementaryConstraint ( const agx::Name &  name)
inherited

Remove elementary constraint.

Parameters
name- name of the elementary constraint to remove
Returns
true if removed

◆ removeNotification()

virtual void agx::Constraint::removeNotification ( )
overrideprotectedvirtualinherited

Called when removed from a simulation.

Reimplemented from agx::Interaction.

Reimplemented in agx::GenericConstraint.

◆ removeSecondaryConstraint() [1/2]

agx::Bool agx::Constraint::removeSecondaryConstraint ( agx::ElementaryConstraint *  secondaryConstraint)
inherited

Remove secondary constraint.

Parameters
secondaryConstraint- secondary constraint to remove
Returns
true if removed

◆ removeSecondaryConstraint() [2/2]

agx::Bool agx::Constraint::removeSecondaryConstraint ( const agx::Name &  name)
inherited

Remove secondary constraint.

Parameters
name- name of the secondary constraint to remove
Returns
true if removed

◆ render()

virtual void agxUtil::ConstraintHolder::render ( class agxRender::RenderManager *  mgr,
float  scale 
) const
inlineoverrideprotectedvirtual

Inherited method of how to render this constraint into DebugRenderer.

Implements agx::Constraint.

Definition at line 416 of file agxUtil.h.

◆ restore()

virtual void agxUtil::ConstraintHolder::restore ( agxStream::InputArchive &  in)
overrideprotectedvirtual

Reimplemented from agx::Constraint.

◆ restoreLightData()

virtual void agx::Constraint::restoreLightData ( agxStream::StorageStream &  str)
overridevirtualinherited

◆ setCompliance() [1/2]

virtual void agx::Constraint::setCompliance ( agx::Real  compliance,
agx::Int  dof 
)
virtualinherited

Set the compliance of this constraint for the i:th DOF.

Parameters
compliance- value of compliance
dof- index of the requested DOF (-1 indicates all)

Reimplemented in agxWire::EyeNodeArea, and agx::DistanceJoint.

◆ setCompliance() [2/2]

void agx::Constraint::setCompliance ( agx::Real  compliance)
inherited

Set the compliance of this constraint for all DOFs.

Parameters
compliance- value of compliance

◆ setDamping() [1/2]

virtual void agx::Constraint::setDamping ( agx::Real  damping,
agx::Int  dof 
)
virtualinherited

Set the damping of this constraint for the i:th DOF.

Parameters
damping- value of damping
dof- index of the requested DOF (-1 indicates all).

Reimplemented in agxWire::EyeNodeArea, and agx::DistanceJoint.

◆ setDamping() [2/2]

void agx::Constraint::setDamping ( agx::Real  damping)
inherited

Set the damping of this constraint for all DOFs.

Parameters
damping- value of damping

◆ setDeleteHandler()

static void agx::Referenced::setDeleteHandler ( DeleteHandler *  handler)
staticprotectedinherited

Internal: Set a DeleteHandler to which deletion of all referenced counted objects will be delegated to.

◆ setElasticity() [1/2]

virtual void agx::Constraint::setElasticity ( agx::Real  elasticity,
agx::Int  dof 
)
virtualinherited

Set the elasticity of this constraint for the i:th DOF.

Elasticity is 1 / compliance.

Parameters
elasticity- value of elasticity
dof- index of the requested DOF (-1 indicates all)

◆ setElasticity() [2/2]

virtual void agx::Constraint::setElasticity ( agx::Real  elasticity)
virtualinherited

Set the elasticity of this constraint for all DOFs.

Parameters
elasticity- value of elasticity

◆ setEnable()

virtual void agx::Constraint::setEnable ( agx::Bool  enable)
virtualinherited

Enable/disable a constraint.

Parameters
enable- If true the constraint will be enabled.

◆ setEnableComputeForces()

void agx::Constraint::setEnableComputeForces ( agx::Bool  enable)
inherited

Enable (or disable) computation of the forces applied to the dynamic bodies in this constraint.

Matrix-vector operation to compute the forces after solve.

See also
getLastForce
Parameters
enable- true to enable, false to disable

Referenced by agxSDK::ConstraintLogListener::addConstraint().

◆ setEnableDebugRendering()

void agx::Constraint::setEnableDebugRendering ( agx::Bool  enable)
inherited

Enable/disable debug rendering of this constraint.

◆ setEnableLinearization()

void agx::Constraint::setEnableLinearization ( bool  enable)
inherited

Pass true to enable linearization of constraint compliance.

This makes constraint violation a linear function of the force or torque used to violate the constraint also for the elementary constraint types for which this isn't already the case, such as QuatLock. The effect of this is that the parameters sent to the solver by the constraint are tweaked to make the constrain more closely follow Hook's law.

Setting this to true has no effect on most constraints. It does have an effect on the rotational part of AngularLockJoint, LockJoint, and Prismatic.

When false, the default, the resulting violation of any QuatLock in the constraint is linear in quaternion space instead of degrees and radians.

◆ setEnableSerialization()

void agxStream::Serializable::setEnableSerialization ( bool  flag)
inherited

Set to false to disable serialization of this object.

It will just be ignored during serialization (writing). It is still possible to restore TO this object.

◆ setEnableUuidGeneration()

static void agxStream::Serializable::setEnableUuidGeneration ( bool  flag)
staticinherited

Specify if there should be UUID:s generated for each new Serializable object. By default it is enabled.

◆ setFinished()

void agxStream::Serializable::setFinished ( )
inherited

Tells this class that it is restored correctly and should not be deleted during destruction of an Archive.

◆ setForceRange() [1/3]

void agx::Constraint::setForceRange ( agx::RangeReal  forceRange)
inherited

Assign force range for all DOF of the elementary constraints.

Note
Using this method will NOT change the force range of the controllers (secondary constraints), if present. Use their specific methods instead, e.g., constraint->getMotor1D()->setForceRange( fRange ).
Parameters
forceRange- value of force range for all elementary DOFs

◆ setForceRange() [2/3]

void agx::Constraint::setForceRange ( agx::RangeReal  forceRange,
agx::Int  dof 
)
inherited

Assign force range, of an elementary constraint, for a given DOF.

Note
For controllers (secondary constraints), use their specific methods, e.g., constraint->getMotor1D()->setForceRange( fRange ).
Parameters
forceRange- value of force range for the given DOF
dof- index of the DOF (-1 indicates all)

◆ setForceRange() [3/3]

void agx::Constraint::setForceRange ( agx::Real  lower,
agx::Real  upper,
agx::Int  dof 
)
inherited

Assign force range, of an elementary constraint, for a given DOF.

Note
For controllers (secondary constraints), use their specific methods, e.g., constraint->getMotor1D()->setForceRange( fLower, fUpper ).
Parameters
lower- lower value of force range for the given DOF
upper- lower value of force range for the given DOF
dof- index of the DOF (-1 indicates all)

◆ setName()

void agx::Interaction::setName ( const agx::Name &  name)
inherited

Name this interaction.

Parameters
name- new name of this interaction

◆ setPropertyContainer()

void agx::Interaction::setPropertyContainer ( agx::PropertyContainer *  propertyContainer)
inherited

Assign a new property container.

Parameters
propertyContainer- new property container

◆ setRep()

void agx::Constraint::setRep ( agx::ConstraintImplementation *  _rep)
protectedinherited

◆ setSimulation()

virtual void agx::Constraint::setSimulation ( agxSDK::Simulation *  simulation)
overrideprotectedvirtualinherited

Assign simulation.

Be careful.

Reimplemented from agx::Interaction.

◆ setSolveType()

void agx::Constraint::setSolveType ( agx::Constraint::SolveType  solveType)
inherited

Specify the solve type for this constraint.

Valid is DIRECT (default for non-iterative solvers), ITERATIVE or DIRECT_AND_ITERATIVE where DIRECT_AND_ITERATIVE means that this constraint will be solved both direct and iterative.

Parameters
solveType- new solve type for this constraint
Note
Solve type is ignored by iterative solvers.

◆ setSystem()

virtual void agx::Constraint::setSystem ( agx::DynamicsSystem *  )
inlineprotectedvirtualinherited

Definition at line 620 of file Constraint.h.

◆ setUuid()

void agxStream::Serializable::setUuid ( const agx::Uuid &  uuid)
inherited

Explicitly set a Uuid on a serializable object.

Use this method with great care, as it can result in non-unique identifiers in the system!

◆ store()

virtual void agxUtil::ConstraintHolder::store ( agxStream::OutputArchive &  out) const
overrideprotectedvirtual

Reimplemented from agx::Constraint.

◆ storeLightData()

virtual void agx::Constraint::storeLightData ( agxStream::StorageStream &  str) const
overridevirtualinherited

◆ unreference()

void agx::Referenced::unreference ( void *  ptr = nullptr) const
inherited

Decrement the reference count by one, indicating that a pointer to this object is referencing it.

If the reference count goes to zero, it is assumed that this object is no longer referenced and is automatically deleted.

This method should be used with care, always balanced with the same number of calls to reference.

Referenced by agxData::EntityRef< ContactMaterialPtr >::~EntityRef().

◆ unreference_nodelete()

void agx::Referenced::unreference_nodelete ( ) const
inherited

Decrement the reference count by one, indicating that a pointer to this object is referencing it.

However, do not delete it, even if ref count goes to 0. Warning, unref_nodelete() should only be called if the user knows exactly who will be responsible for, one should prefer unref() over unref_nodelete() as the later can lead to memory leaks.

◆ updateForce()

void agx::Interaction::updateForce ( agx::DynamicsSystem *  dynamicsSystem)
inlinevirtualinherited

This virtual method is implemented so that it computes the interaction forces on all the physical bodies implicated.

This method defaults to doing nothing. Constraints and other strong interactions might not implement anything for this because the forces they generate are computed by a solver. A weak interaction must implement this method to have any effect.

Parameters
dynamicsSystem- the system to which the forces should be added

Definition at line 128 of file Interaction.h.

◆ ValidateCast()

template<typename T >
static bool agx::Referenced::ValidateCast ( const Referenced *  object)
staticinherited

Member Data Documentation

◆ m_mutex

Mutex agx::Referenced::m_mutex
mutableprotectedinherited

Definition at line 240 of file Referenced.h.

◆ m_observers

ObserverContainer agx::Referenced::m_observers
mutableprotectedinherited

Definition at line 239 of file Referenced.h.

◆ m_refCount

AtomicValue agx::Referenced::m_refCount
mutableprotectedinherited

Definition at line 241 of file Referenced.h.


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