VTK: Filters/Modeling/vtkLoopSubdivisionFilter.h Source File

| VTK 9.3.1

vtkLoopSubdivisionFilter.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
46 #ifndef vtkLoopSubdivisionFilter_h
47 #define vtkLoopSubdivisionFilter_h
48
49 #include "vtkApproximatingSubdivisionFilter.h"
50 #include "vtkFiltersModelingModule.h" // For export macro
51
52 VTK_ABI_NAMESPACE_BEGIN
53 class vtkPolyData;
54 class vtkIntArray;
55 class vtkPoints;
56 class vtkIdList;
57
58 class VTKFILTERSMODELING_EXPORT vtkLoopSubdivisionFilter : public vtkApproximatingSubdivisionFilter
59 {
60 public:
62
65 static vtkLoopSubdivisionFilter* New();
66 vtkTypeMacro(vtkLoopSubdivisionFilter, vtkApproximatingSubdivisionFilter);
67 void PrintSelf(ostream& os, vtkIndent indent) override;
69
70 protected:
71 vtkLoopSubdivisionFilter() = default;
72 ~vtkLoopSubdivisionFilter() override = default;
73
74 int GenerateSubdivisionPoints(vtkPolyData* inputDS, vtkIntArray* edgeData, vtkPoints* outputPts,
75 vtkPointData* outputPD) override;
76 int GenerateEvenStencil(vtkIdType p1, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
77 void GenerateOddStencil(
78 vtkIdType p1, vtkIdType p2, vtkPolyData* polys, vtkIdList* stencilIds, double* weights);
79
80 int RequestUpdateExtent(vtkInformation*, vtkInformationVector**, vtkInformationVector*) override;
81
82 private:
83 vtkLoopSubdivisionFilter(const vtkLoopSubdivisionFilter&) = delete;
84 void operator=(const vtkLoopSubdivisionFilter&) = delete;
85 };
86
87 VTK_ABI_NAMESPACE_END
88 #endif
vtkApproximatingSubdivisionFilter
generate a subdivision surface using an Approximating Scheme
Definition: vtkApproximatingSubdivisionFilter.h:30
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
vtkLoopSubdivisionFilter
generate a subdivision surface using the Loop Scheme
Definition: vtkLoopSubdivisionFilter.h:59
vtkLoopSubdivisionFilter::GenerateSubdivisionPoints
int GenerateSubdivisionPoints(vtkPolyData *inputDS, vtkIntArray *edgeData, vtkPoints *outputPts, vtkPointData *outputPD) override
vtkLoopSubdivisionFilter::~vtkLoopSubdivisionFilter
~vtkLoopSubdivisionFilter() override=default
vtkLoopSubdivisionFilter::vtkLoopSubdivisionFilter
vtkLoopSubdivisionFilter()=default
vtkLoopSubdivisionFilter::GenerateOddStencil
void GenerateOddStencil(vtkIdType p1, vtkIdType p2, vtkPolyData *polys, vtkIdList *stencilIds, double *weights)
vtkLoopSubdivisionFilter::GenerateEvenStencil
int GenerateEvenStencil(vtkIdType p1, vtkPolyData *polys, vtkIdList *stencilIds, double *weights)
vtkLoopSubdivisionFilter::RequestUpdateExtent
int RequestUpdateExtent(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
vtkLoopSubdivisionFilter::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Construct object with NumberOfSubdivisions set to 1.
vtkLoopSubdivisionFilter::New
static vtkLoopSubdivisionFilter * New()
Construct object with NumberOfSubdivisions set to 1.
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
vtkApproximatingSubdivisionFilter.h
vtkIdType
int vtkIdType
Definition: vtkType.h:315