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
36
37class VTKFILTERSSOURCES_EXPORT vtkArrowSource : public vtkPolyDataAlgorithm
38{
39public:
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
96protected:
98 ~vtkArrowSource() VTK_OVERRIDE {}
99
101
103 double TipLength;
104 double TipRadius;
105
108 bool Invert;
109
110
111private:
112 vtkArrowSource(const vtkArrowSource&) VTK_DELETE_FUNCTION;
113 void operator=(const vtkArrowSource&) VTK_DELETE_FUNCTION;
114};
115
116#endif
117
118
Appends a cylinder to a cone to form an arrow.
~vtkArrowSource() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
This is called by the superclass.
static vtkArrowSource * New()
Construct cone with angle of 45 degrees.
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.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.