Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound 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 =========================================================================*/
00059 #ifndef __vtkExtractUnstructuredGrid_h
00060 #define __vtkExtractUnstructuredGrid_h
00061 
00062 #include "vtkUnstructuredGridToUnstructuredGridFilter.h"
00063 
00064 class vtkPointLocator;
00065 
00066 class VTK_GRAPHICS_EXPORT vtkExtractUnstructuredGrid : public vtkUnstructuredGridToUnstructuredGridFilter
00067 {
00068 public:
00069   vtkTypeRevisionMacro(vtkExtractUnstructuredGrid,vtkUnstructuredGridToUnstructuredGridFilter);
00070   void PrintSelf(ostream& os, vtkIndent indent);
00071 
00073   static vtkExtractUnstructuredGrid *New();
00074 
00076 
00077   vtkSetMacro(PointClipping,int);
00078   vtkGetMacro(PointClipping,int);
00079   vtkBooleanMacro(PointClipping,int);
00081 
00083 
00084   vtkSetMacro(CellClipping,int);
00085   vtkGetMacro(CellClipping,int);
00086   vtkBooleanMacro(CellClipping,int);
00088 
00090 
00091   vtkSetMacro(ExtentClipping,int);
00092   vtkGetMacro(ExtentClipping,int);
00093   vtkBooleanMacro(ExtentClipping,int);
00095 
00097 
00098   vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_LARGE_ID);
00099   vtkGetMacro(PointMinimum,vtkIdType);
00101 
00103 
00104   vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_LARGE_ID);
00105   vtkGetMacro(PointMaximum,vtkIdType);
00107 
00109 
00110   vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_LARGE_ID);
00111   vtkGetMacro(CellMinimum,vtkIdType);
00113 
00115 
00116   vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_LARGE_ID);
00117   vtkGetMacro(CellMaximum,vtkIdType);
00119 
00121 
00123   void SetExtent(float xMin, float xMax, float yMin, float yMax, 
00124                  float zMin, float zMax);
00126 
00128 
00130   void SetExtent(float extent[6]);
00131   float *GetExtent() { return this->Extent;};
00133 
00135 
00138   vtkSetMacro(Merging,int);
00139   vtkGetMacro(Merging,int);
00140   vtkBooleanMacro(Merging,int);
00142 
00144 
00146   void SetLocator(vtkPointLocator *locator);
00147   vtkGetObjectMacro(Locator,vtkPointLocator);
00149 
00151   void CreateDefaultLocator();
00152 
00154   unsigned long GetMTime();
00155 
00156 protected:
00157   vtkExtractUnstructuredGrid();
00158   ~vtkExtractUnstructuredGrid() {};
00159 
00160   void Execute();
00161 
00162   vtkIdType PointMinimum;
00163   vtkIdType PointMaximum;
00164   vtkIdType CellMinimum;
00165   vtkIdType CellMaximum;
00166   float Extent[6];
00167   int PointClipping;
00168   int CellClipping;
00169   int ExtentClipping;
00170 
00171   int Merging;
00172   vtkPointLocator *Locator;
00173 private:
00174   vtkExtractUnstructuredGrid(const vtkExtractUnstructuredGrid&);  // Not implemented.
00175   void operator=(const vtkExtractUnstructuredGrid&);  // Not implemented.
00176 };
00177 
00178 #endif
00179 
00180