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 
136  vtkInformationIntegerKey* MULTIPLE_MODELS();
137 
138 protected:
140  ~vtkSciVizStatistics() override;
141 
154  virtual bool PrepareInputArrays(vtkDataObject* inData, vtkGenerateStatistics* filter);
155 
160  virtual bool PrepareAlgorithm(vtkGenerateStatistics* filter) = 0;
161 
162  int FillInputPortInformation(int port, vtkInformation* info) override;
163  int FillOutputPortInformation(int port, vtkInformation* info) override;
164 
165  int RequestData(
166  vtkInformation* request, vtkInformationVector** input, vtkInformationVector* output) override;
167 
169  int Task;
173 
174 private:
175  vtkSciVizStatistics(const vtkSciVizStatistics&) = delete;
176  void operator=(const vtkSciVizStatistics&) = delete;
177 };
178 
179 #endif // vtkSciVizStatistics_h
#define VTKPVVTKEXTENSIONSFILTERSSTATISTICS_EXPORT
Assess the input dataset using a statistical model from input port 1.
vtkMultiProcessController * Controller
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)