+ return _numPoints;
+ }
+
+ /**
+ * Set the indices of the points selected out of a loaded track
+ * @param inSelectedFlags array of booleans showing whether each point in the original data was loaded or not
+ */
+ public void setPointIndices(boolean[] inSelectedFlags)
+ {
+ _numPoints = inSelectedFlags.length;
+ _pointIndices = new int[_numPoints];
+ int p=0;
+ for (int i=0; i<_numPoints; i++) {
+ if (inSelectedFlags[i]) {_pointIndices[p++] = i;}
+ }
+ // Now the point indices array holds the index of each of the selected points