VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkExtractLevel.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 =========================================================================*/ 00029 #ifndef __vtkExtractLevel_h 00030 #define __vtkExtractLevel_h 00031 00032 #include "vtkFiltersExtractionModule.h" // For export macro 00033 #include "vtkMultiBlockDataSetAlgorithm.h" 00034 00035 class VTKFILTERSEXTRACTION_EXPORT vtkExtractLevel : 00036 public vtkMultiBlockDataSetAlgorithm 00037 { 00038 public: 00039 static vtkExtractLevel* New(); 00040 vtkTypeMacro(vtkExtractLevel, vtkMultiBlockDataSetAlgorithm); 00041 void PrintSelf(ostream& os, vtkIndent indent); 00042 00043 00045 00047 void AddLevel(unsigned int level); 00048 void RemoveLevel(unsigned int level); 00049 void RemoveAllLevels(); 00051 00052 //BTX 00053 protected: 00054 vtkExtractLevel(); 00055 ~vtkExtractLevel(); 00056 00057 virtual int RequestUpdateExtent(vtkInformation*, vtkInformationVector**,vtkInformationVector* ); 00058 00060 virtual int RequestData(vtkInformation *, 00061 vtkInformationVector **, 00062 vtkInformationVector *); 00063 00064 virtual int FillInputPortInformation(int port,vtkInformation *info); 00065 virtual int FillOutputPortInformation(int port,vtkInformation *info); 00066 00067 private: 00068 vtkExtractLevel(const vtkExtractLevel&); // Not implemented. 00069 void operator=(const vtkExtractLevel&); // Not implemented. 00070 00071 class vtkSet; 00072 vtkSet* Levels; 00073 //ETX 00074 }; 00075 00076 #endif 00077 00078