VTK  9.3.0
vtkInterpolatingSubdivisionFilter.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2 // SPDX-License-Identifier: BSD-3-Clause
18 #ifndef vtkInterpolatingSubdivisionFilter_h
19 #define vtkInterpolatingSubdivisionFilter_h
20 
21 #include "vtkFiltersGeneralModule.h" // For export macro
22 #include "vtkSubdivisionFilter.h"
23 
24 VTK_ABI_NAMESPACE_BEGIN
25 class vtkCellArray;
26 class vtkCellData;
27 class vtkIdList;
28 class vtkIntArray;
29 class vtkPointData;
30 class vtkPoints;
31 class vtkPolyData;
32 
33 class VTKFILTERSGENERAL_EXPORT vtkInterpolatingSubdivisionFilter : public vtkSubdivisionFilter
34 {
35 public:
37  void PrintSelf(ostream& os, vtkIndent indent) override;
38 
39 protected:
41  ~vtkInterpolatingSubdivisionFilter() override = default;
42 
45  vtkPolyData* inputDS, vtkIntArray* edgeData, vtkPoints* outputPts, vtkPointData* outputPD) = 0;
47  vtkPolyData* inputDS, vtkIntArray* edgeData, vtkCellArray* outputPolys, vtkCellData* outputCD);
48  int FindEdge(vtkPolyData* mesh, vtkIdType cellId, vtkIdType p1, vtkIdType p2,
49  vtkIntArray* edgeData, vtkIdList* cellIds);
51  vtkPoints* inputPts, vtkPoints* outputPts, vtkIdList* stencil, double* weights);
52 
53 private:
55  void operator=(const vtkInterpolatingSubdivisionFilter&) = delete;
56 };
57 
58 VTK_ABI_NAMESPACE_END
59 #endif
object to represent cell connectivity
Definition: vtkCellArray.h:176
represent and manipulate cell attribute data
Definition: vtkCellData.h:31
list of point or cell ids
Definition: vtkIdList.h:23
a simple class to control print indentation
Definition: vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:35
generate a subdivision surface using an Interpolating Scheme
virtual int GenerateSubdivisionPoints(vtkPolyData *inputDS, vtkIntArray *edgeData, vtkPoints *outputPts, vtkPointData *outputPD)=0
vtkIdType InterpolatePosition(vtkPoints *inputPts, vtkPoints *outputPts, vtkIdList *stencil, double *weights)
void GenerateSubdivisionCells(vtkPolyData *inputDS, vtkIntArray *edgeData, vtkCellArray *outputPolys, vtkCellData *outputCD)
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkInterpolatingSubdivisionFilter() override=default
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int FindEdge(vtkPolyData *mesh, vtkIdType cellId, vtkIdType p1, vtkIdType p2, vtkIntArray *edgeData, vtkIdList *cellIds)
represent and manipulate point attribute data
Definition: vtkPointData.h:30
represent and manipulate 3D points
Definition: vtkPoints.h:29
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:80
base class for subvision filters
int vtkIdType
Definition: vtkType.h:315