|
QGIS API Documentation
2.2.0-Valmiera
|
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 | |
Protected Attributes | |
| Node * | head |
| Node * | z |
| Node * | currentNode |
| unsigned int | size |
| unsigned int | current |
Private Member Functions | |
| Line3D (const Line3D &) | |
| copy constructor, declared privat to not use it | |
| Line3D & | operator= (const Line3D &) |
| assignment operator, declared privat to not use it | |
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
|
inlineprivate |
| Line3D::Line3D | ( | ) |
| Line3D::~Line3D | ( | ) |
| bool Line3D::empty | ( | ) | const |
returns true, if the Line contains no Point3D, otherwise false
|
inline |
|
inline |
gets the point at the current position
Definition at line 74 of file Line3D.h.
References currentNode, and Node::getPoint().
|
inline |
| void Line3D::goToBegin | ( | ) |
sets the current Node to head
| void Line3D::goToNext | ( | ) |
goes to the next Node
| void Line3D::insertPoint | ( | Point3D * | p | ) |
inserts a node behind the current position and sets the current position to this new node
Referenced by QgsTINInterpolator::insertData().
| void Line3D::removePoint | ( | ) |
removes the point behind the current position
|
protected |
Definition at line 36 of file Line3D.h.
Referenced by getCurrent().
|
protected |
Definition at line 34 of file Line3D.h.
Referenced by getPoint().
|
protected |
1.8.1.2