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) VTK_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() VTK_OVERRIDE {}
99 
101 
102  int TipResolution;
103  double TipLength;
104  double TipRadius;
105 
106  int ShaftResolution;
107  double ShaftRadius;
108  bool Invert;
109 
110 
111 private:
112  vtkArrowSource(const vtkArrowSource&) VTK_DELETE_FUNCTION;
113  void operator=(const vtkArrowSource&) VTK_DELETE_FUNCTION;
114 };
115 
116 #endif
117 
118 
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
Appends a cylinder to a cone to form an arrow.
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
Store zero or more vtkInformation instances.
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.