vtkSciVizStatistics.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-FileCopyrightText: Copyright 2011 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
21 #ifndef vtkSciVizStatistics_h
22 #define vtkSciVizStatistics_h
23 
24 #include "vtkPVVTKExtensionsFiltersStatisticsModule.h" //needed for exports
26 
29 class vtkFieldData;
30 class vtkGenerateStatistics;
32 class vtkPartitionedDataSetCollection;
36 
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent) override;
43 
45 
48  vtkGetMacro(AttributeMode, int);
49  vtkSetMacro(AttributeMode, int);
51 
55  int GetNumberOfAttributeArrays();
56 
60  const char* GetAttributeArrayName(int n);
61 
65  int GetAttributeArrayStatus(const char* arrName);
66 
68 
71  void EnableAttributeArray(const char* arrName);
72  void ClearAttributeArrays();
74 
76 
90  vtkSetClampMacro(TrainingFraction, double, 0.0, 1.0);
91  vtkGetMacro(TrainingFraction, double);
93 
95 
98  virtual void SetController(vtkMultiProcessController*);
99  vtkGetObjectMacro(Controller, vtkMultiProcessController);
101 
111  enum Tasks
112  {
113  MODEL_INPUT,
114  CREATE_MODEL,
117  MODEL_AND_ASSESS
118  };
120 
122 
127  vtkSetMacro(Task, int);
128  vtkGetMacro(Task, int);
130 
132 
138  vtkSetMacro(GlobalModel, vtkTypeBool);
139  vtkGetMacro(GlobalModel, vtkTypeBool);
140  vtkBooleanMacro(GlobalModel, vtkTypeBool);
142 
148  vtkInformationIntegerKey* MULTIPLE_MODELS();
149 
150 protected:
152  ~vtkSciVizStatistics() override;
153 
166  virtual bool PrepareInputArrays(vtkDataObject* inData, vtkGenerateStatistics* filter);
167 
172  virtual bool PrepareAlgorithm(vtkGenerateStatistics* filter) = 0;
173 
174  int FillInputPortInformation(int port, vtkInformation* info) override;
175  int FillOutputPortInformation(int port, vtkInformation* info) override;
176 
177  int RequestData(
178  vtkInformation* request, vtkInformationVector** input, vtkInformationVector* output) override;
179 
181  int Task;
186 
187 private:
188  vtkSciVizStatistics(const vtkSciVizStatistics&) = delete;
189  void operator=(const vtkSciVizStatistics&) = delete;
190 };
191 
192 #endif // vtkSciVizStatistics_h
#define VTKPVVTKEXTENSIONSFILTERSSTATISTICS_EXPORT
Assess the input dataset using a statistical model from input port 1.
vtkMultiProcessController * Controller
int vtkTypeBool
virtual int FillInputPortInformation(int port, vtkInformation *info)
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
Abstract base class for computing statistics with vtkStatistics.
vtkSciVizStatisticsP * P
Tasks
Possible tasks the filter can perform.
void operator=(const vtkObjectBase &)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
virtual int FillOutputPortInformation(int port, vtkInformation *info)