Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

dox/Graphics/vtkArrowSource.h

Go to the documentation of this file.
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkArrowSource.h,v $ 00005 Language: C++ 00006 00007 Copyright (c) 1993-2002 Ken Martin, Will Schroeder, Bill Lorensen 00008 All rights reserved. 00009 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00010 00011 This software is distributed WITHOUT ANY WARRANTY; without even 00012 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00013 PURPOSE. See the above copyright notice for more information. 00014 00015 =========================================================================*/ 00032 #ifndef __vtkArrowSource_h 00033 #define __vtkArrowSource_h 00034 00035 #include "vtkPolyDataSource.h" 00036 00037 class VTK_GRAPHICS_EXPORT vtkArrowSource : public vtkPolyDataSource 00038 { 00039 public: 00041 static vtkArrowSource *New(); 00042 00043 vtkTypeRevisionMacro(vtkArrowSource,vtkPolyDataSource); 00044 void PrintSelf(ostream& os, vtkIndent indent); 00045 00047 00048 vtkSetClampMacro(TipLength,float,0.0,1.0); 00049 vtkGetMacro(TipLength,float); 00050 vtkSetClampMacro(TipRadius,float,0.0,10.0); 00051 vtkGetMacro(TipRadius,float); 00053 00055 00057 vtkSetClampMacro(TipResolution,int,1,128); 00058 vtkGetMacro(TipResolution,int); 00060 00062 00063 vtkSetClampMacro(ShaftRadius,float,0.0,5.0); 00064 vtkGetMacro(ShaftRadius,float); 00066 00068 00070 vtkSetClampMacro(ShaftResolution,int,0,128); 00071 vtkGetMacro(ShaftResolution,int); 00073 00074 protected: 00075 vtkArrowSource(); 00076 ~vtkArrowSource() {}; 00077 00078 void Execute(); 00079 00080 int TipResolution; 00081 float TipLength; 00082 float TipRadius; 00083 00084 int ShaftResolution; 00085 float ShaftRadius; 00086 00087 private: 00088 vtkArrowSource(const vtkArrowSource&); // Not implemented. 00089 void operator=(const vtkArrowSource&); // Not implemented. 00090 }; 00091 00092 #endif 00093 00094