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:
68  vtkCone();
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 
abstract interface for implicit functions
virtual double EvaluateFunction(double x[3])=0
implicit function for a cone
Definition: vtkCone.h:42
double EvaluateFunction(double x, double y, double z)
Definition: vtkCone.h:54
virtual void EvaluateGradient(double x[3], double g[3])=0
double Angle
Definition: vtkCone.h:71
a simple class to control print indentation
Definition: vtkIndent.h:38
void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
~vtkCone()
Definition: vtkCone.h:69
#define VTKCOMMONDATAMODEL_EXPORT