1 #ifndef uifunctiondisplay_h 2 #define uifunctiondisplay_h 15 #include "uitoolsmod.h" 55 , border_(20,20,20,10)
64 , noy2gridline_(
false)
72 , drawscattery1_(
false)
73 , drawscattery2_(
false)
78 , markerfilly1_(
false)
79 , markerfilly2_(
false)
85 , useyscalefory2_(
false)
88 , drawliney2_(
true) {}
133 Setup& drawline(
bool yn )
134 { drawliney_ = drawliney2_ = yn;
return *
this; }
135 Setup& drawgridlines(
bool yn )
136 { noxgridline_ = noygridline_ = noy2gridline_ = !yn;
138 Setup& drawscatter(
bool yn )
139 { drawscattery1_ = drawscattery2_ = yn;
return *
this; }
140 Setup& annot(
bool yn )
141 { annotx_ = annoty_ = annoty2_ = yn;
return *
this; }
142 Setup& axes(
bool yn )
143 { noxaxis_ = noyaxis_ = noy2axis_ = !yn;
return *
this; }
151 void setVals(
const float* xvals,
152 const float* yvals,
int sz);
154 const float* yvals,
int sz);
156 void setY2Vals(
const float* xvals,
157 const float* yvals,
int sz);
159 const float* yvals,
int sz);
161 void setMarkValue(
float,
bool is_x);
162 void setMark2Value(
float,
bool is_x);
171 {
return y2 ? y2ax_ : yax_; }
178 int size()
const {
return xvals_.size(); }
182 int selPt()
const {
return selpt_; }
184 void gatherInfo(
bool y2=
false);
228 void setUpAxis(
bool y2);
237 void drawMarkLines();
245 virtual void drawData();
const uiAxisHandler * xAxis() const
Definition: uifunctiondisplay.h:169
uiLineItem * ymarkline2item_
Definition: uifunctiondisplay.h:207
#define mExpClass(module)
Definition: commondefs.h:160
uiPolyLineItem * ypolylineitem_
Definition: uifunctiondisplay.h:199
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
float ymarkline2val_
Definition: uifunctiondisplay.h:217
int selPt() const
Definition: uifunctiondisplay.h:182
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:26
FixedString Setup()
Definition: keystrs.h:116
Setup & setup()
Definition: uifunctiondisplay.h:172
const uiAxisHandler * yAxis(bool y2) const
Definition: uifunctiondisplay.h:170
#define mODTextTranslationClass(clss)
Definition: uistring.h:38
uiPolygonItem * y2polygonitem_
Definition: uifunctiondisplay.h:198
Definition: uigraphicsitemimpl.h:192
const TypeSet< float > & yVals() const
Definition: uifunctiondisplay.h:166
TypeSet< float > xvals_
Definition: uifunctiondisplay.h:210
float xmarklineval_
Definition: uifunctiondisplay.h:214
int selpt_
Definition: uifunctiondisplay.h:218
Handles an axis on a plot.
Definition: uiaxishandler.h:51
uiGraphicsItemGroup * ymarkeritems_
Definition: uifunctiondisplay.h:202
Setup setup_
Definition: uifunctiondisplay.h:191
uiAxisHandler * y2ax_
Definition: uifunctiondisplay.h:194
Definition: uistring.h:89
Definition: uiparent.h:26
uiAxisHandler * xAxis()
Definition: uifunctiondisplay.h:167
uiGraphicsItem * y2polyitem_
Definition: uifunctiondisplay.h:196
TypeSet< float > y2yvals_
Definition: uifunctiondisplay.h:213
uiAxisHandler * xax_
Definition: uifunctiondisplay.h:192
int size() const
Definition: uifunctiondisplay.h:178
uiGraphicsItem * ypolyitem_
Definition: uifunctiondisplay.h:195
uiLineItem * ymarklineitem_
Definition: uifunctiondisplay.h:205
Definition: uigraphicsitem.h:157
uiRectItem * borderrectitem_
Definition: uifunctiondisplay.h:201
#define mUdf(type)
Use this macro to get the undefined for simple types.
Definition: undefval.h:272
uiTextItem * titleitem_
Definition: uifunctiondisplay.h:208
displays a function of (X,Y) pairs on a canvas - optionally a Y2.
Definition: uifunctiondisplay.h:38
Definition: uigraphicsitemimpl.h:255
#define mDefSetupMemb(typ, memb)
Definition: commondefs.h:137
uiLineItem * xmarklineitem_
Definition: uifunctiondisplay.h:204
bool mousedown_
Definition: uifunctiondisplay.h:219
uiAxisHandler * yax_
Definition: uifunctiondisplay.h:193
Definition: uigraphicsitemimpl.h:214
TypeSet< float > y2xvals_
Definition: uifunctiondisplay.h:212
static Color White()
Definition: color.h:85
uiPolygonItem * ypolygonitem_
Definition: uifunctiondisplay.h:197
Definition: uigraphicsview.h:51
uiGraphicsItemGroup * y2markeritems_
Definition: uifunctiondisplay.h:203
Notifier< uiFunctionDisplay > pointChanged
Definition: uifunctiondisplay.h:181
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
uiPolyLineItem * y2polylineitem_
Definition: uifunctiondisplay.h:200
Definition: uigraphicsitemimpl.h:273
uiAxisHandler * yAxis(bool y2)
Definition: uifunctiondisplay.h:168
const TypeSet< float > & xVals() const
Definition: uifunctiondisplay.h:165
Notifier< uiFunctionDisplay > pointSelected
Definition: uifunctiondisplay.h:180
uiLineItem * xmarkline2item_
Definition: uifunctiondisplay.h:206
TypeSet< float > yvals_
Definition: uifunctiondisplay.h:211
float ymarklineval_
Definition: uifunctiondisplay.h:215
Definition: uigraphicsitemimpl.h:110
float xmarkline2val_
Definition: uifunctiondisplay.h:216
Definition: uigraphicsscene.h:39