VTK  9.2.6
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
41 #include "vtkPolyDataAlgorithm.h"
42 #include "vtkSmartPointer.h" // For smart pointer
43 
44 class VTKFILTERSMODELING_EXPORT vtkLinearCellExtrusionFilter : public vtkPolyDataAlgorithm
45 {
46 public:
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 
93  vtkGetSmartPointerMacro(Locator, vtkIncrementalPointLocator);
94  vtkSetSmartPointerMacro(Locator, vtkIncrementalPointLocator);
96 
101  void CreateDefaultLocator();
102 
103 protected:
105  ~vtkLinearCellExtrusionFilter() override = default;
106 
108 
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 
117 private:
119  void operator=(const vtkLinearCellExtrusionFilter&) = delete;
120 };
121 
122 #endif
vtkSmartPointer< vtkIncrementalPointLocator > Locator
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
Abstract class in support of both point location and point insertion.
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:39
int FillOutputPortInformation(int port, vtkInformation *info) override
Fill the output port information objects for this algorithm.
Store zero or more vtkInformation instances.
extrude polygonal data to create 3D cells from 2D cells
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.