00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkPExtractHistogram2D.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 2009 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 -------------------------------------------------------------------------*/ 00038 #ifndef __vtkPExtractHistogram2D_h 00039 #define __vtkPExtractHistogram2D_h 00040 //------------------------------------------------------------------------------ 00041 #include "vtkExtractHistogram2D.h" 00042 //------------------------------------------------------------------------------ 00043 class vtkMultiProcessController; 00044 //------------------------------------------------------------------------------ 00045 class VTK_INFOVIS_EXPORT vtkPExtractHistogram2D : public vtkExtractHistogram2D 00046 { 00047 public: 00048 static vtkPExtractHistogram2D* New(); 00049 vtkTypeMacro(vtkPExtractHistogram2D, vtkExtractHistogram2D); 00050 void PrintSelf(ostream& os, vtkIndent indent); 00051 00052 virtual void SetController(vtkMultiProcessController*); 00053 vtkGetObjectMacro(Controller,vtkMultiProcessController); 00054 00055 protected: 00056 vtkPExtractHistogram2D(); 00057 ~vtkPExtractHistogram2D(); 00058 00059 vtkMultiProcessController* Controller; 00060 00061 virtual int ComputeBinExtents(vtkDataArray* col1, vtkDataArray* col2); 00062 00063 // Execute the calculations required by the Learn option. 00064 virtual void Learn( vtkTable* inData, 00065 vtkTable* inParameters, 00066 vtkDataObject* outMeta ); 00067 00068 private: 00069 vtkPExtractHistogram2D(const vtkPExtractHistogram2D&); // Not implemented 00070 void operator=(const vtkPExtractHistogram2D&); // Not implemented 00071 }; 00072 00073 #endif