2012-09-24 02:28:15 +02:00
|
|
|
class Line3D /NoDefaultCtors/
|
|
|
|
{
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include <Line3D.h>
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
Line3D();
|
|
|
|
~Line3D();
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Returns true, if the Line contains no Point3D, otherwise false*/
|
2012-09-24 02:28:15 +02:00
|
|
|
bool empty() const;
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Inserts a node behind the current position and sets the current position to this new node*/
|
2012-09-24 02:28:15 +02:00
|
|
|
void insertPoint( Point3D* p );
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Removes the point behind the current position*/
|
2012-09-24 02:28:15 +02:00
|
|
|
void removePoint();
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Gets the point at the current position*/
|
2012-09-24 02:28:15 +02:00
|
|
|
Point3D* getPoint() const;
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Returns the current position*/
|
2012-09-24 02:28:15 +02:00
|
|
|
unsigned int getCurrent() const;
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Returns the size of the line (the numbero of inserted Nodes without 'head' and 'z'*/
|
2012-09-24 02:28:15 +02:00
|
|
|
unsigned int getSize() const;
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Sets the current Node to head*/
|
2012-09-24 02:28:15 +02:00
|
|
|
void goToBegin();
|
2015-07-29 11:52:14 +02:00
|
|
|
/** Goes to the next Node*/
|
2012-09-24 02:28:15 +02:00
|
|
|
void goToNext();
|
|
|
|
};
|