Package org.robwork.sdurw_geometry
Class GeometryCPtr
- java.lang.Object
-
- org.robwork.sdurw_geometry.GeometryCPtr
-
public class GeometryCPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description GeometryCPtr()
Default constructor yielding a NULL-pointer.GeometryCPtr(long cPtr, boolean cMemoryOwn)
GeometryCPtr(Geometry 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 Geometry
__ref__()
Dereferencing operator.void
delete()
Geometry
deref()
The pointer stored in the object.boolean
equals(Geometry p)
static long
getCPtr(GeometryCPtr obj)
Geometry
getDeref()
Member access operator.java.lang.String
getFilePath()
get file path of this geometryjava.lang.String
getId()
get identifier of this geometryjava.lang.String
getName()
get name of this geometrydouble
getScale()
gets the scaling factor applied when using this geometryTransform3D
getTransform()
get transformationboolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownership
-
-
-
Constructor Detail
-
GeometryCPtr
public GeometryCPtr(long cPtr, boolean cMemoryOwn)
-
GeometryCPtr
public GeometryCPtr()
Default constructor yielding a NULL-pointer.
-
GeometryCPtr
public GeometryCPtr(Geometry ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(GeometryCPtr obj)
-
delete
public void delete()
-
deref
public Geometry deref()
The pointer stored in the object.
-
__ref__
public Geometry __ref__()
Dereferencing operator.
-
getDeref
public Geometry getDeref()
Member access operator.
-
equals
public boolean equals(Geometry 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
-
getScale
public double getScale()
gets the scaling factor applied when using this geometry- Returns:
- the scale as double
-
getTransform
public Transform3D getTransform()
get transformation- Returns:
- the Current transform
-
getName
public java.lang.String getName()
get name of this geometry- Returns:
- name as string
-
getFilePath
public java.lang.String getFilePath()
get file path of this geometry- Returns:
- the file path as string
-
getId
public java.lang.String getId()
get identifier of this geometry- Returns:
- the id of the geometry
-
-