VTK
vtkInterpolatingSubdivisionFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkInterpolatingSubdivisionFilter.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 =========================================================================*/
29 #ifndef vtkInterpolatingSubdivisionFilter_h
30 #define vtkInterpolatingSubdivisionFilter_h
31 
32 #include "vtkFiltersGeneralModule.h" // For export macro
33 #include "vtkPolyDataAlgorithm.h"
34 
35 class vtkCellArray;
36 class vtkCellData;
37 class vtkIdList;
38 class vtkIntArray;
39 class vtkPointData;
40 class vtkPoints;
41 class vtkPolyData;
42 
44 {
45 public:
47  void PrintSelf(ostream& os, vtkIndent indent);
48 
50 
51  vtkSetMacro(NumberOfSubdivisions,int);
52  vtkGetMacro(NumberOfSubdivisions,int);
54 
55 protected:
58 
60  virtual int GenerateSubdivisionPoints (vtkPolyData *inputDS, vtkIntArray *edgeData, vtkPoints *outputPts, vtkPointData *outputPD) = 0;
61  void GenerateSubdivisionCells (vtkPolyData *inputDS, vtkIntArray *edgeData, vtkCellArray *outputPolys, 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 
68 private:
70  void operator=(const vtkInterpolatingSubdivisionFilter&); // Not implemented.
71 };
72 
73 #endif
74 
75 
represent and manipulate point attribute data
Definition: vtkPointData.h:36
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
represent and manipulate cell attribute data
Definition: vtkCellData.h:37
int vtkIdType
Definition: vtkType.h:275
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:83
void PrintSelf(ostream &os, vtkIndent indent)
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:49
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
list of point or cell ids
Definition: vtkIdList.h:35
#define VTKFILTERSGENERAL_EXPORT
object to represent cell connectivity
Definition: vtkCellArray.h:49
Store zero or more vtkInformation instances.
generate a subdivision surface using an Interpolating Scheme
represent and manipulate 3D points
Definition: vtkPoints.h:38