QGIS API Documentation  2.18.21-Las Palmas (9fba24a)
Public Member Functions | Protected Attributes | List of all members
ParametricLine Class Referenceabstract

ParametricLine is an Interface for parametric lines. More...

#include <ParametricLine.h>

Inheritance diagram for ParametricLine:
Inheritance graph
[legend]

Public Member Functions

 ParametricLine ()
 Default constructor. More...
 
 ParametricLine (ParametricLine *par, QVector< Point3D *> *controlpoly)
 Constructor, par is a pointer to the parent object, controlpoly the controlpolygon. More...
 
virtual ~ParametricLine ()
 Destructor. More...
 
virtual void add (ParametricLine *pl)=0
 
virtual void calcFirstDer (float t, Vector3D *v)=0
 
virtual void calcPoint (float t, Point3D *)=0
 
virtual void calcSecDer (float t, Vector3D *v)=0
 
virtual void changeDirection ()=0
 
virtual const Point3DgetControlPoint (int number) const =0
 
virtual const QVector< Point3D * > * getControlPoly () const =0
 
virtual int getDegree () const =0
 
virtual ParametricLinegetParent () const =0
 
virtual void remove (int i)=0
 
virtual void setControlPoly (QVector< Point3D *> *cp)=0
 
virtual void setParent (ParametricLine *paral)=0
 

Protected Attributes

QVector< Point3D * > * mControlPoly
 MControlPoly stores the points of the control polygon. More...
 
int mDegree
 Degree of the parametric Line. More...
 
ParametricLinemParent
 Pointer to the parent object. More...
 

Detailed Description

ParametricLine is an Interface for parametric lines.

It is possible, that a parametric line is composed of several parametric lines (see the composite pattern in Gamma et al. 'Design Patterns'). Do not build instances of it since it is an abstract class.

Definition at line 27 of file ParametricLine.h.

Constructor & Destructor Documentation

◆ ParametricLine() [1/2]

ParametricLine::ParametricLine ( )
inline

Default constructor.

Definition at line 63 of file ParametricLine.h.

◆ ParametricLine() [2/2]

ParametricLine::ParametricLine ( ParametricLine par,
QVector< Point3D *> *  controlpoly 
)
inline

Constructor, par is a pointer to the parent object, controlpoly the controlpolygon.

Definition at line 71 of file ParametricLine.h.

◆ ~ParametricLine()

ParametricLine::~ParametricLine ( )
inlinevirtual

Destructor.

Definition at line 79 of file ParametricLine.h.

Member Function Documentation

◆ add()

virtual void ParametricLine::add ( ParametricLine pl)
pure virtual

Implemented in Bezier3D.

◆ calcFirstDer()

virtual void ParametricLine::calcFirstDer ( float  t,
Vector3D v 
)
pure virtual

Implemented in Bezier3D.

◆ calcPoint()

virtual void ParametricLine::calcPoint ( float  t,
Point3D  
)
pure virtual

Implemented in Bezier3D.

◆ calcSecDer()

virtual void ParametricLine::calcSecDer ( float  t,
Vector3D v 
)
pure virtual

Implemented in Bezier3D.

◆ changeDirection()

virtual void ParametricLine::changeDirection ( )
pure virtual

Implemented in Bezier3D.

◆ getControlPoint()

virtual const Point3D* ParametricLine::getControlPoint ( int  number) const
pure virtual

Implemented in Bezier3D.

◆ getControlPoly()

virtual const QVector<Point3D*>* ParametricLine::getControlPoly ( ) const
pure virtual

Implemented in Bezier3D.

◆ getDegree()

virtual int ParametricLine::getDegree ( ) const
pure virtual

Implemented in Bezier3D.

◆ getParent()

virtual ParametricLine* ParametricLine::getParent ( ) const
pure virtual

Implemented in Bezier3D.

◆ remove()

virtual void ParametricLine::remove ( int  i)
pure virtual

Implemented in Bezier3D.

◆ setControlPoly()

virtual void ParametricLine::setControlPoly ( QVector< Point3D *> *  cp)
pure virtual

Implemented in Bezier3D.

◆ setParent()

virtual void ParametricLine::setParent ( ParametricLine paral)
pure virtual

Implemented in Bezier3D.

Member Data Documentation

◆ mControlPoly

QVector<Point3D*>* ParametricLine::mControlPoly
protected

MControlPoly stores the points of the control polygon.

Definition at line 35 of file ParametricLine.h.

◆ mDegree

int ParametricLine::mDegree
protected

Degree of the parametric Line.

Definition at line 31 of file ParametricLine.h.

◆ mParent

ParametricLine* ParametricLine::mParent
protected

Pointer to the parent object.

If there isn't one, mParent is 0

Definition at line 33 of file ParametricLine.h.


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