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 =========================================================================*/
30 #ifndef vtkArrowSource_h
31 #define vtkArrowSource_h
32 
33 #include "vtkFiltersSourcesModule.h" // For export macro
34 #include "vtkPolyDataAlgorithm.h"
35 
37 {
38 public:
40  static vtkArrowSource *New();
41 
43  void PrintSelf(ostream& os, vtkIndent indent);
44 
46 
47  vtkSetClampMacro(TipLength,double,0.0,1.0);
48  vtkGetMacro(TipLength,double);
49  vtkSetClampMacro(TipRadius,double,0.0,10.0);
50  vtkGetMacro(TipRadius,double);
52 
54 
56  vtkSetClampMacro(TipResolution,int,1,128);
57  vtkGetMacro(TipResolution,int);
59 
61 
62  vtkSetClampMacro(ShaftRadius,double,0.0,5.0);
63  vtkGetMacro(ShaftRadius,double);
65 
67 
69  vtkSetClampMacro(ShaftResolution,int,0,128);
70  vtkGetMacro(ShaftResolution,int);
72 
74 
77  vtkBooleanMacro(Invert, bool);
78  vtkSetMacro(Invert, bool);
79  vtkGetMacro(Invert, bool);
81 
82 protected:
85 
87 
89  double TipLength;
90  double TipRadius;
91 
93  double ShaftRadius;
94  bool Invert;
95 
96 
97 private:
98  vtkArrowSource(const vtkArrowSource&); // Not implemented.
99  void operator=(const vtkArrowSource&); // Not implemented.
100 };
101 
102 #endif
103 
104 
Store vtkAlgorithm input/output information.
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
static vtkPolyDataAlgorithm * New()
void PrintSelf(ostream &os, vtkIndent indent)
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
Definition: vtkIndent.h:38
#define VTKFILTERSSOURCES_EXPORT
Appends a cylinder to a cone to form an arrow.
Store zero or more vtkInformation instances.