74 EXPLICIT_ENABLE = (1<<0),
76 USE_DYNAMIC_CONTACTS = (1<<2),
77 DEFAULT = EXPLICIT_ENABLE
90 bool isWireWireActive()
const;
140 void setEnableDynamicWireContactsGlobally(
agx::Bool enable);
155 agx::Bool getEnableDynamicWireContactsGlobally()
const;
165 agxWire::WireParallelCallbacksHandler* getOrCreateWireParallelCallbacksHandler(
agxSDK::Simulation* simulation );
186 WireIterator getBeginWireIterator()
const;
191 WireIterator getEndWireIterator()
const;
207 const WireWireContainer& getEnabledWireWirePairs()
const;
226 bool add(
agxSDK::Simulation* simulation,
agxWire::WireHandler* wireHandler);
231 bool remove(
agxWire::WireHandler* wireHandler);
236 agx::
UInt getStateMask() const;
241 void setStateMask(
agx::
UInt stateMask );
247 void addState(
State state );
253 void removeState(
State state );
274 void registerParallelHandlerFactory(
agxWire::WireParallelCallbacksHandlerFactory* factory);
279 agxWire::WireParallelCallbacksHandlerFactory* getParallelHandlerFactory() const;
296 virtual ~WireController();
301 friend class WireGeometryController;
302 friend class WireSimplifyController;
307 void onCreate(
agxWire::Wire* wire );
312 void onAddNotification(
agxWire::Wire* wire );
317 void onDelete(
agxWire::Wire* wire );
322 void onRemoveNotification(
agxWire::Wire* wire );
327 void updateId(
agxWire::Wire* wire );
332 void onSimplify(
agxSDK::Simulation* simulation,
agxWire::Wire* wire );
337 void onUnsimplify(
agxSDK::Simulation* simulation,
agxWire::Wire* wire );
339 SINGLETON_CLASSNAME_METHOD();
342 WirePtrContainer m_wires;
343 WireWireContainer m_enabledWires;
344 IdWireContainer m_idWire;
345 WireHandlerContainer m_wireHandlers;
346 WireParallelCallbacksHandlerFactoryRef m_parallelCallbacksFactory;
347 WireParallelCallbacksHandlerContainer m_parallelCallbacksHandlers;
348 SimplifiedWiresContainer m_simplifiedWires;
352 static WireController* s_instance;
357 return m_wires.
begin();
362 return m_wires.end();
agx::HashVector< agx::UInt32, agx::observer_ptr< agxWire::Wire > > IdWireContainer
void AGXPHYSICS_EXPORT shutdown()
Shutdown of the AGX Dynamics API will be done when the number of shutdown matches the number of calls...
A std::pair, with both elements of the same type, and symmetric so (a, b) == (b, a) ...
This namespace consists of a set of classes for handling geometric intersection tests including boole...
agx::Vector< SimulationObsWireParallelCallbacksHandlerRefPair > WireParallelCallbacksHandlerContainer
#define AGXPHYSICS_EXPORT
agx::Vector< WireHandlerRef > WireHandlerContainer
agx::SetVector< agxWire::Wire *> WirePtrContainer
State
Internal state handling.
The geometry representation used by the collision detection engine.
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
agx::SymmetricPair< agx::observer_ptr< agxWire::Wire > > WireWireSymmetricPair
Interface and placeholder of controllers/helpers for wires.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Implements a Wire model with adaptive resolution.
std::pair< agxSDK::SimulationObserver, WirePtrContainer > SimulationObsWirePtrContainerPair
Overlaying object handling wires.
The rigid body class, combining a geometric model and a frame of reference.
AGXPHYSICS_EXPORT bool setEnableCollisions(agx::RigidBody *rb1, agx::RigidBody *rb2, bool enable)
Enable or disable the collision between all geometries in RigidBody rb1 and RigidBody rb2...
std::recursive_mutex ReentrantMutex
std::pair< agxSDK::SimulationObserver, WireParallelCallbacksHandlerRef > SimulationObsWireParallelCallbacksHandlerRefPair
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
WirePtrContainer::const_iterator WireIterator
WireIterator getEndWireIterator() const
agx::Vector< SimulationObsWirePtrContainerPair > SimplifiedWiresContainer
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
Base class for Singletons that should have its shutdown called explicitly before exit of the applicat...
agx::Vector< WireWireSymmetricPair > WireWireContainer