VTK  9.3.20240425
vtkLinearCellExtrusionFilter.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
24#ifndef vtkLinearCellExtrusionFilter_h
25#define vtkLinearCellExtrusionFilter_h
26
27#include "vtkFiltersModelingModule.h" // For export macro
28#include "vtkIncrementalPointLocator.h" // For vtkIncrementalPointLocator
30#include "vtkSmartPointer.h" // For smart pointer
31
32VTK_ABI_NAMESPACE_BEGIN
33class VTKFILTERSMODELING_EXPORT vtkLinearCellExtrusionFilter : public vtkPolyDataAlgorithm
34{
35public:
37 void PrintSelf(ostream& os, vtkIndent indent) override;
39
41
45 vtkSetMacro(ScaleFactor, double);
46 vtkGetMacro(ScaleFactor, double);
48
50
54 vtkSetMacro(UseUserVector, bool);
55 vtkGetMacro(UseUserVector, bool);
56 vtkBooleanMacro(UseUserVector, bool);
58
60
63 vtkSetVector3Macro(UserVector, double);
64 vtkGetVector3Macro(UserVector, double);
66
68
72 vtkSetMacro(MergeDuplicatePoints, bool);
73 vtkGetMacro(MergeDuplicatePoints, bool);
74 vtkBooleanMacro(MergeDuplicatePoints, bool);
76
78
85
91
92protected:
94 ~vtkLinearCellExtrusionFilter() override = default;
95
97
98 int FillOutputPortInformation(int port, vtkInformation* info) override;
99
100 double ScaleFactor = 1.0;
101 double UserVector[3] = { 0.0, 0.0, 1.0 };
102 bool UseUserVector = false;
103 bool MergeDuplicatePoints = false;
105
106private:
108 void operator=(const vtkLinearCellExtrusionFilter&) = delete;
109};
110
111VTK_ABI_NAMESPACE_END
112#endif
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition vtkIndent.h:108
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
extrude polygonal data to create 3D cells from 2D cells
vtkSmartPointer< vtkIncrementalPointLocator > Locator
static vtkLinearCellExtrusionFilter * New()
vtkSetSmartPointerMacro(Locator, vtkIncrementalPointLocator)
Specify a spatial locator for merging points.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void CreateDefaultLocator()
Create default locator.
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
vtkGetSmartPointerMacro(Locator, vtkIncrementalPointLocator)
Specify a spatial locator for merging points.
~vtkLinearCellExtrusionFilter() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
Superclass for algorithms that produce only polydata as output.
Hold a reference to a vtkObjectBase instance.