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 =========================================================================*/
31 #ifndef vtkParametricBohemianDome_h
32 #define vtkParametricBohemianDome_h
33 
34 #include "vtkCommonComputationalGeometryModule.h" // For export macro
35 #include "vtkParametricFunction.h"
36 
37 class VTKCOMMONCOMPUTATIONALGEOMETRY_EXPORT vtkParametricBohemianDome :
39 {
40  public:
41 
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
46 
49  vtkGetMacro(A, double);
50  vtkSetMacro(A, double);
52 
53  vtkGetMacro(B, double);
54  vtkSetMacro(B, double);
55 
56  vtkGetMacro(C, double);
57  vtkSetMacro(C, double);
58 
59  // (MinimumU, MaximumU) = (-pi, pi),
60  // (MinimumV, MaximumV) = (-pi, pi),
61  // JoinU = 1, JoinV = 1,
62  // TwistU = 0, TwistV = 0;
63  // ClockwiseOrdering = 0,
64  // DerivativesAvailable = 1,
66 
70  int GetDimension() override {return 2;}
71 
80  void Evaluate(double uvw[3], double Pt[3], double Duvw[9]) override;
81 
86  double EvaluateScalar(double uvw[3], double Pt[3],
87  double Duvw[9]) override;
88 
89  protected:
91  ~vtkParametricBohemianDome() override;
92 
93  // Variables
94  double A;
95  double B;
96  double C;
97 
98  private:
100  void operator=(const vtkParametricBohemianDome&) = delete;
101 };
102 
103 #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:39
Generate a Bohemian dome.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...