VTK  9.3.0
vtkHedgeHog.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
28#ifndef vtkHedgeHog_h
29#define vtkHedgeHog_h
30
31#include "vtkFiltersCoreModule.h" // For export macro
33
34#define VTK_USE_VECTOR 0
35#define VTK_USE_NORMAL 1
36
37VTK_ABI_NAMESPACE_BEGIN
38class VTKFILTERSCORE_EXPORT vtkHedgeHog : public vtkPolyDataAlgorithm
39{
40public:
41 static vtkHedgeHog* New();
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
46
49 vtkSetMacro(ScaleFactor, double);
50 vtkGetMacro(ScaleFactor, double);
52
54
57 vtkSetMacro(VectorMode, int);
58 vtkGetMacro(VectorMode, int);
59 void SetVectorModeToUseVector() { this->SetVectorMode(VTK_USE_VECTOR); }
60 void SetVectorModeToUseNormal() { this->SetVectorMode(VTK_USE_NORMAL); }
61 const char* GetVectorModeAsString();
63
65
70 vtkSetMacro(OutputPointsPrecision, int);
71 vtkGetMacro(OutputPointsPrecision, int);
73
74protected:
76 ~vtkHedgeHog() override = default;
77
79 int FillInputPortInformation(int port, vtkInformation* info) override;
81 int VectorMode; // Orient/scale via normal or via vector data
83
84private:
85 vtkHedgeHog(const vtkHedgeHog&) = delete;
86 void operator=(const vtkHedgeHog&) = delete;
87};
88
93{
94 if (this->VectorMode == VTK_USE_VECTOR)
95 {
96 return "UseVector";
97 }
98 else if (this->VectorMode == VTK_USE_NORMAL)
99 {
100 return "UseNormal";
101 }
102 else
103 {
104 return "Unknown";
105 }
106}
107VTK_ABI_NAMESPACE_END
108#endif
create oriented lines from vector data
Definition vtkHedgeHog.h:39
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkHedgeHog() override=default
void SetVectorModeToUseVector()
Specify whether to use vector or normal to perform vector operations.
Definition vtkHedgeHog.h:59
void SetVectorModeToUseNormal()
Specify whether to use vector or normal to perform vector operations.
Definition vtkHedgeHog.h:60
double ScaleFactor
Definition vtkHedgeHog.h:80
int OutputPointsPrecision
Definition vtkHedgeHog.h:82
static vtkHedgeHog * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int FillInputPortInformation(int port, vtkInformation *info) override
Fill the input port information objects for this algorithm.
const char * GetVectorModeAsString()
Return the vector mode as a character string.
Definition vtkHedgeHog.h:92
a simple class to control print indentation
Definition vtkIndent.h:38
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
#define VTK_USE_VECTOR
Definition vtkGlyph3D.h:98
#define VTK_USE_NORMAL
Definition vtkGlyph3D.h:99
#define VTK_USE_VECTOR
Definition vtkHedgeHog.h:34
#define VTK_USE_NORMAL
Definition vtkHedgeHog.h:35