UsTK : Ultrasound ToolKit  version 2.0.1 under development (2023-12-07)

#include <visp3/ustk_core/usPolynomialCurve3D.h>

+ Inheritance diagram for usPolynomialCurve3D:

Public Member Functions

 usPolynomialCurve3D ()
 
 usPolynomialCurve3D (const usPolynomialCurve3D &curve)
 
const usPolynomialCurve3Doperator= (const usPolynomialCurve3D &curve)
 
virtual ~usPolynomialCurve3D ()
 
 usPolynomialCurve3D (unsigned int order)
 
void setOrder (unsigned int order)
 
unsigned int getOrder () const
 
void setStartParameter (double startParameter)
 
double getStartParameter () const
 
void setEndParameter (double endParameter)
 
double getEndParameter () const
 
void setBoundaries (double startParameter, double endParamter)
 
void setParametricLength (double length)
 
double getParametricLength () const
 
void setLength (double length, double precision=1e-4)
 
double getLength (int nbCountSeg=50) const
 
void setPolynomialCoefficients (const vpMatrix &polynomialCoefficients)
 
vpMatrix getPolynomialCoefficients () const
 
vpColVector getPoint (double parameter) const
 
vpMatrix getPoints (const vpColVector &parameters) const
 
vpColVector getStartPoint () const
 
vpColVector getEndPoint () const
 
vpColVector getTangent (double parameter) const
 
vpColVector getStartTangent () const
 
vpColVector getEndTangent () const
 
vpColVector getDerivative (double parameter, unsigned int order) const
 
void defineFromPoints (const std::vector< vpColVector > &points, const std::vector< double > &param, unsigned int order=0)
 
void defineFromPoints (const vpMatrix points, const vpColVector &param, unsigned int order=0)
 
void defineFromPointsAuto (const std::vector< vpColVector > &points, unsigned int order=0)
 
void defineFromPointsAuto (const vpMatrix &points, unsigned int order=0)
 
void defineFromPointsAuto (const std::vector< vpColVector > &points, const vpColVector &direction, unsigned int order=0)
 
void defineFromPointsAuto (const vpMatrix &points, const vpColVector &direction, unsigned int order=0)
 
void defineFromWeightedPoints (const std::vector< vpColVector > &points, const std::vector< double > &param, const std::vector< double > &weights, unsigned int order=0)
 
void defineFromWeightedPoints (const vpMatrix &points, const vpColVector &param, const vpColVector &weights, unsigned int order=0)
 
void defineFromWeightedPointsAuto (const std::vector< vpColVector > &points, const std::vector< double > &weights, unsigned int order=0)
 
void defineFromWeightedPointsAuto (const vpMatrix &points, const vpColVector &weights, unsigned int order=0)
 
void defineFromWeightedPointsAuto (const std::vector< vpColVector > &points, const std::vector< double > &weights, const vpColVector &direction, unsigned int order=0)
 
void defineFromWeightedPointsAuto (const vpMatrix &points, const vpColVector &weights, const vpColVector &direction, unsigned int order=0)
 
double getCurvature (double param) const
 
double getCurvatureFromShape (double start, double end, vpColVector &center3D, vpColVector &direction3D) const
 
double getMeanAxisDeviation (int nbCountSeg=50) const
 
void setControlPoints (const vpMatrix &controlPoints)
 
void setControlPoints (double **controlPoints)
 
vpMatrix getControlPoints () const
 
vpMatrix getRenderingPoints () const
 
usPolynomialCurve3D getSubPolynomialCurve (double startParameter, double endParameter) const
 
usPolynomialCurve3D getNewOrderPolynomialCurve (unsigned int order) const
 
void changeCoefficientsToFitBoundaries (double startParameter, double endParameter)
 
void reverse ()
 
void changeCoefficientsToFitMetricLength ()
 
void move (const vpHomogeneousMatrix &H)
 
void move (double x, double y, double z, double tx, double ty, double tz)
 
void scale (double s)
 

Static Public Member Functions

static double curveDistance (const usPolynomialCurve3D &n1, const usPolynomialCurve3D &n2)
 

Protected Attributes

unsigned int m_order
 
double m_startParameter
 
double m_endParameter
 
vpMatrix m_polynomialCoefficients
 

Friends

VISP_EXPORT std::ostream & operator<< (std::ostream &s, const usPolynomialCurve3D &seg)
 
VISP_EXPORT std::istream & operator>> (std::istream &s, usPolynomialCurve3D &seg)
 
VISP_EXPORT std::ostream & operator<<= (std::ostream &s, const usPolynomialCurve3D &seg)
 
VISP_EXPORT std::istream & operator>>= (std::istream &s, usPolynomialCurve3D &seg)
 

Detailed Description

2D curve model

This class represents a 2D polynomial curve.

Examples
testUsBSpline3D.cpp, testUsGeometryDisplayTools.cpp, and testUsPolynomialCurve3D.cpp.

Definition at line 50 of file usPolynomialCurve3D.h.

Constructor & Destructor Documentation

◆ usPolynomialCurve3D() [1/3]

usPolynomialCurve3D::usPolynomialCurve3D ( )

Default constructor. Requires a call to setOrder().

Definition at line 39 of file usPolynomialCurve3D.cpp.

◆ usPolynomialCurve3D() [2/3]

usPolynomialCurve3D::usPolynomialCurve3D ( const usPolynomialCurve3D curve)

Copy constructor.

Definition at line 44 of file usPolynomialCurve3D.cpp.

◆ ~usPolynomialCurve3D()

usPolynomialCurve3D::~usPolynomialCurve3D ( )
virtual

Destructor.

Definition at line 60 of file usPolynomialCurve3D.cpp.

◆ usPolynomialCurve3D() [3/3]

usPolynomialCurve3D::usPolynomialCurve3D ( unsigned int  order)

Constructor.

Parameters
orderThe order of the polynomial curve.

Definition at line 62 of file usPolynomialCurve3D.cpp.

Member Function Documentation

◆ changeCoefficientsToFitBoundaries()

◆ changeCoefficientsToFitMetricLength()

void usPolynomialCurve3D::changeCoefficientsToFitMetricLength ( )

Modify the polynomial coefficients such that the metric length of the curve corresponds to the parametric length.

Examples
testUsPolynomialCurve3D.cpp.

Definition at line 1229 of file usPolynomialCurve3D.cpp.

References changeCoefficientsToFitBoundaries(), getLength(), m_endParameter, m_startParameter, and setBoundaries().

◆ curveDistance()

double usPolynomialCurve3D::curveDistance ( const usPolynomialCurve3D n1,
const usPolynomialCurve3D n2 
)
static

Compute the distance between two curves. (to remove)

Definition at line 1143 of file usPolynomialCurve3D.cpp.

References getOrder(), and getPolynomialCoefficients().

◆ defineFromPoints() [1/2]

void usPolynomialCurve3D::defineFromPoints ( const std::vector< vpColVector > &  points,
const std::vector< double > &  param,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of control points at given parametric values.

Parameters
pointsThe desired control points.
paramThe desired parametric values.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))
Examples
testUsBSpline3D.cpp, and testUsPolynomialCurve3D.cpp.

Definition at line 278 of file usPolynomialCurve3D.cpp.

References m_order, setBoundaries(), and setPolynomialCoefficients().

Referenced by usGeometryTools::convertBSplineToPolynomial(), defineFromPointsAuto(), and usNeedleModelingDisplayTools::displayNeedle().

◆ defineFromPoints() [2/2]

void usPolynomialCurve3D::defineFromPoints ( const vpMatrix  points,
const vpColVector &  param,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of control points at given parametric values.

Parameters
pointsThe desired control points.
paramThe desired parametric values.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))

Definition at line 337 of file usPolynomialCurve3D.cpp.

References m_order, setBoundaries(), and setPolynomialCoefficients().

◆ defineFromPointsAuto() [1/4]

void usPolynomialCurve3D::defineFromPointsAuto ( const std::vector< vpColVector > &  points,
const vpColVector &  direction,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of weighted control points at given parametric values. Parametric values for the different points are automatically computed according to their position along a given straight direction.

Parameters
pointsThe desired control points.
directionThe direction used to compute the parametric values associated to each point.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))

Definition at line 452 of file usPolynomialCurve3D.cpp.

References defineFromPoints(), getParametricLength(), m_order, and m_startParameter.

◆ defineFromPointsAuto() [2/4]

void usPolynomialCurve3D::defineFromPointsAuto ( const std::vector< vpColVector > &  points,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of control points. Parametric values for the different points are automatically computed.

Parameters
pointsThe desired control points.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))
Examples
testUsGeometryDisplayTools.cpp, and testUsPolynomialCurve3D.cpp.

Definition at line 395 of file usPolynomialCurve3D.cpp.

References m_order.

Referenced by defineFromPointsAuto(), and setControlPoints().

◆ defineFromPointsAuto() [3/4]

void usPolynomialCurve3D::defineFromPointsAuto ( const vpMatrix &  points,
const vpColVector &  direction,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of control points at given parametric values. Parametric values for the different points are automatically computed according to their position along a given straight direction.

Parameters
pointsThe desired control points.
directionThe direction used to compute the parametric values associated to each point.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))

Definition at line 502 of file usPolynomialCurve3D.cpp.

References defineFromPoints(), getParametricLength(), m_order, and m_startParameter.

◆ defineFromPointsAuto() [4/4]

void usPolynomialCurve3D::defineFromPointsAuto ( const vpMatrix &  points,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of control points. Parametric values for the different points are automatically computed.

Parameters
pointsThe desired control points.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))

Definition at line 424 of file usPolynomialCurve3D.cpp.

References defineFromPointsAuto(), and m_order.

◆ defineFromWeightedPoints() [1/2]

void usPolynomialCurve3D::defineFromWeightedPoints ( const std::vector< vpColVector > &  points,
const std::vector< double > &  param,
const std::vector< double > &  weights,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of weighted control points at given parametric values.

Parameters
pointsThe desired control points.
paramThe desired parametric values.
weightsSet of weights describing the importance of fitting each point with the curve.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))
Examples
testUsPolynomialCurve3D.cpp.

Definition at line 553 of file usPolynomialCurve3D.cpp.

References m_order, setBoundaries(), and setPolynomialCoefficients().

Referenced by defineFromWeightedPointsAuto().

◆ defineFromWeightedPoints() [2/2]

void usPolynomialCurve3D::defineFromWeightedPoints ( const vpMatrix &  points,
const vpColVector &  param,
const vpColVector &  weights,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of weighted control points at given parametric values.

Parameters
pointsThe desired control points.
paramThe desired parametric values.
weightsSet of weights describing the importance of fitting each point with the curve.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))

Definition at line 617 of file usPolynomialCurve3D.cpp.

References m_order, setBoundaries(), and setPolynomialCoefficients().

◆ defineFromWeightedPointsAuto() [1/4]

void usPolynomialCurve3D::defineFromWeightedPointsAuto ( const std::vector< vpColVector > &  points,
const std::vector< double > &  weights,
const vpColVector &  direction,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of control points at given parametric values. Parametric values for the different points are automatically computed according to their position along a given straight direction.

Parameters
pointsThe desired control points.
weightsSet of weights describing the importance of fitting each point with the curve.
directionThe direction used to compute the parametric values associated to each point.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))

Definition at line 826 of file usPolynomialCurve3D.cpp.

References defineFromWeightedPoints(), getParametricLength(), m_order, and m_startParameter.

◆ defineFromWeightedPointsAuto() [2/4]

void usPolynomialCurve3D::defineFromWeightedPointsAuto ( const std::vector< vpColVector > &  points,
const std::vector< double > &  weights,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of control points at given parametric values. Parametric values for the different points are automatically computed.

Parameters
pointsThe desired control points.
weightsSet of weights describing the importance of fitting each point with the curve.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))
Examples
testUsPolynomialCurve3D.cpp.

Definition at line 678 of file usPolynomialCurve3D.cpp.

References defineFromWeightedPoints(), getParametricLength(), m_order, and m_startParameter.

◆ defineFromWeightedPointsAuto() [3/4]

void usPolynomialCurve3D::defineFromWeightedPointsAuto ( const vpMatrix &  points,
const vpColVector &  weights,
const vpColVector &  direction,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of control points at given parametric values. Parametric values for the different points are automatically computed according to their position along a given straight direction.

Parameters
pointsThe desired control points.
weightsSet of weights describing the importance of fitting each point with the curve.
directionThe direction used to compute the parametric values associated to each point.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))

Definition at line 886 of file usPolynomialCurve3D.cpp.

References defineFromWeightedPoints(), getParametricLength(), m_order, and m_startParameter.

◆ defineFromWeightedPointsAuto() [4/4]

void usPolynomialCurve3D::defineFromWeightedPointsAuto ( const vpMatrix &  points,
const vpColVector &  weights,
unsigned int  order = 0 
)

Define the polynomial curve to fit as best as possible a set of control points at given parametric values. Parametric values for the different points are automatically computed.

Parameters
pointsThe desired control points.
weightsSet of weights describing the importance of fitting each point with the curve.
orderThe order of the resulting polynomial curve (keep the current order of the curve if given value is <1 (default))

Definition at line 751 of file usPolynomialCurve3D.cpp.

References defineFromWeightedPoints(), getParametricLength(), m_order, and m_startParameter.

◆ getControlPoints()

vpMatrix usPolynomialCurve3D::getControlPoints ( ) const

Get the control points. (to remove)

Examples
testUsPolynomialCurve3D.cpp.

Definition at line 1117 of file usPolynomialCurve3D.cpp.

References getParametricLength(), getPoints(), getStartPoint(), m_order, and m_startParameter.

◆ getCurvature()

double usPolynomialCurve3D::getCurvature ( double  param) const

Get the curvature of the curve at a specific point.

Parameters
paramParametric value where the curvature should be computed.
Examples
testUsPolynomialCurve3D.cpp.

Definition at line 945 of file usPolynomialCurve3D.cpp.

References getDerivative().

◆ getCurvatureFromShape()

double usPolynomialCurve3D::getCurvatureFromShape ( double  start,
double  end,
vpColVector &  center3D,
vpColVector &  direction3D 
) const

Get the approximate curvature of a portion of the curve

Parameters
startStarting parametric value of the portion of the curve.
endEnding parametric value of the portion of the curve.
center3DCenter of the circle fitting the portion of the curve.
direction3DNormal of the circle fitting the portion of the curve.

Definition at line 956 of file usPolynomialCurve3D.cpp.

References getParametricLength(), and getPoints().

Referenced by usGeometryDisplayTools::displayCurvatureFromShape().

◆ getDerivative()

vpColVector usPolynomialCurve3D::getDerivative ( double  parameter,
unsigned int  order 
) const

Get the derivative of the polynmial curve at a given parametric value.

Examples
testUsPolynomialCurve3D.cpp.

Definition at line 257 of file usPolynomialCurve3D.cpp.

References m_order, and m_polynomialCoefficients.

Referenced by usNeedleModelPolynomial::getBaseStaticTorsor(), usNeedleModelSpline::getBaseStaticTorsor(), usNeedleModelSpline::getBendingEnergy(), and getCurvature().

◆ getEndParameter()

double usPolynomialCurve3D::getEndParameter ( ) const

Get the ending value of the parametric variable of the polynomial curve.

Examples
testUsPolynomialCurve3D.cpp.

Definition at line 144 of file usPolynomialCurve3D.cpp.

References m_endParameter.

Referenced by usGeometryDisplayTools::display(), usNeedleModelSpline::getBendingEnergy(), usGeometryTools::getPlaneCurveCrossingPoint(), and usGeometryTools::projectPointOnCurve().

◆ getEndPoint()

◆ getEndTangent()

◆ getLength()

◆ getMeanAxisDeviation()

double usPolynomialCurve3D::getMeanAxisDeviation ( int  nbCountSeg = 50) const

Get the mean deviation of the polynomial with respect to the straight axis between the two extremities.

Parameters
nbCountSegnumber of segments used to approximate the deviation.
Examples
testUsPolynomialCurve3D.cpp.

Definition at line 1072 of file usPolynomialCurve3D.cpp.

References getParametricLength(), getPoints(), and m_startParameter.

◆ getNewOrderPolynomialCurve()

usPolynomialCurve3D usPolynomialCurve3D::getNewOrderPolynomialCurve ( unsigned int  order) const

Get new curve with new polynomial order.

Examples
testUsPolynomialCurve3D.cpp.

Definition at line 1176 of file usPolynomialCurve3D.cpp.

References setOrder().

◆ getOrder()

◆ getParametricLength()

double usPolynomialCurve3D::getParametricLength ( ) const

Get the length of the curve in the parametric variable space.

Examples
testUsPolynomialCurve3D.cpp.

Definition at line 160 of file usPolynomialCurve3D.cpp.

References m_endParameter, and m_startParameter.

Referenced by usNeedleInsertionModelVirtualSprings::addInsertionPoint(), usNeedleInsertionModelVirtualSprings::addInsertionPointAtTip(), usNeedleInsertionModelVirtualSprings::addInsertionPointAtTipHard(), usNeedleInsertionModelVirtualSprings::addInsertionPointOnSegment(), usNeedleInsertionModelVirtualSprings::addInsertionPointOnSegmentHard(), usNeedleInsertionModelVirtualSprings::addRemoveSprings(), usBSpline3D::addSegment(), usGeometryTools::convertPolynomialToBSpline(), defineFromPointsAuto(), defineFromWeightedPointsAuto(), usNeedleModelingDisplayTools::displayNeedle(), usNeedleModelingDisplayTools::displayTissueLayers(), usNeedleInsertionModelVirtualSprings::fusionSprings(), getControlPoints(), usNeedleInsertionModelRayleighRitzSpline::getCorrespondingPathPoint(), usNeedleModelPolynomial::getCurvatureFromNeedleShape(), getCurvatureFromShape(), usNeedleInsertionModelVirtualSprings::getInsertionDepth(), getLength(), usNeedleInsertionModelRayleighRitzSpline::getMaxTissueStretch(), usNeedleInsertionModelVirtualSprings::getMaxTissueStretch(), getMeanAxisDeviation(), usNeedleInsertionModelRayleighRitzSpline::getMeanTissueStretch(), usNeedleInsertionModelVirtualSprings::getMeanTissueStretch(), usNeedleInsertionModelVirtualSprings::getNeedleFreeLength(), usNeedleInsertionModelRayleighRitzSpline::getNeedleFreeLength(), usGeometryTools::getPlaneCurveCrossingPoint(), getRenderingPoints(), usBSpline3D::getSubSpline(), usNeedleInsertionModelRayleighRitzSpline::getTissueDeformationEnergy(), usNeedleInsertionModelVirtualSprings::removeInsertionPoints(), usNeedleInsertionModelVirtualSprings::removeInsertionPointsHard(), setLength(), usNeedleInsertionModelRayleighRitzSpline::solveSegmentsParametersDense(), usNeedleInsertionModelRayleighRitzSpline::solveSegmentsParametersFullSparseEigen(), usNeedleInsertionModelRayleighRitzSpline::solveSegmentsParametersFullSparseEigenFixedLength(), usNeedleInsertionModelVirtualSprings::solveSegmentsParametersOpenCV(), usNeedleInsertionModelRayleighRitzSpline::solveSegmentsParametersSparseEigen(), usNeedleInsertionModelVirtualSprings::solveSegmentsParametersSparseEigen(), usNeedleInsertionModelVirtualSprings::solveSegmentsParametersViSP(), usNeedleInsertionModelRayleighRitzSpline::updatePath(), usNeedleInsertionModelVirtualSprings::updateSpringsStiffness(), and usNeedleInsertionModelVirtualSprings::updateState().

◆ getPoint()

◆ getPoints()

vpMatrix usPolynomialCurve3D::getPoints ( const vpColVector &  parameters) const

Get the polynomial curve points at given parametric values.

Examples
testUsPolynomialCurve3D.cpp.

Definition at line 226 of file usPolynomialCurve3D.cpp.

References m_order, and m_polynomialCoefficients.

Referenced by usGeometryDisplayTools::display(), getControlPoints(), getCurvatureFromShape(), getLength(), getMeanAxisDeviation(), and getRenderingPoints().

◆ getPolynomialCoefficients()

◆ getRenderingPoints()

vpMatrix usPolynomialCurve3D::getRenderingPoints ( ) const

Get the rendering points. (to remove)

Examples
testUsPolynomialCurve3D.cpp.

Definition at line 1131 of file usPolynomialCurve3D.cpp.

References getParametricLength(), getPoints(), m_order, and m_startParameter.

◆ getStartParameter()

double usPolynomialCurve3D::getStartParameter ( ) const

Get the starting value of the parametric variable of the polynomial curve.

Examples
testUsPolynomialCurve3D.cpp.

Definition at line 140 of file usPolynomialCurve3D.cpp.

References m_startParameter.

Referenced by usGeometryDisplayTools::display(), usNeedleModelSpline::getBendingEnergy(), usGeometryTools::getPlaneCurveCrossingPoint(), and usGeometryTools::projectPointOnCurve().

◆ getStartPoint()

◆ getStartTangent()

◆ getSubPolynomialCurve()

◆ getTangent()

vpColVector usPolynomialCurve3D::getTangent ( double  parameter) const

◆ move() [1/2]

void usPolynomialCurve3D::move ( const vpHomogeneousMatrix &  H)

◆ move() [2/2]

void usPolynomialCurve3D::move ( double  x,
double  y,
double  z,
double  tx,
double  ty,
double  tz 
)

Apply an homogeneous transformation to the polynomial curve.

Definition at line 1246 of file usPolynomialCurve3D.cpp.

References move().

◆ operator=()

const usPolynomialCurve3D & usPolynomialCurve3D::operator= ( const usPolynomialCurve3D curve)

Assignment operator.

Definition at line 50 of file usPolynomialCurve3D.cpp.

References m_endParameter, m_order, m_polynomialCoefficients, and m_startParameter.

◆ reverse()

void usPolynomialCurve3D::reverse ( )

Invert the direction of displacement along the curve with respect to the parametric variable.

Examples
testUsPolynomialCurve3D.cpp.

Definition at line 1227 of file usPolynomialCurve3D.cpp.

References changeCoefficientsToFitBoundaries(), m_endParameter, and m_startParameter.

Referenced by setBoundaries().

◆ scale()

void usPolynomialCurve3D::scale ( double  s)

Scale the polynomial curve.

Examples
testUsPolynomialCurve3D.cpp.

Definition at line 1251 of file usPolynomialCurve3D.cpp.

References m_polynomialCoefficients.

◆ setBoundaries()

void usPolynomialCurve3D::setBoundaries ( double  startParameter,
double  endParamter 
)

Set the starting and ending values of the parametric variable of the polynomial curve. If the starting value is higher than the ending value, these values are inverted as well as the direction of displacement along the curve.

Examples
testUsPolynomialCurve3D.cpp.

Definition at line 146 of file usPolynomialCurve3D.cpp.

References m_endParameter, m_startParameter, and reverse().

Referenced by changeCoefficientsToFitMetricLength(), defineFromPoints(), defineFromWeightedPoints(), getSubPolynomialCurve(), usNeedleModelPolynomial::init(), and usNeedleModelSpline::init().

◆ setControlPoints() [1/2]

void usPolynomialCurve3D::setControlPoints ( const vpMatrix &  controlPoints)

Set the control points. The input matrix has to be of size 2xn, where n is the order of the polynomial curve.

Parameters
controlPointsReference to the desired control points.
Examples
testUsPolynomialCurve3D.cpp.

Definition at line 1096 of file usPolynomialCurve3D.cpp.

References defineFromPointsAuto().

Referenced by setControlPoints().

◆ setControlPoints() [2/2]

void usPolynomialCurve3D::setControlPoints ( double **  controlPoints)

Set the control points.

Definition at line 1110 of file usPolynomialCurve3D.cpp.

References m_order, and setControlPoints().

◆ setEndParameter()

void usPolynomialCurve3D::setEndParameter ( double  endParameter)

Set the ending value of the parametric variable of the polynomial curve.

Examples
testUsPolynomialCurve3D.cpp.

Definition at line 142 of file usPolynomialCurve3D.cpp.

References m_endParameter.

◆ setLength()

void usPolynomialCurve3D::setLength ( double  length,
double  precision = 1e-4 
)

Set the curve length in metric space.

Examples
testUsPolynomialCurve3D.cpp.

Definition at line 162 of file usPolynomialCurve3D.cpp.

References getLength(), getParametricLength(), and m_endParameter.

◆ setOrder()

void usPolynomialCurve3D::setOrder ( unsigned int  order)

◆ setParametricLength()

◆ setPolynomialCoefficients()

◆ setStartParameter()

void usPolynomialCurve3D::setStartParameter ( double  startParameter)

Set the starting value of the parametric variable of the polynomial curve.

Examples
testUsPolynomialCurve3D.cpp.

Definition at line 138 of file usPolynomialCurve3D.cpp.

References m_startParameter.

Friends And Related Function Documentation

◆ operator<<

VISP_EXPORT std::ostream& operator<< ( std::ostream &  s,
const usPolynomialCurve3D seg 
)
friend

Data saving.

Text

Definition at line 1253 of file usPolynomialCurve3D.cpp.

◆ operator<<=

VISP_EXPORT std::ostream& operator<<= ( std::ostream &  s,
const usPolynomialCurve3D seg 
)
friend

Binary.

Definition at line 1288 of file usPolynomialCurve3D.cpp.

◆ operator>>

VISP_EXPORT std::istream& operator>> ( std::istream &  s,
usPolynomialCurve3D seg 
)
friend

Definition at line 1268 of file usPolynomialCurve3D.cpp.

◆ operator>>=

VISP_EXPORT std::istream& operator>>= ( std::istream &  s,
usPolynomialCurve3D seg 
)
friend

Definition at line 1301 of file usPolynomialCurve3D.cpp.

Member Data Documentation

◆ m_endParameter

◆ m_order

◆ m_polynomialCoefficients

◆ m_startParameter