VTK  9.1.0
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=========================================================================*/
64#ifndef vtkHedgeHog_h
65#define vtkHedgeHog_h
66
67#include "vtkFiltersCoreModule.h" // For export macro
69
70#define VTK_USE_VECTOR 0
71#define VTK_USE_NORMAL 1
72
73class VTKFILTERSCORE_EXPORT vtkHedgeHog : public vtkPolyDataAlgorithm
74{
75public:
76 static vtkHedgeHog* New();
78 void PrintSelf(ostream& os, vtkIndent indent) override;
79
81
84 vtkSetMacro(ScaleFactor, double);
85 vtkGetMacro(ScaleFactor, double);
87
89
92 vtkSetMacro(VectorMode, int);
93 vtkGetMacro(VectorMode, int);
94 void SetVectorModeToUseVector() { this->SetVectorMode(VTK_USE_VECTOR); }
95 void SetVectorModeToUseNormal() { this->SetVectorMode(VTK_USE_NORMAL); }
96 const char* GetVectorModeAsString();
98
100
105 vtkSetMacro(OutputPointsPrecision, int);
106 vtkGetMacro(OutputPointsPrecision, int);
108
109protected:
111 ~vtkHedgeHog() override = default;
112
114 int FillInputPortInformation(int port, vtkInformation* info) override;
116 int VectorMode; // Orient/scale via normal or via vector data
118
119private:
120 vtkHedgeHog(const vtkHedgeHog&) = delete;
121 void operator=(const vtkHedgeHog&) = delete;
122};
123
128{
129 if (this->VectorMode == VTK_USE_VECTOR)
130 {
131 return "UseVector";
132 }
133 else if (this->VectorMode == VTK_USE_NORMAL)
134 {
135 return "UseNormal";
136 }
137 else
138 {
139 return "Unknown";
140 }
141}
142#endif
create oriented lines from vector data
Definition: vtkHedgeHog.h:74
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:94
void SetVectorModeToUseNormal()
Specify whether to use vector or normal to perform vector operations.
Definition: vtkHedgeHog.h:95
double ScaleFactor
Definition: vtkHedgeHog.h:115
int OutputPointsPrecision
Definition: vtkHedgeHog.h:117
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:127
a simple class to control print indentation
Definition: vtkIndent.h:113
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:204
#define VTK_USE_NORMAL
Definition: vtkGlyph3D.h:205
#define VTK_USE_VECTOR
Definition: vtkHedgeHog.h:70
#define VTK_USE_NORMAL
Definition: vtkHedgeHog.h:71