VTK  9.5.2
vtkArrowSource.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
21
22#ifndef vtkArrowSource_h
23#define vtkArrowSource_h
24
25#include "vtkFiltersSourcesModule.h" // For export macro
27
28VTK_ABI_NAMESPACE_BEGIN
29class VTKFILTERSSOURCES_EXPORT vtkArrowSource : public vtkPolyDataAlgorithm
30{
31public:
36
38 void PrintSelf(ostream& os, vtkIndent indent) override;
39
41
44 vtkSetClampMacro(TipLength, double, 0.0, 1.0);
45 vtkGetMacro(TipLength, double);
46 vtkSetClampMacro(TipRadius, double, 0.0, 10.0);
47 vtkGetMacro(TipRadius, double);
49
51
55 vtkSetClampMacro(TipResolution, int, 1, 128);
56 vtkGetMacro(TipResolution, int);
58
60
63 vtkSetClampMacro(ShaftRadius, double, 0.0, 5.0);
64 vtkGetMacro(ShaftRadius, double);
66
68
71 vtkSetClampMacro(ShaftResolution, int, 3, 128);
72 vtkGetMacro(ShaftResolution, int);
74
76
81 vtkBooleanMacro(Invert, bool);
82 vtkSetMacro(Invert, bool);
83 vtkGetMacro(Invert, bool);
85
86 enum class ArrowOrigins
87 {
88 Default = 0,
89 Center = 1
90 };
91
93
100
101 void SetArrowOriginToDefault() { this->SetArrowOrigin(ArrowOrigins::Default); }
102 void SetArrowOriginToCenter() { this->SetArrowOrigin(ArrowOrigins::Center); }
103 std::string GetArrowOriginAsString() const;
104
105protected:
107 ~vtkArrowSource() override = default;
108
111
113 double TipLength;
114 double TipRadius;
115
118 bool Invert;
120
121private:
122 vtkArrowSource(const vtkArrowSource&) = delete;
123 void operator=(const vtkArrowSource&) = delete;
124};
125
126VTK_ABI_NAMESPACE_END
127#endif
ArrowOrigins ArrowOrigin
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkGetEnumMacro(ArrowOrigin, ArrowOrigins)
Sets and Gets the location used for orienting and scaling the arrow.
std::string GetArrowOriginAsString() const
int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
void SetArrowOriginToCenter()
void SetArrowOriginToDefault()
static vtkArrowSource * New()
Construct cone with angle of 45 degrees.
vtkSetEnumMacro(ArrowOrigin, ArrowOrigins)
Sets and Gets the location used for orienting and scaling the arrow.
~vtkArrowSource() override=default
a simple class to control print indentation
Definition vtkIndent.h:29
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.