VTK  9.1.0
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=========================================================================*/
33#ifndef vtkLinearCellExtrusionFilter_h
34#define vtkLinearCellExtrusionFilter_h
35
36#include "vtkFiltersModelingModule.h" // For export macro
37#include "vtkIncrementalPointLocator.h" // For vtkIncrementalPointLocator
39#include "vtkSmartPointer.h" // For smart pointer
40
41class VTKFILTERSMODELING_EXPORT vtkLinearCellExtrusionFilter : public vtkPolyDataAlgorithm
42{
43public:
45 void PrintSelf(ostream& os, vtkIndent indent) override;
47
49
53 vtkSetMacro(ScaleFactor, double);
54 vtkGetMacro(ScaleFactor, double);
56
58
62 vtkSetMacro(UseUserVector, bool);
63 vtkGetMacro(UseUserVector, bool);
64 vtkBooleanMacro(UseUserVector, bool);
66
68
71 vtkSetVector3Macro(UserVector, double);
72 vtkGetVector3Macro(UserVector, double);
74
76
80 vtkSetMacro(MergeDuplicatePoints, bool);
81 vtkGetMacro(MergeDuplicatePoints, bool);
82 vtkBooleanMacro(MergeDuplicatePoints, bool);
84
86
93
99
100protected:
102 ~vtkLinearCellExtrusionFilter() override = default;
103
105
107
108 double ScaleFactor = 1.0;
109 double UserVector[3] = { 0.0, 0.0, 1.0 };
110 bool UseUserVector = false;
111 bool MergeDuplicatePoints = false;
113
114private:
116 void operator=(const vtkLinearCellExtrusionFilter&) = delete;
117};
118
119#endif
Abstract class in support of both point location and point insertion.
a simple class to control print indentation
Definition: vtkIndent.h:113
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.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453