Public Types |
| enum | ODDragMode { NoDrag,
ScrollHandDrag,
RubberBandDrag
} |
| enum | ScrollBarPolicy { ScrollBarAsNeeded,
ScrollBarAlwaysOff,
ScrollBarAlwaysOn
} |
Public Member Functions |
| | uiGraphicsViewBase (uiParent *, const char *) |
| | ~uiGraphicsViewBase () |
| void | setScene (uiGraphicsScene &) |
| | Scene becomes mine.
|
| uiGraphicsScene & | scene () |
| void | show () |
| void | setScrollBarPolicy (bool hor, ScrollBarPolicy) |
| void | setDragMode (ODDragMode) |
| ODDragMode | dragMode () const |
| bool | isRubberBandingOn () const |
| void | setMouseTracking (bool) |
| bool | hasMouseTracking () const |
| int | width () const |
| | Actual size in pixels.
|
| int | height () const |
| | Actual size in pixels.
|
| void | centreOn (uiPoint) |
| uiRect | getSceneRect () const |
| void | setSceneRect (const uiRect &) |
| uiPoint | getCursorPos () const |
| uiPoint | getScenePos (float, float) const |
| const uiPoint & | getStartPos () const |
| const uiRect * | getSelectedArea () const |
| void | setViewArea (double x, double y, double w, double h) |
| uiRect | getViewArea () const |
| void | setBackgroundColor (const Color &) |
| Color | backgroundColor () const |
| void | uisetBackgroundColor (const Color &) |
| Color | uibackgroundColor () const |
| void | setNoBackGround () |
| void | rePaintRect (const uiRect *) |
| void | enableScrollZoom () |
| void | disableScrollZoom () |
| bool | scrollZoomEnabled () |
| bool | isCtrlPressed () const |
| void | setCtrlPressed (bool yn) |
| MouseEventHandler & | getNavigationMouseEventHandler () |
| MouseEventHandler & | getMouseEventHandler () |
| KeyboardEventHandler & | getKeyboardEventHandler () |
Public Attributes |
CNotifier< uiGraphicsViewBase,
uiSize > | reSize |
| | CallBacker is OLD size.
|
| Notifier< uiGraphicsViewBase > | rubberBandUsed |
| Notifier< uiGraphicsViewBase > | reDrawNeeded |
| Notifier< uiGraphicsViewBase > | reDrawn |
| | In practice, this happens only after reSize.
|
Protected Member Functions |
| uiGraphicsViewBody & | mkbody (uiParent *, const char *) |
| void | rubberBandCB (CallBacker *) |
Protected Attributes |
| uiGraphicsViewBody * | body_ |
| uiRect * | selectedarea_ |
| uiGraphicsScene * | scene_ |
| bool | isctrlpressed_ |
| bool | enabscrollzoom_ |
| bool | enabbgzoom_ |
Friends |
| class | uiGraphicsViewBody |