VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkAnnotationLayersAlgorithm.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 =========================================================================*/ 00036 #ifndef __vtkAnnotationLayersAlgorithm_h 00037 #define __vtkAnnotationLayersAlgorithm_h 00038 00039 #include "vtkAlgorithm.h" 00040 #include "vtkAnnotationLayers.h" // makes things a bit easier 00041 00042 class vtkDataSet; 00043 00044 class VTK_FILTERING_EXPORT vtkAnnotationLayersAlgorithm : public vtkAlgorithm 00045 { 00046 public: 00047 static vtkAnnotationLayersAlgorithm *New(); 00048 vtkTypeMacro(vtkAnnotationLayersAlgorithm,vtkAlgorithm); 00049 void PrintSelf(ostream& os, vtkIndent indent); 00050 00052 00053 virtual int ProcessRequest(vtkInformation*, 00054 vtkInformationVector**, 00055 vtkInformationVector*); 00057 00059 00060 vtkAnnotationLayers* GetOutput() { return this->GetOutput(0); } 00061 vtkAnnotationLayers* GetOutput(int index); 00063 00065 00072 void SetInput(vtkDataObject * obj) { this->SetInput(0, obj); } 00073 void SetInput(int index, vtkDataObject* obj); 00075 00076 protected: 00077 vtkAnnotationLayersAlgorithm(); 00078 ~vtkAnnotationLayersAlgorithm(); 00079 00080 // convenience method 00081 virtual int RequestInformation(vtkInformation* request, 00082 vtkInformationVector** inputVector, 00083 vtkInformationVector* outputVector); 00084 00086 00088 virtual int RequestData(vtkInformation* request, 00089 vtkInformationVector** inputVector, 00090 vtkInformationVector* outputVector); 00092 00094 00096 virtual int RequestUpdateExtent(vtkInformation*, 00097 vtkInformationVector**, 00098 vtkInformationVector*); 00100 00101 // see algorithm for more info 00102 virtual int FillOutputPortInformation(int port, vtkInformation* info); 00103 virtual int FillInputPortInformation(int port, vtkInformation* info); 00104 00105 private: 00106 vtkAnnotationLayersAlgorithm(const vtkAnnotationLayersAlgorithm&); // Not implemented. 00107 void operator=(const vtkAnnotationLayersAlgorithm&); // Not implemented. 00108 }; 00109 00110 #endif