Package org.robwork.sdurw_geometry
Class PlainQuadraticShellCPtr
- java.lang.Object
-
- org.robwork.sdurw_geometry.PlainQuadraticShellCPtr
-
public class PlainQuadraticShellCPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description PlainQuadraticShellCPtr()Default constructor yielding a NULL-pointer.PlainQuadraticShellCPtr(long cPtr, boolean cMemoryOwn)PlainQuadraticShellCPtr(PlainQuadraticShell 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 PlainQuadraticShell__ref__()Dereferencing operator.PlainQuadraticShellPtrclone()Make a copy of the shell.voiddelete()PlainQuadraticShellderef()The pointer stored in the object.booleanequals(PlainQuadraticShell p)pair_d_dextremums(Vector3D dir)Get the minimum and maximum values of the shell in a certain direction.static longgetCPtr(PlainQuadraticShellCPtr obj)PlainQuadraticShellgetDeref()Member access operator.voidgetFace(long idx, GenericFace face), GenericFace&) constvoidgetFace(long idx, QuadraticFace dst), QuadraticFace&) constGeometryData.GeometryTypegetType()booleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershipOBBobb()Create Oriented Bounding Box (OBB) as a bounding volume for the shell.longsize()
-
-
-
Constructor Detail
-
PlainQuadraticShellCPtr
public PlainQuadraticShellCPtr(long cPtr, boolean cMemoryOwn)
-
PlainQuadraticShellCPtr
public PlainQuadraticShellCPtr()
Default constructor yielding a NULL-pointer.
-
PlainQuadraticShellCPtr
public PlainQuadraticShellCPtr(PlainQuadraticShell ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(PlainQuadraticShellCPtr obj)
-
delete
public void delete()
-
deref
public PlainQuadraticShell deref()
The pointer stored in the object.
-
__ref__
public PlainQuadraticShell __ref__()
Dereferencing operator.
-
getDeref
public PlainQuadraticShell getDeref()
Member access operator.
-
equals
public boolean equals(PlainQuadraticShell 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
-
size
public long size()
-
getFace
public void getFace(long idx, QuadraticFace dst), QuadraticFace&) const
-
getFace
public void getFace(long idx, GenericFace face), GenericFace&) const
-
clone
public PlainQuadraticShellPtr clone()
Make a copy of the shell.- Returns:
- a new copy.
-
getType
public GeometryData.GeometryType getType()
-
extremums
public pair_d_d extremums(Vector3D dir)
Get the minimum and maximum values of the shell in a certain direction.- Parameters:
dir- [in] the direction to find extremums for.- Returns:
- the minimum and maximum as a pair of values.
-
obb
public OBB obb()
Create Oriented Bounding Box (OBB) as a bounding volume for the shell.- Returns:
- the OBB.
-
-