VTK: Filters/Statistics/vtkStreamingStatistics.h Source File

| VTK 9.3.1

vtkStreamingStatistics.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-FileCopyrightText: Copyright 2010 Sandia Corporation
3 // SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
18 #ifndef vtkStreamingStatistics_h
19 #define vtkStreamingStatistics_h
20
21 #include "vtkFiltersStatisticsModule.h" // For export macro
22 #include "vtkTableAlgorithm.h"
23
24 VTK_ABI_NAMESPACE_BEGIN
25 class vtkDataObjectCollection;
26 class vtkMultiBlockDataSet;
27 class vtkStatisticsAlgorithm;
28 class vtkTable;
29
30 class VTKFILTERSSTATISTICS_EXPORT vtkStreamingStatistics : public vtkTableAlgorithm
31 {
32 public:
33 vtkTypeMacro(vtkStreamingStatistics, vtkTableAlgorithm);
34 void PrintSelf(ostream& os, vtkIndent indent) override;
35 static vtkStreamingStatistics* New();
36
40 enum InputPorts
41 {
42 INPUT_DATA = 0,
43 LEARN_PARAMETERS = 1,
44 INPUT_MODEL = 2
45 };
46
50 enum OutputIndices
51 {
52 OUTPUT_DATA = 0,
53 OUTPUT_MODEL = 1,
54 OUTPUT_TEST = 2
55 };
56
57 virtual void SetStatisticsAlgorithm(vtkStatisticsAlgorithm*);
58
59 protected:
60 vtkStreamingStatistics();
61 ~vtkStreamingStatistics() override;
62
63 int FillInputPortInformation(int port, vtkInformation* info) override;
64 int FillOutputPortInformation(int port, vtkInformation* info) override;
65
66 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
67
68 private:
69 vtkStreamingStatistics(const vtkStreamingStatistics&) = delete;
70 void operator=(const vtkStreamingStatistics&) = delete;
71
72 // Internal statistics algorithm to care for and feed
73 vtkStatisticsAlgorithm* StatisticsAlgorithm;
74
75 // Internal model that gets aggregated
76 vtkMultiBlockDataSet* InternalModel;
77 };
78
79 VTK_ABI_NAMESPACE_END
80 #endif
vtkDataObjectCollection
maintain an unordered list of data objects
Definition: vtkDataObjectCollection.h:21
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkMultiBlockDataSet
Composite dataset that organizes datasets into blocks.
Definition: vtkMultiBlockDataSet.h:50
vtkStatisticsAlgorithm
Base class for statistics algorithms.
Definition: vtkStatisticsAlgorithm.h:69
vtkStreamingStatistics
A class for using the statistics filters in a streaming mode.
Definition: vtkStreamingStatistics.h:31
vtkStreamingStatistics::InputPorts
InputPorts
enumeration values to specify input port types
Definition: vtkStreamingStatistics.h:41
vtkStreamingStatistics::~vtkStreamingStatistics
~vtkStreamingStatistics() override
vtkStreamingStatistics::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkStreamingStatistics::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkStreamingStatistics::SetStatisticsAlgorithm
virtual void SetStatisticsAlgorithm(vtkStatisticsAlgorithm *)
vtkStreamingStatistics::vtkStreamingStatistics
vtkStreamingStatistics()
vtkStreamingStatistics::New
static vtkStreamingStatistics * New()
vtkStreamingStatistics::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkStreamingStatistics::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkStreamingStatistics::OutputIndices
OutputIndices
enumeration values to specify output port types
Definition: vtkStreamingStatistics.h:51
vtkTableAlgorithm
Superclass for algorithms that produce only vtkTables as output.
Definition: vtkTableAlgorithm.h:37
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:68
vtkX3D::info
@ info
Definition: vtkX3D.h:376
vtkX3D::port
@ port
Definition: vtkX3D.h:447
vtkTableAlgorithm.h