 |
ACloudViewer
3.9.4
A Modern Library for 3D Data Processing
|
Go to the documentation of this file.
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;
Generic file read and write utility for python interface.
Definition: CloudViewerConfig.cpp:12
void reset()
Resets the interpolator.
Definition: ViewInterpolate.h:58
T InterpolateNumber(T start, T end, double interpolationFraction)
Definition: ViewInterpolate.cpp:43
void setCurrentStep(unsigned int step)
Sets the current step.
Definition: ViewInterpolate.h:50
static ccGLMatrixTpl Interpolate(double coef, const ccGLMatrixTpl< double > &glMat1, const ccGLMatrixTpl< double > &glMat2)
Interpolates two matrices at relative position 'coef'.
Definition: ecvGLMatrixTpl.h:201
ccGLMatrixd viewMat
Visualization matrix (rotation only)
Definition: ecvViewportParameters.h:107
void setSmoothTrajectory(ccPolyline *smoothTrajectory, ccPolyline *smoothTrajectoryReversed, unsigned i1, unsigned i2, PointCoordinateType length)
Sets the smooth trajectory (optional)
Definition: ViewInterpolate.cpp:28
T InterpolateNumber(T start, T end, double interpolationFraction)
Definition: ViewInterpolate.cpp:46
const CCVector3d & getCameraCenter() const
Returns the camera center.
Definition: ecvViewportParameters.h:46
Standard parameters for GL displays/viewports.
Definition: ecvViewportParameters.h:18
void setCameraCenter(const CCVector3d &C, bool autoUpdateFocal=true)
Sets the camera center.
Definition: ecvViewportParameters.cpp:295
void setPivotPoint(const CCVector3d &P, bool autoUpdateFocal=true)
Sets the pivot point (for object-centered view mode)
Definition: ecvViewportParameters.cpp:286
ViewInterpolate(const ecvViewportParameters &view1, const ecvViewportParameters &view2, unsigned int stepCount=0)
Constructor from two viewports and a number of steps.
Definition: ViewInterpolate.cpp:16
bool interpolate(ecvViewportParameters &a_returned_viewport, double ratio) const
Interpolates the 2 viewports at a given (relative) position.
Definition: ViewInterpolate.cpp:53
void setFocalDistance(double distance)
Sets the 'focal' distance.
Definition: ecvViewportParameters.cpp:304
bool nextView(ecvViewportParameters &a_returned_viewport)
Returns the next viewport.
Definition: ViewInterpolate.cpp:98
double zNear
Actual perspective 'zNear' value.
Definition: ecvViewportParameters.h:135
ViewInterpolate(const ecvViewportParameters &view1, const ecvViewportParameters &view2, unsigned int stepCount=0)
Constructor from two viewports and a number of steps.
Definition: ViewInterpolate.cpp:13
const ecvViewportParameters & view2() const
Definition: ViewInterpolate.h:38
double getFocalDistance() const
Computes the 'focal' distance.
Definition: ecvViewportParameters.h:54
double zFar
Actual perspective 'zFar' value.
Definition: ecvViewportParameters.h:137
double zNearCoef
Theoretical perspective 'zNear' relative position.
Definition: ecvViewportParameters.h:133
const CCVector3d & getPivotPoint() const
Returns the pivot point (for object-centered view mode)
Definition: ecvViewportParameters.h:39
void setSmoothTrajectory(ccPolyline *smoothTrajectory, ccPolyline *smoothTrajectoryReversed, unsigned i1, unsigned i2, PointCoordinateType length)
Sets the smooth trajectory (optional)
Definition: ViewInterpolate.cpp:31
float fov_deg
Camera F.O.V. (field of view) in degrees.
Definition: ecvViewportParameters.h:144
float cameraAspectRatio
Camera aspect ratio.
Definition: ecvViewportParameters.h:146
bool nextView(ecvViewportParameters &a_returned_viewport)
Returns the next viewport.
Definition: ViewInterpolate.cpp:95
void setMaxStep(unsigned int stepCount)
Sets the max number of steps.
Definition: ViewInterpolate.h:55
float defaultPointSize
Point size.
Definition: ecvViewportParameters.h:110
unsigned int maxStep()
Returns the max number of steps.
Definition: ViewInterpolate.h:53
float defaultLineWidth
Line width.
Definition: ecvViewportParameters.h:112
unsigned int currentStep()
Returns the current step.
Definition: ViewInterpolate.h:48
float PointCoordinateType
Type of the coordinates of a (N-D) point.
Definition: CVTypes.h:16
The ViewInterpolate class.
Definition: ViewInterpolate.h:21
bool interpolate(ecvViewportParameters &a_returned_viewport, double ratio) const
Interpolates the 2 viewports at a given (relative) position.
Definition: ViewInterpolate.cpp:50
Colored polyline.
Definition: ecvPolyline.h:23
const ecvViewportParameters & view1() const
Returns the first viewport object.
Definition: ViewInterpolate.h:36