VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkArrowSource.h 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00030 #ifndef __vtkArrowSource_h 00031 #define __vtkArrowSource_h 00032 00033 #include "vtkFiltersSourcesModule.h" // For export macro 00034 #include "vtkPolyDataAlgorithm.h" 00035 00036 class VTKFILTERSSOURCES_EXPORT vtkArrowSource : public vtkPolyDataAlgorithm 00037 { 00038 public: 00040 static vtkArrowSource *New(); 00041 00042 vtkTypeMacro(vtkArrowSource,vtkPolyDataAlgorithm); 00043 void PrintSelf(ostream& os, vtkIndent indent); 00044 00046 00047 vtkSetClampMacro(TipLength,double,0.0,1.0); 00048 vtkGetMacro(TipLength,double); 00049 vtkSetClampMacro(TipRadius,double,0.0,10.0); 00050 vtkGetMacro(TipRadius,double); 00052 00054 00056 vtkSetClampMacro(TipResolution,int,1,128); 00057 vtkGetMacro(TipResolution,int); 00059 00061 00062 vtkSetClampMacro(ShaftRadius,double,0.0,5.0); 00063 vtkGetMacro(ShaftRadius,double); 00065 00067 00069 vtkSetClampMacro(ShaftResolution,int,0,128); 00070 vtkGetMacro(ShaftResolution,int); 00072 00074 00077 vtkBooleanMacro(Invert, bool); 00078 vtkSetMacro(Invert, bool); 00079 vtkGetMacro(Invert, bool); 00081 00082 protected: 00083 vtkArrowSource(); 00084 ~vtkArrowSource() {}; 00085 00086 int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *); 00087 00088 int TipResolution; 00089 double TipLength; 00090 double TipRadius; 00091 00092 int ShaftResolution; 00093 double ShaftRadius; 00094 bool Invert; 00095 00096 00097 private: 00098 vtkArrowSource(const vtkArrowSource&); // Not implemented. 00099 void operator=(const vtkArrowSource&); // Not implemented. 00100 }; 00101 00102 #endif 00103 00104