VTK  9.0.1
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 private:
109  vtkArrowSource(const vtkArrowSource&) = delete;
110  void operator=(const vtkArrowSource&) = delete;
111 };
112 
113 #endif
vtkArrowSource
Appends a cylinder to a cone to form an arrow.
Definition: vtkArrowSource.h:34
vtkArrowSource::TipLength
double TipLength
Definition: vtkArrowSource.h:101
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:35
vtkArrowSource::Invert
bool Invert
Definition: vtkArrowSource.h:106
vtkPolyDataAlgorithm::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataAlgorithm.h
vtkArrowSource::~vtkArrowSource
~vtkArrowSource() override
Definition: vtkArrowSource.h:95
vtkArrowSource::TipRadius
double TipRadius
Definition: vtkArrowSource.h:102
vtkArrowSource::ShaftRadius
double ShaftRadius
Definition: vtkArrowSource.h:105
vtkPolyDataAlgorithm::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
This is called by the superclass.
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:33
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:73
vtkArrowSource::TipResolution
int TipResolution
Definition: vtkArrowSource.h:100
vtkPolyDataAlgorithm::New
static vtkPolyDataAlgorithm * New()
vtkPolyDataAlgorithm::RequestInformation
virtual int RequestInformation(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkArrowSource::ShaftResolution
int ShaftResolution
Definition: vtkArrowSource.h:104
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:41