VTK  9.0.20210224
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 =========================================================================*/
30 #ifndef vtkInterpolatingSubdivisionFilter_h
31 #define vtkInterpolatingSubdivisionFilter_h
32 
33 #include "vtkFiltersGeneralModule.h" // For export macro
34 #include "vtkSubdivisionFilter.h"
35 
36 class vtkCellArray;
37 class vtkCellData;
38 class vtkIdList;
39 class vtkIntArray;
40 class vtkPointData;
41 class vtkPoints;
42 class vtkPolyData;
43 
44 class VTKFILTERSGENERAL_EXPORT vtkInterpolatingSubdivisionFilter : public vtkSubdivisionFilter
45 {
46 public:
48  void PrintSelf(ostream& os, vtkIndent indent) override;
49 
50 protected:
52  ~vtkInterpolatingSubdivisionFilter() override = default;
53 
55  virtual int GenerateSubdivisionPoints(
56  vtkPolyData* inputDS, vtkIntArray* edgeData, vtkPoints* outputPts, vtkPointData* outputPD) = 0;
57  void GenerateSubdivisionCells(
58  vtkPolyData* inputDS, vtkIntArray* edgeData, vtkCellArray* outputPolys, vtkCellData* outputCD);
59  int FindEdge(vtkPolyData* mesh, vtkIdType cellId, vtkIdType p1, vtkIdType p2,
60  vtkIntArray* edgeData, vtkIdList* cellIds);
61  vtkIdType InterpolatePosition(
62  vtkPoints* inputPts, vtkPoints* outputPts, vtkIdList* stencil, double* weights);
63 
64 private:
66  void operator=(const vtkInterpolatingSubdivisionFilter&) = delete;
67 };
68 
69 #endif
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:33
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:32
vtkIdType
int vtkIdType
Definition: vtkType.h:338
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkSubdivisionFilter.h
vtkCellData
represent and manipulate cell attribute data
Definition: vtkCellData.h:32
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:180
vtkIntArray
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:39
vtkSubdivisionFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:30
vtkSubdivisionFilter
base class for subvision filters
Definition: vtkSubdivisionFilter.h:37
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:85
vtkSubdivisionFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkInterpolatingSubdivisionFilter
generate a subdivision surface using an Interpolating Scheme
Definition: vtkInterpolatingSubdivisionFilter.h:44