VTK  9.5.20250903
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
58#ifndef vtkHedgeHog_h
59#define vtkHedgeHog_h
60
61#include "vtkFiltersCoreModule.h" // For export macro
63#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
64
65#define VTK_USE_VECTOR 0
66#define VTK_USE_NORMAL 1
67
68VTK_ABI_NAMESPACE_BEGIN
69class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkHedgeHog : public vtkPolyDataAlgorithm
70{
71public:
72 static vtkHedgeHog* New();
74 void PrintSelf(ostream& os, vtkIndent indent) override;
75
77
80 vtkSetMacro(ScaleFactor, double);
81 vtkGetMacro(ScaleFactor, double);
83
85
88 vtkSetMacro(VectorMode, int);
89 vtkGetMacro(VectorMode, int);
90 void SetVectorModeToUseVector() { this->SetVectorMode(VTK_USE_VECTOR); }
91 void SetVectorModeToUseNormal() { this->SetVectorMode(VTK_USE_NORMAL); }
92 const char* GetVectorModeAsString();
94
96
101 vtkSetMacro(OutputPointsPrecision, int);
102 vtkGetMacro(OutputPointsPrecision, int);
104
105protected:
107 ~vtkHedgeHog() override = default;
108
110 int FillInputPortInformation(int port, vtkInformation* info) override;
112 int VectorMode; // Orient/scale via normal or via vector data
114
115private:
116 vtkHedgeHog(const vtkHedgeHog&) = delete;
117 void operator=(const vtkHedgeHog&) = delete;
118};
119
124{
125 if (this->VectorMode == VTK_USE_VECTOR)
126 {
127 return "UseVector";
128 }
129 else if (this->VectorMode == VTK_USE_NORMAL)
130 {
131 return "UseNormal";
132 }
133 else
134 {
135 return "Unknown";
136 }
137}
138VTK_ABI_NAMESPACE_END
139#endif
create oriented lines from vector data
Definition vtkHedgeHog.h:70
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:90
void SetVectorModeToUseNormal()
Specify whether to use vector or normal to perform vector operations.
Definition vtkHedgeHog.h:91
double ScaleFactor
int OutputPointsPrecision
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.
a simple class to control print indentation
Definition vtkIndent.h:108
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:199
#define VTK_USE_NORMAL
Definition vtkGlyph3D.h:200
#define VTK_USE_VECTOR
Definition vtkHedgeHog.h:65
#define VTK_USE_NORMAL
Definition vtkHedgeHog.h:66
#define VTK_MARSHALAUTO