AGXDynamics  2.31.1.0
agxWire::StopNode Class Reference

Stop node, wire end node used by winches. More...

#include <Node.h>

+ Inheritance diagram for agxWire::StopNode:

Public Types

enum  StateInfo {
  STANDARD = 0, WAS_CONTACT = (1<< 0), IS_HIGH_RES = (1<< 1), IGNORE_BEND = (1<< 2),
  NO_LUMP_NEAR = (1<< 3), NO_CIRCLE_CONTACT = (1<< 4), GYPSY_CONTACT = (1<< 5), NO_MOVEMENT_RANGE = (1<< 6),
  NO_FRICTION = (1<< 7), SPLIT_ENABLED = (1<< 8), INSIDE_OBJECT = (1<< 9), WAS_CONTACT_LAST_TIMESTEP = (1<<10),
  PERMANENT_LUMP = (1<<11), REPLACE_SUPERBEND_WITH_BEND = (1<<12), LUMPED_NODE = (1<<13), LUMP_CONTACT = (1<<14),
  WW_STABILIZED = (1<<15)
}
 Internal state a node may have. More...
 
enum  Type {
  NOT_DEFINED = 0, EYE = (1<<0), MISSING = (1<<1), CONNECTING = (1<<2),
  FREE = (1<<3), CONTACT = (1<<4), BODY_FIXED = (1<<5), STOP = (1 << 6),
  SHAPE_CONTACT = (1<<7)
}
 The supported node types. More...
 

Public Member Functions

 StopNode (agx::RigidBody *rb, const agx::Vec3 &relativeTranslate)
 Construct a stop node (mostly used internally). More...
 
void addState (int state)
 Add state mask to the current state. 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::Real findSpeedAlongWire (const agxWire::Wire *wire) const
 Calculates the speed in which this eye node travels along a wire. More...
 
BodyFixedNode * getAsBodyFixed ()
 
const BodyFixedNode * getAsBodyFixed () const
 
ConnectingNode * getAsConnecting ()
 
const ConnectingNode * getAsConnecting () const
 
ContactNode * getAsContact ()
 
const ContactNode * getAsContact () const
 
EyeNode * getAsEye ()
 
const EyeNode * getAsEye () const
 
EyeNode * getAsEyeLineNode ()
 
const EyeNode * getAsEyeLineNode () const
 
FreeNode * getAsFree ()
 
const FreeNode * getAsFree () const
 
const ShapeContactNode * getAsShapeContact () const
 
ShapeContactNode * getAsShapeContact ()
 
StopNode * getAsStop ()
 
const StopNode * getAsStop () const
 
EyeNode * getChildNode ()
 
const EyeNode * getChildNode () const
 
const char * getClassName () const override
 
agx::Referenced * getCustomData () const
 
agx::Real getDistanceToChild () const
 
bool getEnableSerialization () const
 
bool getEnableUuidGeneration ()
 
bool getFixFrictionDirection () const
 
NodeFrame * getFrame ()
 
const NodeFrame * getFrame () const
 
HighResolutionRange * getHighResolutionRange ()
 
const HighResolutionRange * getHighResolutionRange () const
 
bool getIgnoreBend () const
 
agx::UInt32 getIndex () const
 This index is given at creation of this object. More...
 
agx::Vec3 getIntegratedPosition (agx::Real t, bool onlyTranslational=true) const
 Calculates the position of this node at time t from now. More...
 
NodeMaterial * getMaterial ()
 
const NodeMaterial * getMaterial () const
 
NodeFrame & getNodeFrame ()
 
Type getNodeType () const
 
agx::Vec3 getNormal () const
 
EyeNode * getParentNode () const
 
const agx::Vec3 & getPosition () const
 
agx::Real getRadius () const
 
int getReferenceCount () const
 
bool getReverseAdd () const
 
agx::RigidBody * getRigidBody () const
 
int getState () const
 
agxStream::StorageAgent * getStorageAgent () const override
 
const agx::Vec3 & getTranslate () const
 
Node::Type getType () const
 
agx::Uuid getUuid () const
 
agx::Vec3 getVectorToChild () const
 
virtual agx::Vec3 getVelocity () const
 
const agx::Vec3 & getWorldPosition () const
 
template<typename T >
bool is () const
 Subclass test. More...
 
bool isFinished () const
 
agx::Bool isType (agx::Int typeMask) const
 Test several types, e.g., node->isType( agxWire::Node::EYE | agxWire::Node::CONNECTING ). 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 removeState (int state)
 Remove state mask from the current state. More...
 
virtual void restore (agxStream::InputArchive &in) override
 
virtual void reverse () override
 Only for internal use! Reverse all direction dependent internal structures. More...
 
void setCustomData (agx::Referenced *customData)
 Set custom data to this node. 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 setFixFrictionDirection (bool fixFrictionDirection, bool goForward)
 Assign fixed friction direction for this eye node. More...
 
void setIgnoreBend (bool ignoreBend)
 Flag if bend constraints should be ignored over this node. More...
 
void setNormal (agx::Vec3 normal)
 Assign new value for the normal. More...
 
void setRadius (agx::Real radius)
 Set the radius of this eye node. More...
 
void setReverseAdd (bool reverseAdd)
 If this node has a child node, this parameter controls in which order the nodes (parent and child) gets added/inserted into the wire. More...
 
virtual void setTranslate (const agx::Vec3 &translate)
 Set the relative translate of this node in parent frame (body frame if body is set, otherwise world frame) More...
 
void setTranslate (agx::Real x, agx::Real y, agx::Real z)
 Set the relative translate of this node in parent frame (body frame if body is set, otherwise world frame) More...
 
void setUuid (const agx::Uuid &uuid)
 Explicitly set a Uuid on a serializable object. More...
 
void setVectorToChild (const agx::Vec3 &vec)
 set the relative translation from this node to its child node (if child present) More...
 
virtual void store (agxStream::OutputArchive &out) const override
 
void transform ()
 Transforms the frame. 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...
 

Static Public Member Functions

static agxStream::Serializable * create ()
 
static agxStream::Serializable * create (agxStream::InputArchive &)
 
static int findNodeState (const agxCollide::Geometry *geometry)
 Class used to track nodes when CCD is used. More...
 
static const char * getConstructClassId ()
 
static agx::Bool isContactType (const Node *node)
 
static agx::Bool isContactType (const Node::Type &type)
 
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

 StopNode ()
 Protected default constructor. More...
 
virtual ~StopNode ()
 Destructor. More...
 
void allocateObserverVector () const
 
void create (agx::RigidBody *rb, const agx::Vec3 &relativeTranslate, const agx::Vec3 &extraEyeVector, agx::Real radius)
 Create method used by all public constructors. More...
 
void create (agx::RigidBody *rb, const agx::Vec3 &relativeTranslate)
 Create method used by public constructors. More...
 
void deleteUsingDeleteHandler () const
 
void generateUuid ()
 

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

BodyFixedNode * m_bodyFixed
 
agx::ref_ptr< EyeNode > m_childNode
 
ConnectingNode * m_connecting
 
ContactNode * m_contact
 
ContactForce m_contactForce
 
agx::ref_ptr< agx::Referenced > m_customData
 
EyeNode * m_eye
 
FreeNode * m_free
 
HighResolutionRange m_highResolutionRange
 
NodeMaterial m_material
 
Mutex m_mutex
 
NodeFrame m_nf
 
int m_nodeState
 
agx::Vec3 m_normal
 
ObserverContainer m_observers
 
agx::observer_ptr< Node > m_parent
 
agx::Real m_radius
 
AtomicValue m_refCount
 
agx::Real m_referenceDistance
 
bool m_reverseAdd
 
ShapeContactNode * m_shapeContact
 
SpatialState m_spatialState
 
StopNode * m_stop
 
StoreRestoreData m_storeRestoreData
 
Tension m_tension
 
Type m_type
 

Detailed Description

Stop node, wire end node used by winches.

So consider this node as internal.

Definition at line 1657 of file agxWire/Node.h.

Member Enumeration Documentation

◆ StateInfo

enum agxWire::Node::StateInfo
inherited

Internal state a node may have.

Enumerator
STANDARD 

Default state.

WAS_CONTACT 

If this node was a contact, it may live independent of the resolution.

IS_HIGH_RES 

States if this node is a high resolution node.

IGNORE_BEND 

States if the bend constraint should be forced to be disable over this node.

NO_LUMP_NEAR 

If set, lumped/mass elements may not be closer than a predefined distance.

NO_CIRCLE_CONTACT 

States if this node can live on a circle (e.g., disc area on a cylinder).

GYPSY_CONTACT 

Internal state.

NO_MOVEMENT_RANGE 

States if this node can move along a contact edge or not.

NO_FRICTION 

No friction constraints may be created from this node.

SPLIT_ENABLED 

Internal state.

If set, this node splits the wire.

INSIDE_OBJECT 

Internal state.

WAS_CONTACT_LAST_TIMESTEP 

If this node was contact last time step, it may not be removed for stability reasons.

PERMANENT_LUMP 

This node has a permanent position in the wire and can not be removed by the wire it self.

REPLACE_SUPERBEND_WITH_BEND 

Internal state.

LUMPED_NODE 

Set if this node is an internal mass node of a wire.

LUMP_CONTACT 

Internal state.

WW_STABILIZED 

Internal state.

Definition at line 535 of file agxWire/Node.h.

◆ Type

enum agxWire::Node::Type
inherited

The supported node types.

Enumerator
NOT_DEFINED 

Default type is undefined.

EYE 

Eye nodes are nodes that slides along the wire.

MISSING 

Node not used.

CONNECTING 

Connecting nodes contains two nodes, one at center of mass and the other at the user defined position.

Used to handle heavy loads and carries special constraints for stability.

FREE 

Free nodes are used to route the wire.

CONTACT 

Contact nodes may appear during contact with other objects.

BODY_FIXED 

Body fixed node has a fixed position relative a parent (body or world).

STOP 

Stop nodes are an internal node used round winches.

SHAPE_CONTACT 

Stop nodes are an internal node used round winches.

Definition at line 517 of file agxWire/Node.h.

Constructor & Destructor Documentation

◆ StopNode() [1/2]

agxWire::StopNode::StopNode ( agx::RigidBody *  rb,
const agx::Vec3 &  relativeTranslate 
)

Construct a stop node (mostly used internally).

A stop node is a sliding node but will in some cases be handled in a separate way - for example to define begin or end of a wire.

Parameters
rb- body this node should be attached to
relativeTranslate- model frame offset

◆ StopNode() [2/2]

agxWire::StopNode::StopNode ( )
protected

Protected default constructor.

◆ ~StopNode()

virtual agxWire::StopNode::~StopNode ( )
protectedvirtual

Destructor.

Member Function Documentation

◆ addState()

void agxWire::Node::addState ( int  state)
inherited

Add state mask to the current state.

Parameters
state- state to add

◆ 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

◆ create() [1/4]

void agxWire::EyeNode::create ( agx::RigidBody *  rb,
const agx::Vec3 &  relativeTranslate,
const agx::Vec3 &  extraEyeVector,
agx::Real  radius 
)
protectedinherited

Create method used by all public constructors.

Parameters
rb- the body
relativeTranslate- model frame offset
extraEyeVector- if |v| > 0 an extra eye will be created
radius- radius

◆ create() [2/4]

static agxStream::Serializable* agxWire::StopNode::create ( agxStream::InputArchive &  )
inlinestatic

Definition at line 1695 of file agxWire/Node.h.

◆ create() [3/4]

static agxStream::Serializable* agxWire::StopNode::create ( )
inlinestatic

Definition at line 1695 of file agxWire/Node.h.

◆ create() [4/4]

void agxWire::StopNode::create ( agx::RigidBody *  rb,
const agx::Vec3 &  relativeTranslate 
)
protected

Create method used by public constructors.

Parameters
rb- the body
relativeTranslate- model frame offset

◆ deleteUsingDeleteHandler()

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

◆ findNodeState()

static int agxWire::Node::findNodeState ( const agxCollide::Geometry *  geometry)
staticinherited

Class used to track nodes when CCD is used.

Finds initial node state given geometry.

Parameters
geometry- the geometry
Returns
the node state

◆ findSpeedAlongWire()

agx::Real agxWire::EyeNode::findSpeedAlongWire ( const agxWire::Wire *  wire) const
inherited

Calculates the speed in which this eye node travels along a wire.

Parameters
wire- the wire containing this eye node
Returns
speed of this node along wire (0 if not on wire or wire not initialized)

◆ generateUuid()

void agxStream::Serializable::generateUuid ( )
protectedinherited

◆ getAsBodyFixed() [1/2]

BodyFixedNode * agxWire::Node::getAsBodyFixed ( )
inherited
Returns
this node as a body fixed node (0 if this isn't a body fixed node)

Definition at line 2129 of file agxWire/Node.h.

◆ getAsBodyFixed() [2/2]

const BodyFixedNode * agxWire::Node::getAsBodyFixed ( ) const
inherited
Returns
this node as a body fixed node (0 if this isn't a body fixed node)

Definition at line 2134 of file agxWire/Node.h.

◆ getAsConnecting() [1/2]

ConnectingNode * agxWire::Node::getAsConnecting ( )
inherited
Returns
this node as connecting node (0 if this isn't a connecting node)

Definition at line 2149 of file agxWire/Node.h.

◆ getAsConnecting() [2/2]

const ConnectingNode * agxWire::Node::getAsConnecting ( ) const
inherited
Returns
this node as connecting node (0 if this isn't a connecting node)

Definition at line 2154 of file agxWire/Node.h.

◆ getAsContact() [1/2]

ContactNode * agxWire::Node::getAsContact ( )
inherited
Returns
this node as a contact node (0 if this isn't a contact node)

Definition at line 2169 of file agxWire/Node.h.

◆ getAsContact() [2/2]

const ContactNode * agxWire::Node::getAsContact ( ) const
inherited
Returns
this node as a contact node (0 if this isn't a contact node)

Definition at line 2174 of file agxWire/Node.h.

◆ getAsEye() [1/2]

EyeNode * agxWire::Node::getAsEye ( )
inherited
Returns
this node as eye node (0 if this isn't an eye node)

Definition at line 2139 of file agxWire/Node.h.

◆ getAsEye() [2/2]

const EyeNode * agxWire::Node::getAsEye ( ) const
inherited
Returns
this node as eye node (0 if this isn't an eye node)

Definition at line 2144 of file agxWire/Node.h.

◆ getAsEyeLineNode() [1/2]

EyeNode* agxWire::Node::getAsEyeLineNode ( )
inherited
Deprecated:
Deprecated interface.
Returns
node as eye node (0 if this isn't an eye node)

◆ getAsEyeLineNode() [2/2]

const EyeNode* agxWire::Node::getAsEyeLineNode ( ) const
inherited
Deprecated:
Deprecated interface.
Returns
node as eye node (0 if this isn't an eye node)

◆ getAsFree() [1/2]

FreeNode* agxWire::Node::getAsFree ( )
inherited
Returns
this node as free node (0 if this isn't an free node)

◆ getAsFree() [2/2]

const FreeNode* agxWire::Node::getAsFree ( ) const
inherited
Returns
this node as free node (0 if this isn't an free node)

◆ getAsShapeContact() [1/2]

const ShapeContactNode * agxWire::Node::getAsShapeContact ( ) const
inherited
Returns
this node as a shape contact node (0 if this isn't a contact node)

Definition at line 2179 of file agxWire/Node.h.

◆ getAsShapeContact() [2/2]

ShapeContactNode * agxWire::Node::getAsShapeContact ( )
inherited
Returns
this node as a shape contact node (0 if this isn't a contact node)

Definition at line 2184 of file agxWire/Node.h.

◆ getAsStop() [1/2]

StopNode * agxWire::Node::getAsStop ( )
inherited
Returns
this node as a stop node (0 if this isn't a stop node)

Definition at line 2159 of file agxWire/Node.h.

◆ getAsStop() [2/2]

const StopNode * agxWire::Node::getAsStop ( ) const
inherited
Returns
this node as a stop node (0 if this isn't a stop node)

Definition at line 2164 of file agxWire/Node.h.

◆ getChildNode() [1/2]

EyeNode* agxWire::EyeNode::getChildNode ( )
inherited
Returns
child node if this node carries one

◆ getChildNode() [2/2]

const EyeNode* agxWire::EyeNode::getChildNode ( ) const
inherited
Returns
child node if this node carries one

◆ getClassName()

const char* agxWire::StopNode::getClassName ( ) const
inlineoverridevirtual
Returns
the class name of this class.

Reimplemented from agxWire::EyeNode.

Definition at line 1695 of file agxWire/Node.h.

◆ getConstructClassId()

static const char* agxWire::StopNode::getConstructClassId ( )
inlinestatic

Definition at line 1695 of file agxWire/Node.h.

◆ getCustomData()

agx::Referenced* agxWire::Node::getCustomData ( ) const
inherited
Returns
custom data

◆ getDeleteHandler()

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

◆ getDistanceToChild()

agx::Real agxWire::EyeNode::getDistanceToChild ( ) const
inherited
Returns
the distance from this node to its child node (if child present)

◆ 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

◆ getFixFrictionDirection()

bool agxWire::EyeNode::getFixFrictionDirection ( ) const
inherited
Returns
true if this eye has fixed friction direction enabled

◆ getFrame() [1/2]

NodeFrame * agxWire::Node::getFrame ( )
inherited
Returns
this nodes frame

Definition at line 2109 of file agxWire/Node.h.

Referenced by agxWire::findPointOnWire().

◆ getFrame() [2/2]

const NodeFrame * agxWire::Node::getFrame ( ) const
inherited
Returns
this nodes frame

Definition at line 2114 of file agxWire/Node.h.

◆ getHighResolutionRange() [1/2]

HighResolutionRange* agxWire::Node::getHighResolutionRange ( )
inherited
Returns
the high resolution range to control dynamic, or variable, node density in a wire

◆ getHighResolutionRange() [2/2]

const HighResolutionRange* agxWire::Node::getHighResolutionRange ( ) const
inherited
Returns
the high resolution range to control dynamic, or variable, node density in a wire

◆ getIgnoreBend()

bool agxWire::Node::getIgnoreBend ( ) const
inherited
Returns
true if bend should be ignored over this node

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

◆ getIntegratedPosition()

agx::Vec3 agxWire::Node::getIntegratedPosition ( agx::Real  t,
bool  onlyTranslational = true 
) const
inherited

Calculates the position of this node at time t from now.

Parameters
t- delta time from now
onlyTranslational- if true (default) the angular velocity of the body will not be taken into account
Returns
the world position of this node at current time + t
Note
The position gets less and less accurate for delta times larger than the time step.

◆ getMaterial() [1/2]

NodeMaterial* agxWire::Node::getMaterial ( )
inherited
Returns
the material

◆ getMaterial() [2/2]

const NodeMaterial* agxWire::Node::getMaterial ( ) const
inherited
Returns
the material

◆ getNodeFrame()

NodeFrame& agxWire::Node::getNodeFrame ( )
inherited
Deprecated:
Deprecated interface.
See also
getFrame
Returns
this nodes frame

◆ getNodeType()

Type agxWire::Node::getNodeType ( ) const
inherited
Deprecated:
Deprecated interface.
See also
getType
Returns
the type of this node

◆ getNormal()

agx::Vec3 agxWire::StopNode::getNormal ( ) const
Returns
the current normal

◆ getParentNode()

EyeNode* agxWire::EyeNode::getParentNode ( ) const
inherited
Returns
the parent node if this is a child

◆ getPosition()

const agx::Vec3& agxWire::Node::getPosition ( ) const
inherited
Deprecated:
Deprecated interface.

◆ getRadius()

agx::Real agxWire::EyeNode::getRadius ( ) const
inherited
Returns
the radius of this eye node (default 0)

◆ getReferenceCount()

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

◆ getReverseAdd()

bool agxWire::EyeNode::getReverseAdd ( ) const
inherited
Returns
true if reverse add is enabled

◆ getRigidBody()

agx::RigidBody * agxWire::Node::getRigidBody ( ) const
inherited
Returns
rigid body (0 if none) of this node

Definition at line 2124 of file agxWire/Node.h.

References agxWire::NodeFrame::getRigidBody().

◆ getState()

int agxWire::Node::getState ( ) const
inherited
Returns
the current state mask

◆ getStorageAgent()

agxStream::StorageAgent* agxWire::StopNode::getStorageAgent ( ) const
inlineoverridevirtual
Returns
the storage agent

Reimplemented from agxWire::EyeNode.

Definition at line 1695 of file agxWire/Node.h.

◆ getTranslate()

const agx::Vec3& agxWire::Node::getTranslate ( ) const
inherited
Returns
the original relative translate in the parent frame (if no body, world frame otherwise body frame)

◆ getType()

Node::Type agxWire::Node::getType ( ) const
inherited
Returns
the type of this node

Definition at line 2099 of file agxWire/Node.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().

◆ getVectorToChild()

agx::Vec3 agxWire::EyeNode::getVectorToChild ( ) const
inherited
Returns
the relative translation from this node to its child node (if child present)

◆ getVelocity()

virtual agx::Vec3 agxWire::Node::getVelocity ( ) const
virtualinherited
Returns
the velocity of this node

Reimplemented in agxWire::ShapeContactNode.

◆ getWorldPosition()

const agx::Vec3 & agxWire::Node::getWorldPosition ( ) const
inherited
Returns
the world position of this node

Definition at line 2119 of file agxWire/Node.h.

References agxWire::NodeFrame::getWorldPosition().

◆ is()

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

◆ isContactType() [1/2]

static agx::Bool agxWire::Node::isContactType ( const Node *  node)
staticinherited

◆ isContactType() [2/2]

static agx::Bool agxWire::Node::isContactType ( const Node::Type &  type)
staticinherited

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

◆ isType()

agx::Bool agxWire::Node::isType ( agx::Int  typeMask) const
inherited

Test several types, e.g., node->isType( agxWire::Node::EYE | agxWire::Node::CONNECTING ).

Returns
true if the type mask matches this nodes type

Definition at line 2104 of file agxWire/Node.h.

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

◆ removeState()

void agxWire::Node::removeState ( int  state)
inherited

Remove state mask from the current state.

Parameters
state- state to remove

◆ restore()

virtual void agxWire::StopNode::restore ( agxStream::InputArchive &  in)
overridevirtual

Reimplemented from agxWire::EyeNode.

◆ reverse()

virtual void agxWire::EyeNode::reverse ( )
overridevirtualinherited

Only for internal use! Reverse all direction dependent internal structures.

Reimplemented from agxWire::Node.

◆ setCustomData()

void agxWire::Node::setCustomData ( agx::Referenced *  customData)
inherited

Set custom data to this node.

Parameters
customData- custom data

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

◆ setFixFrictionDirection()

void agxWire::EyeNode::setFixFrictionDirection ( bool  fixFrictionDirection,
bool  goForward 
)
inherited

Assign fixed friction direction for this eye node.

This is usually used for eye nodes with infinite friction.

Parameters
fixFrictionDirection- true to enable fixed friction direction
goForward- true if the friction constraints should be attached before this node, false means after

◆ setIgnoreBend()

void agxWire::Node::setIgnoreBend ( bool  ignoreBend)
inherited

Flag if bend constraints should be ignored over this node.

◆ setNormal()

void agxWire::StopNode::setNormal ( agx::Vec3  normal)

Assign new value for the normal.

Note
This will not affect the translate of this node.

◆ setRadius()

void agxWire::EyeNode::setRadius ( agx::Real  radius)
inherited

Set the radius of this eye node.

Parameters
radius- new radius (default 0)

◆ setReverseAdd()

void agxWire::EyeNode::setReverseAdd ( bool  reverseAdd)
inherited

If this node has a child node, this parameter controls in which order the nodes (parent and child) gets added/inserted into the wire.

Default is that the parent node gets added before the child node.

Parameters
reverseAdd- if true, this child node will be added/inserted before the parent node

◆ setTranslate() [1/2]

virtual void agxWire::Node::setTranslate ( const agx::Vec3 &  translate)
virtualinherited

Set the relative translate of this node in parent frame (body frame if body is set, otherwise world frame)

Reimplemented in agxWire::ContactNode.

◆ setTranslate() [2/2]

void agxWire::Node::setTranslate ( agx::Real  x,
agx::Real  y,
agx::Real  z 
)
inherited

Set the relative translate of this node in parent frame (body frame if body is set, otherwise world frame)

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

◆ setVectorToChild()

void agxWire::EyeNode::setVectorToChild ( const agx::Vec3 &  vec)
inherited

set the relative translation from this node to its child node (if child present)

◆ store()

virtual void agxWire::StopNode::store ( agxStream::OutputArchive &  out) const
overridevirtual

Reimplemented from agxWire::EyeNode.

◆ transform()

void agxWire::Node::transform ( )
inherited

Transforms the frame.

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

◆ ValidateCast()

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

Member Data Documentation

◆ m_bodyFixed

BodyFixedNode* agxWire::Node::m_bodyFixed
protectedinherited

Definition at line 1141 of file agxWire/Node.h.

◆ m_childNode

agx::ref_ptr< EyeNode > agxWire::EyeNode::m_childNode
protectedinherited

Definition at line 1543 of file agxWire/Node.h.

◆ m_connecting

ConnectingNode* agxWire::Node::m_connecting
protectedinherited

Definition at line 1143 of file agxWire/Node.h.

◆ m_contact

ContactNode* agxWire::Node::m_contact
protectedinherited

Definition at line 1145 of file agxWire/Node.h.

◆ m_contactForce

ContactForce agxWire::Node::m_contactForce
protectedinherited

Definition at line 1136 of file agxWire/Node.h.

◆ m_customData

agx::ref_ptr< agx::Referenced > agxWire::Node::m_customData
protectedinherited

Definition at line 1138 of file agxWire/Node.h.

◆ m_eye

EyeNode* agxWire::Node::m_eye
protectedinherited

Definition at line 1142 of file agxWire/Node.h.

◆ m_free

FreeNode* agxWire::Node::m_free
protectedinherited

Definition at line 1140 of file agxWire/Node.h.

◆ m_highResolutionRange

HighResolutionRange agxWire::Node::m_highResolutionRange
protectedinherited

Definition at line 1132 of file agxWire/Node.h.

◆ m_material

NodeMaterial agxWire::Node::m_material
protectedinherited

Definition at line 1133 of file agxWire/Node.h.

◆ m_mutex

Mutex agx::Referenced::m_mutex
mutableprotectedinherited

Definition at line 240 of file Referenced.h.

◆ m_nf

NodeFrame agxWire::Node::m_nf
protectedinherited

Definition at line 1130 of file agxWire/Node.h.

◆ m_nodeState

int agxWire::Node::m_nodeState
protectedinherited

Definition at line 1134 of file agxWire/Node.h.

◆ m_normal

agx::Vec3 agxWire::EyeNode::m_normal
protectedinherited

Definition at line 1546 of file agxWire/Node.h.

◆ m_observers

ObserverContainer agx::Referenced::m_observers
mutableprotectedinherited

Definition at line 239 of file Referenced.h.

◆ m_parent

agx::observer_ptr< Node > agxWire::Node::m_parent
protectedinherited

Definition at line 1151 of file agxWire/Node.h.

◆ m_radius

agx::Real agxWire::EyeNode::m_radius
protectedinherited

Definition at line 1545 of file agxWire/Node.h.

◆ m_refCount

AtomicValue agx::Referenced::m_refCount
mutableprotectedinherited

Definition at line 241 of file Referenced.h.

◆ m_referenceDistance

agx::Real agxWire::StopNode::m_referenceDistance
protected

Definition at line 1716 of file agxWire/Node.h.

◆ m_reverseAdd

bool agxWire::EyeNode::m_reverseAdd
protectedinherited

Definition at line 1544 of file agxWire/Node.h.

◆ m_shapeContact

ShapeContactNode* agxWire::Node::m_shapeContact
protectedinherited

Definition at line 1146 of file agxWire/Node.h.

◆ m_spatialState

SpatialState agxWire::Node::m_spatialState
protectedinherited

Definition at line 1149 of file agxWire/Node.h.

◆ m_stop

StopNode* agxWire::Node::m_stop
protectedinherited

Definition at line 1144 of file agxWire/Node.h.

◆ m_storeRestoreData

StoreRestoreData agxWire::Node::m_storeRestoreData
protectedinherited

Definition at line 1148 of file agxWire/Node.h.

◆ m_tension

Tension agxWire::Node::m_tension
protectedinherited

Definition at line 1135 of file agxWire/Node.h.

◆ m_type

Type agxWire::Node::m_type
protectedinherited

Definition at line 1131 of file agxWire/Node.h.


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