OpendTect
6.6
|
To draw simple axes for a 2D coordinate system. More...
Public Member Functions | |
uiGraphicsSceneAxis (uiGraphicsScene &) | |
~uiGraphicsSceneAxis () | |
void | enableAxisLine (bool yn) |
void | enableGridLines (bool yn) |
void | enableMask (bool yn) |
void | setAnnotInInt (bool yn) |
void | setAnnotInside (bool yn) |
void | setFontData (const FontData &) |
void | setGridLineStyle (const OD::LineStyle &gls) |
void | setLineStyle (const OD::LineStyle &lst) |
void | setPosition (bool isx, bool istoporleft, bool isinside) |
void | setTextFactor (int n) |
void | setViewRect (const uiRect &) |
void | setWorldCoords (const Interval< double > &) |
void | setZValue (int nv) |
void | turnOn (bool) |
Protected Member Functions | |
void | drawAtPos (float worldpos, bool drawgrid, int &curtextitm, int &curlineitm) |
int | getNrAnnotChars () const |
void | reDraw () |
Protected Attributes | |
bool | annotinint_ |
bool | drawaxisline_ |
bool | drawgridlines_ |
FontData | fontdata_ |
OD::LineStyle | gridls_ |
bool | inside_ |
bool | istop_ |
bool | isx_ |
uiGraphicsItemGroup * | itmgrp_ |
ObjectSet< uiLineItem > | lines_ |
OD::LineStyle | ls_ |
uiRectItem * | mask_ |
Interval< double > | rg_ |
SamplingData< double > | sampling_ |
uiGraphicsScene & | scene_ |
ObjectSet< uiTextItem > | texts_ |
int | txtfactor_ |
uiRect | viewrect_ |
To draw simple axes for a 2D coordinate system.
This class is designed for normal axis drawing and is not applicable to axes which are oblique to the X/Y axis of window. The area for drawing axis can be on the same canvas with the main graph area or on different canvas. Refer to uiCrossplot or uiDistributionMap for an example.
Axis values are marked at every step. Grid lines can also be drawn at each step. Before calling the drawing routines, make sure the proper line pattern and pen color are set for the 'ioDrawTool' and there is enough room in the window to draw the axis and number annotation.
USAGE: 1) Call setupAxis() to set up the position for drawing axis and a pointer to uiWorld2Ui which provides the coordinate conversion functions. The axis range and step is calculated automatically from the class uiWorld2Ui. 2) If the default range and step are not to be used for axis annotation, call setFixedDataRangeandStep() to override after calling setupAxis(). 3) Call the actual draw functions
<>
uiGraphicsSceneAxis::~uiGraphicsSceneAxis | ( | ) |
uiGraphicsSceneAxis::uiGraphicsSceneAxis | ( | uiGraphicsScene & | ) |
|
protected |
|
inline |
|
inline |
void uiGraphicsSceneAxis::enableMask | ( | bool | yn | ) |
|
protected |
|
protected |
|
inline |
|
inline |
void uiGraphicsSceneAxis::setFontData | ( | const FontData & | ) |
|
inline |
|
inline |
void uiGraphicsSceneAxis::setPosition | ( | bool | isx, |
bool | istoporleft, | ||
bool | isinside | ||
) |
|
inline |
void uiGraphicsSceneAxis::setViewRect | ( | const uiRect & | ) |
void uiGraphicsSceneAxis::setWorldCoords | ( | const Interval< double > & | ) |
void uiGraphicsSceneAxis::setZValue | ( | int | nv | ) |
void uiGraphicsSceneAxis::turnOn | ( | bool | ) |
|
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