Package org.robwork.sdurw_trajectory
Class InterpolatorTrajectory_dCPtr
- java.lang.Object
-
- org.robwork.sdurw_trajectory.InterpolatorTrajectory_dCPtr
-
public class InterpolatorTrajectory_dCPtr extends java.lang.Object
Ptr 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.double
ddx(double t)
void
delete()
InterpolatorTrajectory_d
deref()
The pointer stored in the object.double
duration()
double
dx(double t)
double
endTime()
Returns the endTime of the trajectory.
The end time equals startTime() + duration().
boolean
equals(InterpolatorTrajectory_d p)
static long
getCPtr(InterpolatorTrajectory_dCPtr obj)
InterpolatorTrajectory_d
getDeref()
Member access operator.TrajectoryIterator_dPtr
getIterator()
TrajectoryIterator_dPtr
getIterator(double dt)
Segment_d
getSegment(long index)
long
getSegmentsCount()
Returns the number of segments
A segment contains a description interpolator and the blend used to blend from the
previous interpolatorboolean
isNull()
checks if the pointer is nullboolean
isShared()
check if this Ptr has shared ownership or none
ownershipdouble
startTime()
double
x(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
-
-