Package org.robwork.sdurw_geometry
Class IndexedTrianglePtr
- java.lang.Object
-
- org.robwork.sdurw_geometry.IndexedTrianglePtr
-
public class IndexedTrianglePtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description IndexedTrianglePtr()
Default constructor yielding a NULL-pointer.IndexedTrianglePtr(long cPtr, boolean cMemoryOwn)
IndexedTrianglePtr(IndexedTriangle 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 IndexedTriangle
__ref__()
Dereferencing operator.IndexedTriangleCPtr
cptr()
void
delete()
IndexedTriangle
deref()
The pointer stored in the object.boolean
equals(IndexedTriangle p)
int
get(long i)
static long
getCPtr(IndexedTrianglePtr obj)
IndexedTriangle
getDeref()
Member access operator.SWIGTYPE_p_unsigned_short
getVertexIdx(long i)
returns the index of vertex i of the triangleboolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipvoid
set(long i, int d)
-
-
-
Constructor Detail
-
IndexedTrianglePtr
public IndexedTrianglePtr(long cPtr, boolean cMemoryOwn)
-
IndexedTrianglePtr
public IndexedTrianglePtr()
Default constructor yielding a NULL-pointer.
-
IndexedTrianglePtr
public IndexedTrianglePtr(IndexedTriangle ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(IndexedTrianglePtr obj)
-
delete
public void delete()
-
deref
public IndexedTriangle deref()
The pointer stored in the object.
-
__ref__
public IndexedTriangle __ref__()
Dereferencing operator.
-
getDeref
public IndexedTriangle getDeref()
Member access operator.
-
equals
public boolean equals(IndexedTriangle 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
-
cptr
public IndexedTriangleCPtr cptr()
-
getVertexIdx
public SWIGTYPE_p_unsigned_short getVertexIdx(long i)
returns the index of vertex i of the triangle
-
get
public int get(long i)
-
set
public void set(long i, int d)
-
-