VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkHierarchicalBoxDataSetAlgorithm.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 =========================================================================*/ 00024 #ifndef __vtkHierarchicalBoxDataSetAlgorithm_h 00025 #define __vtkHierarchicalBoxDataSetAlgorithm_h 00026 00027 #include "vtkCommonExecutionModelModule.h" // For export macro 00028 #include "vtkAlgorithm.h" 00029 00030 class vtkHierarchicalBoxDataSet; 00031 class VTKCOMMONEXECUTIONMODEL_EXPORT vtkHierarchicalBoxDataSetAlgorithm : public vtkAlgorithm 00032 { 00033 public: 00034 static vtkHierarchicalBoxDataSetAlgorithm* New(); 00035 vtkTypeMacro(vtkHierarchicalBoxDataSetAlgorithm, vtkAlgorithm); 00036 void PrintSelf(ostream& os, vtkIndent indent); 00037 00039 00040 vtkHierarchicalBoxDataSet* GetOutput(); 00041 vtkHierarchicalBoxDataSet* GetOutput(int); 00043 00045 00048 void SetInputData(vtkDataObject*); 00049 void SetInputData(int, vtkDataObject*); 00051 00053 00054 virtual int ProcessRequest(vtkInformation* request, 00055 vtkInformationVector** inputVector, 00056 vtkInformationVector* outputVector); 00058 00059 //BTX 00060 protected: 00061 vtkHierarchicalBoxDataSetAlgorithm(); 00062 ~vtkHierarchicalBoxDataSetAlgorithm(); 00063 00065 00067 virtual int RequestDataObject(vtkInformation*, 00068 vtkInformationVector**, 00069 vtkInformationVector*) {return 1;}; 00071 00073 00075 virtual int RequestInformation(vtkInformation*, 00076 vtkInformationVector**, 00077 vtkInformationVector*) {return 1;}; 00079 00081 00083 virtual int RequestData(vtkInformation*, 00084 vtkInformationVector**, 00085 vtkInformationVector*) {return 1;}; 00087 00089 00091 virtual int RequestUpdateExtent(vtkInformation*, 00092 vtkInformationVector**, 00093 vtkInformationVector*) 00094 { 00095 return 1; 00096 }; 00098 00099 // Create a default executive. 00100 virtual vtkExecutive* CreateDefaultExecutive(); 00101 00102 // see algorithm for more info 00103 virtual int FillOutputPortInformation(int port, vtkInformation* info); 00104 virtual int FillInputPortInformation(int port, vtkInformation* info); 00105 00106 vtkDataObject *GetInput(int port); 00107 00108 private: 00109 vtkHierarchicalBoxDataSetAlgorithm(const vtkHierarchicalBoxDataSetAlgorithm&); // Not implemented. 00110 void operator=(const vtkHierarchicalBoxDataSetAlgorithm&); // Not implemented. 00111 //ETX 00112 }; 00113 00114 #endif 00115 00116