OpendTect
7.0
|
Handles an axis on a plot. More...
Public Member Functions | |
uiAxisHandler (uiGraphicsScene *, const Setup &) | |
~uiAxisHandler () | |
void | annotAtEnd (const uiString &) |
float | annotStart () const |
uiString | getCaption () const override |
uiLineItem * | getGridLine (int) |
int | getNrAnnotCharsForDisp () const |
int | getPix (double abvsval) const |
int | getPix (float absval) const |
int | getPix (int) const |
float | getRelPos (float absval) const |
int | getRelPosPix (float relpos) const |
uiLineItem * | getTickLine (int) |
float | getVal (int pix) const |
void | newDevSize () |
int | pixAfter () const |
int | pixBefore () const |
Interval< int > | pixRange () const |
Call this when appropriate. More... | |
int | pixToEdge (bool withborder=true) const |
StepInterval< float > | range () const override |
void | setAuxAnnot (const TypeSet< PlotAnnotation > &pos) |
void | setBegin (const uiAxisHandler *) |
void | setBorder (const uiBorder &) override |
void | setBounds (Interval< float >) override |
void | setCaption (const uiString &) override |
void | setEnd (const uiAxisHandler *) |
void | setIsLog (bool) override |
void | setNewDevSize (int, int) |
resized by yourself More... | |
void | setRange (const StepInterval< float > &, float *axst=nullptr) override |
void | setVisible (bool) |
void | updateDevSize () |
resized from sceme More... | |
void | updateScene () |
Public Member Functions inherited from uiAxisHandlerBase | |
virtual | ~uiAxisHandlerBase () |
bool | isHor () const |
Setup & | setup () |
const Setup & | setup () const |
Protected Member Functions | |
bool | reCalcAnnotation () |
int | tickEndPix (bool) const |
int | ticSz () const |
void | updateAxisLine () |
void | updateName () |
Protected Member Functions inherited from uiAxisHandlerBase | |
uiAxisHandlerBase (const Setup &su) | |
Protected Attributes | |
StepInterval< float > | annotrg_ |
uiAHPlotAnnotSet & | annots_ |
float | annotstart_ |
TypeSet< PlotAnnotation > | auxannots_ |
uiLineItem * | axislineitm_ |
int | axsz_ |
const uiAxisHandler * | beghndlr_ |
uiBorder | border_ |
StepInterval< float > | datarg_ |
int | devsz_ |
uiTextItem * | endannotitm_ |
const uiAxisHandler * | endhndlr_ |
float | endpos_ |
float | epsilon_ |
int | height_ |
uiTextItem * | nameitm_ |
int | nrsteps_ |
int | pxsizeinotherdir_ |
int | reqnrchars_ |
bool | rgisrev_ |
float | rgwidth_ |
uiGraphicsScene * | scene_ |
int | ticsz_ |
int | width_ |
bool | ynmtxtvertical_ |
Protected Attributes inherited from uiAxisHandlerBase | |
Setup | setup_ |
Friends | |
class | uiAHPlotAnnotSet |
Handles an axis on a plot.
Manages the positions in a 2D plot. The axis can be logarithmic. getRelPos returns the relative position on the axis. If the point is between the start and stop of the range, this will be between 0 and 1.
The axis will determine a good position wrt the border. To determine where the axis starts and stops, you can provide other axis handlers. If you don't provide these, the border_ will be used. The border_ on the side of the axis will always be used. If you do use begin and end handlers, you'll have to call setRange() for all before using plotAxis().
The drawAxis will plot the axis. If LineStyle::Type is not LineStyle::None, grid lines will be drawn, too. If it is None, then still the color and size will be used for drawing the axis (the axis' style is always Solid).
Use AxisLayout (linear.h) to find 'nice' ranges, like: AxisLayout al( Interval<float>(start,stop) ); ahndlr.setRange( StepInterval<float>(al.sd.start,al.stop,al.sd.step) );
<>
uiAxisHandler::uiAxisHandler | ( | uiGraphicsScene * | , |
const Setup & | |||
) |
uiAxisHandler::~uiAxisHandler | ( | ) |
void uiAxisHandler::annotAtEnd | ( | const uiString & | ) |
|
inline |
|
inlineoverridevirtual |
Implements uiAxisHandlerBase.
uiLineItem* uiAxisHandler::getGridLine | ( | int | ) |
int uiAxisHandler::getNrAnnotCharsForDisp | ( | ) | const |
int uiAxisHandler::getPix | ( | double | abvsval | ) | const |
int uiAxisHandler::getPix | ( | float | absval | ) | const |
int uiAxisHandler::getPix | ( | int | ) | const |
float uiAxisHandler::getRelPos | ( | float | absval | ) | const |
int uiAxisHandler::getRelPosPix | ( | float | relpos | ) | const |
uiLineItem* uiAxisHandler::getTickLine | ( | int | ) |
float uiAxisHandler::getVal | ( | int | pix | ) | const |
void uiAxisHandler::newDevSize | ( | ) |
int uiAxisHandler::pixAfter | ( | ) | const |
int uiAxisHandler::pixBefore | ( | ) | const |
Interval<int> uiAxisHandler::pixRange | ( | ) | const |
Call this when appropriate.
int uiAxisHandler::pixToEdge | ( | bool | withborder = true | ) | const |
|
inlineoverridevirtual |
Implements uiAxisHandlerBase.
|
protected |
|
inline |
void uiAxisHandler::setBegin | ( | const uiAxisHandler * | ) |
|
overridevirtual |
Implements uiAxisHandlerBase.
|
overridevirtual |
Implements uiAxisHandlerBase.
|
overridevirtual |
Implements uiAxisHandlerBase.
void uiAxisHandler::setEnd | ( | const uiAxisHandler * | ) |
|
overridevirtual |
Implements uiAxisHandlerBase.
void uiAxisHandler::setNewDevSize | ( | int | , |
int | |||
) |
resized by yourself
|
overridevirtual |
Implements uiAxisHandlerBase.
void uiAxisHandler::setVisible | ( | bool | ) |
|
protected |
|
inlineprotected |
|
protected |
void uiAxisHandler::updateDevSize | ( | ) |
resized from sceme
|
protected |
void uiAxisHandler::updateScene | ( | ) |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024