// $Id: DataSet.h,v 1.2 2006/08/02 03:39:28 pkaz Exp $ // // DataSet class that handles reading of points from input file. Note that a point can be // "hidden" by editing the input file and changing its name to one that is not present // in the list maintained by the Phantom class. #ifndef _DataSet_h #define _DataSet_h // cisst includes #include // Class for the two data sets class DataSet { protected: vctDouble3* data[2]; // 2 arrays for data bool* isValid[2]; // 2 arrays to indicate data validity int* nameIndex; // Map from index to string name int maxPts; // Maximum number of data points (array sizes) int nrpoints; // Current number of data points public: DataSet(int maxpts); virtual ~DataSet(); bool ReadFromFile(int dnum, const char* fname); void ReadFromArray(int dnum, const vctDouble3* array); void FinalizeInput(); }; #endif