VTK  9.2.6
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 =========================================================================*/
44 #ifndef vtkParametricConicSpiral_h
45 #define vtkParametricConicSpiral_h
46 
47 #include "vtkCommonComputationalGeometryModule.h" // For export macro
48 #include "vtkParametricFunction.h"
49 
50 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricConicSpiral : public vtkParametricFunction
51 {
52 public:
54  void PrintSelf(ostream& os, vtkIndent indent) override;
55 
67 
71  int GetDimension() override { return 2; }
72 
74 
78  vtkSetMacro(A, double);
79  vtkGetMacro(A, double);
81 
83 
88  vtkSetMacro(B, double);
89  vtkGetMacro(B, double);
91 
93 
98  vtkSetMacro(C, double);
99  vtkGetMacro(C, double);
101 
103 
108  vtkSetMacro(N, double);
109  vtkGetMacro(N, double);
111 
120  void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
121 
135  double EvaluateScalar(double uvw[3], double Pt[3], double Duvw[9]) override;
136 
137 protected:
140 
141  // Variables
142  double A;
143  double B;
144  double C;
145  double N;
146 
147 private:
149  void operator=(const vtkParametricConicSpiral&) = delete;
150 };
151 
152 #endif
a simple class to control print indentation
Definition: vtkIndent.h:49
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