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

Graphics/vtkConeSource.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkConeSource.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 =========================================================================*/
00039 #ifndef __vtkConeSource_h
00040 #define __vtkConeSource_h
00041 
00042 #include "vtkPolyDataSource.h"
00043 
00044 #include "vtkCell.h" // Needed for VTK_CELL_SIZE
00045 
00046 class VTK_GRAPHICS_EXPORT vtkConeSource : public vtkPolyDataSource 
00047 {
00048 public:
00049   vtkTypeRevisionMacro(vtkConeSource,vtkPolyDataSource);
00050   void PrintSelf(ostream& os, vtkIndent indent);
00051 
00055   static vtkConeSource *New();
00056 
00058 
00060   vtkSetClampMacro(Height,float,0.0,VTK_LARGE_FLOAT)
00061   vtkGetMacro(Height,float);
00063 
00065 
00066   vtkSetClampMacro(Radius,float,0.0,VTK_LARGE_FLOAT)
00067   vtkGetMacro(Radius,float);
00069 
00071 
00072   vtkSetClampMacro(Resolution,int,0,VTK_CELL_SIZE)
00073   vtkGetMacro(Resolution,int);
00075 
00077 
00078   vtkSetVector3Macro(Center,float);
00079   vtkGetVectorMacro(Center,float,3);
00081 
00083 
00086   vtkSetVector3Macro(Direction,float);
00087   vtkGetVectorMacro(Direction,float,3);
00089 
00091 
00093   void SetAngle (float angle);
00094   float GetAngle ();
00096 
00098 
00099   vtkSetMacro(Capping,int);
00100   vtkGetMacro(Capping,int);
00101   vtkBooleanMacro(Capping,int);
00103 
00104 protected:
00105   vtkConeSource(int res=6);
00106   ~vtkConeSource() {}
00107 
00108   void Execute();
00109   void ExecuteInformation();
00110 
00111   float Height;
00112   float Radius;
00113   int Resolution;
00114   int Capping;
00115   float Center[3];
00116   float Direction[3];
00117   
00118 private:
00119   vtkConeSource(const vtkConeSource&);  // Not implemented.
00120   void operator=(const vtkConeSource&);  // Not implemented.
00121 };
00122 
00123 #endif
00124 
00125