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 );
215 agxWire::
Wire* findWire(agx::
UInt32 id) const;
221 agxWire::
Wire* findWire(const agxCollide::Geometry* geometry) 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();
346 WireParallelCallbacksHandlerFactoryRef m_parallelCallbacksFactory;
352 static WireController* s_instance;
357 return m_wires.
begin();
362 return m_wires.end();
WireIterator getEndWireIterator() const
agx::HashVector< agx::UInt32, agx::observer_ptr< agxWire::Wire > > IdWireContainer
void AGXPHYSICS_EXPORT shutdown()
Shutdown agx.
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.
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
agx::Vector< SimulationObsWirePtrContainerPair > SimplifiedWiresContainer
#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