Package org.robwork.sdurw_geometry
Class IndexedTriArrayCPtr
- java.lang.Object
-
- org.robwork.sdurw_geometry.IndexedTriArrayCPtr
-
public class IndexedTriArrayCPtr extends java.lang.Object
Ptr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description IndexedTriArrayCPtr()
Default constructor yielding a NULL-pointer.IndexedTriArrayCPtr(long cPtr, boolean cMemoryOwn)
IndexedTriArrayCPtr(IndexedTriArray 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 IndexedTriArray
__ref__()
Dereferencing operator.TriMeshPtr
clone()
void
delete()
IndexedTriArray
deref()
The pointer stored in the object.boolean
equals(IndexedTriArray p)
static long
getCPtr(IndexedTriArrayCPtr obj)
IndexedTriArray
getDeref()
Member access operator.long
getGlobalIndex(int idx)
vector_ui
getIndexes()
get the index mappinglong
getSize()
Triangle
getTriangle(long idx)
void
getTriangle(long i, Triangle dst)
void
getTriangle(long i, Triangle_f dst)
GeometryData.GeometryType
getType()
double
getVolume()
calculate a volume of this triangle meshboolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershiplong
size()
-
-
-
Constructor Detail
-
IndexedTriArrayCPtr
public IndexedTriArrayCPtr(long cPtr, boolean cMemoryOwn)
-
IndexedTriArrayCPtr
public IndexedTriArrayCPtr()
Default constructor yielding a NULL-pointer.
-
IndexedTriArrayCPtr
public IndexedTriArrayCPtr(IndexedTriArray ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(IndexedTriArrayCPtr obj)
-
delete
public void delete()
-
deref
public IndexedTriArray deref()
The pointer stored in the object.
-
__ref__
public IndexedTriArray __ref__()
Dereferencing operator.
-
getDeref
public IndexedTriArray getDeref()
Member access operator.
-
equals
public boolean equals(IndexedTriArray 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
-
getIndexes
public vector_ui getIndexes()
get the index mapping
-
clone
public TriMeshPtr clone()
-
getGlobalIndex
public long getGlobalIndex(int idx)
-
getTriangle
public Triangle getTriangle(long idx)
-
getTriangle
public void getTriangle(long i, Triangle dst)
-
getTriangle
public void getTriangle(long i, Triangle_f dst)
-
getType
public GeometryData.GeometryType getType()
-
getSize
public long getSize()
-
size
public long size()
-
getVolume
public double getVolume()
calculate a volume of this triangle mesh
-
-