Package org.robwork.sdurw_geometry
Class IndexedQuadraticFaceArrayPtr
- java.lang.Object
-
- org.robwork.sdurw_geometry.IndexedQuadraticFaceArrayPtr
-
public class IndexedQuadraticFaceArrayPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description IndexedQuadraticFaceArrayPtr()
Default constructor yielding a NULL-pointer.IndexedQuadraticFaceArrayPtr(long cPtr, boolean cMemoryOwn)
IndexedQuadraticFaceArrayPtr(IndexedQuadraticFaceArray 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 IndexedQuadraticFaceArray
__ref__()
Dereferencing operator.IndexedQuadraticFaceArrayCPtr
cptr()
void
delete()
IndexedQuadraticFaceArray
deref()
The pointer stored in the object.boolean
equals(IndexedQuadraticFaceArray p)
static long
getCPtr(IndexedQuadraticFaceArrayPtr obj)
IndexedQuadraticFaceArray
getDeref()
Member access operator.QuadraticFaceCPtr
getFace(long idx)
constvoid
getFace(long idx, QuadraticFace dst)
&) constlong
getGlobalIndex(long idx)
Get the original face index.IndexedQuadraticFaceArray.QuadIndexedFace
getIndexedFace(long idx)
Get the indexed face.void
getIndexedFace(long idx, IndexedQuadraticFaceArray.QuadIndexedFace dst)
Get the indexed face.IndexedQuadraticFaceArray
getSubRange(long first, long last)
Take out a subrange of faces.boolean
isConvex()
boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershiplong
size()
void
sortAxis(int axis, Transform3D t3d)
Sort the faces according to their extent in the direction along axis.
-
-
-
Constructor Detail
-
IndexedQuadraticFaceArrayPtr
public IndexedQuadraticFaceArrayPtr(long cPtr, boolean cMemoryOwn)
-
IndexedQuadraticFaceArrayPtr
public IndexedQuadraticFaceArrayPtr()
Default constructor yielding a NULL-pointer.
-
IndexedQuadraticFaceArrayPtr
public IndexedQuadraticFaceArrayPtr(IndexedQuadraticFaceArray ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(IndexedQuadraticFaceArrayPtr obj)
-
delete
public void delete()
-
deref
public IndexedQuadraticFaceArray deref()
The pointer stored in the object.
-
__ref__
public IndexedQuadraticFaceArray __ref__()
Dereferencing operator.
-
getDeref
public IndexedQuadraticFaceArray getDeref()
Member access operator.
-
equals
public boolean equals(IndexedQuadraticFaceArray 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 IndexedQuadraticFaceArrayCPtr cptr()
-
isConvex
public boolean isConvex()
-
size
public long size()
-
getFace
public QuadraticFaceCPtr getFace(long idx)
const
-
getFace
public void getFace(long idx, QuadraticFace dst)
&) const
-
getIndexedFace
public IndexedQuadraticFaceArray.QuadIndexedFace getIndexedFace(long idx)
Get the indexed face.- Parameters:
idx
- [in] index of indexed face.- Returns:
- the indexed face.
-
getIndexedFace
public void getIndexedFace(long idx, IndexedQuadraticFaceArray.QuadIndexedFace dst)
Get the indexed face.- Parameters:
idx
- [in] index of indexed face.dst
- [out] existing object to copy data into.
-
sortAxis
public void sortAxis(int axis, Transform3D t3d)
Sort the faces according to their extent in the direction along axis.- Parameters:
axis
- [in] axis to sort.t3d
- [in] transform giving the position and axis directions.
-
getSubRange
public IndexedQuadraticFaceArray getSubRange(long first, long last)
Take out a subrange of faces.- Parameters:
first
- [in] first index.last
- [in] last index.- Returns:
- a new indexed face array.
-
getGlobalIndex
public long getGlobalIndex(long idx)
Get the original face index.- Parameters:
idx
- [in] the indexed face index.- Returns:
- the original index.
-
-