26 unsigned int stepCount = 0);
53 inline unsigned int maxStep() {
return m_totalSteps; }
55 inline void setMaxStep(
unsigned int stepCount) { m_totalSteps = stepCount; }
58 inline void reset() { m_currentStep = 0; }
64 unsigned int m_totalSteps;
65 unsigned int m_currentStep;
67 ccPolyline *smoothTrajectory, *smoothTrajectoryReversed;
68 unsigned smoothTrajStartIndex, smoothTrajStopIndex, smoothTrajCurrentIndex;
float PointCoordinateType
Type of the coordinates of a (N-D) point.
The ViewInterpolate class.
const ecvViewportParameters & view1() const
Returns the first viewport object.
void reset()
Resets the interpolator.
bool interpolate(ecvViewportParameters &a_returned_viewport, double ratio) const
Interpolates the 2 viewports at a given (relative) position.
bool nextView(ecvViewportParameters &a_returned_viewport)
Returns the next viewport.
unsigned int currentStep()
Returns the current step.
const ecvViewportParameters & view2() const
void setCurrentStep(unsigned int step)
Sets the current step.
void setSmoothTrajectory(ccPolyline *smoothTrajectory, ccPolyline *smoothTrajectoryReversed, unsigned i1, unsigned i2, PointCoordinateType length)
Sets the smooth trajectory (optional)
unsigned int maxStep()
Returns the max number of steps.
ViewInterpolate(const ecvViewportParameters &view1, const ecvViewportParameters &view2, unsigned int stepCount=0)
Constructor from two viewports and a number of steps.
void setMaxStep(unsigned int stepCount)
Sets the max number of steps.
Standard parameters for GL displays/viewports.
__host__ __device__ float length(float2 v)
Generic file read and write utility for python interface.