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 =========================================================================*/
00048 #ifndef __vtkExtractUnstructuredGrid_h
00049 #define __vtkExtractUnstructuredGrid_h
00050 
00051 #include "vtkUnstructuredGridToUnstructuredGridFilter.h"
00052 
00053 class vtkPointLocator;
00054 
00055 class VTK_GRAPHICS_EXPORT vtkExtractUnstructuredGrid : public vtkUnstructuredGridToUnstructuredGridFilter
00056 {
00057 public:
00058   vtkTypeRevisionMacro(vtkExtractUnstructuredGrid,vtkUnstructuredGridToUnstructuredGridFilter);
00059   void PrintSelf(ostream& os, vtkIndent indent);
00060 
00062   static vtkExtractUnstructuredGrid *New();
00063 
00065 
00066   vtkSetMacro(PointClipping,int);
00067   vtkGetMacro(PointClipping,int);
00068   vtkBooleanMacro(PointClipping,int);
00070 
00072 
00073   vtkSetMacro(CellClipping,int);
00074   vtkGetMacro(CellClipping,int);
00075   vtkBooleanMacro(CellClipping,int);
00077 
00079 
00080   vtkSetMacro(ExtentClipping,int);
00081   vtkGetMacro(ExtentClipping,int);
00082   vtkBooleanMacro(ExtentClipping,int);
00084 
00086 
00087   vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_LARGE_ID);
00088   vtkGetMacro(PointMinimum,vtkIdType);
00090 
00092 
00093   vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_LARGE_ID);
00094   vtkGetMacro(PointMaximum,vtkIdType);
00096 
00098 
00099   vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_LARGE_ID);
00100   vtkGetMacro(CellMinimum,vtkIdType);
00102 
00104 
00105   vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_LARGE_ID);
00106   vtkGetMacro(CellMaximum,vtkIdType);
00108 
00110 
00112   void SetExtent(float xMin, float xMax, float yMin, float yMax, 
00113                  float zMin, float zMax);
00115 
00117 
00119   void SetExtent(float extent[6]);
00120   float *GetExtent() { return this->Extent;};
00122 
00124 
00127   vtkSetMacro(Merging,int);
00128   vtkGetMacro(Merging,int);
00129   vtkBooleanMacro(Merging,int);
00131 
00133 
00135   void SetLocator(vtkPointLocator *locator);
00136   vtkGetObjectMacro(Locator,vtkPointLocator);
00138 
00140   void CreateDefaultLocator();
00141 
00143   unsigned long GetMTime();
00144 
00145 protected:
00146   vtkExtractUnstructuredGrid();
00147   ~vtkExtractUnstructuredGrid() {};
00148 
00149   void Execute();
00150 
00151   vtkIdType PointMinimum;
00152   vtkIdType PointMaximum;
00153   vtkIdType CellMinimum;
00154   vtkIdType CellMaximum;
00155   float Extent[6];
00156   int PointClipping;
00157   int CellClipping;
00158   int ExtentClipping;
00159 
00160   int Merging;
00161   vtkPointLocator *Locator;
00162 private:
00163   vtkExtractUnstructuredGrid(const vtkExtractUnstructuredGrid&);  // Not implemented.
00164   void operator=(const vtkExtractUnstructuredGrid&);  // Not implemented.
00165 };
00166 
00167 #endif
00168 
00169