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 =========================================================================*/
00052 #ifndef __vtkConeSource_h
00053 #define __vtkConeSource_h
00054 
00055 #include "vtkPolyDataSource.h"
00056 
00057 #include "vtkCell.h" // Needed for VTK_CELL_SIZE
00058 
00059 class VTK_GRAPHICS_EXPORT vtkConeSource : public vtkPolyDataSource 
00060 {
00061 public:
00062   vtkTypeRevisionMacro(vtkConeSource,vtkPolyDataSource);
00063   void PrintSelf(ostream& os, vtkIndent indent);
00064 
00068   static vtkConeSource *New();
00069 
00071 
00073   vtkSetClampMacro(Height,float,0.0,VTK_LARGE_FLOAT)
00074   vtkGetMacro(Height,float);
00076 
00078 
00079   vtkSetClampMacro(Radius,float,0.0,VTK_LARGE_FLOAT)
00080   vtkGetMacro(Radius,float);
00082 
00084 
00085   vtkSetClampMacro(Resolution,int,0,VTK_CELL_SIZE)
00086   vtkGetMacro(Resolution,int);
00088 
00090 
00091   vtkSetVector3Macro(Center,float);
00092   vtkGetVectorMacro(Center,float,3);
00094 
00096 
00099   vtkSetVector3Macro(Direction,float);
00100   vtkGetVectorMacro(Direction,float,3);
00102 
00104 
00106   void SetAngle (float angle);
00107   float GetAngle ();
00109 
00111 
00112   vtkSetMacro(Capping,int);
00113   vtkGetMacro(Capping,int);
00114   vtkBooleanMacro(Capping,int);
00116 
00117 protected:
00118   vtkConeSource(int res=6);
00119   ~vtkConeSource() {}
00120 
00121   void Execute();
00122   void ExecuteInformation();
00123 
00124   float Height;
00125   float Radius;
00126   int Resolution;
00127   int Capping;
00128   float Center[3];
00129   float Direction[3];
00130   
00131 private:
00132   vtkConeSource(const vtkConeSource&);  // Not implemented.
00133   void operator=(const vtkConeSource&);  // Not implemented.
00134 };
00135 
00136 #endif
00137 
00138