VTK
vtkStreamingStatistics.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3 Program: Visualization Toolkit
4 Module: vtkStreamingStatistics.h
5 
6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7 All rights reserved.
8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10 This software is distributed WITHOUT ANY WARRANTY; without even
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12 PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*-------------------------------------------------------------------------
16  Copyright 2010 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19  -------------------------------------------------------------------------*/
34 #ifndef vtkStreamingStatistics_h
35 #define vtkStreamingStatistics_h
36 
37 #include "vtkFiltersStatisticsModule.h" // For export macro
38 #include "vtkTableAlgorithm.h"
39 
43 class vtkTable;
44 
45 class VTKFILTERSSTATISTICS_EXPORT vtkStreamingStatistics : public vtkTableAlgorithm
46 {
47 public:
49  void PrintSelf(ostream& os, vtkIndent indent) override;
50  static vtkStreamingStatistics* New();
51 
56  {
57  INPUT_DATA = 0,
58  LEARN_PARAMETERS = 1,
59  INPUT_MODEL = 2
60  };
61 
66  {
67  OUTPUT_DATA = 0,
68  OUTPUT_MODEL = 1,
69  OUTPUT_TEST = 2
70  };
71 
72  virtual void SetStatisticsAlgorithm(vtkStatisticsAlgorithm*);
73 
74 protected:
76  ~vtkStreamingStatistics() override;
77 
78  int FillInputPortInformation( int port, vtkInformation* info ) override;
79  int FillOutputPortInformation( int port, vtkInformation* info ) override;
80 
81  int RequestData(
84  vtkInformationVector* ) override;
85 
86 private:
88  void operator = ( const vtkStreamingStatistics& ) = delete;
89 
90  // Internal statistics algorithm to care for and feed
91  vtkStatisticsAlgorithm* StatisticsAlgorithm;
92 
93  // Internal model that gets aggregated
94  vtkMultiBlockDataSet* InternalModel;
95 };
96 
97 #endif
vtkTableAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkDataObjectCollection
maintain an unordered list of data objects
Definition: vtkDataObjectCollection.h:31
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkTable
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:62
vtkStreamingStatistics
A class for using the statistics filters in a streaming mode.
Definition: vtkStreamingStatistics.h:45
vtkMultiBlockDataSet
Composite dataset that organizes datasets into blocks.
Definition: vtkMultiBlockDataSet.h:45
vtkStreamingStatistics::InputPorts
InputPorts
enumeration values to specify input port types
Definition: vtkStreamingStatistics.h:55
vtkX3D::port
Definition: vtkX3D.h:447
vtkTableAlgorithm
Superclass for algorithms that produce only vtkTables as output.
Definition: vtkTableAlgorithm.h:48
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkStreamingStatistics::OutputIndices
OutputIndices
enumeration values to specify output port types
Definition: vtkStreamingStatistics.h:65
vtkTableAlgorithm::FillInputPortInformation
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:80
vtkX3D::info
Definition: vtkX3D.h:376
vtkTableAlgorithm.h
vtkStatisticsAlgorithm
Base class for statistics algorithms.
Definition: vtkStatisticsAlgorithm.h:71
vtkTableAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkTableAlgorithm::FillOutputPortInformation
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkTableAlgorithm::New
static vtkTableAlgorithm * New()