Filtering/vtkCone.h Source File

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

# Filtering/vtkCone.h

Go to the documentation of this file.

    00001 /*=========================================================================
    00002
    00003   Program:   Visualization Toolkit
    00004   Module:    $RCSfile: vtkCone.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 __vtkCone_h
    00053 #define __vtkCone_h
    00054
    00055 #include "vtkImplicitFunction.h"
    00056
    00057 class VTK_FILTERING_EXPORT vtkCone : public vtkImplicitFunction
    00058 {
    00059 public:
    00061   static vtkCone *New();
    00062
    00063   vtkTypeRevisionMacro(vtkCone,vtkImplicitFunction);
    00064   void PrintSelf(ostream& os, vtkIndent indent);
    00065
    00067
    00068   float EvaluateFunction(float x[3]);
    00069   float EvaluateFunction(float x, float y, float z)
    00070     {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
    00072
    00074   void EvaluateGradient(float x[3], float g[3]);
    00075
    00077
    00078   vtkSetClampMacro(Angle,float,0.0f,89.0f);
    00079   vtkGetMacro(Angle,float);
    00081
    00082 protected:
    00083   vtkCone();
    00084   ~vtkCone() {};
    00085
    00086   float Angle;
    00087
    00088 private:
    00089   vtkCone(const vtkCone&);  // Not implemented.
    00090   void operator=(const vtkCone&);  // Not implemented.
    00091 };
    00092
    00093 #endif
    00094
    00095