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