VTK  9.1.0
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 =========================================================================*/
51 #ifndef vtkParametricConicSpiral_h
52 #define vtkParametricConicSpiral_h
53 
54 #include "vtkCommonComputationalGeometryModule.h" // For export macro
55 #include "vtkParametricFunction.h"
56 
57 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricConicSpiral : public vtkParametricFunction
58 {
59 public:
61  void PrintSelf(ostream& os, vtkIndent indent) override;
62 
74 
78  int GetDimension() override { return 2; }
79 
81 
85  vtkSetMacro(A, double);
86  vtkGetMacro(A, double);
88 
90 
95  vtkSetMacro(B, double);
96  vtkGetMacro(B, double);
98 
100 
105  vtkSetMacro(C, double);
106  vtkGetMacro(C, double);
108 
110 
115  vtkSetMacro(N, double);
116  vtkGetMacro(N, double);
118 
127  void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
128 
142  double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
143 
144 protected:
147 
148  // Variables
149  double A;
150  double B;
151  double C;
152  double N;
153 
154 private:
156  void operator=(const vtkParametricConicSpiral&) = delete;
157 };
158 
159 #endif
a simple class to control print indentation
Definition: vtkIndent.h:113
Generate conic spiral surfaces that resemble sea-shells.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkParametricConicSpiral() override
static vtkParametricConicSpiral * New()
Construct a conic spiral surface with the following parameters: MinimumU = 0, MaximumU = 2Pi,...
double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override
Calculate a user defined scalar using one or all of uvw, Pt, Duvw.
int GetDimension() override
Return the parametric dimension of the class.
void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override
A conic spiral surface.
abstract interface for parametric functions