VTK
vtkLoopSubdivisionFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkLoopSubdivisionFilter.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
48 #ifndef __vtkLoopSubdivisionFilter_h
49 #define __vtkLoopSubdivisionFilter_h
50 
52 
53 class vtkPolyData;
54 class vtkIntArray;
55 class vtkPoints;
56 class vtkIdList;
57 
59 {
60 public:
62 
63  static vtkLoopSubdivisionFilter *New();
66 
67 protected:
70 
72 
73  void GenerateSubdivisionPoints (vtkPolyData *inputDS, vtkIntArray *edgeData,
74  vtkPoints *outputPts,
75  vtkPointData *outputPD);
76  void GenerateEvenStencil (vtkIdType p1, vtkPolyData *polys,
77  vtkIdList *stencilIds, double *weights);
78  void GenerateOddStencil (vtkIdType p1, vtkIdType p2, vtkPolyData *polys,
79  vtkIdList *stencilIds, double *weights);
80 
82 
83 private:
84  vtkLoopSubdivisionFilter(const vtkLoopSubdivisionFilter&); // Not implemented.
85  void operator=(const vtkLoopSubdivisionFilter&); // Not implemented.
86 };
87 
88 #endif
#define VTK_GRAPHICS_EXPORT
represent and manipulate point attribute data
Definition: vtkPointData.h:35
Store vtkAlgorithm input/output information.
int vtkIdType
Definition: vtkType.h:255
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:81
static vtkPolyDataAlgorithm * New()
virtual int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:42
list of point or cell ids
Definition: vtkIdList.h:34
generate a subdivision surface using an Approximating Scheme
virtual void GenerateSubdivisionPoints(vtkPolyData *inputDS, vtkIntArray *edgeData, vtkPoints *outputPts, vtkPointData *outputPD)=0
Store zero or more vtkInformation instances.
generate a subdivision surface using the Loop Scheme
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
represent and manipulate 3D points
Definition: vtkPoints.h:38