Overture
Version 25
Main Page
Namespaces
Classes
Files
File List
File Members
Overture.v25.d
include
GridStretcher.h
Go to the documentation of this file.
1
#ifndef GRID_STRETCHER_H
2
#define GRID_STRETCHER_H
3
4
#include "
Mapping.h
"
5
#include "
GenericGraphicsInterface.h
"
6
7
class
DataPointMapping
;
8
class
DialogData
;
9
class
MappingInformation
;
10
class
StretchTransform
;
11
12
class
GridStretcher
13
{
14
public
:
15
16
enum
ReturnValueEnum
17
{
18
answerNotProcessed
=0,
19
parametersChanged
=1,
20
gridWasChanged
=2
21
};
22
23
enum
PickingOptionsEnum
24
{
25
pickToDoNothing
,
26
pickToStretchInDirection1
,
27
pickToStretchInDirection2
,
28
pickToStretchInDirection3
,
29
};
30
31
GridStretcher
(
int
domainDimension
,
int
rangeDimension
);
32
~GridStretcher
();
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
74
checkForStretchCommands
(
const
aString
& answer,
GenericGraphicsInterface
& gi,
DialogData
& dialog );
75
76
PickingOptionsEnum
pickingOption
;
77
78
int
domainDimension
,
rangeDimension
;
79
int
stretchID
;
80
int
numberOfStretch
;
81
RealArray
stretchParams
;
82
int
projectStretchedGridOntoReferenceSurface
;
83
int
gridIsStretched
;
84
85
real
defaultWeight
,
defaultExponent
;
86
};
87
88
89
#endif
Generated on Fri Jan 4 2013 10:17:53 for Overture by
1.8.3