1 #ifndef uigraphicssceneaxismgr_h 2 #define uigraphicssceneaxismgr_h 15 #include "uitoolsmod.h" 57 ~uiGraphicsSceneAxis();
60 void setPosition(
bool isx,
bool istoporleft,
bool isinside);
62 void setViewRect(
const uiRect&);
64 void setZValue(
int nv);
72 void enableMask(
bool yn);
77 { ls_=lst; reDraw(); }
79 { gridls_ = gls; reDraw(); }
85 void drawAtPos(
float worldpos,
bool drawgrid,
86 int& curtextitm,
int& curlineitm);
87 int getNrAnnotChars()
const;
125 virtual void setZValue(
int z);
129 void setViewRect(
const uiRect&);
134 int getZValue()
const;
135 int getNeededWidth()
const;
136 int getNeededHeight()
const;
138 void setAnnotInside(
bool yn);
139 void enableAxisLine(
bool yn);
147 { xaxis ? xaxis_->setup().annotinint(dowant)
148 : yaxis_->setup().annotinint(dowant); }
149 void showAuxPositions(
bool forx,
bool yn);
154 { xaxis_->updateScene(); yaxis_->updateScene(); }
169 void updateFontSizeCB(CallBacker*);
uiRect viewrect_
Definition: uigraphicssceneaxismgr.h:100
#define mExpClass(module)
Definition: commondefs.h:160
void setAnnotInInt(bool yn)
Definition: uigraphicssceneaxismgr.h:70
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
void turnOn(int flag)
Overrides the envirnonment variable.
uiRectItem * leftmask_
Definition: uigraphicssceneaxismgr.h:166
void setAnnotInInt(bool xaxis, bool dowant)
Definition: uigraphicssceneaxismgr.h:146
Interface class for Notifier. See comments there.
Definition: callback.h:161
int txtfactor_
Definition: uigraphicssceneaxismgr.h:110
bool istop_
Definition: uigraphicssceneaxismgr.h:91
Handles an axis on a plot.
Definition: uiaxishandler.h:51
void enableYAxis(bool yn)
Definition: uigraphicssceneaxismgr.h:132
void setTextFactor(int n)
Definition: uigraphicssceneaxismgr.h:73
void enableAxisLine(bool yn)
Definition: uigraphicssceneaxismgr.h:68
FontData fontdata_
Definition: uigraphicssceneaxismgr.h:111
uiRectItem * rightmask_
Definition: uigraphicssceneaxismgr.h:167
ObjectSet< uiLineItem > lines_
Definition: uigraphicssceneaxismgr.h:102
Data needed to make an actual font.
Definition: fontdata.h:20
OD::LineStyle ls_
Definition: uigraphicssceneaxismgr.h:107
ObjectSet< uiTextItem > texts_
Definition: uigraphicssceneaxismgr.h:103
void setAnnotInside(bool yn)
Definition: uigraphicssceneaxismgr.h:67
void setLineStyle(const OD::LineStyle &lst)
Definition: uigraphicssceneaxismgr.h:76
void setGridLineStyle(const OD::LineStyle &gls)
Definition: uigraphicssceneaxismgr.h:78
bool isx_
Definition: uigraphicssceneaxismgr.h:90
uiAxisHandler * xaxis_
Definition: uigraphicssceneaxismgr.h:159
bool inside_
Definition: uigraphicssceneaxismgr.h:89
Interval< double > rg_
Definition: uigraphicssceneaxismgr.h:105
void enableGridLines(bool yn)
Definition: uigraphicssceneaxismgr.h:69
Definition: uigraphicsitem.h:157
uiRectItem * topmask_
Definition: uigraphicssceneaxismgr.h:164
To draw simple axes for a 2D coordinate system.
Definition: uigraphicssceneaxismgr.h:54
OD::LineStyle gridls_
Definition: uigraphicssceneaxismgr.h:108
Definition: uigraphicsitemimpl.h:255
uiAxisHandler * yaxis_
Definition: uigraphicssceneaxismgr.h:160
bool drawgridlines_
Definition: uigraphicssceneaxismgr.h:93
uiGraphicsView & view_
Definition: uigraphicssceneaxismgr.h:163
uiRectItem * mask_
Definition: uigraphicssceneaxismgr.h:98
Manages uiGraphicsSceneAxis.
Definition: uigraphicssceneaxismgr.h:119
Definition: uigraphicsview.h:51
bool drawaxisline_
Definition: uigraphicssceneaxismgr.h:92
Definition: uigraphicsitemimpl.h:273
uiGraphicsScene & scene_
Definition: uigraphicssceneaxismgr.h:96
SamplingData< double > sampling_
Definition: uigraphicssceneaxismgr.h:109
uiFont & uifont_
Definition: uigraphicssceneaxismgr.h:162
virtual void updateScene()
Definition: uigraphicssceneaxismgr.h:153
uiRectItem * bottommask_
Definition: uigraphicssceneaxismgr.h:165
void enableXAxis(bool yn)
Definition: uigraphicssceneaxismgr.h:131
uiGraphicsItemGroup * itmgrp_
Definition: uigraphicssceneaxismgr.h:97
Definition: uigraphicsitemimpl.h:110
Definition: uigraphicsscene.h:39
bool annotinint_
Definition: uigraphicssceneaxismgr.h:94