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 =========================================================================*/
27 #ifndef vtkApproximatingSubdivisionFilter_h
28 #define vtkApproximatingSubdivisionFilter_h
29 
30 #include "vtkFiltersGeneralModule.h" // For export macro
31 #include "vtkPolyDataAlgorithm.h"
32 
33 class vtkCellArray;
34 class vtkCellData;
35 class vtkIdList;
36 class vtkIntArray;
37 class vtkPoints;
38 class vtkPointData;
39 
40 class VTKFILTERSGENERAL_EXPORT vtkApproximatingSubdivisionFilter : public vtkPolyDataAlgorithm
41 {
42 public:
44  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
45 
47 
50  vtkSetMacro(NumberOfSubdivisions,int);
51  vtkGetMacro(NumberOfSubdivisions,int);
53 
54 protected:
57 
59  virtual int GenerateSubdivisionPoints (vtkPolyData *inputDS,
60  vtkIntArray *edgeData,
61  vtkPoints *outputPts,
62  vtkPointData *outputPD) = 0;
63  void GenerateSubdivisionCells (vtkPolyData *inputDS, vtkIntArray *edgeData,
64  vtkCellArray *outputPolys,
65  vtkCellData *outputCD);
66  int FindEdge (vtkPolyData *mesh, vtkIdType cellId, vtkIdType p1,
67  vtkIdType p2, vtkIntArray *edgeData, vtkIdList *cellIds);
68  vtkIdType InterpolatePosition (vtkPoints *inputPts, vtkPoints *outputPts,
69  vtkIdList *stencil, double *weights);
70  int NumberOfSubdivisions;
71 private:
73  void operator=(const vtkApproximatingSubdivisionFilter&) VTK_DELETE_FUNCTION;
74 };
75 
76 #endif
represent and manipulate point attribute data
Definition: vtkPointData.h:37
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
represent and manipulate cell attribute data
Definition: vtkCellData.h:38
int vtkIdType
Definition: vtkType.h:287
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:45
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
list of point or cell ids
Definition: vtkIdList.h:36
generate a subdivision surface using an Approximating Scheme
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
object to represent cell connectivity
Definition: vtkCellArray.h:50
Store zero or more vtkInformation instances.
represent and manipulate 3D points
Definition: vtkPoints.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.