Package org.robwork.sdurw_pathplanning
Class QNormalizerPtr
- java.lang.Object
-
- org.robwork.sdurw_pathplanning.QNormalizerPtr
-
public class QNormalizerPtr extends java.lang.Object
Ptr 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.QNormalizerCPtr
cptr()
void
delete()
QNormalizer
deref()
The pointer stored in the object.boolean
equals(QNormalizer p)
Q
fromNormalized(Q q)
Convert from a normalized configuration to a real
configuration.PairQ
getBounds()
The box of the configuration space with respect to which
normalization is done.static long
getCPtr(QNormalizerPtr obj)
QNormalizer
getDeref()
Member access operator.QNormalizer
identity()
Normalizer for the already normalized configuration space box.boolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipvoid
setFromNormalized(Q q)
Convert from a normalized configuration to a real
configuration and assign the real configuration to q.void
setToNormalized(Q q)
Convert a real configuration to a normalized configuration and
write the normalized configuration to q.Q
toNormalized(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.
-
-