| 61 | 
  | 
  enum OutputDataType { | 
| 62 | 
  | 
    odtReal, | 
| 63 | 
  | 
    odtVector3, | 
| 64 | 
+ | 
    odtArray2d, | 
| 65 | 
  | 
    odtUnknownDataType | 
| 66 | 
  | 
  }; | 
| 67 | 
  | 
 | 
| 78 | 
  | 
    OutputDataType dataType; | 
| 79 | 
  | 
    OutputDataHandling dataHandling; | 
| 80 | 
  | 
    vector<BaseAccumulator*> accumulator; | 
| 81 | 
+ | 
    vector<vector<BaseAccumulator*> > accumulatorArray2d; | 
| 82 | 
  | 
  }; | 
| 83 | 
< | 
     | 
| 83 | 
> | 
 | 
| 84 | 
  | 
  class SpatialStatistics : public StaticAnalyser { | 
| 85 | 
  | 
     | 
| 86 | 
  | 
  public: | 
| 98 | 
  | 
    OutputData* beginOutputData(vector<OutputData*>::iterator& i); | 
| 99 | 
  | 
    OutputData* nextOutputData(vector<OutputData*>::iterator& i); | 
| 100 | 
  | 
    void writeData(ostream& os, OutputData* dat, unsigned int bin); | 
| 101 | 
< | 
    void writeStdDev(ostream& os, OutputData* dat, unsigned int bin); | 
| 101 | 
> | 
    void writeErrorBars(ostream& os, OutputData* dat, unsigned int bin); | 
| 102 | 
  | 
 | 
| 103 | 
  | 
    Snapshot* currentSnapshot_;     | 
| 104 | 
  | 
    int nProcessed_; | 
| 109 | 
  | 
    OutputData* counts_; | 
| 110 | 
  | 
    vector<OutputData*> data_; | 
| 111 | 
  | 
  }; | 
| 112 | 
< | 
 | 
| 112 | 
> | 
   | 
| 113 | 
  | 
  class SlabStatistics : public SpatialStatistics { | 
| 114 | 
  | 
  public:  | 
| 115 | 
  | 
    SlabStatistics(SimInfo* info, const string& filename, const string& sele, int nbins); | 
| 116 | 
+ | 
    virtual ~SlabStatistics(); | 
| 117 | 
+ | 
 | 
| 118 | 
  | 
    virtual int getBin(Vector3d pos); | 
| 119 | 
  | 
    virtual void processFrame(int frame); | 
| 120 | 
  | 
  protected: | 
| 127 | 
  | 
  class ShellStatistics : public SpatialStatistics { | 
| 128 | 
  | 
  public:  | 
| 129 | 
  | 
    ShellStatistics(SimInfo* info, const string& filename, const string& sele, int nbins); | 
| 130 | 
+ | 
    virtual ~ShellStatistics(); | 
| 131 | 
  | 
    virtual int getBin(Vector3d pos); | 
| 132 | 
  | 
 | 
| 133 | 
  | 
    void setCoordinateOrigin(Vector3d co) { coordinateOrigin_ = co; } |