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=========================================================================*/
31#ifndef vtkHedgeHog_h
32#define vtkHedgeHog_h
33
34#include "vtkFiltersCoreModule.h" // For export macro
36
37#define VTK_USE_VECTOR 0
38#define VTK_USE_NORMAL 1
39
40class VTKFILTERSCORE_EXPORT vtkHedgeHog : public vtkPolyDataAlgorithm
41{
42public:
43 static vtkHedgeHog* New();
45 void PrintSelf(ostream& os, vtkIndent indent) override;
46
48
51 vtkSetMacro(ScaleFactor, double);
52 vtkGetMacro(ScaleFactor, double);
54
56
59 vtkSetMacro(VectorMode, int);
60 vtkGetMacro(VectorMode, int);
61 void SetVectorModeToUseVector() { this->SetVectorMode(VTK_USE_VECTOR); }
62 void SetVectorModeToUseNormal() { this->SetVectorMode(VTK_USE_NORMAL); }
63 const char* GetVectorModeAsString();
65
67
72 vtkSetMacro(OutputPointsPrecision, int);
73 vtkGetMacro(OutputPointsPrecision, int);
75
76protected:
78 ~vtkHedgeHog() override = default;
79
81 int FillInputPortInformation(int port, vtkInformation* info) override;
83 int VectorMode; // Orient/scale via normal or via vector data
85
86private:
87 vtkHedgeHog(const vtkHedgeHog&) = delete;
88 void operator=(const vtkHedgeHog&) = delete;
89};
90
95{
96 if (this->VectorMode == VTK_USE_VECTOR)
97 {
98 return "UseVector";
99 }
100 else if (this->VectorMode == VTK_USE_NORMAL)
101 {
102 return "UseNormal";
103 }
104 else
105 {
106 return "Unknown";
107 }
108}
109#endif
create oriented lines from vector data
Definition: vtkHedgeHog.h:41
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:61
void SetVectorModeToUseNormal()
Specify whether to use vector or normal to perform vector operations.
Definition: vtkHedgeHog.h:62
double ScaleFactor
Definition: vtkHedgeHog.h:82
int OutputPointsPrecision
Definition: vtkHedgeHog.h:84
int VectorMode
Definition: vtkHedgeHog.h:83
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:94
a simple class to control print indentation
Definition: vtkIndent.h:40
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:101
#define VTK_USE_NORMAL
Definition: vtkGlyph3D.h:102
#define VTK_USE_VECTOR
Definition: vtkHedgeHog.h:37
#define VTK_USE_NORMAL
Definition: vtkHedgeHog.h:38