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 "vtkPolyDataAlgorithm.h"
34 
36 {
37 public:
39  static vtkArrowSource *New();
40 
42  void PrintSelf(ostream& os, vtkIndent indent);
43 
45 
46  vtkSetClampMacro(TipLength,double,0.0,1.0);
47  vtkGetMacro(TipLength,double);
48  vtkSetClampMacro(TipRadius,double,0.0,10.0);
49  vtkGetMacro(TipRadius,double);
51 
53 
55  vtkSetClampMacro(TipResolution,int,1,128);
56  vtkGetMacro(TipResolution,int);
58 
60 
61  vtkSetClampMacro(ShaftRadius,double,0.0,5.0);
62  vtkGetMacro(ShaftRadius,double);
64 
66 
68  vtkSetClampMacro(ShaftResolution,int,0,128);
69  vtkGetMacro(ShaftResolution,int);
71 
73 
76  vtkBooleanMacro(Invert, bool);
77  vtkSetMacro(Invert, bool);
78  vtkGetMacro(Invert, bool);
80 
81 protected:
84 
86 
88  double TipLength;
89  double TipRadius;
90 
92  double ShaftRadius;
93  bool Invert;
94 
95 
96 private:
97  vtkArrowSource(const vtkArrowSource&); // Not implemented.
98  void operator=(const vtkArrowSource&); // Not implemented.
99 };
100 
101 #endif
102 
103