Package org.robwork.sdurw_pathplanning
Class QNormalizerPtr
- java.lang.Object
-
- org.robwork.sdurw_pathplanning.QNormalizerPtr
-
public class QNormalizerPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description QNormalizerPtr()Default constructor yielding a NULL-pointer.QNormalizerPtr(long cPtr, boolean cMemoryOwn)QNormalizerPtr(QNormalizer 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 QNormalizer__ref__()Dereferencing operator.QNormalizerCPtrcptr()voiddelete()QNormalizerderef()The pointer stored in the object.booleanequals(QNormalizer p)QfromNormalized(Q q)Convert from a normalized configuration to a real
configuration.PairQgetBounds()The box of the configuration space with respect to which
normalization is done.static longgetCPtr(QNormalizerPtr obj)QNormalizergetDeref()Member access operator.QNormalizeridentity()Normalizer for the already normalized configuration space box.booleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershipvoidsetFromNormalized(Q q)Convert from a normalized configuration to a real
configuration and assign the real configuration to q.voidsetToNormalized(Q q)Convert a real configuration to a normalized configuration and
write the normalized configuration to q.QtoNormalized(Q q)Convert a real configuration to a normalized configuration.
-
-
-
Constructor Detail
-
QNormalizerPtr
public QNormalizerPtr(long cPtr, boolean cMemoryOwn)
-
QNormalizerPtr
public QNormalizerPtr()
Default constructor yielding a NULL-pointer.
-
QNormalizerPtr
public QNormalizerPtr(QNormalizer ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(QNormalizerPtr obj)
-
delete
public void delete()
-
deref
public QNormalizer deref()
The pointer stored in the object.
-
__ref__
public QNormalizer __ref__()
Dereferencing operator.
-
getDeref
public QNormalizer getDeref()
Member access operator.
-
equals
public boolean equals(QNormalizer 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 QNormalizerCPtr cptr()
-
fromNormalized
public Q fromNormalized(Q q)
Convert from a normalized configuration to a real
configuration.
-
toNormalized
public Q toNormalized(Q q)
Convert a real configuration to a normalized configuration.
-
setFromNormalized
public void setFromNormalized(Q q)
Convert from a normalized configuration to a real
configuration and assign the real configuration to q.
-
setToNormalized
public void setToNormalized(Q q)
Convert a real configuration to a normalized configuration and
write the normalized configuration to q.
-
getBounds
public PairQ getBounds()
The box of the configuration space with respect to which
normalization is done.
-
identity
public QNormalizer identity()
Normalizer for the already normalized configuration space box.
-
-