VTK
vtkCone.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkCone.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
36 #ifndef vtkCone_h
37 #define vtkCone_h
38 
39 #include "vtkCommonDataModelModule.h" // For export macro
40 #include "vtkImplicitFunction.h"
41 
43 {
44 public:
46  static vtkCone *New();
47 
49  void PrintSelf(ostream& os, vtkIndent indent);
50 
52 
53  double EvaluateFunction(double x[3]);
54  double EvaluateFunction(double x, double y, double z)
55  {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
57 
59  void EvaluateGradient(double x[3], double g[3]);
60 
62 
63  vtkSetClampMacro(Angle,double,0.0,89.0);
64  vtkGetMacro(Angle,double);
66 
67 protected:
69  ~vtkCone() {}
70 
71  double Angle;
72 
73 private:
74  vtkCone(const vtkCone&); // Not implemented.
75  void operator=(const vtkCone&); // Not implemented.
76 };
77 
78 #endif
79 
80 
vtkgl::z
GLdouble GLdouble z
Definition: vtkgl.h:11754
vtkCone::EvaluateGradient
void EvaluateGradient(double x[3], double g[3])
vtkCommonDataModelModule.h
vtkCone::New
static vtkCone * New()
vtkImplicitFunction::EvaluateFunction
virtual double EvaluateFunction(double x[3])=0
vtkTypeMacro
#define vtkTypeMacro(thisClass, superclass)
Definition: vtkSetGet.h:642
vtkgl::x
GLint GLint GLint GLint GLint x
Definition: vtkgl.h:11318
vtkCone::EvaluateFunction
double EvaluateFunction(double x[3])
vtkImplicitFunction
abstract interface for implicit functions
Definition: vtkImplicitFunction.h:58
vtkSetClampMacro
#define vtkSetClampMacro(name, type, min, max)
Definition: vtkSetGet.h:143
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkGetMacro
#define vtkGetMacro(name, type)
Definition: vtkSetGet.h:93
vtkCone::~vtkCone
~vtkCone()
Definition: vtkCone.h:69
vtkgl::y
GLint GLint GLint GLint GLint GLint y
Definition: vtkgl.h:11318
vtkgl::g
GLboolean GLboolean g
Definition: vtkgl.h:12312
vtkCone::EvaluateFunction
double EvaluateFunction(double x, double y, double z)
Definition: vtkCone.h:54
vtkCone::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
vtkCone::vtkCone
vtkCone()
vtkImplicitFunction.h
vtkCone::Angle
double Angle
Definition: vtkCone.h:71
VTKCOMMONDATAMODEL_EXPORT
#define VTKCOMMONDATAMODEL_EXPORT
Definition: vtkCommonDataModelModule.h:15
vtkCone
implicit function for a cone
Definition: vtkCone.h:43