1 #ifndef uiaxishandler_h 2 #define uiaxishandler_h 15 #include "uitoolsmod.h" 26 class uiAHPlotAnnotSet;
62 , showauxannot_(false)
74 , nmcolor_(
Color::NoColor())
102 Setup& noannot(
bool yn )
103 { noaxisline_ = noaxisannot_ = nogridline_ = yn;
107 { specialvalue_ = yn ? newval :
mUdf(
float); }
109 {
return !
mIsUdf(specialvalue_); }
118 void setIsLog(
bool yn);
120 { beghndlr_ = ah; newDevSize();}
122 { endhndlr_ = ah; newDevSize();}
127 float getVal(
int pix)
const;
128 float getRelPos(
float absval)
const;
129 int getPix(
float absval)
const;
130 int getPix(
double abvsval)
const;
131 int getPix(
int)
const;
132 int getRelPosPix(
float relpos)
const;
134 { auxannots_ = pos; }
140 bool isHor()
const {
return uiRect::isHor(setup_.side_); }
141 int pixToEdge(
bool withborder=
true)
const;
142 int pixBefore()
const;
143 int pixAfter()
const;
148 void updateDevSize();
149 void setNewDevSize(
int,
int);
154 int getNrAnnotCharsForDisp()
const;
155 void setVisible(
bool);
191 {
return setup_.noaxisannot_ ? 0 : ticsz_; }
192 int tickEndPix(
bool farend)
const;
193 void updateAxisLine();
194 bool reCalcAnnotation();
197 friend class uiAHPlotAnnotSet;
#define mExpClass(module)
Definition: commondefs.h:160
#define mIsUdf(val)
Use mIsUdf to check for undefinedness of simple types.
Definition: undefval.h:287
int ticsz_
Definition: uiaxishandler.h:170
float annotstart_
Definition: uiaxishandler.h:168
StepInterval< float > datarg_
Definition: uiaxishandler.h:167
Steepness and intercept.
Definition: linear.h:26
const uiAxisHandler * beghndlr_
Definition: uiaxishandler.h:174
#define mGlobal(module)
Definition: commondefs.h:163
int ticSz() const
Definition: uiaxishandler.h:190
StepInterval< float > range() const
Definition: uiaxishandler.h:138
uiTextItem * nameitm_
Definition: uiaxishandler.h:161
Handles an axis on a plot.
Definition: uiaxishandler.h:51
int axsz_
Definition: uiaxishandler.h:182
bool showSpecialValue() const
Definition: uiaxishandler.h:108
Definition: uistring.h:89
Data needed to make an actual font.
Definition: fontdata.h:20
void setAuxAnnot(const TypeSet< PlotAnnotation > &pos)
Definition: uiaxishandler.h:133
float rgwidth_
Definition: uiaxishandler.h:185
FixedString LineStyle()
Definition: keystrs.h:80
void setLine(uiLineItem &, const LineParameters< float > &, const uiAxisHandler &xah, const uiAxisHandler &yah, const Interval< float > *xvalrg=0)
draws line not outside box defined by X and Y value ranges
void setEnd(const uiAxisHandler *ah)
Definition: uiaxishandler.h:121
float epsilon_
Definition: uiaxishandler.h:186
TypeSet< PlotAnnotation > auxannots_
Definition: uiaxishandler.h:179
Setup & setup()
Definition: uiaxishandler.h:137
Setup setup_
Definition: uiaxishandler.h:165
bool isHor() const
Definition: uiaxishandler.h:140
int reqnrchars_
Definition: uiaxishandler.h:173
int height_
Definition: uiaxishandler.h:171
uiString getCaption() const
Definition: uiaxishandler.h:116
StepInterval< float > annotrg_
Definition: uiaxishandler.h:187
Setup(uiRect::Side s, int w=0, int h=0)
Definition: uiaxishandler.h:57
int nrsteps_
Definition: uiaxishandler.h:188
uiAHPlotAnnotSet & annots_
Definition: uiaxishandler.h:178
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
float endpos_
Definition: uiaxishandler.h:180
void setBegin(const uiAxisHandler *ah)
Definition: uiaxishandler.h:119
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
int pxsizeinotherdir_
Definition: uiaxishandler.h:177
uiLineItem * axislineitm_
Definition: uiaxishandler.h:163
const uiAxisHandler * endhndlr_
Definition: uiaxishandler.h:175
int devsz_
Definition: uiaxishandler.h:181
const Setup & setup() const
Definition: uiaxishandler.h:136
int width_
Definition: uiaxishandler.h:172
uiTextItem * endannotitm_
Definition: uiaxishandler.h:162
uiGraphicsScene * scene_
Definition: uiaxishandler.h:160
float annotStart() const
Definition: uiaxishandler.h:139
OpendTect.
Definition: commontypes.h:29
uiBorder border_
Definition: uiaxishandler.h:169
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
Definition: uigraphicsitemimpl.h:273
bool islog_
Definition: uiaxishandler.h:166
Definition: uiaxishandler.h:55
bool ynmtxtvertical_
Definition: uiaxishandler.h:184
void setShowSpecialValue(bool yn, float newval=0.0f)
Definition: uiaxishandler.h:106
Side
Definition: uigeom.h:46
Definition: uigraphicsitemimpl.h:110
bool rgisrev_
Definition: uiaxishandler.h:183
Definition: uigraphicsscene.h:39