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 "vtkPolyDataAlgorithm.h"
33 
34 class vtkCellArray;
35 class vtkCellData;
36 class vtkIdList;
37 class vtkIntArray;
38 class vtkPointData;
39 class vtkPoints;
40 class vtkPolyData;
41 
43 {
44 public:
46  void PrintSelf(ostream& os, vtkIndent indent);
47 
49 
50  vtkSetMacro(NumberOfSubdivisions,int);
51  vtkGetMacro(NumberOfSubdivisions,int);
53 
54 protected:
57 
59  virtual void GenerateSubdivisionPoints (vtkPolyData *inputDS, vtkIntArray *edgeData, vtkPoints *outputPts, vtkPointData *outputPD) = 0;
60  void GenerateSubdivisionCells (vtkPolyData *inputDS, vtkIntArray *edgeData, vtkCellArray *outputPolys, vtkCellData *outputCD);
61  int FindEdge (vtkPolyData *mesh, vtkIdType cellId, vtkIdType p1,
62  vtkIdType p2, vtkIntArray *edgeData, vtkIdList *cellIds);
63  vtkIdType InterpolatePosition (vtkPoints *inputPts, vtkPoints *outputPts,
64  vtkIdList *stencil, double *weights);
66 
67 private:
69  void operator=(const vtkInterpolatingSubdivisionFilter&); // Not implemented.
70 };
71 
72 #endif
73 
74 
#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
object to represent cell connectivity
Definition: vtkCellArray.h:48
Store zero or more vtkInformation instances.
generate a subdivision surface using an Interpolating Scheme
represent and manipulate 3D points
Definition: vtkPoints.h:38