VTK  9.2.6
vtkLinearExtrusionFilter.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkLinearExtrusionFilter.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=========================================================================*/
64#ifndef vtkLinearExtrusionFilter_h
65#define vtkLinearExtrusionFilter_h
66
67#include "vtkFiltersModelingModule.h" // For export macro
69
70class vtkDataArray;
71
72#define VTK_VECTOR_EXTRUSION 1
73#define VTK_NORMAL_EXTRUSION 2
74#define VTK_POINT_EXTRUSION 3
75
76class VTKFILTERSMODELING_EXPORT vtkLinearExtrusionFilter : public vtkPolyDataAlgorithm
77{
78public:
80 void PrintSelf(ostream& os, vtkIndent indent) override;
81
87
89
92 vtkSetClampMacro(ExtrusionType, int, VTK_VECTOR_EXTRUSION, VTK_POINT_EXTRUSION);
93 vtkGetMacro(ExtrusionType, int);
94 void SetExtrusionTypeToVectorExtrusion() { this->SetExtrusionType(VTK_VECTOR_EXTRUSION); }
95 void SetExtrusionTypeToNormalExtrusion() { this->SetExtrusionType(VTK_NORMAL_EXTRUSION); }
96 void SetExtrusionTypeToPointExtrusion() { this->SetExtrusionType(VTK_POINT_EXTRUSION); }
98
100
103 vtkSetMacro(Capping, vtkTypeBool);
104 vtkGetMacro(Capping, vtkTypeBool);
105 vtkBooleanMacro(Capping, vtkTypeBool);
107
109
112 vtkSetMacro(ScaleFactor, double);
113 vtkGetMacro(ScaleFactor, double);
115
117
121 vtkSetVector3Macro(Vector, double);
122 vtkGetVectorMacro(Vector, double, 3);
124
126
130 vtkSetVector3Macro(ExtrusionPoint, double);
131 vtkGetVectorMacro(ExtrusionPoint, double, 3);
133
134protected:
136 ~vtkLinearExtrusionFilter() override = default;
137
142 double Vector[3];
143 double ExtrusionPoint[3];
144
145 void (vtkLinearExtrusionFilter::*ExtrudePoint)(double x[3], vtkIdType id, vtkDataArray* normals);
146 void ViaNormal(double x[3], vtkIdType id, vtkDataArray* normals);
147 void ViaVector(double x[3], vtkIdType id, vtkDataArray* normals = nullptr);
148 void ViaPoint(double x[3], vtkIdType id, vtkDataArray* normals = nullptr);
149
150private:
152 void operator=(const vtkLinearExtrusionFilter&) = delete;
153};
154
155#endif
abstract superclass for arrays of numeric data
a simple class to control print indentation
Definition vtkIndent.h:49
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
sweep polygonal data creating a "skirt" from free edges and lines, and lines from vertices
void SetExtrusionTypeToPointExtrusion()
Set/Get the type of extrusion.
void SetExtrusionTypeToNormalExtrusion()
Set/Get the type of extrusion.
~vtkLinearExtrusionFilter() override=default
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void ViaVector(double x[3], vtkIdType id, vtkDataArray *normals=nullptr)
static vtkLinearExtrusionFilter * New()
Create object with normal extrusion type, capping on, scale factor=1.0, vector (0,...
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void ViaPoint(double x[3], vtkIdType id, vtkDataArray *normals=nullptr)
void ViaNormal(double x[3], vtkIdType id, vtkDataArray *normals)
void SetExtrusionTypeToVectorExtrusion()
Set/Get the type of extrusion.
Superclass for algorithms that produce only polydata as output.
int vtkTypeBool
Definition vtkABI.h:69
#define VTK_NORMAL_EXTRUSION
#define VTK_POINT_EXTRUSION
#define VTK_VECTOR_EXTRUSION
int vtkIdType
Definition vtkType.h:332