Overture  Version 25
MappingP.h
Go to the documentation of this file.
1 #ifndef MAPPINGP_H
2 #define MAPPINGP_H "MappingP.h"
3 
4 #include <A++.h>
5 
6 #include "OvertureTypes.h" // define real to be float or double
7 
8 #include "wdhdefs.h" // some useful defines and constants
9 #include "MappingWS.h"
10 
11 class ApproximateGlobalInverse; // forward declaration
12 class ExactLocalInverse;
13 
14 //===========================================================================
15 // Here is a class to use to pass parameters to inverseMap
16 // ---temporarily located here---
17 //===========================================================================
19 {
20  public:
22  {
23  THEnonConvergenceValue, // value given to inverse when there is no convergence
24  THEnewtonToleranceFactor, // convergence tolerance is this times the machine epsilon
25  THEnewtonDivergenceValue, // newton is deemed to have diverged if the r value is this much outside [0,1]
26  THEnewtonL2Factor, // extra factor used in inverting the closest point to a curve or surface
27  THEboundingBoxExtensionFactor, // relative amount to increase the bounding box each direction.
28  THEstencilWalkBoundingBoxExtensionFactor // increase bounding box for the stencil walk.
29  };
31  {
32  THEfindBestGuess // if true, ignore bounding boxes when finding closest point
33  };
34 
35  int isNull; // True if parameters have not been set
36  int periodicityOfSpace; // =0,1,2,3
40  // This next int should really be of type Mapping::coordinateSystem
41  int coordinateType; // to request the mapping transformation to be evaluated
42  // in one of the coordinate systems: cartesian, spherical,
43  // cylindrical, polar, toroidal
44 
45  intArray mask; // optional mask for limiting which points are evaluated by map and inverseMap
46 
49 
50  MappingParameters( const int isNull0=FALSE );
51 
53 
54  // Copy constructor is deep by default
55  MappingParameters( const MappingParameters &, const CopyType copyType=DEEP );
56 
58 
59 };
60 
61 #endif // MAPPINGP_H