Gaia
gaia2::PointArray Class Reference

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>

Inheritance diagram for gaia2::PointArray:
gaia2::DataSet EmptyDataSet

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 PointsamplePoint () const
 Returns any single point from the PointArray.
 

Protected Attributes

bool _ownsMemory
 

Detailed Description

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*>.


The documentation for this class was generated from the following files: