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

# Filtering/vtkCylinder.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkCylinder.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 =========================================================================*/
    00049 #ifndef __vtkCylinder_h
    00050 #define __vtkCylinder_h
    00051
    00052 #include "vtkImplicitFunction.h"
    00053
    00054 class VTK_FILTERING_EXPORT vtkCylinder : public vtkImplicitFunction
    00055 {
    00056 public:
    00057   vtkTypeRevisionMacro(vtkCylinder,vtkImplicitFunction);
    00058   void PrintSelf(ostream& os, vtkIndent indent);
    00059
    00061   static vtkCylinder *New();
    00062
    00064
    00065   float EvaluateFunction(float x[3]);
    00066   float EvaluateFunction(float x, float y, float z)
    00067     {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
    00069
    00071   void EvaluateGradient(float x[3], float g[3]);
    00072
    00074
    00075   vtkSetMacro(Radius,float);
    00076   vtkGetMacro(Radius,float);
    00078
    00080
    00081   vtkSetVector3Macro(Center,float);
    00082   vtkGetVectorMacro(Center,float,3);
    00084 protected:
    00085   vtkCylinder();
    00086   ~vtkCylinder() {};
    00087
    00088   float Radius;
    00089   float Center[3];
    00090
    00091 private:
    00092   vtkCylinder(const vtkCylinder&);  // Not implemented.
    00093   void operator=(const vtkCylinder&);  // Not implemented.
    00094 };
    00095
    00096 #endif
    00097
    00098