Main Page Class Hierarchy Alphabetical List Compound List File List Compound 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 =========================================================================*/
    00051 #ifndef __vtkConeSource_h
    00052 #define __vtkConeSource_h
    00053
    00054 #include "vtkPolyDataSource.h"
    00055
    00056 #include "vtkCell.h" // Needed for VTK_CELL_SIZE
    00057
    00058 class VTK_GRAPHICS_EXPORT vtkConeSource : public vtkPolyDataSource
    00059 {
    00060 public:
    00061   vtkTypeRevisionMacro(vtkConeSource,vtkPolyDataSource);
    00062   void PrintSelf(ostream& os, vtkIndent indent);
    00063
    00067   static vtkConeSource *New();
    00068
    00070
    00072   vtkSetClampMacro(Height,float,0.0,VTK_LARGE_FLOAT)
    00073   vtkGetMacro(Height,float);
    00075
    00077
    00078   vtkSetClampMacro(Radius,float,0.0,VTK_LARGE_FLOAT)
    00079   vtkGetMacro(Radius,float);
    00081
    00083
    00084   vtkSetClampMacro(Resolution,int,0,VTK_CELL_SIZE)
    00085   vtkGetMacro(Resolution,int);
    00087
    00089
    00090   vtkSetVector3Macro(Center,float);
    00091   vtkGetVectorMacro(Center,float,3);
    00093
    00095
    00098   vtkSetVector3Macro(Direction,float);
    00099   vtkGetVectorMacro(Direction,float,3);
    00101
    00103
    00105   void SetAngle (float angle);
    00106   float GetAngle ();
    00108
    00110
    00111   vtkSetMacro(Capping,int);
    00112   vtkGetMacro(Capping,int);
    00113   vtkBooleanMacro(Capping,int);
    00115
    00116 protected:
    00117   vtkConeSource(int res=6);
    00118   ~vtkConeSource() {}
    00119
    00120   void Execute();
    00121   void ExecuteInformation();
    00122
    00123   float Height;
    00124   float Radius;
    00125   int Resolution;
    00126   int Capping;
    00127   float Center[3];
    00128   float Direction[3];
    00129
    00130 private:
    00131   vtkConeSource(const vtkConeSource&);  // Not implemented.
    00132   void operator=(const vtkConeSource&);  // Not implemented.
    00133 };
    00134
    00135 #endif
    00136
    00137