VTK
vtkParametricConicSpiral.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkParametricConicSpiral.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 =========================================================================*/
35 #ifndef vtkParametricConicSpiral_h
36 #define vtkParametricConicSpiral_h
37 
38 #include "vtkCommonComputationalGeometryModule.h" // For export macro
39 #include "vtkParametricFunction.h"
40 
41 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricConicSpiral : public vtkParametricFunction
42 {
43 public:
45  void PrintSelf(ostream& os, vtkIndent indent) VTK_OVERRIDE;
46 
57  static vtkParametricConicSpiral *New();
58 
62  int GetDimension() VTK_OVERRIDE {return 2;}
63 
65 
69  vtkSetMacro(A,double);
70  vtkGetMacro(A,double);
72 
74 
79  vtkSetMacro(B,double);
80  vtkGetMacro(B,double);
82 
84 
89  vtkSetMacro(C,double);
90  vtkGetMacro(C,double);
92 
94 
99  vtkSetMacro(N,double);
100  vtkGetMacro(N,double);
102 
111  void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) VTK_OVERRIDE;
112 
126  double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) VTK_OVERRIDE;
127 
128 protected:
130  ~vtkParametricConicSpiral() VTK_OVERRIDE;
131 
132  // Variables
133  double A;
134  double B;
135  double C;
136  double N;
137 
138 private:
139  vtkParametricConicSpiral(const vtkParametricConicSpiral&) VTK_DELETE_FUNCTION;
140  void operator=(const vtkParametricConicSpiral&) VTK_DELETE_FUNCTION;
141 };
142 
143 #endif
Generate conic spiral surfaces that resemble sea-shells.
virtual double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9])=0
Calculate a user defined scalar using one or all of uvw, Pt, Duvw.
virtual void Evaluate(double uvw[3], double Pt[3], double Duvw[9])=0
Performs the mapping $f(uvw)->(Pt,Duvw)$f.
int GetDimension() override
Return the parametric dimension of the class.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract interface for parametric functions
a simple class to control print indentation
Definition: vtkIndent.h:39
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...