Gaia
|
A PointArray is a simple subclass of a QVector<Point*> that owns the memory to the points (hence will delete them when it is itself deleted). More...
#include <dataset.h>
Public Member Functions | |
PointArray (int n=0, bool ownsMemory=true) | |
PointArray (bool ownsMemory) | |
void | clear () |
Delete the points this array contains (if it owns them), then resize the array to 0. | |
int | totalSegments () const |
Returns the total number of segments in this PointArray (the sum of the number of segments for each point in the array). | |
const Point * | samplePoint () const |
Returns any single point from the PointArray. | |
Protected Attributes | |
bool | _ownsMemory |
A PointArray is a simple subclass of a QVector<Point*> that owns the memory to the points (hence will delete them when it is itself deleted).
NB: the PointArray can be told explicitly that it doesn't own the points, in which case it will behave the same as a simple QVector<Point*>.