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=========================================================================*/
34#ifndef vtkHedgeHog_h
35#define vtkHedgeHog_h
36
37#include "vtkFiltersCoreModule.h" // For export macro
39
40#define VTK_USE_VECTOR 0
41#define VTK_USE_NORMAL 1
42
43class VTKFILTERSCORE_EXPORT vtkHedgeHog : public vtkPolyDataAlgorithm
44{
45public:
46 static vtkHedgeHog* New();
48 void PrintSelf(ostream& os, vtkIndent indent) override;
49
51
54 vtkSetMacro(ScaleFactor, double);
55 vtkGetMacro(ScaleFactor, double);
57
59
62 vtkSetMacro(VectorMode, int);
63 vtkGetMacro(VectorMode, int);
64 void SetVectorModeToUseVector() { this->SetVectorMode(VTK_USE_VECTOR); }
65 void SetVectorModeToUseNormal() { this->SetVectorMode(VTK_USE_NORMAL); }
66 const char* GetVectorModeAsString();
68
70
75 vtkSetMacro(OutputPointsPrecision, int);
76 vtkGetMacro(OutputPointsPrecision, int);
78
79protected:
81 ~vtkHedgeHog() override = default;
82
86 int VectorMode; // Orient/scale via normal or via vector data
88
89private:
90 vtkHedgeHog(const vtkHedgeHog&) = delete;
91 void operator=(const vtkHedgeHog&) = delete;
92};
93
98{
99 if (this->VectorMode == VTK_USE_VECTOR)
100 {
101 return "UseVector";
102 }
103 else if (this->VectorMode == VTK_USE_NORMAL)
104 {
105 return "UseNormal";
106 }
107 else
108 {
109 return "Unknown";
110 }
111}
112#endif
create oriented lines from vector data
Definition: vtkHedgeHog.h:44
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:64
void SetVectorModeToUseNormal()
Specify whether to use vector or normal to perform vector operations.
Definition: vtkHedgeHog.h:65
double ScaleFactor
Definition: vtkHedgeHog.h:85
int OutputPointsPrecision
Definition: vtkHedgeHog.h:87
int VectorMode
Definition: vtkHedgeHog.h:86
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:97
a simple class to control print indentation
Definition: vtkIndent.h:43
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:40
#define VTK_USE_NORMAL
Definition: vtkHedgeHog.h:41