VTK  9.2.6
vtkHedgeHog.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: Visualization Toolkit
4 Module: vtkHedgeHog.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=========================================================================*/
70#ifndef vtkHedgeHog_h
71#define vtkHedgeHog_h
72
73#include "vtkFiltersCoreModule.h" // For export macro
75
76#define VTK_USE_VECTOR 0
77#define VTK_USE_NORMAL 1
78
79class VTKFILTERSCORE_EXPORT vtkHedgeHog : public vtkPolyDataAlgorithm
80{
81public:
82 static vtkHedgeHog* New();
84 void PrintSelf(ostream& os, vtkIndent indent) override;
85
87
90 vtkSetMacro(ScaleFactor, double);
91 vtkGetMacro(ScaleFactor, double);
93
95
98 vtkSetMacro(VectorMode, int);
99 vtkGetMacro(VectorMode, int);
100 void SetVectorModeToUseVector() { this->SetVectorMode(VTK_USE_VECTOR); }
101 void SetVectorModeToUseNormal() { this->SetVectorMode(VTK_USE_NORMAL); }
102 const char* GetVectorModeAsString();
104
106
111 vtkSetMacro(OutputPointsPrecision, int);
112 vtkGetMacro(OutputPointsPrecision, int);
114
115protected:
117 ~vtkHedgeHog() override = default;
118
122 int VectorMode; // Orient/scale via normal or via vector data
124
125private:
126 vtkHedgeHog(const vtkHedgeHog&) = delete;
127 void operator=(const vtkHedgeHog&) = delete;
128};
129
134{
135 if (this->VectorMode == VTK_USE_VECTOR)
136 {
137 return "UseVector";
138 }
139 else if (this->VectorMode == VTK_USE_NORMAL)
140 {
141 return "UseNormal";
142 }
143 else
144 {
145 return "Unknown";
146 }
147}
148#endif
create oriented lines from vector data
Definition: vtkHedgeHog.h:80
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:100
void SetVectorModeToUseNormal()
Specify whether to use vector or normal to perform vector operations.
Definition: vtkHedgeHog.h:101
double ScaleFactor
Definition: vtkHedgeHog.h:121
int OutputPointsPrecision
Definition: vtkHedgeHog.h:123
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:133
a simple class to control print indentation
Definition: vtkIndent.h:119
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
Superclass for algorithms that produce only polydata as output.
@ info
Definition: vtkX3D.h:382
@ port
Definition: vtkX3D.h:453
#define VTK_USE_VECTOR
Definition: vtkHedgeHog.h:76
#define VTK_USE_NORMAL
Definition: vtkHedgeHog.h:77