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

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 =========================================================================*/
00043 #ifndef __vtkArrowSource_h
00044 #define __vtkArrowSource_h
00045 
00046 #include "vtkPolyDataSource.h"
00047 
00048 class VTK_GRAPHICS_EXPORT vtkArrowSource : public vtkPolyDataSource
00049 {
00050 public:
00052   static vtkArrowSource *New();
00053 
00054   vtkTypeRevisionMacro(vtkArrowSource,vtkPolyDataSource);
00055   void PrintSelf(ostream& os, vtkIndent indent);
00056     
00058 
00059   vtkSetClampMacro(TipLength,float,0.0,1.0);
00060   vtkGetMacro(TipLength,float);
00061   vtkSetClampMacro(TipRadius,float,0.0,10.0);
00062   vtkGetMacro(TipRadius,float);
00064   
00066 
00068   vtkSetClampMacro(TipResolution,int,1,128);
00069   vtkGetMacro(TipResolution,int);
00071 
00073 
00074   vtkSetClampMacro(ShaftRadius,float,0.0,5.0);
00075   vtkGetMacro(ShaftRadius,float);
00077 
00079 
00081   vtkSetClampMacro(ShaftResolution,int,0,128);
00082   vtkGetMacro(ShaftResolution,int);
00084 
00085 protected:
00086   vtkArrowSource();
00087   ~vtkArrowSource() {};
00088 
00089   void Execute();
00090 
00091   int TipResolution;
00092   float TipLength;
00093   float TipRadius;
00094 
00095   int ShaftResolution;
00096   float ShaftRadius;
00097 
00098 private:
00099   vtkArrowSource(const vtkArrowSource&); // Not implemented.
00100   void operator=(const vtkArrowSource&); // Not implemented.
00101 };
00102 
00103 #endif
00104 
00105