1 #ifndef posimpexppars_h 2 #define posimpexppars_h 15 #include "generalmod.h" 29 #define mPIEP PosImpExpPars::SVY() 30 #define mPIEPAdj(what,v,inw) PosImpExpPars::SVY().adjust##what(v,inw) 38 static void refresh() { getSVY().getFromSI(); }
46 float zScale()
const {
return zscale_; }
51 void adjustBinID(
BinID&,
bool inward)
const;
52 void adjustTrcNr(
int&,
bool inward)
const;
53 void adjustCoord(
Coord&,
bool inward)
const;
54 void adjustZ(
float&,
bool inward)
const;
55 void adjustOffset(
float&,
bool inward)
const;
57 void adjustInl(
int&,
bool inward)
const;
58 void adjustCrl(
int&,
bool inward)
const;
59 void adjustX(
double&,
bool inward)
const;
60 void adjustY(
double&,
bool inward)
const;
62 bool haveBinIDChg()
const;
63 bool haveTrcNrChg()
const;
64 bool haveCoordChg()
const;
65 bool haveZChg()
const;
66 bool haveOffsetChg()
const;
68 bool haveInlChg()
const;
69 bool haveCrlChg()
const;
70 bool haveXChg()
const;
71 bool haveYChg()
const;
91 binidscale_ = 1; binidoffs_ =
BinID(0,0);
92 trcnrscale_ = 1; trcnroffs_ = 0;
93 coordscale_ = 1; coordoffs_ =
Coord(0,0);
94 zscale_ = 1; zoffs_ = 0;
95 offsscale_ = 1; offsoffs_ = 0;
104 static const char* sKeyOffset();
105 static const char* sKeyScale();
107 static const char* sKeyTrcNr();
109 static const char*
sKeyZ() {
return "Z"; }
111 static const char* fullKey(
const char*,
bool true_is_scale_else_offs);
#define mExpClass(module)
Definition: commondefs.h:160
BinID binidOffset() const
Definition: posimpexppars.h:41
void clear()
Definition: posimpexppars.h:89
Definition: posimpexppars.h:33
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
double coordscale_
Definition: posimpexppars.h:79
Coord coordOffset() const
Definition: posimpexppars.h:45
int trcnrscale_
Definition: posimpexppars.h:77
float offsscale_
Definition: posimpexppars.h:83
int binidScale() const
Definition: posimpexppars.h:40
void survChg(CallBacker *)
Definition: posimpexppars.h:101
void usePar(const IOPar &iop, ODPolygon< T > &poly, const char *inpkey)
Definition: polygon.h:188
float zscale_
Definition: posimpexppars.h:81
A cartesian coordinate in 2D space.
Definition: coord.h:25
BinID binidoffs_
Definition: posimpexppars.h:76
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
int trcnrScale() const
Definition: posimpexppars.h:42
static const char * sKeyZ()
Definition: posimpexppars.h:109
float offsOffset() const
Definition: posimpexppars.h:49
int trcnrOffset() const
Definition: posimpexppars.h:43
static const char * sKeyBase()
Definition: posimpexppars.h:103
int trcnroffs_
Definition: posimpexppars.h:78
PosImpExpPars()
Definition: posimpexppars.h:88
static void refresh()
Definition: posimpexppars.h:38
float zOffset() const
Definition: posimpexppars.h:47
float offsoffs_
Definition: posimpexppars.h:84
static const char * sKeyCoord()
Definition: posimpexppars.h:108
Positioning in a seismic survey: inline/crossline or lineNr/trcNr.
Definition: binid.h:30
float zScale() const
Definition: posimpexppars.h:46
int binidscale_
Definition: posimpexppars.h:75
double coordScale() const
Definition: posimpexppars.h:44
float offsScale() const
Definition: posimpexppars.h:48
static const char * sKeyBinID()
Definition: posimpexppars.h:106
float zoffs_
Definition: posimpexppars.h:82
Coord coordoffs_
Definition: posimpexppars.h:80