AGXDynamics  2.31.1.0
agxModel::Deformable1DNode Class Reference

Special node implementation of segments in e.g., a Deformable1D object. More...

#include <Deformable1DNode.h>

+ Inheritance diagram for agxModel::Deformable1DNode:

Classes

struct  DeformationData
 Structure containing relevant data for elasto-plastic deformation. More...
 

Public Types

enum  MaxLoadType { TRANSLATIONAL = 0, ROTATIONAL }
 

Public Member Functions

 Deformable1DNode (const agx::AffineMatrix4x4 &transform)
 Construct given full transform of the rigid body in this node. More...
 
 Deformable1DNode (const agx::AffineMatrix4x4 &transform, agxModel::NodeAttachment *attachment)
 Construct given full transform of the rigid body in this node and an external attachment. More...
 
agx::Bool add (agxModel::NodeAttachmentRef attachment)
 Add an external attachment to this node. More...
 
bool addBranch (agxModel::Tree::Branch *branch)
 Add child branch to this branch. More...
 
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
 
agx::Vec3 calculateAreaMomentOfInertia (const agxModel::Deformable1DGeometryFactory *geometryFactory) const
 Calculates the moment of area given a geometry factory containing values such as width and height. More...
 
virtual agxModel::Tree::Branch * clone () override
 
virtual agx::ConstraintRef createConstraintWithParent () const override
 Internal method that creates the constraint between this node and its parent. More...
 
agxModel::NodeAttachment * getAttachment (agx::UInt index) const
 Finds attachment given index index. More...
 
agxModel::NodeAttachment * getAttachment (const agx::String &name) const
 Find attachment given name name. More...
 
agxModel::Tree::Branch * getBranch (size_t i) const
 
agxModel::Deformable1DNode * getChild (agx::UInt i=0) const
 
const char * getClassName () const override
 
agx::Constraint * getConstraint () const
 
agx::Vec2 getCurrentLoad () const
 
agx::Real getCurrentRotationalLoad () const
 
agx::Real getCurrentTranslationalLoad () const
 
agx::Referenced * getCustomData () const
 
const agxModel::Deformable1DNode::DeformationData & getDeformationData () const
 
agx::Vec3 getDirection () const
 
bool getEnableSerialization () const
 
bool getEnableUuidGeneration ()
 
agx::UInt32 getIndex () const
 This index is given at creation of this object. More...
 
agx::Real getLength () const
 
virtual agx::Real getLength (const agxCollide::Geometry *geometry) const override
 Internal method that calculates/estimate the length of geometry. More...
 
agx::Vec3 getLocalDirection () const
 
agx::Vec2 getMaxLoad () const
 
agx::Real getMaxRotationalLoad () const
 
agx::Real getMaxTranslationalLoad () const
 
agx::UInt getNumAttachments () const
 
size_t getNumBranches () const
 
agx::UInt getNumChildren () const
 
agxModel::Deformable1DNode * getParent () const
 
agx::Vec3 getPosition () const
 Position of this node is defined to be at the start of this node given this node has an extent. More...
 
int getReferenceCount () const
 
agx::RigidBody * getRigidBody () const
 
agxModel::Segment * getSegment ()
 
const agxModel::Segment * getSegment () const
 
agxStream::StorageAgent * getStorageAgent () const override
 
agx::Uuid getUuid () const
 
agx::Bool hasChildren () const
 
template<typename T >
bool is () const
 Subclass test. More...
 
bool isFinished () const
 
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 removeBranch (agxModel::Tree::Branch *branch)
 Remove a child branch. More...
 
bool removeBranch (size_t index)
 Remove child given index. More...
 
virtual void removeNotification (agxSDK::Assembly *assembly, agxSDK::Simulation *simulation)
 Remove notification from an assembly (typically the agxModel::Deformable1D object) and the simulation. More...
 
virtual void restore (agxStream::InputArchive &in) override
 
virtual void restoreLightData (agxStream::StorageStream &str) override
 Restore structural independent data from stream. More...
 
void setCustomData (agx::Referenced *customData)
 Assign custom/user data of any type. 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 setMaxLoad (agx::Real translational, agx::Real rotational)
 Assign max load for this branch (connection at start). More...
 
void setMaxRotationalLoad (agx::Real maxLoad)
 Assign rotational max load for this branch. More...
 
void setMaxTranslationalLoad (agx::Real maxLoad)
 Assign translational max load for this branch. More...
 
void setUuid (const agx::Uuid &uuid)
 Explicitly set a Uuid on a serializable object. More...
 
virtual agxCollide::Shape * splitShape (agxCollide::Shape *shapeInBranch, agx::Real shapePosition, agxModel::Tree::Branch *newBranch, agx::Real &newBelowLength, agx::Real &newAboveLength) override
 Internal method that splits a geometry in two. More...
 
virtual void store (agxStream::OutputArchive &out) const override
 
virtual void storeLightData (agxStream::StorageStream &str) const override
 Store structural independent data to stream. 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...
 
const agxModel::Deformable1DNode::DeformationData & updateDeformationData ()
 Updates deformation data (current constraint forces and relative rotations) given current state. More...
 

Static Public Member Functions

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

typedef agx::Vector< NodeAttachmentRef > AttachmentContainer
 

Protected Member Functions

 Deformable1DNode ()
 A node has to have a transform, hidden default constructor. More...
 
virtual ~Deformable1DNode ()
 Reference counted object, protected destructor. More...
 
void allocateObserverVector () const
 
void deleteUsingDeleteHandler () const
 
void generateUuid ()
 
agx::Bool getCurrentConstraintForce (agx::Vec3 &translational, agx::Vec3 &rotational) const
 
void setConstraint (agx::Constraint *constraint)
 Assign constraint attached at start point of this branch. More...
 
void setLength (agx::Real length)
 Assign the length of this node. More...
 
void setParent (agxModel::Tree::Branch *parent)
 Assign parent to this branch. More...
 

Static Protected Member Functions

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

AttachmentContainer m_attachments
 
BranchContainer m_branches
 
agx::ConstraintRef m_constraint
 
agx::ref_ptr< agx::Referenced > m_customData
 
DeformationData m_deformationData
 
agx::Real m_length
 
agx::Vec2 m_maxLoad
 
Mutex m_mutex
 
ObserverContainer m_observers
 
BranchObs m_parent
 
agx::RigidBodyRef m_rb
 
AtomicValue m_refCount
 
Segment m_segment
 

Detailed Description

Special node implementation of segments in e.g., a Deformable1D object.

Definition at line 36 of file Deformable1DNode.h.

Member Typedef Documentation

◆ AttachmentContainer

Member Enumeration Documentation

◆ MaxLoadType

Enumerator
TRANSLATIONAL 
ROTATIONAL 

Definition at line 57 of file agxModel/Tree.h.

Constructor & Destructor Documentation

◆ Deformable1DNode() [1/3]

agxModel::Deformable1DNode::Deformable1DNode ( const agx::AffineMatrix4x4 &  transform)

Construct given full transform of the rigid body in this node.

Parameters
transform- full transform of the rigid body in this node

◆ Deformable1DNode() [2/3]

agxModel::Deformable1DNode::Deformable1DNode ( const agx::AffineMatrix4x4 &  transform,
agxModel::NodeAttachment *  attachment 
)

Construct given full transform of the rigid body in this node and an external attachment.

Parameters
transform- full transform of the rigid body in this node
attachment- external attachment to this node

◆ Deformable1DNode() [3/3]

agxModel::Deformable1DNode::Deformable1DNode ( )
protected

A node has to have a transform, hidden default constructor.

◆ ~Deformable1DNode()

virtual agxModel::Deformable1DNode::~Deformable1DNode ( )
protectedvirtual

Reference counted object, protected destructor.

Member Function Documentation

◆ add()

agx::Bool agxModel::Deformable1DNode::add ( agxModel::NodeAttachmentRef  attachment)

Add an external attachment to this node.

Parameters
attachment- attachment to add
Returns
true if added, otherwise false

◆ addBranch()

bool agxModel::Tree::Branch::addBranch ( agxModel::Tree::Branch *  branch)
inherited

Add child branch to this branch.

This branch will be parent to branch and later attached to it with a constraint.

Parameters
branch- child branch
Returns
true if add was successful - otherwise false (e.g., loops)

◆ allocateObserverVector()

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

◆ as() [1/2]

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

Subclass casting.

Template type must match actual type, dynamic_cast assertion will fail otherwise.

Referenced by agx::InternalData::get(), agxVehicle::Track::getNode(), agx::InternalData::getOrCreate(), and agx::InternalData::hasData().

◆ as() [2/2]

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

◆ 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

◆ calculateAreaMomentOfInertia()

agx::Vec3 agxModel::Deformable1DNode::calculateAreaMomentOfInertia ( const agxModel::Deformable1DGeometryFactory *  geometryFactory) const

Calculates the moment of area given a geometry factory containing values such as width and height.

If geometryFactory is null width and height will be estimated as one (1).

Parameters
geometryFactory- geometry factory holding values such as width and height
Returns
moment of area about all three rotational degrees of freedom

◆ clone()

virtual agxModel::Tree::Branch* agxModel::Deformable1DNode::clone ( )
overridevirtual
Returns
clone of this node

Reimplemented from agxModel::Tree::Branch.

◆ create() [1/2]

static agxStream::Serializable* agxModel::Deformable1DNode::create ( )
inlinestatic

Definition at line 188 of file Deformable1DNode.h.

◆ create() [2/2]

static agxStream::Serializable* agxModel::Deformable1DNode::create ( agxStream::InputArchive &  )
inlinestatic

Definition at line 188 of file Deformable1DNode.h.

◆ createConstraintWithParent()

virtual agx::ConstraintRef agxModel::Deformable1DNode::createConstraintWithParent ( ) const
overridevirtual

Internal method that creates the constraint between this node and its parent.

Reimplemented from agxModel::Tree::Branch.

◆ deleteUsingDeleteHandler()

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

◆ generateUuid()

void agxStream::Serializable::generateUuid ( )
protectedinherited

◆ getAttachment() [1/2]

agxModel::NodeAttachment* agxModel::Deformable1DNode::getAttachment ( agx::UInt  index) const

Finds attachment given index index.

Parameters
index- index of attachment
Returns
external attachment given index if present, if index is out of bounds null

◆ getAttachment() [2/2]

agxModel::NodeAttachment* agxModel::Deformable1DNode::getAttachment ( const agx::String &  name) const

Find attachment given name name.

Parameters
name- name of the attachment (naming by attachment->setName( "name" ))
Returns
attachment with name name, null if not present

◆ getBranch()

agxModel::Tree::Branch* agxModel::Tree::Branch::getBranch ( size_t  i) const
inherited
Returns
child branch i

◆ getChild()

agxModel::Deformable1DNode* agxModel::Deformable1DNode::getChild ( agx::UInt  i = 0) const
Parameters
i- index of child
Returns
child number i (null if out of bound)

◆ getClassName()

const char* agxModel::Deformable1DNode::getClassName ( ) const
inlineoverridevirtual
Returns
the class name of this class.

Reimplemented from agxStream::Serializable.

Definition at line 188 of file Deformable1DNode.h.

◆ getConstraint()

agx::Constraint* agxModel::Tree::Branch::getConstraint ( ) const
inherited
Returns
the constraint of this branch

◆ getConstructClassId()

static const char* agxModel::Deformable1DNode::getConstructClassId ( )
inlinestatic

Definition at line 188 of file Deformable1DNode.h.

◆ getCurrentConstraintForce()

agx::Bool agxModel::Deformable1DNode::getCurrentConstraintForce ( agx::Vec3 &  translational,
agx::Vec3 &  rotational 
) const
protected
Parameters
[out]translational- translational force applied by the constraint
[out]rotational- rotational force applied by the constraint
Returns
true if the values have been set

◆ getCurrentLoad()

agx::Vec2 agxModel::Tree::Branch::getCurrentLoad ( ) const
inherited
Returns
both translational and rotational load (current) (index with Branch::TRANSLATIONAL and Branch::ROTATIONAL)

◆ getCurrentRotationalLoad()

agx::Real agxModel::Tree::Branch::getCurrentRotationalLoad ( ) const
inherited
Returns
current rotational load in this branch

◆ getCurrentTranslationalLoad()

agx::Real agxModel::Tree::Branch::getCurrentTranslationalLoad ( ) const
inherited
Returns
current translational load in this branch

◆ getCustomData()

agx::Referenced* agxModel::Tree::Branch::getCustomData ( ) const
inherited
Returns
the custom data assigned to this branch (0 if none)

◆ getDeformationData()

const agxModel::Deformable1DNode::DeformationData& agxModel::Deformable1DNode::getDeformationData ( ) const
Returns
the deformation data from last call to updateDeformationData

◆ getDeleteHandler()

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

◆ getDirection()

agx::Vec3 agxModel::Tree::Branch::getDirection ( ) const
inherited
Returns
direction of this branch

◆ 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

◆ 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.

◆ getLength() [1/2]

agx::Real agxModel::Deformable1DNode::getLength ( ) const

◆ getLength() [2/2]

virtual agx::Real agxModel::Deformable1DNode::getLength ( const agxCollide::Geometry *  geometry) const
overridevirtual

Internal method that calculates/estimate the length of geometry.

Parameters
geometry- geometry to estimate length

Reimplemented from agxModel::Tree::Branch.

◆ getLocalDirection()

agx::Vec3 agxModel::Tree::Branch::getLocalDirection ( ) const
inherited
Returns
the local direction of this branch

◆ getMaxLoad()

agx::Vec2 agxModel::Tree::Branch::getMaxLoad ( ) const
inherited
Returns
both translational and rotational max load (index with Branch::TRANSLATIONAL and Branch::ROTATIONAL)

◆ getMaxRotationalLoad()

agx::Real agxModel::Tree::Branch::getMaxRotationalLoad ( ) const
inherited
Returns
rotational max load for this branch

◆ getMaxTranslationalLoad()

agx::Real agxModel::Tree::Branch::getMaxTranslationalLoad ( ) const
inherited
Returns
translational max load for this branch

◆ getNumAttachments()

agx::UInt agxModel::Deformable1DNode::getNumAttachments ( ) const
Returns
the number of attachments this node has

◆ getNumBranches()

size_t agxModel::Tree::Branch::getNumBranches ( ) const
inherited
Returns
the number of child branches for this branch

◆ getNumChildren()

agx::UInt agxModel::Deformable1DNode::getNumChildren ( ) const
Returns
the number of children to this node

◆ getParent()

agxModel::Deformable1DNode* agxModel::Deformable1DNode::getParent ( ) const
Returns
parent node of this node

◆ getPosition()

agx::Vec3 agxModel::Deformable1DNode::getPosition ( ) const

Position of this node is defined to be at the start of this node given this node has an extent.

Returns
position of this node

◆ getReferenceCount()

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

◆ getRigidBody()

agx::RigidBody* agxModel::Tree::Branch::getRigidBody ( ) const
inherited
Returns
the rigid body of this branch

◆ getSegment() [1/2]

agxModel::Segment* agxModel::Deformable1DNode::getSegment ( )
Note
If this is the end node this segment will only have an end position, not an end node.
Returns
the segment between this node and the next

◆ getSegment() [2/2]

const agxModel::Segment* agxModel::Deformable1DNode::getSegment ( ) const
Note
If this is the end node this segment will only have an end position, not an end node.
Returns
the segment between this node and the next

◆ getStorageAgent()

agxStream::StorageAgent* agxModel::Deformable1DNode::getStorageAgent ( ) const
inlineoverridevirtual
Returns
the storage agent

Implements agxStream::Serializable.

Definition at line 188 of file Deformable1DNode.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().

◆ hasChildren()

agx::Bool agxModel::Deformable1DNode::hasChildren ( ) const
Returns
true if number of children > 0, otherwise false

◆ is()

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

◆ 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.

◆ 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.

◆ removeBranch() [1/2]

bool agxModel::Tree::Branch::removeBranch ( agxModel::Tree::Branch *  branch)
inherited

Remove a child branch.

Parent will be set to 0 for branch.

Parameters
branch- child branch
Returns
true if the branch was successfully removed

◆ removeBranch() [2/2]

bool agxModel::Tree::Branch::removeBranch ( size_t  index)
inherited

Remove child given index.

Parent will be set to 0 for branch at index.

Parameters
index- index of branch to remove
Returns
true if the branch, at index, was successfully removed

◆ removeNotification()

virtual void agxModel::Deformable1DNode::removeNotification ( agxSDK::Assembly *  assembly,
agxSDK::Simulation *  simulation 
)
virtual

Remove notification from an assembly (typically the agxModel::Deformable1D object) and the simulation.

Note
Any rigid body, constraint, geometry, etc has to be removed from both the assembly and the simulation.

◆ restore()

virtual void agxModel::Deformable1DNode::restore ( agxStream::InputArchive &  in)
overridevirtual

◆ restoreLightData()

virtual void agxModel::Deformable1DNode::restoreLightData ( agxStream::StorageStream &  str)
overridevirtual

Restore structural independent data from stream.

◆ setConstraint()

void agxModel::Tree::Branch::setConstraint ( agx::Constraint *  constraint)
protectedinherited

Assign constraint attached at start point of this branch.

Parameters
constraint- constraint attached at start point of this branch

◆ setCustomData()

void agxModel::Tree::Branch::setCustomData ( agx::Referenced *  customData)
inherited

Assign custom/user data of any type.

Only constraint is that the class inherits agx::Referenced for easier memory managment.

Parameters
customData- custom/user data for this branch

◆ 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.

◆ 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.

◆ setLength()

void agxModel::Deformable1DNode::setLength ( agx::Real  length)
protected

Assign the length of this node.

Parameters
length- new length of this node

◆ setMaxLoad()

void agxModel::Tree::Branch::setMaxLoad ( agx::Real  translational,
agx::Real  rotational 
)
inherited

Assign max load for this branch (connection at start).

Maximum load is divided into two parts, translational and rotational, units force. When/if the constraint exceeds one of these values an event is fired.

Parameters
translational- translational max load, unit force (default: infinity = disabled)
rotational- rotational max load, unit force (default: infinity = disabled)

◆ setMaxRotationalLoad()

void agxModel::Tree::Branch::setMaxRotationalLoad ( agx::Real  maxLoad)
inherited

Assign rotational max load for this branch.

Parameters
maxLoad- rotational max load, unit force (default: infinity = disabled)

◆ setMaxTranslationalLoad()

void agxModel::Tree::Branch::setMaxTranslationalLoad ( agx::Real  maxLoad)
inherited

Assign translational max load for this branch.

Parameters
maxLoad- translational max load, unit force (default: infinity = disabled)

◆ setParent()

void agxModel::Tree::Branch::setParent ( agxModel::Tree::Branch *  parent)
protectedinherited

Assign parent to this branch.

Parameters
parent- parent branch

◆ 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!

◆ splitShape()

virtual agxCollide::Shape* agxModel::Deformable1DNode::splitShape ( agxCollide::Shape *  shapeInBranch,
agx::Real  shapePosition,
agxModel::Tree::Branch *  newBranch,
agx::Real &  newBelowLength,
agx::Real &  newAboveLength 
)
overridevirtual

Internal method that splits a geometry in two.

Reimplemented from agxModel::Tree::Branch.

◆ store()

virtual void agxModel::Deformable1DNode::store ( agxStream::OutputArchive &  out) const
overridevirtual

◆ storeLightData()

virtual void agxModel::Deformable1DNode::storeLightData ( agxStream::StorageStream &  str) const
overridevirtual

Store structural independent data to stream.

◆ 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.

◆ updateDeformationData()

const agxModel::Deformable1DNode::DeformationData& agxModel::Deformable1DNode::updateDeformationData ( )

Updates deformation data (current constraint forces and relative rotations) given current state.

Returns
the updated deformation data

◆ ValidateCast()

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

Member Data Documentation

◆ m_attachments

AttachmentContainer agxModel::Deformable1DNode::m_attachments
protected

Definition at line 231 of file Deformable1DNode.h.

◆ m_branches

BranchContainer agxModel::Tree::Branch::m_branches
protectedinherited

Definition at line 252 of file agxModel/Tree.h.

◆ m_constraint

agx::ConstraintRef agxModel::Tree::Branch::m_constraint
protectedinherited

Definition at line 256 of file agxModel/Tree.h.

◆ m_customData

agx::ref_ptr< agx::Referenced > agxModel::Tree::Branch::m_customData
protectedinherited

Definition at line 253 of file agxModel/Tree.h.

◆ m_deformationData

DeformationData agxModel::Deformable1DNode::m_deformationData
protected

Definition at line 232 of file Deformable1DNode.h.

◆ m_length

agx::Real agxModel::Deformable1DNode::m_length
protected

Definition at line 230 of file Deformable1DNode.h.

◆ m_maxLoad

agx::Vec2 agxModel::Tree::Branch::m_maxLoad
protectedinherited

Definition at line 257 of file agxModel/Tree.h.

◆ 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_parent

BranchObs agxModel::Tree::Branch::m_parent
protectedinherited

Definition at line 251 of file agxModel/Tree.h.

◆ m_rb

agx::RigidBodyRef agxModel::Tree::Branch::m_rb
protectedinherited

Definition at line 255 of file agxModel/Tree.h.

◆ m_refCount

AtomicValue agx::Referenced::m_refCount
mutableprotectedinherited

Definition at line 241 of file Referenced.h.

◆ m_segment

Segment agxModel::Deformable1DNode::m_segment
protected

Definition at line 233 of file Deformable1DNode.h.


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