Package org.robwork.sdurw_proximity
Class CollisionToleranceStrategy.CollisionToleranceStrategyFactory
- java.lang.Object
-
- org.robwork.sdurw_proximity.ExtensionPointCollisionToleranceStrategy
-
- org.robwork.sdurw_proximity.CollisionToleranceStrategy.CollisionToleranceStrategyFactory
-
- Enclosing class:
- CollisionToleranceStrategy
public static class CollisionToleranceStrategy.CollisionToleranceStrategyFactory extends ExtensionPointCollisionToleranceStrategy
A factory for a CollisionToleranceStrategy. This factory also defines an
ExtensionPoint.
Extensions providing a CollisionToleranceStrategy implementation can extend this factory
by registering the extension using the id "rw.proximity.CollisionToleranceStrategy".
Typically one or more of the following CollisionToleranceStrategy types will be
available:
- Bullet - rwlibs::proximitystrategies::ProximityStrategyBullet - Bullet Physics
- PQP - rwlibs::proximitystrategies::ProximityStrategyPQP - Proximity Query Package
-
-
Constructor Summary
Constructors Constructor Description CollisionToleranceStrategyFactory(long cPtr, boolean cMemoryOwn)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
delete()
static long
getCPtr(CollisionToleranceStrategy.CollisionToleranceStrategyFactory obj)
static vector_s
getStrategies()
Get the available strategies.static boolean
hasStrategy(java.lang.String strategy)
Check if strategy is available.static CollisionToleranceStrategyPtr
makeStrategy(java.lang.String strategy)
Create a new strategy.-
Methods inherited from class org.robwork.sdurw_proximity.ExtensionPointCollisionToleranceStrategy
getCPtr, getExtensionDescriptors, getExtensions, getId, getName, getSchema
-
-
-
-
Method Detail
-
getCPtr
public static long getCPtr(CollisionToleranceStrategy.CollisionToleranceStrategyFactory obj)
-
delete
public void delete()
- Overrides:
delete
in classExtensionPointCollisionToleranceStrategy
-
getStrategies
public static vector_s getStrategies()
Get the available strategies.- Returns:
- a vector of identifiers for strategies.
-
hasStrategy
public static boolean hasStrategy(java.lang.String strategy)
Check if strategy is available.- Parameters:
strategy
- [in] the name of the strategy.- Returns:
- true if available, false otherwise.
-
makeStrategy
public static CollisionToleranceStrategyPtr makeStrategy(java.lang.String strategy)
Create a new strategy.- Parameters:
strategy
- [in] the name of the strategy.- Returns:
- a pointer to a new CollisionToleranceStrategy.
-
-