Package org.robwork.sdurwsim
Class PhysicsEnginePtr
- java.lang.Object
-
- org.robwork.sdurwsim.PhysicsEnginePtr
-
public class PhysicsEnginePtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description PhysicsEnginePtr()
Default constructor yielding a NULL-pointer.PhysicsEnginePtr(long cPtr, boolean cMemoryOwn)
PhysicsEnginePtr(PhysicsEngine ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
Method Summary
-
-
-
Constructor Detail
-
PhysicsEnginePtr
public PhysicsEnginePtr(long cPtr, boolean cMemoryOwn)
-
PhysicsEnginePtr
public PhysicsEnginePtr()
Default constructor yielding a NULL-pointer.
-
PhysicsEnginePtr
public PhysicsEnginePtr(PhysicsEngine ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(PhysicsEnginePtr obj)
-
delete
public void delete()
-
deref
public PhysicsEngine deref()
The pointer stored in the object.
-
__ref__
public PhysicsEngine __ref__()
Dereferencing operator.
-
getDeref
public PhysicsEngine getDeref()
Member access operator.
-
equals
public boolean equals(PhysicsEngine p)
-
isShared
public boolean isShared()
check if this Ptr has shared ownership or none
ownership- Returns:
- true if Ptr has shared ownership, false if it has no ownership.
-
isNull
public boolean isNull()
checks if the pointer is null- Returns:
- Returns true if the pointer is null
-
load
public void load(DynamicWorkCellPtr dwc)
-
setContactDetector
public boolean setContactDetector(ContactDetectorPtr detector)
-
step
public void step(double dt, State state)
-
resetScene
public void resetScene(State state)
-
initPhysics
public void initPhysics(State state)
-
exitPhysics
public void exitPhysics()
-
getTime
public double getTime()
-
setEnabled
public void setEnabled(BodyPtr body, boolean enabled)
-
setDynamicsEnabled
public void setDynamicsEnabled(BodyPtr body, boolean enabled)
-
getPropertyMap
public PropertyMap getPropertyMap()
-
emitPropertyChanged
public void emitPropertyChanged()
-
addController
public void addController(SimulatedControllerPtr controller)
-
removeController
public void removeController(SimulatedControllerPtr controller)
-
addDevice
public void addDevice(DynamicDevicePtr dev, State state)
-
addSensor
public void addSensor(SimulatedSensorPtr sensor, State state)
-
removeSensor
public void removeSensor(SimulatedSensorPtr sensor)
-
getSensors
public SWIGTYPE_p_std__vectorT_rw__core__PtrT_rwlibs__simulation__SimulatedSensor_t_t getSensors()
-
-