Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkDataSetTriangleFilter.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkDataSetTriangleFilter.h,v $
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 =========================================================================*/
00050 #ifndef __vtkDataSetTriangleFilter_h
00051 #define __vtkDataSetTriangleFilter_h
00052 
00053 #include "vtkDataSetToUnstructuredGridFilter.h"
00054 
00055 class vtkOrderedTriangulator;
00056 
00057 class VTK_GRAPHICS_EXPORT vtkDataSetTriangleFilter : public vtkDataSetToUnstructuredGridFilter
00058 {
00059 public:
00060   static vtkDataSetTriangleFilter *New();
00061   vtkTypeRevisionMacro(vtkDataSetTriangleFilter,vtkDataSetToUnstructuredGridFilter);
00062   void PrintSelf(ostream& os, vtkIndent indent);
00063 
00064 protected:
00065   vtkDataSetTriangleFilter();
00066   ~vtkDataSetTriangleFilter();
00067 
00068   // Usual data generation method
00069   void Execute();
00070 
00071   // Used to triangulate 3D cells
00072   vtkOrderedTriangulator *Triangulator;
00073 
00074   // Different execute methods depending on whether input is structured or not
00075   void StructuredExecute();
00076   void UnstructuredExecute();
00077   
00078 private:
00079   vtkDataSetTriangleFilter(const vtkDataSetTriangleFilter&);  // Not implemented.
00080   void operator=(const vtkDataSetTriangleFilter&);  // Not implemented.
00081 };
00082 
00083 #endif
00084 
00085