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 vtkMultiBlockDataSet; 00044 class vtkMultiProcessController; 00045 00046 class VTK_INFOVIS_EXPORT vtkPExtractHistogram2D : public vtkExtractHistogram2D 00047 { 00048 public: 00049 static vtkPExtractHistogram2D* New(); 00050 vtkTypeMacro(vtkPExtractHistogram2D, vtkExtractHistogram2D); 00051 void PrintSelf(ostream& os, vtkIndent indent); 00052 00053 virtual void SetController(vtkMultiProcessController*); 00054 vtkGetObjectMacro(Controller,vtkMultiProcessController); 00055 00056 protected: 00057 vtkPExtractHistogram2D(); 00058 ~vtkPExtractHistogram2D(); 00059 00060 vtkMultiProcessController* Controller; 00061 00062 virtual int ComputeBinExtents(vtkDataArray* col1, vtkDataArray* col2); 00063 00064 // Execute the calculations required by the Learn option. 00065 virtual void Learn( vtkTable* inData, 00066 vtkTable* inParameters, 00067 vtkMultiBlockDataSet* outMeta ); 00068 00069 private: 00070 vtkPExtractHistogram2D(const vtkPExtractHistogram2D&); // Not implemented 00071 void operator=(const vtkPExtractHistogram2D&); // Not implemented 00072 }; 00073 00074 #endif