Public Member Functions | |
| uiDrawableObj (uiParent *parnt, const char *nm, uiObjectBody &) | |
| virtual | ~uiDrawableObj () |
| virtual ioDrawTool & | drawTool () |
| int | width () const |
| int | height () const |
| void | setRubberBandingOn (bool yn) |
| bool | isRubberBandingOn () const |
| void | setRubberBandButton (OD::ButtonState bs) |
| OD::ButtonState | rubberBandButton () |
| MouseEventHandler & | getMouseEventHandler () |
| KeyboardEventHandler & | getKeyboardEventHandler () |
Public Attributes | |
| Notifier< uiDrawableObj > | preDraw |
| Notifier< uiDrawableObj > | postDraw |
| Notifier< uiDrawableObj > | reSized |
Protected Member Functions | |
| virtual void | reDrawHandler (uiRect updateArea) |
| handler for additional redrawing stuff | |
| virtual void | reSizeHandler (uiSize, uiSize) |
| virtual void | rubberBandHandler (uiRect) |
| const ioDrawTool & | cDT () const |
Protected Attributes | |
| OD::ButtonState | rubberbandbutton_ |
| bool | rubberbandon_ |
Private Attributes | |
| MouseEventHandler | mousehandler_ |
| KeyboardEventHandler | keyboardhandler_ |
Friends | |
| class | uiDrawableObjBody |
| uiDrawableObj::uiDrawableObj | ( | uiParent * | parnt, | |
| const char * | nm, | |||
| uiObjectBody & | ||||
| ) |
| virtual uiDrawableObj::~uiDrawableObj | ( | ) | [inline, virtual] |
| const ioDrawTool& uiDrawableObj::cDT | ( | ) | const [inline, protected] |
| virtual ioDrawTool& uiDrawableObj::drawTool | ( | ) | [virtual] |
Implements ioDrawArea.
| KeyboardEventHandler& uiDrawableObj::getKeyboardEventHandler | ( | ) |
| MouseEventHandler& uiDrawableObj::getMouseEventHandler | ( | ) |
| int uiDrawableObj::height | ( | ) | const [inline] |
| bool uiDrawableObj::isRubberBandingOn | ( | ) | const [inline] |
| virtual void uiDrawableObj::reDrawHandler | ( | uiRect | updateArea | ) | [inline, protected, virtual] |
handler for additional redrawing stuff
reDrawHandler() is called from uiDrawableObjBody::handlePaintEvent, which
1) triggers preDraw on associated uiDrawableObj (i.e. this)
2) calls Qt's paintEvent handler on associated widget
3) calls reDrawHandler() on associated uiDrawableObj (i.e. this)
4) triggers postDraw on associated uiDrawableObj (i.e. this)
Subclasses can override this method to do some additional drawing.
| OD::ButtonState uiDrawableObj::rubberBandButton | ( | ) | [inline] |
| virtual void uiDrawableObj::rubberBandHandler | ( | uiRect | ) | [inline, protected, virtual] |
| void uiDrawableObj::setRubberBandButton | ( | OD::ButtonState | bs | ) | [inline] |
| void uiDrawableObj::setRubberBandingOn | ( | bool | yn | ) | [inline] |
| int uiDrawableObj::width | ( | ) | const [inline] |
friend class uiDrawableObjBody [friend] |
OD::ButtonState uiDrawableObj::rubberbandbutton_ [protected] |
bool uiDrawableObj::rubberbandon_ [protected] |
1.7.1