33 class WireDistanceCompositeConstraint;
34 class WireGeometryController;
35 class WireWireContactConstraint;
36 typedef WireWireContactConstraint* WireWireContactConstraintPtr;
37 class WireContactConstraint;
38 typedef WireContactConstraint* WireContactConstraintPtr;
39 class WireSegmentContactConstraint;
40 typedef WireSegmentContactConstraint* WireSegmentContactConstraintPtr;
41 class WireContactSegment;
47 FACE_CONTACT = (1<<0),
49 SPHERE_CONTACT = (1<<2),
50 SPHERE_CONTACT_BEGIN = (1<<3),
51 SPHERE_CONTACT_END = (1<<4),
52 OLD_CONTACT_MODEL = (1<<5)
74 #if HASH_FOR_WIRE == HASH_NEW
79 #elif HASH_FOR_WIRE == HASH_OLD
103 bool handle( agxWire::WireDistanceCompositeConstraint* wire1, agxWire::WireGeometryController* wire1GeometryController,
const agxCollide::Geometry* wire1Geometry, agxWire::WireDistanceCompositeConstraint* wire2, agxWire::WireGeometryController* wire2GeometryController,
const agxCollide::Geometry* wire2Geometry,
agxCollide::GeometryContact* geometryContact );
115 void onRemoveNotification( agxWire::WireDistanceCompositeConstraint* wire );
125 void executeCallback( agxWire::WireParallelCallbacksHandler::CallbackTypes type );
128 virtual ~WireHandler();
135 friend class WireContactSegment;
142 void remove(
agxWire::Node* node, agxWire::WireDistanceCompositeConstraint* wire );
170 agxWire::WireWireContactConstraintPtr getConstraint( agxWire::WireHandler::WireWireKey key )
const;
180 agxWire::WireSegmentContactConstraintPtr getConstraint(
const agxWire::WireContactSegment& segment,
const agxCollide::Geometry* geometry )
const;
185 WireContactConstraintPtrList* getConstraints(
agxWire::Node* node )
const;
191 void add( agxWire::WireWireContactConstraintPtr constraint );
197 void add( agxWire::WireContactConstraintPtr constraint );
203 void add( agxWire::WireSegmentContactConstraintPtr constraint );
208 void remove( agxWire::WireWireContactConstraintPtr constraint );
213 void remove( agxWire::WireContactConstraintPtr constraint );
218 void remove( agxWire::WireSegmentContactConstraintPtr constraint );
224 void collide( agxWire::WireContactSegment& contactSegment1, agxWire::WireContactSegment& contactSegment2,
agx::Real32 normalScale );
231 void createOrUpdateConstraint( agxWire::WireContactSegment& contactSegment1, agxWire::WireContactSegment& contactSegment2,
agx::Real32 normalScale );
233 void createOrUpdateConstraint( agxWire::WireContactSegment& contactSegment,
agxCollide::Geometry* otherGeometry,
agx::Real32 normalScale,
bool changeNodeType =
true );
245 void handleCallback( WireContactUpdateCallback wireContactUpdater, WireSegmentContactUpdateCallback wireSegmentContactUpdater, WireWireContactUpdateCallback wireWireContactUpdater );
247 agxWire::WireWireContactConstraintPtr getNewWireWireContactConstraint();
248 void returnConstraint( agxWire::WireWireContactConstraintPtr constraint );
250 agxWire::WireContactConstraintPtr getNewWireContactConstraint();
251 void returnConstraint( agxWire::WireContactConstraintPtr constraint );
253 agxWire::WireSegmentContactConstraintPtr getNewWireSegmentContactConstraint();
254 void returnConstraint( agxWire::WireSegmentContactConstraintPtr constraint );
256 void expand( WireWireContactConstraintPtrContainer& constraints,
agx::UInt numElements )
const;
257 void expand( WireContactConstraintPtrContainer& constraints,
agx::UInt numElements )
const;
258 void expand( WireSegmentContactConstraintPtrContainer& constraints,
agx::UInt numElements )
const;
263 WireWireContactConstraintPtrContainer m_wireWireContactConstraintPool;
264 WireContactConstraintPtrContainer m_wireContactConstraintPool;
265 WireSegmentContactConstraintPtrContainer m_wireSegmentContactConstraintPool;
266 WireWireKeyWireWireContactConstraintPtrTable m_nodesToWireWireContactConstraint;
267 NodePtrWireContactConstraintPtrTable m_nodeToWireContactConstraint;
268 NodePtrPairWireSegmentContactConstraintPtrTable m_nodesToWireSegmentContactConstraint;
272 NodePtrUIntTable m_nodeCounter;
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXPHYSICS_EXPORT
The geometry representation used by the collision detection engine.
virtual void addNotification()
Called when this listener is added to the simulation.
virtual void removeNotification()
Called when this listener is removed from the simulation.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Derive from this class to implement a listener for simulation step events.
virtual void preCollide(const agx::TimeStamp &time)
Called before collision detection is performed in the simulation Implement this method in the derived...
virtual void pre(const agx::TimeStamp &time)
Called before a step is taken in the simulation Implement this method in the derived class to get cal...
virtual void post(const agx::TimeStamp &time)
Called after a step is taken in the simulation Implement this method in the derived class to get call...
Class defining a node that is part of a wire.
Inheritance with partial specialization due to bug with ref_ptr containers.
Inheritance with partial specialization due to bug with ref_ptr containers.
A std::pair, with both elements of the same type, and symmetric so (a, b) == (b, a)
Vector containing 'raw' data.
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
AGXTERRAIN_EXPORT void clear()
Implements a Wire model with adaptive resolution.
agx::SymmetricPair< agxWire::Node * > SymmetricNodePtrPair