VTK
/Users/kitware/Dashboards/MyTests/VTK_BLD_Release_docs/Utilities/Doxygen/dox/Filters/Core/vtkContourHelper.h
Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    vtkContourHelper.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 =========================================================================*/
00027 #ifndef vtkContourHelper_h
00028 #define vtkContourHelper_h
00029 
00030 #include "vtkFiltersCoreModule.h" // For export macro
00031 #include "vtkSmartPointer.h" //for a member variable
00032 #include "vtkPolygonBuilder.h" //for a member variable
00033 
00034 class vtkIncrementalPointLocator;
00035 class vtkCellArray;
00036 class vtkPointData;
00037 class vtkCellData;
00038 class vtkCell;
00039 class vtkDataArray;
00040 class vtkIdList;
00041 
00042 class VTKFILTERSCORE_EXPORT vtkContourHelper
00043 {
00044 public:
00045   vtkContourHelper(vtkIncrementalPointLocator *locator,
00046                  vtkCellArray *verts,
00047                  vtkCellArray *lines,
00048                  vtkCellArray* polys,
00049                  vtkPointData *inPd,
00050                  vtkCellData *inCd,
00051                  vtkPointData* outPd,
00052                  vtkCellData *outCd,
00053                  int estimatedSize,
00054                  bool outputTriangles);
00055   ~vtkContourHelper();
00056   void Contour(vtkCell* cell, double value, vtkDataArray *cellScalars, vtkIdType cellId);
00057 
00058  private:
00059   vtkIncrementalPointLocator* Locator;
00060   vtkCellArray* Verts;
00061   vtkCellArray* Lines;
00062   vtkCellArray* Polys;
00063   vtkPointData* InPd;
00064   vtkCellData* InCd;
00065   vtkPointData* OutPd;
00066   vtkCellData* OutCd;
00067   vtkSmartPointer<vtkCellData> TriOutCd;
00068 
00069   vtkCellArray* Tris;
00070   vtkPolygonBuilder PolyBuilder;
00071   vtkIdList* Poly;
00072   bool GenerateTriangles;
00073 };
00074 
00075 #endif
00076 // VTK-HeaderTest-Exclude: vtkContourHelper.h