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 
vtkArrowSource::~vtkArrowSource
~vtkArrowSource()
Definition: vtkArrowSource.h:84
vtkArrowSource
Appends a cylinder to a cone to form an arrow.
Definition: vtkArrowSource.h:37
vtkArrowSource::TipLength
double TipLength
Definition: vtkArrowSource.h:89
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:41
vtkArrowSource::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkArrowSource::vtkArrowSource
vtkArrowSource()
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkArrowSource::Invert
bool Invert
Definition: vtkArrowSource.h:94
vtkFiltersSourcesModule.h
vtkPolyDataAlgorithm.h
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkArrowSource::TipRadius
double TipRadius
Definition: vtkArrowSource.h:90
VTKFILTERSSOURCES_EXPORT
#define VTKFILTERSSOURCES_EXPORT
Definition: vtkFiltersSourcesModule.h:15
vtkArrowSource::ShaftRadius
double ShaftRadius
Definition: vtkArrowSource.h:93
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkArrowSource::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkBooleanMacro
vtkBooleanMacro(IgnoreDriverBugs, bool)
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:86
vtkSetMacro
vtkSetMacro(IgnoreDriverBugs, bool)
vtkArrowSource::TipResolution
int TipResolution
Definition: vtkArrowSource.h:88
vtkArrowSource::New
static vtkArrowSource * New()
vtkArrowSource::ShaftResolution
int ShaftResolution
Definition: vtkArrowSource.h:92
vtkPolyDataAlgorithm
Superclass for algorithms that produce only polydata as output.
Definition: vtkPolyDataAlgorithm.h:44