OpendTect
6.6
|
Handles an axis on a plot. More...
Classes | |
struct | Setup |
Public Member Functions | |
uiAxisHandler (uiGraphicsScene *, const Setup &) | |
~uiAxisHandler () | |
void | annotAtEnd (const uiString &) |
float | annotStart () const |
uiString | getCaption () const |
uiLineItem * | getGridLine (int pix) |
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 pix) |
float | getVal (int pix) const |
bool | isHor () 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 |
void | setAuxAnnot (const TypeSet< PlotAnnotation > &pos) |
void | setBegin (const uiAxisHandler *ah) |
void | setBorder (const uiBorder &) |
void | setBounds (Interval< float >) |
makes annot 'nice' More... | |
void | setCaption (const uiString &) |
void | setEnd (const uiAxisHandler *ah) |
void | setIsLog (bool yn) |
void | setNewDevSize (int, int) |
resized by yourself More... | |
void | setRange (const StepInterval< float > &, float *axstart=0) |
Setup & | setup () |
const Setup & | setup () const |
void | setVisible (bool) |
void | updateDevSize () |
resized from sceme More... | |
void | updateScene () |
Protected Member Functions | |
bool | reCalcAnnotation () |
int | tickEndPix (bool farend) const |
int | ticSz () const |
void | updateAxisLine () |
void | updateName () |
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_ |
bool | islog_ |
uiTextItem * | nameitm_ |
int | nrsteps_ |
int | pxsizeinotherdir_ |
int | reqnrchars_ |
bool | rgisrev_ |
float | rgwidth_ |
uiGraphicsScene * | scene_ |
Setup | setup_ |
int | ticsz_ |
int | width_ |
bool | ynmtxtvertical_ |
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 | ( | 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 | 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. 1995-2022