• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

dox/Graphics/vtkCylinderSource.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Visualization Toolkit
00004   Module:    $RCSfile: vtkCylinderSource.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 =========================================================================*/
00028 #ifndef __vtkCylinderSource_h
00029 #define __vtkCylinderSource_h
00030 
00031 #include "vtkPolyDataAlgorithm.h"
00032 
00033 #include "vtkCell.h" // Needed for VTK_CELL_SIZE
00034 
00035 class VTK_GRAPHICS_EXPORT vtkCylinderSource : public vtkPolyDataAlgorithm 
00036 {
00037 public:
00038   static vtkCylinderSource *New();
00039   vtkTypeRevisionMacro(vtkCylinderSource,vtkPolyDataAlgorithm);
00040   void PrintSelf(ostream& os, vtkIndent indent);
00041 
00043 
00044   vtkSetClampMacro(Height,double,0.0,VTK_DOUBLE_MAX)
00045   vtkGetMacro(Height,double);
00047 
00049 
00050   vtkSetClampMacro(Radius,double,0.0,VTK_DOUBLE_MAX)
00051   vtkGetMacro(Radius,double);
00053 
00055 
00056   vtkSetVector3Macro(Center,double);
00057   vtkGetVectorMacro(Center,double,3);
00059 
00061 
00062   vtkSetClampMacro(Resolution,int,2,VTK_CELL_SIZE)
00063   vtkGetMacro(Resolution,int);
00065 
00067 
00068   vtkSetMacro(Capping,int);
00069   vtkGetMacro(Capping,int);
00070   vtkBooleanMacro(Capping,int);
00072 
00073 protected:
00074   vtkCylinderSource(int res=6);
00075   ~vtkCylinderSource() {};
00076 
00077   int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
00078   double Height;
00079   double Radius;
00080   double Center[3];
00081   int Resolution;
00082   int Capping;
00083 
00084 private:
00085   vtkCylinderSource(const vtkCylinderSource&);  // Not implemented.
00086   void operator=(const vtkCylinderSource&);  // Not implemented.
00087 };
00088 
00089 #endif

Generated by  doxygen 1.7.1