VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Filters/Generic/vtkGenericDataSetTessellator.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkGenericDataSetTessellator.h
00005 
00006   Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
00007   All rights reserved.
00008   See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
00009 
00010      This software is distributed WITHOUT ANY WARRANTY; without even
00011      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00012      PURPOSE.  See the above copyright notice for more information.
00013 
00014 =========================================================================*/
00038 #ifndef vtkGenericDataSetTessellator_h
00039 #define vtkGenericDataSetTessellator_h
00040 
00041 #include "vtkFiltersGenericModule.h" // For export macro
00042 #include "vtkUnstructuredGridAlgorithm.h"
00043 
00044 class vtkPointData;
00045 class vtkIncrementalPointLocator;
00046 
00047 class VTKFILTERSGENERIC_EXPORT vtkGenericDataSetTessellator : public vtkUnstructuredGridAlgorithm
00048 {
00049 public:
00051 
00052   static vtkGenericDataSetTessellator *New();
00053   vtkTypeMacro(vtkGenericDataSetTessellator,
00054                        vtkUnstructuredGridAlgorithm);
00055   void PrintSelf(ostream& os, vtkIndent indent);
00057 
00059 
00063   vtkSetMacro(KeepCellIds, int);
00064   vtkGetMacro(KeepCellIds, int);
00065   vtkBooleanMacro(KeepCellIds, int);
00067 
00068 
00070 
00073   vtkSetMacro(Merging,int);
00074   vtkGetMacro(Merging,int);
00075   vtkBooleanMacro(Merging,int);
00077 
00079 
00081   void SetLocator(vtkIncrementalPointLocator *locator);
00082   vtkGetObjectMacro(Locator,vtkIncrementalPointLocator);
00084 
00086   void CreateDefaultLocator();
00087 
00089   unsigned long GetMTime();
00090 
00091 protected:
00092   vtkGenericDataSetTessellator();
00093   ~vtkGenericDataSetTessellator();
00094 
00095   int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00096 
00097   int FillInputPortInformation(int, vtkInformation*);
00098 
00099   // See Set/Get KeepCellIds() for explanations.
00100   int KeepCellIds;
00101 
00102   // Used internal by vtkGenericAdaptorCell::Tessellate()
00103   vtkPointData *InternalPD;
00104 
00105   int Merging;
00106   vtkIncrementalPointLocator *Locator;
00107 
00108 private:
00109   vtkGenericDataSetTessellator(const vtkGenericDataSetTessellator&);  // Not implemented.
00110   void operator=(const vtkGenericDataSetTessellator&);  // Not implemented.
00111 };
00112 
00113 #endif