Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

Graphics/vtkExtractUnstructuredGrid.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkExtractUnstructuredGrid.h,v $
00005   Language:  C++
00006 
00007   Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 
00008   All rights reserved.
00009   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00010 
00011      This software is distributed WITHOUT ANY WARRANTY; without even 
00012      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
00013      PURPOSE.  See the above copyright notice for more information.
00014 
00015 =========================================================================*/
00060 #ifndef __vtkExtractUnstructuredGrid_h
00061 #define __vtkExtractUnstructuredGrid_h
00062 
00063 #include "vtkUnstructuredGridToUnstructuredGridFilter.h"
00064 
00065 class vtkPointLocator;
00066 
00067 class VTK_GRAPHICS_EXPORT vtkExtractUnstructuredGrid : public vtkUnstructuredGridToUnstructuredGridFilter
00068 {
00069 public:
00070   vtkTypeRevisionMacro(vtkExtractUnstructuredGrid,vtkUnstructuredGridToUnstructuredGridFilter);
00071   void PrintSelf(ostream& os, vtkIndent indent);
00072 
00074   static vtkExtractUnstructuredGrid *New();
00075 
00077 
00078   vtkSetMacro(PointClipping,int);
00079   vtkGetMacro(PointClipping,int);
00080   vtkBooleanMacro(PointClipping,int);
00082 
00084 
00085   vtkSetMacro(CellClipping,int);
00086   vtkGetMacro(CellClipping,int);
00087   vtkBooleanMacro(CellClipping,int);
00089 
00091 
00092   vtkSetMacro(ExtentClipping,int);
00093   vtkGetMacro(ExtentClipping,int);
00094   vtkBooleanMacro(ExtentClipping,int);
00096 
00098 
00099   vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_LARGE_ID);
00100   vtkGetMacro(PointMinimum,vtkIdType);
00102 
00104 
00105   vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_LARGE_ID);
00106   vtkGetMacro(PointMaximum,vtkIdType);
00108 
00110 
00111   vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_LARGE_ID);
00112   vtkGetMacro(CellMinimum,vtkIdType);
00114 
00116 
00117   vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_LARGE_ID);
00118   vtkGetMacro(CellMaximum,vtkIdType);
00120 
00122 
00124   void SetExtent(float xMin, float xMax, float yMin, float yMax, 
00125                  float zMin, float zMax);
00127 
00129 
00131   void SetExtent(float extent[6]);
00132   float *GetExtent() { return this->Extent;};
00134 
00136 
00139   vtkSetMacro(Merging,int);
00140   vtkGetMacro(Merging,int);
00141   vtkBooleanMacro(Merging,int);
00143 
00145 
00147   void SetLocator(vtkPointLocator *locator);
00148   vtkGetObjectMacro(Locator,vtkPointLocator);
00150 
00152   void CreateDefaultLocator();
00153 
00155   unsigned long GetMTime();
00156 
00157 protected:
00158   vtkExtractUnstructuredGrid();
00159   ~vtkExtractUnstructuredGrid() {};
00160 
00161   void Execute();
00162 
00163   vtkIdType PointMinimum;
00164   vtkIdType PointMaximum;
00165   vtkIdType CellMinimum;
00166   vtkIdType CellMaximum;
00167   float Extent[6];
00168   int PointClipping;
00169   int CellClipping;
00170   int ExtentClipping;
00171 
00172   int Merging;
00173   vtkPointLocator *Locator;
00174 private:
00175   vtkExtractUnstructuredGrid(const vtkExtractUnstructuredGrid&);  // Not implemented.
00176   void operator=(const vtkExtractUnstructuredGrid&);  // Not implemented.
00177 };
00178 
00179 #endif
00180 
00181