 |
AGXDynamics
2.35.0.3
|
Go to the documentation of this file.
22 #define LINK_V2_SERIALIZATION_VERSION agx::UInt16( 37 )
26 class SimulationProxy;
57 INVALID_CONNECTION = 0xFF
85 agx::Bool findClosestIfLinkConnections =
false );
203 template<
typename T >
204 T* getAlgorithm()
const;
244 template<
typename Pred>
250 template<
typename Pred>
261 void debugRenderConnections()
const;
274 WinchState findWinchState()
const;
289 void initialize(
agxSDK::SimulationProxy* simulationProxy );
296 void setEnable(
agx::
Bool enable,
agxSDK::SimulationProxy* simulationProxy );
314 INITIALIZED = 1 << 0,
315 ENABLE_TOGGLED = 1 << 1
334 void collectGarbage();
362 friend class LinkController;
373 virtual void update( agxWire::WireParallelCallbacksHandler::CallbackTypes type,
agxSDK::SimulationProxy* simulationProxy );
454 void preChildrenUpdate();
460 void postChildrenUpdate();
465 template<
typename T >
471 template<
typename T >
477 template<
typename T >
503 enum State { IDLE = 0, UPDATING_CHILDREN = (1<<0) };
509 ChildrenContainer m_children;
510 ChildrenContainer m_removedChildren;
517 inline
void Link::Algorithm::onLinkEnable(
agx::
Bool ,
agxWire::Link* ,
agxSDK::SimulationProxy* ) {}
528 T* algorithm =
nullptr;
537 template<typename Pred>
541 ret.
reserve( m_connections.size() );
542 for (
agx::UInt i = 0, numConnections = m_connections.size(); i < numConnections; ++i )
543 if ( pred( m_connections[ i ] ) )
548 template<
typename Pred>
551 for (
agx::UInt i = 0, numConnections = m_connections.
size(); i < numConnections; ++i )
552 if ( pred( m_connections[ i ] ) )
553 return m_connections[ i ];
558 T* Link::Algorithm::find()
const
561 for (
agx::UInt i = 0; algorithm ==
nullptr && i < m_children.size(); ++i )
562 algorithm = m_children[ i ]->find<T>();
568 const T* Link::Algorithm::as()
const
570 return dynamic_cast<const T*
>( this );
574 T* Link::Algorithm::as()
576 return dynamic_cast<T*
>( this );
@ LINK
Link attached to another link.
void AGXCORE_EXPORT transform(void *target, const Format *targetFormat, const void *source, const Format *sourceFormat, size_t numElements)
Transform data between two buffers.
Object holding parameters, such as bend and twist stiffness, related to wire to link connections.
ILinkNode::ConnectionProperties m_defaultLinkConnectionProperties
agx::Vector< agxWire::ILinkNodeRef > ConnectionsContainer
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive.
The rigid body class, combining a geometric model and a frame of reference.
This class is an abstract base class for all classes that can be stored and retrieved from an Archive...
#define DOXYGEN_END_INTERNAL_BLOCK()
agx::Vector< agxWire::Link::AlgorithmRef > AlgorithmContainer
#define DOXYGEN_START_INTERNAL_BLOCK()
ConnectionType
Connection type of the wires connected to this link, i.e., if this link should be attached to begin o...
Algorithm()
Abstract class - protected constructor.
void reserve(size_t size)
Reserve capacity in the vector.
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
Interface and placeholder of controllers/helpers for wires.
AlgorithmContainer m_newlyAddedAlgorithms
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
#define AGXPHYSICS_EXPORT
InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...
Implements a Wire model with adaptive resolution.
agxWire::ILinkNode * findConnectingNode(Pred pred) const
size_t find(const T2 &element) const
Find the index to a matching element, return size() if not found.
Connecting nodes contains two nodes, one at center of mass and the other at the user defined position...
Class for writing serialized data in binary format to a stream.
ILinkNode::ConnectionProperties m_defaultWireConnectionProperties
Base class providing referencing counted objects.
#define AGX_DECLARE_POINTER_TYPES(type)
The base class for a constraint.
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Object that defines the relation between different types of wires (agxWire::Wire).
Winch object which works like agxWire::WireWinchController but enables the features of having stored,...
Interface class for nodes connected to links.
AlgorithmContainer m_algorithms
agx::Vector< agxWire::LinkRef > LinkConnectionsContainer
Interface class used by internal objects running in parallel.
WinchState
State when a link is interacting with a winch.
void push_back(const T2 &value)