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

vtkArrowSource.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkArrowSource.h,v $
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 =========================================================================*/
00040 #ifndef __vtkArrowSource_h
00041 #define __vtkArrowSource_h
00042 
00043 #include "vtkPolyDataSource.h"
00044 
00045 class VTK_GRAPHICS_EXPORT vtkArrowSource : public vtkPolyDataSource
00046 {
00047 public:
00049   static vtkArrowSource *New();
00050 
00051   vtkTypeRevisionMacro(vtkArrowSource,vtkPolyDataSource);
00052   void PrintSelf(ostream& os, vtkIndent indent);
00053     
00055 
00056   vtkSetClampMacro(TipLength,double,0.0,1.0);
00057   vtkGetMacro(TipLength,double);
00058   vtkSetClampMacro(TipRadius,double,0.0,10.0);
00059   vtkGetMacro(TipRadius,double);
00061   
00063 
00065   vtkSetClampMacro(TipResolution,int,1,128);
00066   vtkGetMacro(TipResolution,int);
00068 
00070 
00071   vtkSetClampMacro(ShaftRadius,double,0.0,5.0);
00072   vtkGetMacro(ShaftRadius,double);
00074 
00076 
00078   vtkSetClampMacro(ShaftResolution,int,0,128);
00079   vtkGetMacro(ShaftResolution,int);
00081 
00082 protected:
00083   vtkArrowSource();
00084   ~vtkArrowSource() {};
00085 
00086   void Execute();
00087 
00088   int TipResolution;
00089   double TipLength;
00090   double TipRadius;
00091 
00092   int ShaftResolution;
00093   double ShaftRadius;
00094 
00095 private:
00096   vtkArrowSource(const vtkArrowSource&); // Not implemented.
00097   void operator=(const vtkArrowSource&); // Not implemented.
00098 };
00099 
00100 #endif
00101 
00102