VTK
vtkParametricBohemianDome.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkParametricBohemianDome.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 =========================================================================*/
28 #ifndef vtkParametricBohemianDome_h
29 #define vtkParametricBohemianDome_h
30 
31 #include "vtkCommonComputationalGeometryModule.h" // For export macro
32 #include "vtkParametricFunction.h"
33 
34 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricBohemianDome :
36 {
37  public:
38 
40  void PrintSelf(ostream& os, vtkIndent indent) override;
41 
43 
46  vtkGetMacro(A, double);
47  vtkSetMacro(A, double);
49 
50  vtkGetMacro(B, double);
51  vtkSetMacro(B, double);
52 
53  vtkGetMacro(C, double);
54  vtkSetMacro(C, double);
55 
56  // (MinimumU, MaximumU) = (-pi, pi),
57  // (MinimumV, MaximumV) = (-pi, pi),
58  // JoinU = 1, JoinV = 1,
59  // TwistU = 0, TwistV = 0;
60  // ClockwiseOrdering = 0,
61  // DerivativesAvailable = 1,
63 
67  int GetDimension() override {return 2;}
68 
77  void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
78 
83  double EvaluateScalar(double uvw[3], double Pt[3],
84  double Duvw[9]) override;
85 
86  protected:
88  ~vtkParametricBohemianDome() override;
89 
90  // Variables
91  double A;
92  double B;
93  double C;
94 
95  private:
97  void operator=(const vtkParametricBohemianDome&) = delete;
98 };
99 
100 #endif
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.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
int GetDimension() override
Return the parametric dimension of the class.
abstract interface for parametric functions
a simple class to control print indentation
Definition: vtkIndent.h:33
Generate a Bohemian dome.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.