VTK
dox/Filters/Statistics/vtkStreamingStatistics.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003 Program:   Visualization Toolkit
00004 Module:    vtkStreamingStatistics.h
00005 
00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007 All rights reserved.
00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010 This software is distributed WITHOUT ANY WARRANTY; without even
00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012 PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00015 /*-------------------------------------------------------------------------
00016   Copyright 2010 Sandia Corporation.
00017   Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
00018   the U.S. Government retains certain rights in this software.
00019   -------------------------------------------------------------------------*/
00036 #ifndef __vtkStreamingStatistics_h
00037 #define __vtkStreamingStatistics_h
00038 
00039 #include "vtkFiltersStatisticsModule.h" // For export macro
00040 #include "vtkTableAlgorithm.h"
00041 
00042 class vtkDataObjectCollection;
00043 class vtkMultiBlockDataSet;
00044 class vtkStatisticsAlgorithm;
00045 class vtkTable;
00046 
00047 class VTKFILTERSSTATISTICS_EXPORT vtkStreamingStatistics : public vtkTableAlgorithm
00048 {
00049 public:
00050   vtkTypeMacro(vtkStreamingStatistics, vtkTableAlgorithm);
00051   void PrintSelf(ostream& os, vtkIndent indent);
00052   static vtkStreamingStatistics* New();
00053 
00055 
00056   enum InputPorts
00057     {
00058     INPUT_DATA = 0,         
00059     LEARN_PARAMETERS = 1,   
00060     INPUT_MODEL = 2         
00061     };
00063 
00065 
00066   enum OutputIndices
00067     {
00068     OUTPUT_DATA  = 0,       
00069     OUTPUT_MODEL = 1,       
00070 #ifndef VTK_LEGACY_REMOVE
00071     ASSESSMENT   = 2,       
00072 #endif
00073     OUTPUT_TEST  = 2        
00074     };
00076 
00077   virtual void SetStatisticsAlgorithm(vtkStatisticsAlgorithm*);
00078 
00079 protected:
00080   vtkStreamingStatistics();
00081   ~vtkStreamingStatistics();
00082 
00083   virtual int FillInputPortInformation( int port, vtkInformation* info );
00084   virtual int FillOutputPortInformation( int port, vtkInformation* info );
00085 
00086   virtual int RequestData(
00087     vtkInformation*,
00088     vtkInformationVector**,
00089     vtkInformationVector* );
00090 
00091 private:
00092   vtkStreamingStatistics( const vtkStreamingStatistics& ); // Not implemented
00093   void operator = ( const vtkStreamingStatistics& );   // Not implemented
00094 
00095   // Internal statistics algorithm to care for and feed
00096   vtkStatisticsAlgorithm* StatisticsAlgorithm;
00097 
00098   // Internal model that gets aggregated
00099   vtkMultiBlockDataSet* InternalModel;
00100 };
00101 
00102 #endif