00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00028 #ifndef __vtkHierarchicalDataExtractLevel_h
00029 #define __vtkHierarchicalDataExtractLevel_h
00030
00031 #include "vtkHierarchicalDataSetAlgorithm.h"
00032
00033 class VTK_GRAPHICS_EXPORT vtkHierarchicalDataExtractLevel : public vtkHierarchicalDataSetAlgorithm
00034 {
00035 public:
00036 vtkTypeRevisionMacro(vtkHierarchicalDataExtractLevel,vtkHierarchicalDataSetAlgorithm);
00037 void PrintSelf(ostream& os, vtkIndent indent);
00038
00039 static vtkHierarchicalDataExtractLevel *New();
00040
00042
00043 vtkSetMacro(MinLevel, unsigned int);
00044 vtkGetMacro(MinLevel, unsigned int);
00046
00048
00049 vtkSetMacro(MaxLevel, unsigned int);
00050 vtkGetMacro(MaxLevel, unsigned int);
00052
00054
00055 void SetLevelRange(unsigned int min, unsigned int max)
00056 {
00057 this->SetMinLevel(min);
00058 this->SetMaxLevel(max);
00059 }
00061
00063
00064 vtkGetVector2Macro(InputLevels, int);
00066
00067 protected:
00068 vtkHierarchicalDataExtractLevel();
00069 ~vtkHierarchicalDataExtractLevel();
00070
00071 virtual int RequestDataObject(vtkInformation* request,
00072 vtkInformationVector** inputVector,
00073 vtkInformationVector* outputVector);
00074 virtual int RequestInformation(vtkInformation *,
00075 vtkInformationVector **,
00076 vtkInformationVector *);
00077 virtual int RequestData(vtkInformation *,
00078 vtkInformationVector **,
00079 vtkInformationVector *);
00080
00081 unsigned int MinLevel;
00082 unsigned int MaxLevel;
00083 int InputLevels[2];
00084
00085 private:
00086 vtkHierarchicalDataExtractLevel(const vtkHierarchicalDataExtractLevel&);
00087 void operator=(const vtkHierarchicalDataExtractLevel&);
00088 };
00089
00090 #endif
00091
00092