VTK  9.6.1
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
18
19#ifndef vtkHedgeHog_h
20#define vtkHedgeHog_h
21
22#include "vtkFiltersCoreModule.h" // For export macro
24#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
25
26#define VTK_USE_VECTOR 0
27#define VTK_USE_NORMAL 1
28
29VTK_ABI_NAMESPACE_BEGIN
30class VTKFILTERSCORE_EXPORT VTK_MARSHALAUTO vtkHedgeHog : public vtkPolyDataAlgorithm
31{
32public:
33 static vtkHedgeHog* New();
35 void PrintSelf(ostream& os, vtkIndent indent) override;
36
38
41 vtkSetMacro(ScaleFactor, double);
42 vtkGetMacro(ScaleFactor, double);
44
46
49 vtkSetMacro(VectorMode, int);
50 vtkGetMacro(VectorMode, int);
53 const char* GetVectorModeAsString();
55
57
62 vtkSetMacro(OutputPointsPrecision, int);
63 vtkGetMacro(OutputPointsPrecision, int);
65
66protected:
68 ~vtkHedgeHog() override = default;
69
71 int FillInputPortInformation(int port, vtkInformation* info) override;
73 int VectorMode; // Orient/scale via normal or via vector data
75
76private:
77 vtkHedgeHog(const vtkHedgeHog&) = delete;
78 void operator=(const vtkHedgeHog&) = delete;
79};
80
85{
86 if (this->VectorMode == VTK_USE_VECTOR)
87 {
88 return "UseVector";
89 }
90 else if (this->VectorMode == VTK_USE_NORMAL)
91 {
92 return "UseNormal";
93 }
94 else
95 {
96 return "Unknown";
97 }
98}
99VTK_ABI_NAMESPACE_END
100#endif
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkHedgeHog() override=default
virtual void SetVectorMode(int)
Specify whether to use vector or normal to perform vector operations.
void SetVectorModeToUseVector()
Specify whether to use vector or normal to perform vector operations.
Definition vtkHedgeHog.h:51
void SetVectorModeToUseNormal()
Specify whether to use vector or normal to perform vector operations.
Definition vtkHedgeHog.h:52
double ScaleFactor
Definition vtkHedgeHog.h:72
int OutputPointsPrecision
Definition vtkHedgeHog.h:74
static vtkHedgeHog * New()
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
int FillInputPortInformation(int port, vtkInformation *info) override
const char * GetVectorModeAsString()
Return the vector mode as a character string.
Definition vtkHedgeHog.h:84
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
#define VTK_USE_VECTOR
Definition vtkHedgeHog.h:26
#define VTK_USE_NORMAL
Definition vtkHedgeHog.h:27
#define VTK_MARSHALAUTO