Tool to draw on ioDrawAreas. More...
Public Types | |
| enum | BackgroundMode { Transparent, Opaque } |
Public Member Functions | |
| void | setDrawAreaBackgroundColor (const Color &) |
| void | setBackgroundMode (BackgroundMode) |
| BackgroundMode | backgroundMode () const |
| Color | backgroundColor () const |
| void | setBackgroundColor (const Color &) |
| void | clear (const uiRect *r=0, const Color *c=0) |
| void | translate (float dx, float dy) |
| void | rotate (float angle) |
| void | setLineStyle (const LineStyle &) |
| void | setPenColor (const Color &) |
| void | setFillColor (const Color &) |
| void | setPenWidth (unsigned int) |
| void | setFont (const uiFont &) |
| LineStyle | lineStyle () const |
| const uiFont * | font () |
| void | drawText (int x, int y, const char *, const Alignment &) |
| void | drawText (const uiPoint &p, const char *, const Alignment &) |
| void | drawLine (int x1, int y1, int x2, int y2) |
| void | drawLine (const uiPoint &, const uiPoint &) |
| void | drawLine (const uiPoint &, double angle, double len) |
| void | drawLine (const TypeSet< uiPoint > &, bool close) |
| void | drawRect (int x, int y, int w, int h) |
| void | drawRect (const uiPoint &topLeft, const uiSize &sz) |
| void | drawRect (const uiRect &) |
| void | drawPolyline (const TypeSet< uiPoint > &pts) |
| void | drawPolygon (const TypeSet< uiPoint > &pts) |
| void | drawEllipse (int x, int y, int rx, int ry) |
| void | drawEllipse (const uiPoint &, const uiSize &) |
| void | drawCircle (int x, int y, int r) |
| void | drawCircle (const uiPoint &p, int r) |
| void | drawHalfSquare (const uiPoint &from, double angle, double diameter, bool left) |
| void | drawHalfSquare (const uiPoint &from, const uiPoint &to, bool left) |
| void | drawPoint (const uiPoint &, bool highlight=false) |
| Draws 3x3, h/v cross, square if highlight. | |
| void | drawMarker (const uiPoint &, const MarkerStyle2D &, float angle=0, int side=0) |
| side -1=left half, 1=right half | |
| void | drawArrow (const uiPoint &tail, const uiPoint &head, const ArrowStyle &) |
| void | drawPixmap (const uiPoint &destTopLeft, const ioPixmap *, const uiRect &srcAreaInPixmap) |
| void | drawPixmap (int left, int top, ioPixmap *, int srcleft, int srctop, int srcright, int srcbot) |
| void | useBackgroundPattern (bool yn) |
| void | setRasterXor () |
| void | setRasterNorm () |
| int | getDevHeight () const |
| int | getDevWidth () const |
| virtual | ~ioDrawTool () |
| void | setActivePainter (QPainter *) |
| void | dismissPainter () |
| QPainter * | qPainter () |
| QPen & | qPen () |
| QPaintDevice & | qPaintDevice () |
Protected Member Functions | |
| ioDrawTool (QPaintDevice *) | |
| void | preparePainter () const |
Protected Attributes | |
| QPainter * | qpainter_ |
| bool | qpaintermine_ |
| bool | qpainterprepared_ |
Private Attributes | |
| QPen & | qpen_ |
| QPaintDevice & | qpaintdev_ |
| const uiFont * | font_ |
| Color | areabgcolor_ |
| bool | usebgpattern_ |
Friends | |
| class | ioDrawAreaImpl |
Tool to draw on ioDrawAreas.
You should not try to construct one yourself; rather, get one from an ioDrawArea.
| virtual ioDrawTool::~ioDrawTool | ( | ) | [virtual] |
| ioDrawTool::ioDrawTool | ( | QPaintDevice * | ) | [protected] |
| Color ioDrawTool::backgroundColor | ( | ) | const |
| BackgroundMode ioDrawTool::backgroundMode | ( | ) | const |
| void ioDrawTool::dismissPainter | ( | ) |
| void ioDrawTool::drawArrow | ( | const uiPoint & | tail, | |
| const uiPoint & | head, | |||
| const ArrowStyle & | ||||
| ) |
| void ioDrawTool::drawCircle | ( | int | x, | |
| int | y, | |||
| int | r | |||
| ) | [inline] |
| void ioDrawTool::drawCircle | ( | const uiPoint & | p, | |
| int | r | |||
| ) | [inline] |
| void ioDrawTool::drawEllipse | ( | int | x, | |
| int | y, | |||
| int | rx, | |||
| int | ry | |||
| ) |
| void ioDrawTool::drawHalfSquare | ( | const uiPoint & | from, | |
| double | angle, | |||
| double | diameter, | |||
| bool | left | |||
| ) |
| void ioDrawTool::drawLine | ( | int | x1, | |
| int | y1, | |||
| int | x2, | |||
| int | y2 | |||
| ) |
Alignment = Start, Middle or Stop (see draw.h) Example: mAlign(Middle,Stop)
| void ioDrawTool::drawLine | ( | const uiPoint & | , | |
| double | angle, | |||
| double | len | |||
| ) |
| void ioDrawTool::drawMarker | ( | const uiPoint & | , | |
| const MarkerStyle2D & | , | |||
| float | angle = 0, |
|||
| int | side = 0 | |||
| ) |
side -1=left half, 1=right half
| void ioDrawTool::drawPixmap | ( | const uiPoint & | destTopLeft, | |
| const ioPixmap * | , | |||
| const uiRect & | srcAreaInPixmap | |||
| ) |
| void ioDrawTool::drawPixmap | ( | int | left, | |
| int | top, | |||
| ioPixmap * | , | |||
| int | srcleft, | |||
| int | srctop, | |||
| int | srcright, | |||
| int | srcbot | |||
| ) |
| void ioDrawTool::drawPoint | ( | const uiPoint & | , | |
| bool | highlight = false | |||
| ) |
Draws 3x3, h/v cross, square if highlight.
| void ioDrawTool::drawRect | ( | int | x, | |
| int | y, | |||
| int | w, | |||
| int | h | |||
| ) |
| void ioDrawTool::drawRect | ( | const uiRect & | ) |
| void ioDrawTool::drawText | ( | int | x, | |
| int | y, | |||
| const char * | , | |||
| const Alignment & | ||||
| ) |
| const uiFont* ioDrawTool::font | ( | ) | [inline] |
| int ioDrawTool::getDevHeight | ( | ) | const |
| int ioDrawTool::getDevWidth | ( | ) | const |
| LineStyle ioDrawTool::lineStyle | ( | ) | const |
| void ioDrawTool::preparePainter | ( | ) | const [protected] |
| QPaintDevice& ioDrawTool::qPaintDevice | ( | ) | [inline] |
| QPainter* ioDrawTool::qPainter | ( | ) | [inline] |
| QPen& ioDrawTool::qPen | ( | ) | [inline] |
| void ioDrawTool::rotate | ( | float | angle | ) |
| void ioDrawTool::setActivePainter | ( | QPainter * | ) |
| void ioDrawTool::setBackgroundColor | ( | const Color & | ) |
| void ioDrawTool::setBackgroundMode | ( | BackgroundMode | ) |
| void ioDrawTool::setDrawAreaBackgroundColor | ( | const Color & | ) |
| void ioDrawTool::setFillColor | ( | const Color & | ) |
| void ioDrawTool::setFont | ( | const uiFont & | ) |
| void ioDrawTool::setLineStyle | ( | const LineStyle & | ) |
| void ioDrawTool::setPenColor | ( | const Color & | ) |
| void ioDrawTool::setPenWidth | ( | unsigned | int | ) |
| void ioDrawTool::setRasterNorm | ( | ) |
| void ioDrawTool::setRasterXor | ( | ) |
| void ioDrawTool::translate | ( | float | dx, | |
| float | dy | |||
| ) |
| void ioDrawTool::useBackgroundPattern | ( | bool | yn | ) | [inline] |
friend class ioDrawAreaImpl [friend] |
Color ioDrawTool::areabgcolor_ [private] |
const uiFont* ioDrawTool::font_ [private] |
QPaintDevice& ioDrawTool::qpaintdev_ [private] |
QPainter* ioDrawTool::qpainter_ [protected] |
bool ioDrawTool::qpaintermine_ [protected] |
bool ioDrawTool::qpainterprepared_ [protected] |
QPen& ioDrawTool::qpen_ [private] |
bool ioDrawTool::usebgpattern_ [private] |
1.7.1