74 EXPLICIT_ENABLE = (1<<0),
76 USE_DYNAMIC_CONTACTS = (1<<2),
77 DEFAULT = EXPLICIT_ENABLE
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;
301 friend class WireGeometryController;
302 friend class WireSimplifyController;
339 SINGLETON_CLASSNAME_METHOD();
346 WireParallelCallbacksHandlerFactoryRef m_parallelCallbacksFactory;
357 return m_wires.
begin();
362 return m_wires.end();
#define AGXPHYSICS_EXPORT
The geometry representation used by the collision detection engine.
Simulation is a class that bridges the collision space agxCollide::Space and the dynamic simulation s...
Overlaying object handling wires.
agx::Vector< SimulationObsWirePtrContainerPair > SimplifiedWiresContainer
void setEnableDynamicWireContactsGlobally(agx::Bool enable)
Force all wire contacts to be dynamic.
agxWire::WireHandler * getOrCreateWireHandler(agxSDK::Simulation *simulation)
agx::HashVector< agx::UInt32, agx::observer_ptr< agxWire::Wire > > IdWireContainer
agxWire::WireHandler * find(const agxSDK::Simulation *simulation)
static WireController * instance()
agx::SymmetricPair< agx::observer_ptr< agxWire::Wire > > WireWireSymmetricPair
State
Internal state handling.
const WireWireContainer & getEnabledWireWirePairs() const
Internal method.
agx::Vector< WireWireSymmetricPair > WireWireContainer
agx::Vector< WireHandlerRef > WireHandlerContainer
agxSDK::Simulation * find(agxWire::WireHandler *handler) const
agx::Bool getEnableDynamicWireContactsGlobally() const
std::pair< agxSDK::SimulationObserver, WireParallelCallbacksHandlerRef > SimulationObsWireParallelCallbacksHandlerRefPair
agx::UInt getNumWires() const
Can be used to iterate over all wires in a script language that e.g., not support iterators.
agx::Bool setEnableDynamicWireContacts(agxCollide::Geometry *geometry, agx::Bool enable)
Enable, or disable, the use of dynamic wire contact model against this geometry.
agx::Bool setEnableDynamicWireContacts(agx::RigidBody *rb, agx::Bool enable)
Enable, or disable, the use of dynamic wire contact model against this rigid body.
WireIterator getEndWireIterator() const
bool getEnableCollisions(const agxWire::Wire *wire1, const agxWire::Wire *wire2) const
bool isWireWireActive() const
agx::SetVector< agxWire::Wire * > WirePtrContainer
agx::Bool getEnableDynamicWireContacts(const agx::RigidBody *rb) const
agx::Vector< SimulationObsWireParallelCallbacksHandlerRefPair > WireParallelCallbacksHandlerContainer
agxWire::Wire * getWire(agx::UInt index) const
void removeParallelCallbackHandler(agxSDK::Simulation *simulation)
Removes object.
bool setEnableCollisions(agxWire::Wire *wire1, agxWire::Wire *wire2, bool enable)
Enable, or disable, collision detection and contacts between two wires.
agx::Bool getEnableDynamicWireContacts(const agxCollide::Geometry *geometry) const
std::pair< agxSDK::SimulationObserver, WirePtrContainer > SimulationObsWirePtrContainerPair
WirePtrContainer::const_iterator WireIterator
agxWire::WireParallelCallbacksHandler * getOrCreateWireParallelCallbacksHandler(agxSDK::Simulation *simulation)
Interface and placeholder of controllers/helpers for wires.
This class is a combined container which has the find complexity of a HashTable, deterministic iterat...
The rigid body class, combining a geometric model and a frame of reference.
VectorType::const_iterator const_iterator
Base class for Singletons that should have its shutdown called explicitly before exit of the applicat...
A std::pair, with both elements of the same type, and symmetric so (a, b) == (b, a)
#define DOXYGEN_END_INTERNAL_BLOCK()
#define DOXYGEN_START_INTERNAL_BLOCK()
This namespace consists of a set of classes for handling geometric intersection tests including boole...
The agxSDK namespace contain classes to bridge the collision detection system and the dynamical simul...
Implements a Wire model with adaptive resolution.
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
void AGXPHYSICS_EXPORT shutdown()
Shutdown agx.
std::recursive_mutex ReentrantMutex