This class represents a line.
More...
#include <Line3D.h>
Public Member Functions |
| | Line3D () |
| | ~Line3D () |
| bool | empty () const |
| | returns true, if the Line contains no Point3D, otherwise false
|
| void | insertPoint (Point3D *p) |
| | inserts a node behind the current position and sets the current position to this new node
|
| void | removePoint () |
| | removes the point behind the current position
|
| Point3D * | getPoint () const |
| | gets the point at the current position
|
| unsigned int | getCurrent () const |
| | returns the current position
|
| unsigned int | getSize () const |
| | returns the size of the line (the numbero of inserted Nodes without 'head' and 'z'
|
| void | goToBegin () |
| | sets the current Node to head
|
| void | goToNext () |
| | goes to the next Node
|
Detailed Description
This class represents a line.
It is implemented as a single directed linked list of nodes (with related Point3D objects). Attention: the points inserted in a line are not deleted from Line3D
Constructor & Destructor Documentation
Member Function Documentation
| bool Line3D::empty |
( |
| ) |
const |
returns true, if the Line contains no Point3D, otherwise false
| unsigned int Line3D::getCurrent |
( |
| ) |
const |
|
inline |
returns the current position
| Point3D * Line3D::getPoint |
( |
| ) |
const |
|
inline |
gets the point at the current position
| unsigned int Line3D::getSize |
( |
| ) |
const |
|
inline |
returns the size of the line (the numbero of inserted Nodes without 'head' and 'z'
| void Line3D::goToBegin |
( |
| ) |
|
sets the current Node to head
| void Line3D::goToNext |
( |
| ) |
|
| void Line3D::insertPoint |
( |
Point3D * |
p | ) |
|
inserts a node behind the current position and sets the current position to this new node
| void Line3D::removePoint |
( |
| ) |
|
removes the point behind the current position
Member Data Documentation
| unsigned int Line3D::current |
|
protected |
| Node* Line3D::currentNode |
|
protected |
| unsigned int Line3D::size |
|
protected |
The documentation for this class was generated from the following file:
- /tmp/buildd/qgis-2.6.0+wheezy1/src/analysis/interpolation/Line3D.h