39 class LinkExecuteFilter;
40 class GeometryPropertyBoolFilter;
41 class RigidBodyPropertyBoolFilter;
58 void setTensionThreshold(
agx::Real tensionThreshold );
75 LinkObjectStabilizingAlgorithm();
80 virtual ~LinkObjectStabilizingAlgorithm();
86 virtual
void onLinkEnable(
agx::
Bool enable,
agxWire::
Link* link,
agxSDK::SimulationProxy* simulationProxy ) override;
91 virtual
void pre(
agxWire::
Link* link,
agxSDK::SimulationProxy* simulationProxy ) override;
96 virtual
void post(
agxWire::
Link* link,
agxSDK::SimulationProxy* simulationProxy ) override;
103 ConstraintContainer m_constraints;
167 if ( m_link ==
nullptr )
172 return firstIsLink ? matchOther( geometry2 ) : secondIsLink ? matchOther( geometry1 ) :
false;
198 : LinkExecuteFilter( link ), m_propertyName( propertyName ) {}
210 GeometryPropertyBoolFilter();
215 virtual ~GeometryPropertyBoolFilter();
223 return matchT( otherGeometry );
230 template<
typename T >
234 return obj !=
nullptr &&
235 obj->hasPropertyContainer() &&
236 obj->getPropertyContainer()->getPropertyBool( m_propertyName, propertyValue ) &&
263 : GeometryPropertyBoolFilter( propertyName, link ) {}
275 RigidBodyPropertyBoolFilter();
280 virtual ~RigidBodyPropertyBoolFilter();
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...
(Optional) Link algorithm that tries to stabilize the link when the link is in contact with an object...
agx::ref_ptr< GeometryPropertyBoolFilter > GeometryPropertyBoolFilterRef
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...
GeometryPropertyBoolFilter(const agx::String &propertyName, const agxWire::Link *link)
Construct matching filter given property-bool name and the link.
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_POINTER_TYPES(type)
virtual bool match(const agxCollide::GeometryContact &gc) const
Called when narrow phase tests have determined overlap (when we have detailed intersection between th...
RigidBodyPropertyBoolFilter()
Protected default constructor, used during restore.
GeometryPropertyBoolFilter()
Protected default constructor, used during restore.
The geometry representation used by the collision detection engine.
agx::String m_propertyName
const agxWire::Link * getLink() const
Namespace agx contains the dynamics/math part of the AGX Dynamics API.
Implements a Wire model with adaptive resolution.
agx::ref_ptr< ContactEventListener > ContactEventListenerRef
Smart pointer for handling referenced counted objects.
virtual bool matchOther(const agxCollide::Geometry *otherGeometry) const override
Match function.
Object that defines the relation between different types of wires (agxWire::Wire).
LinkExecuteFilter(const agxWire::Link *link)
Construct given link this algorithm belongs to.
virtual bool match(const agxCollide::Geometry *geometry1, const agxCollide::Geometry *geometry2) const override
Base match method which determines which geometry belongs to the link and who's not.
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Class for writing serialized data in binary format to a stream.
#define AGXSTREAM_DECLARE_ABSTRACT_SERIALIZABLE(T)
Use this in a pure abstract Serializable class to add the required methods Important: Use full namesp...
Algorithm()
Abstract class - protected constructor.
RigidBodyPropertyBoolFilter(const agx::String &propertyName, const agxWire::Link *link)
Construct matching filter given property-bool name and the link.
This namespace contain classes for streaming classes into archives, ASCII, binary for storage (serial...
agx::Bool matchT(const T *obj) const
Match function for either agxCollide::Geometry or agx::RigidBody.
ref_ptr< LockJoint > LockJointRef
agx::ref_ptr< RigidBodyPropertyBoolFilter > RigidBodyPropertyBoolFilterRef
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
#define DOXYGEN_END_INTERNAL_BLOCK()
agx::RigidBody * getRigidBody()
#define DOXYGEN_START_INTERNAL_BLOCK()