00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00054 #ifndef _vtkTemporalStatistics_h
00055 #define _vtkTemporalStatistics_h
00056
00057 #include "vtkPassInputTypeAlgorithm.h"
00058
00059 class vtkCompositeDataSet;
00060 class vtkDataSet;
00061 class vtkFieldData;
00062 class vtkGraph;
00063
00064 class VTK_GRAPHICS_EXPORT vtkTemporalStatistics : public vtkPassInputTypeAlgorithm
00065 {
00066 public:
00067 vtkTypeMacro(vtkTemporalStatistics, vtkPassInputTypeAlgorithm);
00068 static vtkTemporalStatistics *New();
00069 virtual void PrintSelf(ostream &os, vtkIndent indent);
00070
00072
00074 vtkGetMacro(ComputeAverage, int);
00075 vtkSetMacro(ComputeAverage, int);
00076 vtkBooleanMacro(ComputeAverage, int);
00078
00080
00082 vtkGetMacro(ComputeMinimum, int);
00083 vtkSetMacro(ComputeMinimum, int);
00084 vtkBooleanMacro(ComputeMinimum, int);
00086
00088
00090 vtkGetMacro(ComputeMaximum, int);
00091 vtkSetMacro(ComputeMaximum, int);
00092 vtkBooleanMacro(ComputeMaximum, int);
00094
00095
00096
00097
00098
00099 vtkGetMacro(ComputeStandardDeviation, int);
00100 vtkSetMacro(ComputeStandardDeviation, int);
00101 vtkBooleanMacro(ComputeStandardDeviation, int);
00102
00103 protected:
00104 vtkTemporalStatistics();
00105 ~vtkTemporalStatistics();
00106
00107 int ComputeAverage;
00108 int ComputeMaximum;
00109 int ComputeMinimum;
00110 int ComputeStandardDeviation;
00111
00112
00113 int CurrentTimeIndex;
00114
00115 virtual int FillInputPortInformation(int port, vtkInformation *info);
00116
00117 virtual int RequestDataObject(vtkInformation *request,
00118 vtkInformationVector **inputVector,
00119 vtkInformationVector *outputVector);
00120 virtual int RequestInformation(vtkInformation *request,
00121 vtkInformationVector **inputVector,
00122 vtkInformationVector *outputVector);
00123 virtual int RequestUpdateExtent(vtkInformation *request,
00124 vtkInformationVector **inputVector,
00125 vtkInformationVector *outputVector);
00126 virtual int RequestData(vtkInformation *request,
00127 vtkInformationVector **inputVector,
00128 vtkInformationVector *outputVector);
00129
00130 virtual void InitializeStatistics(vtkDataObject *input,
00131 vtkDataObject *output);
00132 virtual void InitializeStatistics(vtkDataSet *input, vtkDataSet *output);
00133 virtual void InitializeStatistics(vtkGraph *input, vtkGraph *output);
00134 virtual void InitializeStatistics(vtkCompositeDataSet *input,
00135 vtkCompositeDataSet *output);
00136 virtual void InitializeArrays(vtkFieldData *inFd, vtkFieldData *outFd);
00137 virtual void InitializeArray(vtkDataArray *array, vtkFieldData *outFd);
00138
00139 virtual void AccumulateStatistics(vtkDataObject *input,
00140 vtkDataObject *output);
00141 virtual void AccumulateStatistics(vtkDataSet *input, vtkDataSet *output);
00142 virtual void AccumulateStatistics(vtkGraph *input, vtkGraph *output);
00143 virtual void AccumulateStatistics(vtkCompositeDataSet *input,
00144 vtkCompositeDataSet *output);
00145 virtual void AccumulateArrays(vtkFieldData *inFd, vtkFieldData *outFd);
00146
00147 virtual void PostExecute(vtkDataObject *input, vtkDataObject *output);
00148 virtual void PostExecute(vtkDataSet *input, vtkDataSet *output);
00149 virtual void PostExecute(vtkGraph *input, vtkGraph *output);
00150 virtual void PostExecute(vtkCompositeDataSet *input,
00151 vtkCompositeDataSet *output);
00152 virtual void FinishArrays(vtkFieldData *inFd, vtkFieldData *outFd);
00153
00154 virtual vtkDataArray *GetArray(vtkFieldData *fieldData,
00155 vtkDataArray *inArray,
00156 const char *nameSuffix);
00157
00158 private:
00159 vtkTemporalStatistics(const vtkTemporalStatistics &);
00160 void operator=(const vtkTemporalStatistics &);
00161 };
00162
00163 #endif //_vtkTemporalStatistics_h