Overture  Version 25
GridStretcher.h
Go to the documentation of this file.
1 #ifndef GRID_STRETCHER_H
2 #define GRID_STRETCHER_H
3 
4 #include "Mapping.h"
6 
7 class DataPointMapping;
8 class DialogData;
10 class StretchTransform;
11 
13 {
14  public:
15 
17  {
21  };
22 
24  {
29  };
30 
33 
34  int buildDialog(DialogData & dialog);
35 
36 int
37 update(aString & answer, DialogData & dialog, MappingInformation & mapInfo, StretchTransform & stretchedMapping );
38 
39 int
40 update(aString & answer, DialogData & dialog, MappingInformation & mapInfo,
41  realArray & x, // source grid points including ghost points
42  const IntegerArray & gridIndexRange, // identifies boundaries
43  const IntegerArray & projectIndexRange, // identifies which points to project for surface grids
44  DataPointMapping & dpm, // the resulting stretched grid
45  Mapping *surface=NULL // for projecting onto surface grids
46  );
47 
48 
49 // int update(aString & answer, DialogData & dialog, MappingInformation & mapInfo,
50 // realArray & x, // source grid points including ghost points
51 // const IntegerArray & gridIndexRange, // identifies boundaries
52 // const IntegerArray & projectIndexRange, // identifies which points to project (surface grids)
53 // DataPointMapping & dpm, // the resulting stretched grid
54 // Mapping *surface=NULL // for projecting onto surface grids
55 // );
56 
57  protected:
58 
59 int
60 update(aString & answer, DialogData & dialog, MappingInformation & mapInfo,
61  realArray *px, // source grid points including ghost points
62  IntegerArray const *pgridIndexRange, // identifies boundaries
63  IntegerArray const *pprojectIndexRange, // identifies which points to project for surface grids
64  DataPointMapping *dpm, // the resulting stretched grid
65  Mapping *surface =NULL , // for projecting onto surface grids
66  StretchTransform *stretchedMapping =NULL );
67 
68  int periodicUpdate( realArray & x, const IntegerArray & indexRange, Mapping & map );
69 
70 int
71 applyStretching( StretchTransform & stretchedDPM );
72 
73 bool
75 
77 
79  int stretchID;
84 
86 };
87 
88 
89 #endif