VTK: Filters/General/vtkApproximatingSubdivisionFilter.h Source File

| VTK 9.3.1

vtkApproximatingSubdivisionFilter.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
15 #ifndef vtkApproximatingSubdivisionFilter_h
16 #define vtkApproximatingSubdivisionFilter_h
17
18 #include "vtkFiltersGeneralModule.h" // For export macro
19 #include "vtkSubdivisionFilter.h"
20
21 VTK_ABI_NAMESPACE_BEGIN
22 class vtkCellArray;
23 class vtkCellData;
24 class vtkIdList;
25 class vtkIntArray;
26 class vtkPoints;
27 class vtkPointData;
28
29 class VTKFILTERSGENERAL_EXPORT vtkApproximatingSubdivisionFilter : public vtkSubdivisionFilter
30 {
31 public:
32 vtkTypeMacro(vtkApproximatingSubdivisionFilter, vtkSubdivisionFilter);
33 void PrintSelf(ostream& os, vtkIndent indent) override;
34
35 protected:
36 vtkApproximatingSubdivisionFilter();
37 ~vtkApproximatingSubdivisionFilter() override = default;
38
39 int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
40 virtual int GenerateSubdivisionPoints(
41 vtkPolyData* inputDS, vtkIntArray* edgeData, vtkPoints* outputPts, vtkPointData* outputPD) = 0;
42 void GenerateSubdivisionCells(
43 vtkPolyData* inputDS, vtkIntArray* edgeData, vtkCellArray* outputPolys, vtkCellData* outputCD);
44 int FindEdge(vtkPolyData* mesh, vtkIdType cellId, vtkIdType p1, vtkIdType p2,
45 vtkIntArray* edgeData, vtkIdList* cellIds);
46 vtkIdType InterpolatePosition(
47 vtkPoints* inputPts, vtkPoints* outputPts, vtkIdList* stencil, double* weights);
48
49 private:
50 vtkApproximatingSubdivisionFilter(const vtkApproximatingSubdivisionFilter&) = delete;
51 void operator=(const vtkApproximatingSubdivisionFilter&) = delete;
52 };
53
54 VTK_ABI_NAMESPACE_END
55 #endif
vtkApproximatingSubdivisionFilter
generate a subdivision surface using an Approximating Scheme
Definition: vtkApproximatingSubdivisionFilter.h:30
vtkApproximatingSubdivisionFilter::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkApproximatingSubdivisionFilter::vtkApproximatingSubdivisionFilter
vtkApproximatingSubdivisionFilter()
vtkApproximatingSubdivisionFilter::InterpolatePosition
vtkIdType InterpolatePosition(vtkPoints *inputPts, vtkPoints *outputPts, vtkIdList *stencil, double *weights)
vtkApproximatingSubdivisionFilter::~vtkApproximatingSubdivisionFilter
~vtkApproximatingSubdivisionFilter() override=default
vtkApproximatingSubdivisionFilter::FindEdge
int FindEdge(vtkPolyData *mesh, vtkIdType cellId, vtkIdType p1, vtkIdType p2, vtkIntArray *edgeData, vtkIdList *cellIds)
vtkApproximatingSubdivisionFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkApproximatingSubdivisionFilter::GenerateSubdivisionCells
void GenerateSubdivisionCells(vtkPolyData *inputDS, vtkIntArray *edgeData, vtkCellArray *outputPolys, vtkCellData *outputCD)
vtkApproximatingSubdivisionFilter::GenerateSubdivisionPoints
virtual int GenerateSubdivisionPoints(vtkPolyData *inputDS, vtkIntArray *edgeData, vtkPoints *outputPts, vtkPointData *outputPD)=0
vtkCellArray
object to represent cell connectivity
Definition: vtkCellArray.h:185
vtkCellData
represent and manipulate cell attribute data
Definition: vtkCellData.h:40
vtkIdList
list of point or cell ids
Definition: vtkIdList.h:32
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:38
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:40
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:72
vtkIntArray
dynamic, self-adjusting array of int
Definition: vtkIntArray.h:44
vtkPointData
represent and manipulate point attribute data
Definition: vtkPointData.h:39
vtkPoints
represent and manipulate 3D points
Definition: vtkPoints.h:38
vtkPolyData
concrete dataset represents vertices, lines, polygons, and triangle strips
Definition: vtkPolyData.h:89
vtkSubdivisionFilter
base class for subvision filters
Definition: vtkSubdivisionFilter.h:27
vtkSubdivisionFilter.h
vtkIdType
int vtkIdType
Definition: vtkType.h:315