VTK
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) VTK_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() VTK_OVERRIDE {}
79
83 int VectorMode; // Orient/scale via normal or via vector data
85
86private:
87 vtkHedgeHog(const vtkHedgeHog&) VTK_DELETE_FUNCTION;
88 void operator=(const vtkHedgeHog&) VTK_DELETE_FUNCTION;
89};
90
92
95inline const char *vtkHedgeHog::GetVectorModeAsString(void)
96{
97 if ( this->VectorMode == VTK_USE_VECTOR)
98 {
99 return "UseVector";
100 }
101 else if ( this->VectorMode == VTK_USE_NORMAL)
102 {
103 return "UseNormal";
104 }
105 else
106 {
107 return "Unknown";
108 }
109}
110#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.
void SetVectorModeToUseVector()
Definition: vtkHedgeHog.h:61
void SetVectorModeToUseNormal()
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.
~vtkHedgeHog() override
Definition: vtkHedgeHog.h:78
const char * GetVectorModeAsString()
Return the vector mode as a character string.
Definition: vtkHedgeHog.h:95
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.
@ info
Definition: vtkX3D.h:376
@ port
Definition: vtkX3D.h:447
#define VTK_USE_VECTOR
Definition: vtkHedgeHog.h:37
#define VTK_USE_NORMAL
Definition: vtkHedgeHog.h:38
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.