 |
OpendTect
6.6
|
Go to the documentation of this file.
19 #define sLinScaler "Linear"
20 #define sLogScaler "Logarithmic"
21 #define sExpScaler "Exponential"
22 #define sAsymptScaler "Asymptotic"
39 void put(
char*) const;
40 void put(
char*,
int sz) const;
42 virtual
bool isEmpty()
const {
return false; }
44 virtual const char*
type()
const = 0;
46 virtual double scale(
double)
const = 0;
61 : constant(c), factor(f) {}
62 LinScaler(
double x0,
double y0,
double x1,
double y1 );
63 void set(
double x0,
double y0,
double x1,
double y1 );
65 {
return new LinScaler(constant,factor); }
109 {
return ten_==b.
ten_; }
134 {
return ten_==b.
ten_; }
156 : center_(c), width_(w), linedge_(l), factor(1)
172 void set(
double,
double,
double);
173 inline double center()
const {
return center_; }
174 inline double width()
const {
return width_; }
175 inline double linedge()
const {
return linedge_; }
double scale(double) const
double linedge_
Definition: scaler.h:181
virtual Scaler * clone() const =0
virtual const char * type() const =0
AsymptScaler(double c=0, double w=1, double l=0.95)
Definition: scaler.h:155
#define mIsEqual(x, y, eps)
Definition: commondefs.h:67
double unScale(double) const
void fromString(const char *)
Exponential scaling, base e or ten.
Definition: scaler.h:120
#define mExpClass(module)
Definition: commondefs.h:177
const char * toString() const
double width_
Definition: scaler.h:180
bool isEmpty() const
Definition: scaler.h:85
const char * toString() const
#define sLogScaler
Definition: scaler.h:20
#define mDefEps
Definition: commondefs.h:71
Asymptotic or 'Squeeze' scaling, with a linear (main) part.
Definition: scaler.h:153
mDeprecated("Provide the size of the write buffer") void put(char *) const
double constant
Definition: scaler.h:81
LinScaler(double c=0, double f=1)
Definition: scaler.h:60
bool operator==(const ExpScaler &b) const
Definition: scaler.h:133
bool isEmpty(const NLAModel *mdl)
LinScaler(double x0, double y0, double x1, double y1)
double unScale(double) const
bool ten_
Definition: scaler.h:111
Linear scaling.
Definition: scaler.h:58
double factor
Definition: scaler.h:82
void set(double, double, double)
Scaling of floating point numbers.
Definition: scaler.h:33
double center_
Definition: scaler.h:179
double width() const
Definition: scaler.h:174
virtual ExpScaler * clone() const
Definition: scaler.h:125
const char * toString() const
void set(double x0, double y0, double x1, double y1)
bool operator==(const LinScaler &b) const
Definition: scaler.h:75
const char * toString() const
bool operator==(const LogScaler &b) const
Definition: scaler.h:108
virtual void fromString(const char *)=0
void fromString(const char *)
virtual LinScaler * clone() const
Definition: scaler.h:64
static Scaler * get(const char *)
const char * type() const
Definition: scaler.h:100
void set(T &_to, const F &fr)
template based type conversion
Definition: convert.h:27
void fromString(const char *)
double linedge() const
Definition: scaler.h:175
virtual const char * toString() const =0
virtual AsymptScaler * clone() const
Definition: scaler.h:159
virtual double scale(double) const =0
virtual double unScale(double) const
Definition: scaler.h:47
void fromString(const char *)
double unScale(double) const
double scale(double) const
ExpScaler(bool powerof10=true)
Definition: scaler.h:122
virtual ~Scaler()
Definition: scaler.h:36
double unScale(double) const
virtual LogScaler * clone() const
Definition: scaler.h:101
const char * type() const
Definition: scaler.h:158
bool operator==(const AsymptScaler &b) const
Definition: scaler.h:167
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:274
#define sExpScaler
Definition: scaler.h:21
#define sAsymptScaler
Definition: scaler.h:22
double scale(double) const
bool ten_
Definition: scaler.h:136
double factor
Definition: scaler.h:183
double scale(double) const
const char * type() const
Definition: scaler.h:68
Logarithmic scaling, base e or ten.
Definition: scaler.h:96
#define sLinScaler
Definition: scaler.h:19
double center() const
Definition: scaler.h:173
const char * type() const
Definition: scaler.h:124
LogScaler(bool powerof10=true)
Definition: scaler.h:98
Generated at
for the OpendTect
seismic interpretation project.
Copyright (C): dGB Beheer B.V. 1995-2021