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

Graphics/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 =========================================================================*/
00039 #ifndef __vtkDataSetTriangleFilter_h
00040 #define __vtkDataSetTriangleFilter_h
00041 
00042 #include "vtkDataSetToUnstructuredGridFilter.h"
00043 
00044 class vtkOrderedTriangulator;
00045 
00046 class VTK_GRAPHICS_EXPORT vtkDataSetTriangleFilter : public vtkDataSetToUnstructuredGridFilter
00047 {
00048 public:
00049   static vtkDataSetTriangleFilter *New();
00050   vtkTypeRevisionMacro(vtkDataSetTriangleFilter,vtkDataSetToUnstructuredGridFilter);
00051   void PrintSelf(ostream& os, vtkIndent indent);
00052 
00053 protected:
00054   vtkDataSetTriangleFilter();
00055   ~vtkDataSetTriangleFilter();
00056 
00057   // Usual data generation method
00058   void Execute();
00059 
00060   // Used to triangulate 3D cells
00061   vtkOrderedTriangulator *Triangulator;
00062 
00063   // Different execute methods depending on whether input is structured or not
00064   void StructuredExecute();
00065   void UnstructuredExecute();
00066   
00067 private:
00068   vtkDataSetTriangleFilter(const vtkDataSetTriangleFilter&);  // Not implemented.
00069   void operator=(const vtkDataSetTriangleFilter&);  // Not implemented.
00070 };
00071 
00072 #endif
00073 
00074