VTK
dox/Infovis/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 "vtkTableAlgorithm.h"
00040 
00041 class vtkDataObjectCollection;
00042 class vtkMultiBlockDataSet;
00043 class vtkStatisticsAlgorithm;
00044 class vtkTable;
00045 
00046 class VTK_INFOVIS_EXPORT vtkStreamingStatistics : public vtkTableAlgorithm
00047 {
00048 public:
00049   vtkTypeMacro(vtkStreamingStatistics, vtkTableAlgorithm);
00050   void PrintSelf(ostream& os, vtkIndent indent);
00051   static vtkStreamingStatistics* New();
00052 
00054 
00055   enum InputPorts
00056     {
00057     INPUT_DATA = 0,         
00058     LEARN_PARAMETERS = 1,   
00059     INPUT_MODEL = 2         
00060     };
00062 
00064 
00065   enum OutputIndices
00066     {
00067     OUTPUT_DATA  = 0,       
00068     OUTPUT_MODEL = 1,       
00069     ASSESSMENT   = 2,       
00070     OUTPUT_TEST  = 2        
00071     };
00073 
00074   virtual void SetStatisticsAlgorithm(vtkStatisticsAlgorithm*);
00075 
00076 protected:
00077   vtkStreamingStatistics();
00078   ~vtkStreamingStatistics();
00079 
00080   virtual int FillInputPortInformation( int port, vtkInformation* info );
00081   virtual int FillOutputPortInformation( int port, vtkInformation* info );
00082 
00083   virtual int RequestData(
00084     vtkInformation*,
00085     vtkInformationVector**,
00086     vtkInformationVector* );
00087 
00088 private:
00089   vtkStreamingStatistics( const vtkStreamingStatistics& ); // Not implemented
00090   void operator = ( const vtkStreamingStatistics& );   // Not implemented
00091 
00092   // Internal statistics algorithm to care for and feed
00093   vtkStatisticsAlgorithm* StatisticsAlgorithm;
00094 
00095   // Internal model that gets aggregated
00096   vtkMultiBlockDataSet* InternalModel;
00097 };
00098 
00099 #endif