VTK
vtkApproximatingSubdivisionFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkApproximatingSubdivisionFilter.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 =========================================================================*/
26 #ifndef __vtkApproximatingSubdivisionFilter_h
27 #define __vtkApproximatingSubdivisionFilter_h
28 
29 #include "vtkPolyDataAlgorithm.h"
30 
31 class vtkCellArray;
32 class vtkCellData;
33 class vtkIdList;
34 class vtkIntArray;
35 class vtkPoints;
36 class vtkPointData;
37 
39 {
40 public:
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
46  vtkSetMacro(NumberOfSubdivisions,int);
47  vtkGetMacro(NumberOfSubdivisions,int);
49 
50 protected:
53 
55  virtual void GenerateSubdivisionPoints (vtkPolyData *inputDS,
56  vtkIntArray *edgeData,
57  vtkPoints *outputPts,
58  vtkPointData *outputPD) = 0;
59  void GenerateSubdivisionCells (vtkPolyData *inputDS, vtkIntArray *edgeData,
60  vtkCellArray *outputPolys,
61  vtkCellData *outputCD);
62  int FindEdge (vtkPolyData *mesh, vtkIdType cellId, vtkIdType p1,
63  vtkIdType p2, vtkIntArray *edgeData, vtkIdList *cellIds);
64  vtkIdType InterpolatePosition (vtkPoints *inputPts, vtkPoints *outputPts,
65  vtkIdList *stencil, double *weights);
67 private:
69  void operator=(const vtkApproximatingSubdivisionFilter&); // Not implemented.
70 };
71 
72 #endif
#define VTK_GRAPHICS_EXPORT
represent and manipulate point attribute data
Definition: vtkPointData.h:35
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
represent and manipulate cell attribute data
Definition: vtkCellData.h:36
int vtkIdType
Definition: vtkType.h:255
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:81
void PrintSelf(ostream &os, vtkIndent indent)
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:42
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:37
list of point or cell ids
Definition: vtkIdList.h:34
generate a subdivision surface using an Approximating Scheme
object to represent cell connectivity
Definition: vtkCellArray.h:48
Store zero or more vtkInformation instances.
represent and manipulate 3D points
Definition: vtkPoints.h:38