VTK  9.2.5
vtkLinearCellExtrusionFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkLinearCellExtrusionFilter.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=========================================================================*/
36#ifndef vtkLinearCellExtrusionFilter_h
37#define vtkLinearCellExtrusionFilter_h
38
39#include "vtkFiltersModelingModule.h" // For export macro
40#include "vtkIncrementalPointLocator.h" // For vtkIncrementalPointLocator
42#include "vtkSmartPointer.h" // For smart pointer
43
44class VTKFILTERSMODELING_EXPORT vtkLinearCellExtrusionFilter : public vtkPolyDataAlgorithm
45{
46public:
48 void PrintSelf(ostream& os, vtkIndent indent) override;
50
52
56 vtkSetMacro(ScaleFactor, double);
57 vtkGetMacro(ScaleFactor, double);
59
61
65 vtkSetMacro(UseUserVector, bool);
66 vtkGetMacro(UseUserVector, bool);
67 vtkBooleanMacro(UseUserVector, bool);
69
71
74 vtkSetVector3Macro(UserVector, double);
75 vtkGetVector3Macro(UserVector, double);
77
79
83 vtkSetMacro(MergeDuplicatePoints, bool);
84 vtkGetMacro(MergeDuplicatePoints, bool);
85 vtkBooleanMacro(MergeDuplicatePoints, bool);
87
89
96
102
103protected:
105 ~vtkLinearCellExtrusionFilter() override = default;
106
108
109 int FillOutputPortInformation(int port, vtkInformation* info) override;
110
111 double ScaleFactor = 1.0;
112 double UserVector[3] = { 0.0, 0.0, 1.0 };
113 bool UseUserVector = false;
114 bool MergeDuplicatePoints = false;
116
117private:
119 void operator=(const vtkLinearCellExtrusionFilter&) = delete;
120};
121
122#endif
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition: vtkIndent.h:40
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.