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 =========================================================================*/
28 #ifndef vtkArrowSource_h
29 #define vtkArrowSource_h
30 
31 #include "vtkFiltersSourcesModule.h" // For export macro
32 #include "vtkPolyDataAlgorithm.h"
33 
34 class VTKFILTERSSOURCES_EXPORT vtkArrowSource : public vtkPolyDataAlgorithm
35 {
36 public:
40  static vtkArrowSource *New();
41 
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
46 
49  vtkSetClampMacro(TipLength,double,0.0,1.0);
50  vtkGetMacro(TipLength,double);
51  vtkSetClampMacro(TipRadius,double,0.0,10.0);
52  vtkGetMacro(TipRadius,double);
54 
56 
60  vtkSetClampMacro(TipResolution,int,1,128);
61  vtkGetMacro(TipResolution,int);
63 
65 
68  vtkSetClampMacro(ShaftRadius,double,0.0,5.0);
69  vtkGetMacro(ShaftRadius,double);
71 
73 
78  vtkSetClampMacro(ShaftResolution,int,0,128);
79  vtkGetMacro(ShaftResolution,int);
81 
83 
88  vtkBooleanMacro(Invert, bool);
89  vtkSetMacro(Invert, bool);
90  vtkGetMacro(Invert, bool);
92 
93 protected:
95  ~vtkArrowSource() override {}
96 
99 
101  double TipLength;
102  double TipRadius;
103 
105  double ShaftRadius;
106  bool Invert;
107 
108 
109 private:
110  vtkArrowSource(const vtkArrowSource&) = delete;
111  void operator=(const vtkArrowSource&) = delete;
112 };
113 
114 #endif
115 
116 
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:33
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.