|
QGIS API Documentation
2.10.1-Pisa
|
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 More... | |
| unsigned int | getCurrent () const |
| returns the current position More... | |
| Point3D * | getPoint () const |
| gets the point at the current position More... | |
| unsigned int | getSize () const |
| returns the size of the line (the numbero of inserted Nodes without 'head' and 'z' More... | |
| void | goToBegin () |
| sets the current Node to head More... | |
| void | goToNext () |
| goes to the next Node More... | |
| void | insertPoint (Point3D *p) |
| inserts a node behind the current position and sets the current position to this new node More... | |
| void | removePoint () |
| removes the point behind the current position More... | |
Protected Attributes | |
| unsigned int | current |
| Node * | currentNode |
| Node * | head |
| unsigned int | size |
| Node * | z |
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
| Line3D::Line3D | ( | ) |
| Line3D::~Line3D | ( | ) |
| bool Line3D::empty | ( | ) | const |
returns true, if the Line contains no Point3D, otherwise false
|
inline |
|
inline |
|
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
| void Line3D::removePoint | ( | ) |
removes the point behind the current position
1.8.6