OpendTect-6_4
6.4
|
Handles an axis on a plot. More...
Classes | |
struct | Setup |
Public Member Functions | |
uiAxisHandler (uiGraphicsScene *, const Setup &) | |
~uiAxisHandler () | |
void | setCaption (const uiString &) |
uiString | getCaption () const |
void | setBorder (const uiBorder &) |
void | setIsLog (bool yn) |
void | setBegin (const uiAxisHandler *ah) |
void | setEnd (const uiAxisHandler *ah) |
void | setRange (const StepInterval< float > &, float *axstart=0) |
void | setBounds (Interval< float >) |
makes annot 'nice' More... | |
float | getVal (int pix) const |
float | getRelPos (float absval) const |
int | getPix (float absval) const |
int | getPix (double abvsval) const |
int | getPix (int) const |
int | getRelPosPix (float relpos) const |
void | setAuxAnnot (const TypeSet< PlotAnnotation > &pos) |
const Setup & | setup () const |
Setup & | setup () |
StepInterval< float > | range () const |
float | annotStart () const |
bool | isHor () const |
int | pixToEdge (bool withborder=true) const |
int | pixBefore () const |
int | pixAfter () const |
Interval< int > | pixRange () const |
Call this when appropriate. More... | |
void | newDevSize () |
void | updateDevSize () |
resized from sceme More... | |
void | setNewDevSize (int, int) |
resized by yourself More... | |
void | updateScene () |
uiLineItem * | getTickLine (int pix) |
uiLineItem * | getGridLine (int pix) |
int | getNrAnnotCharsForDisp () const |
void | setVisible (bool) |
void | annotAtEnd (const uiString &) |
Protected Member Functions | |
int | ticSz () const |
int | tickEndPix (bool farend) const |
void | updateAxisLine () |
bool | reCalcAnnotation () |
void | updateName () |
Protected Attributes | |
uiGraphicsScene * | scene_ |
uiTextItem * | nameitm_ |
uiTextItem * | endannotitm_ |
uiLineItem * | axislineitm_ |
Setup | setup_ |
bool | islog_ |
StepInterval< float > | datarg_ |
float | annotstart_ |
uiBorder | border_ |
int | ticsz_ |
int | height_ |
int | width_ |
int | reqnrchars_ |
const uiAxisHandler * | beghndlr_ |
const uiAxisHandler * | endhndlr_ |
int | pxsizeinotherdir_ |
uiAHPlotAnnotSet & | annots_ |
TypeSet< PlotAnnotation > | auxannots_ |
float | endpos_ |
int | devsz_ |
int | axsz_ |
bool | rgisrev_ |
bool | ynmtxtvertical_ |
float | rgwidth_ |
float | epsilon_ |
StepInterval< float > | annotrg_ |
int | nrsteps_ |
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 |
|
inline |
uiLineItem* uiAxisHandler::getGridLine | ( | int | pix | ) |
int uiAxisHandler::getNrAnnotCharsForDisp | ( | ) | const |
int uiAxisHandler::getPix | ( | float | absval | ) | const |
int uiAxisHandler::getPix | ( | double | abvsval | ) | const |
int uiAxisHandler::getPix | ( | int | ) | const |
float uiAxisHandler::getRelPos | ( | float | absval | ) | const |
int uiAxisHandler::getRelPosPix | ( | float | relpos | ) | const |
uiLineItem* uiAxisHandler::getTickLine | ( | int | pix | ) |
float uiAxisHandler::getVal | ( | int | pix | ) | const |
|
inline |
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 |
|
inline |
|
protected |
|
inline |
|
inline |
void uiAxisHandler::setBorder | ( | const uiBorder & | ) |
void uiAxisHandler::setBounds | ( | Interval< float > | ) |
makes annot 'nice'
void uiAxisHandler::setCaption | ( | const uiString & | ) |
|
inline |
void uiAxisHandler::setIsLog | ( | bool | yn | ) |
void uiAxisHandler::setNewDevSize | ( | int | , |
int | |||
) |
resized by yourself
void uiAxisHandler::setRange | ( | const StepInterval< float > & | , |
float * | axstart = 0 |
||
) |
|
inline |
|
inline |
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 |
|
protected |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019