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

Graphics/vtkGeometryFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkGeometryFilter.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 =========================================================================*/
00069 #ifndef __vtkGeometryFilter_h
00070 #define __vtkGeometryFilter_h
00071 
00072 #include "vtkDataSetToPolyDataFilter.h"
00073 
00074 class vtkPointLocator;
00075 
00076 class VTK_GRAPHICS_EXPORT vtkGeometryFilter : public vtkDataSetToPolyDataFilter
00077 {
00078 public:
00079   static vtkGeometryFilter *New();
00080   vtkTypeRevisionMacro(vtkGeometryFilter,vtkDataSetToPolyDataFilter);
00081   void PrintSelf(ostream& os, vtkIndent indent);
00082 
00084 
00085   vtkSetMacro(PointClipping,int);
00086   vtkGetMacro(PointClipping,int);
00087   vtkBooleanMacro(PointClipping,int);
00089 
00091 
00092   vtkSetMacro(CellClipping,int);
00093   vtkGetMacro(CellClipping,int);
00094   vtkBooleanMacro(CellClipping,int);
00096 
00098 
00099   vtkSetMacro(ExtentClipping,int);
00100   vtkGetMacro(ExtentClipping,int);
00101   vtkBooleanMacro(ExtentClipping,int);
00103 
00105 
00106   vtkSetClampMacro(PointMinimum,vtkIdType,0,VTK_LARGE_ID);
00107   vtkGetMacro(PointMinimum,vtkIdType);
00109 
00111 
00112   vtkSetClampMacro(PointMaximum,vtkIdType,0,VTK_LARGE_ID);
00113   vtkGetMacro(PointMaximum,vtkIdType);
00115 
00117 
00118   vtkSetClampMacro(CellMinimum,vtkIdType,0,VTK_LARGE_ID);
00119   vtkGetMacro(CellMinimum,vtkIdType);
00121 
00123 
00124   vtkSetClampMacro(CellMaximum,vtkIdType,0,VTK_LARGE_ID);
00125   vtkGetMacro(CellMaximum,vtkIdType);
00127 
00129 
00131   void SetExtent(float xMin, float xMax, float yMin, float yMax, 
00132                  float zMin, float zMax);
00134 
00136 
00138   void SetExtent(float extent[6]);
00139   float *GetExtent() { return this->Extent;};
00141 
00143 
00146   vtkSetMacro(Merging,int);
00147   vtkGetMacro(Merging,int);
00148   vtkBooleanMacro(Merging,int);
00150 
00152 
00154   void SetLocator(vtkPointLocator *locator);
00155   vtkGetObjectMacro(Locator,vtkPointLocator);
00157 
00159   void CreateDefaultLocator();
00160 
00162   unsigned long GetMTime();
00163 
00164 protected:
00165   vtkGeometryFilter();
00166   ~vtkGeometryFilter();
00167 
00168   void Execute();
00169   void PolyDataExecute(); //special cases for performance
00170   void UnstructuredGridExecute();
00171   void StructuredGridExecute();
00172   void ComputeInputUpdateExtents(vtkDataObject *output);
00173   void ExecuteInformation();
00174 
00175   vtkIdType PointMaximum;
00176   vtkIdType PointMinimum;
00177   vtkIdType CellMinimum;
00178   vtkIdType CellMaximum;
00179   float Extent[6];
00180   int PointClipping;
00181   int CellClipping;
00182   int ExtentClipping;
00183 
00184   int Merging;
00185   vtkPointLocator *Locator;
00186 private:
00187   vtkGeometryFilter(const vtkGeometryFilter&);  // Not implemented.
00188   void operator=(const vtkGeometryFilter&);  // Not implemented.
00189 };
00190 
00191 #endif
00192 
00193