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);
65  vtkIdList *stencil, double *weights);
67 
68 private:
70  void operator=(const vtkInterpolatingSubdivisionFilter&); // Not implemented.
71 };
72 
73 #endif
74 
75 
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:39
vtkInterpolatingSubdivisionFilter::GenerateSubdivisionPoints
virtual int GenerateSubdivisionPoints(vtkPolyData *inputDS, vtkIntArray *edgeData, vtkPoints *outputPts, vtkPointData *outputPD)=0
vtkgl::weights
const GLbyte * weights
Definition: vtkgl.h:12766
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:37
vtkIdType
int vtkIdType
Definition: vtkType.h:275
vtkInterpolatingSubdivisionFilter::FindEdge
int FindEdge(vtkPolyData *mesh, vtkIdType cellId, vtkIdType p1, vtkIdType p2, vtkIntArray *edgeData, vtkIdList *cellIds)
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkPolyDataAlgorithm.h
vtkInterpolatingSubdivisionFilter::InterpolatePosition
vtkIdType InterpolatePosition(vtkPoints *inputPts, vtkPoints *outputPts, vtkIdList *stencil, double *weights)
vtkFiltersGeneralModule.h
vtkgl::stencil
GLint GLfloat GLint stencil
Definition: vtkgl.h:12368
vtkCellData
represent and manipulate cell attribute data
Definition: vtkCellData.h:38
vtkInterpolatingSubdivisionFilter::NumberOfSubdivisions
int NumberOfSubdivisions
Definition: vtkInterpolatingSubdivisionFilter.h:66
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:50
vtkIntArray
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:53
vtkInterpolatingSubdivisionFilter::~vtkInterpolatingSubdivisionFilter
~vtkInterpolatingSubdivisionFilter()
Definition: vtkInterpolatingSubdivisionFilter.h:57
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:36
VTKFILTERSGENERAL_EXPORT
#define VTKFILTERSGENERAL_EXPORT
Definition: vtkFiltersGeneralModule.h:15
vtkInterpolatingSubdivisionFilter::vtkInterpolatingSubdivisionFilter
vtkInterpolatingSubdivisionFilter()
vtkInterpolatingSubdivisionFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkInterpolatingSubdivisionFilter::GenerateSubdivisionCells
void GenerateSubdivisionCells(vtkPolyData *inputDS, vtkIntArray *edgeData, vtkCellArray *outputPolys, vtkCellData *outputCD)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:84
vtkInterpolatingSubdivisionFilter
generate a subdivision surface using an Interpolating Scheme
Definition: vtkInterpolatingSubdivisionFilter.h:44
vtkInterpolatingSubdivisionFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44