Graphics/vtkCylinderSource.h Source File

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

# Graphics/vtkCylinderSource.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkCylinderSource.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 =========================================================================*/
    00047 #ifndef __vtkCylinderSource_h
    00048 #define __vtkCylinderSource_h
    00049
    00050 #include "vtkPolyDataSource.h"
    00051
    00052 #include "vtkCell.h" // Needed for VTK_CELL_SIZE
    00053
    00054 class VTK_GRAPHICS_EXPORT vtkCylinderSource : public vtkPolyDataSource
    00055 {
    00056 public:
    00057   static vtkCylinderSource *New();
    00058   vtkTypeRevisionMacro(vtkCylinderSource,vtkPolyDataSource);
    00059   void PrintSelf(ostream& os, vtkIndent indent);
    00060
    00062
    00063   vtkSetClampMacro(Height,float,0.0,VTK_LARGE_FLOAT)
    00064   vtkGetMacro(Height,float);
    00066
    00068
    00069   vtkSetClampMacro(Radius,float,0.0,VTK_LARGE_FLOAT)
    00070   vtkGetMacro(Radius,float);
    00072
    00074
    00075   vtkSetVector3Macro(Center,float);
    00076   vtkGetVectorMacro(Center,float,3);
    00078
    00080
    00081   vtkSetClampMacro(Resolution,int,0,VTK_CELL_SIZE)
    00082   vtkGetMacro(Resolution,int);
    00084
    00086
    00087   vtkSetMacro(Capping,int);
    00088   vtkGetMacro(Capping,int);
    00089   vtkBooleanMacro(Capping,int);
    00091
    00092 protected:
    00093   vtkCylinderSource(int res=6);
    00094   ~vtkCylinderSource() {};
    00095
    00096   void Execute();
    00097   float Height;
    00098   float Radius;
    00099   float Center[3];
    00100   int Resolution;
    00101   int Capping;
    00102
    00103 private:
    00104   vtkCylinderSource(const vtkCylinderSource&);  // Not implemented.
    00105   void operator=(const vtkCylinderSource&);  // Not implemented.
    00106 };
    00107
    00108 #endif
    00109
    00110