VTK
vtkArrowSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkArrowSource.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 vtkArrowSource_h
32 #define vtkArrowSource_h
33 
34 #include "vtkFiltersSourcesModule.h" // For export macro
35 #include "vtkPolyDataAlgorithm.h"
36 
37 class VTKFILTERSSOURCES_EXPORT vtkArrowSource : public vtkPolyDataAlgorithm
38 {
39 public:
43  static vtkArrowSource *New();
44 
46  void PrintSelf(ostream& os, vtkIndent indent) override;
47 
49 
52  vtkSetClampMacro(TipLength,double,0.0,1.0);
53  vtkGetMacro(TipLength,double);
54  vtkSetClampMacro(TipRadius,double,0.0,10.0);
55  vtkGetMacro(TipRadius,double);
57 
59 
63  vtkSetClampMacro(TipResolution,int,1,128);
64  vtkGetMacro(TipResolution,int);
66 
68 
71  vtkSetClampMacro(ShaftRadius,double,0.0,5.0);
72  vtkGetMacro(ShaftRadius,double);
74 
76 
81  vtkSetClampMacro(ShaftResolution,int,0,128);
82  vtkGetMacro(ShaftResolution,int);
84 
86 
91  vtkBooleanMacro(Invert, bool);
92  vtkSetMacro(Invert, bool);
93  vtkGetMacro(Invert, bool);
95 
96 protected:
98  ~vtkArrowSource() override {}
99 
102 
104  double TipLength;
105  double TipRadius;
106 
108  double ShaftRadius;
109  bool Invert;
110 
111 
112 private:
113  vtkArrowSource(const vtkArrowSource&) = delete;
114  void operator=(const vtkArrowSource&) = delete;
115 };
116 
117 #endif
118 
119 
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
static vtkPolyDataAlgorithm * New()
Superclass for algorithms that produce only polydata as output.
~vtkArrowSource() override
a simple class to control print indentation
Definition: vtkIndent.h:39
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Appends a cylinder to a cone to form an arrow.
Store zero or more vtkInformation instances.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.