Package org.robwork.sdurw_trajectory
Class InterpolatorTrajectory_dCPtr
- java.lang.Object
-
- org.robwork.sdurw_trajectory.InterpolatorTrajectory_dCPtr
-
public class InterpolatorTrajectory_dCPtr extends java.lang.ObjectPtr stores a pointer and optionally takes ownership of the value.
-
-
Constructor Summary
Constructors Constructor Description InterpolatorTrajectory_dCPtr()Default constructor yielding a NULL-pointer.InterpolatorTrajectory_dCPtr(long cPtr, boolean cMemoryOwn)InterpolatorTrajectory_dCPtr(InterpolatorTrajectory_d 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 InterpolatorTrajectory_d__ref__()Dereferencing operator.doubleddx(double t)voiddelete()InterpolatorTrajectory_dderef()The pointer stored in the object.doubleduration()doubledx(double t)doubleendTime()Returns the endTime of the trajectory.
The end time equals startTime() + duration().
booleanequals(InterpolatorTrajectory_d p)static longgetCPtr(InterpolatorTrajectory_dCPtr obj)InterpolatorTrajectory_dgetDeref()Member access operator.TrajectoryIterator_dPtrgetIterator()TrajectoryIterator_dPtrgetIterator(double dt)Segment_dgetSegment(long index)longgetSegmentsCount()Returns the number of segments
A segment contains a description interpolator and the blend used to blend from the
previous interpolatorbooleanisNull()checks if the pointer is nullbooleanisShared()check if this Ptr has shared ownership or none
ownershipdoublestartTime()doublex(double t)
-
-
-
Constructor Detail
-
InterpolatorTrajectory_dCPtr
public InterpolatorTrajectory_dCPtr(long cPtr, boolean cMemoryOwn)
-
InterpolatorTrajectory_dCPtr
public InterpolatorTrajectory_dCPtr()
Default constructor yielding a NULL-pointer.
-
InterpolatorTrajectory_dCPtr
public InterpolatorTrajectory_dCPtr(InterpolatorTrajectory_d ptr)
Do not take ownership of ptr.
ptr can be null.
The constructor is implicit on purpose.
-
-
Method Detail
-
getCPtr
public static long getCPtr(InterpolatorTrajectory_dCPtr obj)
-
delete
public void delete()
-
deref
public InterpolatorTrajectory_d deref()
The pointer stored in the object.
-
__ref__
public InterpolatorTrajectory_d __ref__()
Dereferencing operator.
-
getDeref
public InterpolatorTrajectory_d getDeref()
Member access operator.
-
equals
public boolean equals(InterpolatorTrajectory_d 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
-
x
public double x(double t)
-
dx
public double dx(double t)
-
ddx
public double ddx(double t)
-
duration
public double duration()
-
startTime
public double startTime()
-
getIterator
public TrajectoryIterator_dPtr getIterator(double dt)
-
getIterator
public TrajectoryIterator_dPtr getIterator()
-
getSegmentsCount
public long getSegmentsCount()
Returns the number of segments
A segment contains a description interpolator and the blend used to blend from the
previous interpolator
-
getSegment
public Segment_d getSegment(long index)
-
endTime
public double endTime()
Returns the endTime of the trajectory.
The end time equals startTime() + duration().
- Returns:
- The end time
-
-