Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class 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 =========================================================================*/
00044 #ifndef __vtkArrowSource_h
00045 #define __vtkArrowSource_h
00046 
00047 #include "vtkPolyDataSource.h"
00048 
00049 class VTK_GRAPHICS_EXPORT vtkArrowSource : public vtkPolyDataSource
00050 {
00051 public:
00053   static vtkArrowSource *New();
00054 
00055   vtkTypeRevisionMacro(vtkArrowSource,vtkPolyDataSource);
00056   void PrintSelf(ostream& os, vtkIndent indent);
00057     
00059 
00060   vtkSetClampMacro(TipLength,float,0.0,1.0);
00061   vtkGetMacro(TipLength,float);
00062   vtkSetClampMacro(TipRadius,float,0.0,10.0);
00063   vtkGetMacro(TipRadius,float);
00065   
00067 
00069   vtkSetClampMacro(TipResolution,int,1,128);
00070   vtkGetMacro(TipResolution,int);
00072 
00074 
00075   vtkSetClampMacro(ShaftRadius,float,0.0,5.0);
00076   vtkGetMacro(ShaftRadius,float);
00078 
00080 
00082   vtkSetClampMacro(ShaftResolution,int,0,128);
00083   vtkGetMacro(ShaftResolution,int);
00085 
00086 protected:
00087   vtkArrowSource();
00088   ~vtkArrowSource() {};
00089 
00090   void Execute();
00091 
00092   int TipResolution;
00093   float TipLength;
00094   float TipRadius;
00095 
00096   int ShaftResolution;
00097   float ShaftRadius;
00098 
00099 private:
00100   vtkArrowSource(const vtkArrowSource&); // Not implemented.
00101   void operator=(const vtkArrowSource&); // Not implemented.
00102 };
00103 
00104 #endif
00105 
00106