ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
cloudViewer::ViewInterpolate Class Reference

The ViewInterpolate class. More...

#include <ViewInterpolate.h>

Public Member Functions

 ViewInterpolate (const ecvViewportParameters &view1, const ecvViewportParameters &view2, unsigned int stepCount=0)
 Constructor from two viewports and a number of steps. More...
 
void setSmoothTrajectory (ccPolyline *smoothTrajectory, ccPolyline *smoothTrajectoryReversed, unsigned i1, unsigned i2, PointCoordinateType length)
 Sets the smooth trajectory (optional) More...
 
const ecvViewportParametersview1 () const
 Returns the first viewport object. More...
 
const ecvViewportParametersview2 () const
 
bool interpolate (ecvViewportParameters &a_returned_viewport, double ratio) const
 Interpolates the 2 viewports at a given (relative) position. More...
 
bool nextView (ecvViewportParameters &a_returned_viewport)
 Returns the next viewport. More...
 
unsigned int currentStep ()
 Returns the current step. More...
 
void setCurrentStep (unsigned int step)
 Sets the current step. More...
 
unsigned int maxStep ()
 Returns the max number of steps. More...
 
void setMaxStep (unsigned int stepCount)
 Sets the max number of steps. More...
 
void reset ()
 Resets the interpolator. More...
 

Detailed Description

The ViewInterpolate class.

This class takes pointers to two viewport objects, and returns intermediate viewports between over a set number of steps.

Definition at line 21 of file ViewInterpolate.h.

Constructor & Destructor Documentation

◆ ViewInterpolate()

ViewInterpolate::ViewInterpolate ( const ecvViewportParameters view1,
const ecvViewportParameters view2,
unsigned int  stepCount = 0 
)

Constructor from two viewports and a number of steps.

Definition at line 16 of file ViewInterpolate.cpp.

Member Function Documentation

◆ currentStep()

unsigned int cloudViewer::ViewInterpolate::currentStep ( )
inline

Returns the current step.

Definition at line 48 of file ViewInterpolate.h.

◆ interpolate()

◆ maxStep()

unsigned int cloudViewer::ViewInterpolate::maxStep ( )
inline

Returns the max number of steps.

Definition at line 53 of file ViewInterpolate.h.

◆ nextView()

bool ViewInterpolate::nextView ( ecvViewportParameters a_returned_viewport)

Returns the next viewport.

Definition at line 98 of file ViewInterpolate.cpp.

References interpolate().

◆ reset()

void cloudViewer::ViewInterpolate::reset ( void  )
inline

Resets the interpolator.

Definition at line 58 of file ViewInterpolate.h.

◆ setCurrentStep()

void cloudViewer::ViewInterpolate::setCurrentStep ( unsigned int  step)
inline

Sets the current step.

Definition at line 50 of file ViewInterpolate.h.

◆ setMaxStep()

void cloudViewer::ViewInterpolate::setMaxStep ( unsigned int  stepCount)
inline

Sets the max number of steps.

Definition at line 55 of file ViewInterpolate.h.

◆ setSmoothTrajectory()

void ViewInterpolate::setSmoothTrajectory ( ccPolyline smoothTrajectory,
ccPolyline smoothTrajectoryReversed,
unsigned  i1,
unsigned  i2,
PointCoordinateType  length 
)

Sets the smooth trajectory (optional)

Definition at line 31 of file ViewInterpolate.cpp.

References length().

◆ view1()

const ecvViewportParameters& cloudViewer::ViewInterpolate::view1 ( ) const
inline

Returns the first viewport object.

Definition at line 36 of file ViewInterpolate.h.

◆ view2()

const ecvViewportParameters& cloudViewer::ViewInterpolate::view2 ( ) const
inline

Definition at line 38 of file ViewInterpolate.h.


The documentation for this class was generated from the following files: