1 #ifndef uigraphicsviewbase_h 2 #define uigraphicsviewbase_h 15 #include "uibasemod.h" 21 class uiGraphicsViewBody;
30 friend class uiGraphicsViewBody;
46 bool isRubberBandingOn()
const;
48 void setMouseTracking(
bool);
49 bool hasMouseTracking()
const;
51 void setMouseWheelReversal(
bool);
52 bool getMouseWheelReversal()
const;
54 void setMidMouseButtonForDrag(
bool);
55 bool hasMidMouseButtonForDrag()
const;
59 int viewWidth()
const;
60 int viewHeight()
const;
62 int getSceneBorder()
const;
63 void setSceneBorder(
int);
66 uiRect getSceneRect()
const;
67 void setSceneRect(
const uiRect&);
69 void setScaleFactor(
float,
float);
72 void getScaleFactor(
float&,
float&)
const;
73 uiPoint getScenePos(
float,
float)
const;
74 const uiPoint& getStartPos()
const;
76 void setViewArea(
double x,
double y,
78 uiRect getViewArea()
const;
80 void setBackgroundColor(
const Color&);
81 Color backgroundColor()
const;
82 void setNoBackGround();
84 void enableScrollZoom(
bool yn=
true);
85 void disableScrollZoom();
87 {
return enabscrollzoom_; }
88 uiSize scrollBarSize(
bool horizontal)
const;
95 { isctrlpressed_ = yn; }
122 void translateText();
125 uiGraphicsViewBody& mkbody(
uiParent*,
const char*);
CNotifier< uiGraphicsViewBase, uiSize > reSize
CallBacker is OLD size.
Definition: uigraphicsviewbase.h:109
Handles gesture event and triggers notifier with GestureEventInfo.
Definition: mouseevent.h:275
#define mExpClass(module)
Definition: commondefs.h:160
ODDragMode
Definition: uigraphicsviewbase.h:39
To be able to send and/or receive CallBacks, inherit from this class.
Definition: callback.h:272
Notifier< uiGraphicsViewBase > scrollBarUsed
Definition: uigraphicsviewbase.h:115
Definition: uigraphicsviewbase.h:39
bool enabscrollzoom_
Definition: uigraphicsviewbase.h:132
Notifier< uiGraphicsViewBase > reDrawNeeded
Definition: uigraphicsviewbase.h:111
Definition: uigraphicsviewbase.h:28
Notifier< uiGraphicsViewBase > preDraw
Definition: uigraphicsviewbase.h:114
uiGraphicsScene * scene_
Definition: uigraphicsviewbase.h:128
The base class for most UI elements.
Definition: uiobj.h:38
uiRect * selectedarea_
Definition: uigraphicsviewbase.h:127
Definition: uiparent.h:26
Notifier< uiGraphicsViewBase > reDrawn
In practice, this happens only after reSize.
Definition: uigraphicsviewbase.h:112
bool isctrlpressed_
Definition: uigraphicsviewbase.h:131
Set of pointers to objects.
Definition: commontypes.h:32
int sceneborder_
Definition: uigraphicsviewbase.h:129
Notifier< uiGraphicsViewBase > rubberBandUsed
Definition: uigraphicsviewbase.h:110
uiGraphicsViewBody * body_
Definition: uigraphicsviewbase.h:124
Definition: mouseevent.h:162
ScrollBarPolicy
Definition: uigraphicsviewbase.h:40
Handles KeyboardEvent.
Definition: keyboardevent.h:47
Color is an RGB color object, with a transparancy. The storage is in a 4-byte integer, similar to Qt.
Definition: color.h:26
const uiRect * getSelectedArea() const
Definition: uigraphicsviewbase.h:75
bool scrollZoomEnabled()
Definition: uigraphicsviewbase.h:86
bool isCtrlPressed() const
Definition: uigraphicsviewbase.h:93
void setCtrlPressed(bool yn)
Definition: uigraphicsviewbase.h:94
Definition: uigraphicsscene.h:39