Package org.robwork.sdurw_simulation
Class SimulatedScanner2DCPtr
- java.lang.Object
-
- org.robwork.sdurw_simulation.SimulatedScanner2DCPtr
-
public class SimulatedScanner2DCPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description SimulatedScanner2DCPtr()Default constructor yielding a NULL-pointer.SimulatedScanner2DCPtr(long cPtr, boolean cMemoryOwn)SimulatedScanner2DCPtr(SimulatedScanner2D ptr)Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SimulatedScanner2D__ref__()Dereferencing operator.voiddelete()SimulatedScanner2Dderef()The pointer stored in the object.booleanequals(SimulatedScanner2D p)static longgetCPtr(SimulatedScanner2DCPtr obj)SimulatedScanner2DgetDeref()Member access operator.FramegetFrame()get frame that this sensor is attached to.longgetMeasurementCount()java.lang.StringgetName()get name of this simulated sensorPointCloudgetScan()booleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownership
-
-
-
Constructor Detail
-
SimulatedScanner2DCPtr
public SimulatedScanner2DCPtr(long cPtr, boolean cMemoryOwn)
-
SimulatedScanner2DCPtr
public SimulatedScanner2DCPtr()
Default constructor yielding a NULL-pointer.
-
SimulatedScanner2DCPtr
public SimulatedScanner2DCPtr(SimulatedScanner2D ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(SimulatedScanner2DCPtr obj)
-
delete
public void delete()
-
deref
public SimulatedScanner2D deref()
The pointer stored in the object.
-
__ref__
public SimulatedScanner2D __ref__()
Dereferencing operator.
-
getDeref
public SimulatedScanner2D getDeref()
Member access operator.
-
equals
public boolean equals(SimulatedScanner2D 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
-
getScan
public PointCloud getScan()
-
getMeasurementCount
public long getMeasurementCount()
-
getName
public java.lang.String getName()
get name of this simulated sensor
-
getFrame
public Frame getFrame()
get frame that this sensor is attached to.- Returns:
- frame
-
-