OSDN Git Service

FIRST REPOSITORY
[eos/hostdependOTHERS.git] / I386LINUX / util / I386LINUX / include / vtk / vtkGLUTesselatorTriangleFilter.h
1 /*=========================================================================
2
3   Program:   Visualization Toolkit
4   Module:    $RCSfile: vtkGLUTesselatorTriangleFilter.h,v $
5   Language:  C++
6   Date:      $Date: 2002/02/01 06:39:46 $
7   Version:   $Revision: 1.1.1.1 $
8   Thanks:    Tom Citriniti who implemented this class
9
10
11 Copyright (c) 1993-2001 Ken Martin, Will Schroeder, Bill Lorensen 
12 All rights reserved.
13
14 Redistribution and use in source and binary forms, with or without
15 modification, are permitted provided that the following conditions are met:
16
17  * Redistributions of source code must retain the above copyright notice,
18    this list of conditions and the following disclaimer.
19
20  * Redistributions in binary form must reproduce the above copyright notice,
21    this list of conditions and the following disclaimer in the documentation
22    and/or other materials provided with the distribution.
23
24  * Neither name of Ken Martin, Will Schroeder, or Bill Lorensen nor the names
25    of any contributors may be used to endorse or promote products derived
26    from this software without specific prior written permission.
27
28  * Modified source versions must be plainly marked as such, and must not be
29    misrepresented as being the original software.
30
31 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
32 AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
33 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
34 ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR CONTRIBUTORS BE LIABLE FOR
35 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
36 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
37 SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
38 CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
39 OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
40 OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
41
42 =========================================================================*/
43 // .NAME vtkGLUTesselatorTriangleFilter - create triangle polygons from input polygons and triangle strips
44 // .SECTION Description
45 // vtkGLUTesselatorTriangleFilter generates triangles from input polygons and
46 // triangle strips. The filter also will pass through vertices and lines, if
47 // requested. 
48 //
49 // This filter is a specialized version of vtkTriangleFilter. It uses
50 // glu code to perform the tessellation. To use this filter, you will
51 // have to link against a GLU library.
52 //
53 // .SECTION See Also
54 // vtkTriangleFilter
55
56 #ifndef __vtkGLUTesselatorTriangleFilter_h
57 #define __vtkGLUTesselatorTriangleFilter_h
58
59 #include "vtkPolyDataToPolyDataFilter.h"
60 #include <GL/GLU.h>
61
62 class VTK_EXPORT vtkGLUTesselatorTriangleFilter : public vtkPolyDataToPolyDataFilter
63 {
64 public:
65   static vtkGLUTesselatorTriangleFilter *New();
66   vtkTypeMacro(vtkGLUTesselatorTriangleFilter,vtkPolyDataToPolyDataFilter);
67   void PrintSelf(ostream& os, vtkIndent indent);
68
69   // Description:
70   // Turn on/off passing vertices through filter.
71   vtkBooleanMacro(PassVerts,int);
72   vtkSetMacro(PassVerts,int);
73   vtkGetMacro(PassVerts,int);
74
75   // Description:
76   // Turn on/off passing lines through filter.
77   vtkBooleanMacro(PassLines,int);
78   vtkSetMacro(PassLines,int);
79   vtkGetMacro(PassLines,int);
80
81 protected:
82   vtkGLUTesselatorTriangleFilter();
83   ~vtkGLUTesselatorTriangleFilter();
84   vtkGLUTesselatorTriangleFilter(const vtkGLUTesselatorTriangleFilter&) {};
85   void operator=(const vtkGLUTesselatorTriangleFilter&) {};
86
87   // Usual data generation method
88   void Execute();
89
90         // Data
91   int PassVerts;
92   int PassLines;
93   GLUtesselator *GLUTesselator;
94
95 };
96
97 #endif
98
99