OpendTect-6_4
6.4
|
Tools to control uiFlatViewer(s). More...
Public Member Functions | |
~uiFlatViewControl () | |
void | addViewer (uiFlatViewer &) |
No attaching done. Viewer may be in other window. More... | |
void | removeViewer (uiFlatViewer &) |
TypeSet< uiWorldRect > | getBoundingBoxes () const |
Returns bounding boxes of all viewers. More... | |
virtual void | setNewView (Geom::Point2D< double > mousepos, Geom::Size2D< double > newsize, uiFlatViewer *vwr=0) |
virtual void | flip (bool hor) |
reverses uiWorldRect's LR or TB swapping More... | |
virtual void | doPropertiesDialog (int vieweridx=0) |
int | getViewerIdx (const MouseEventHandler *, bool ofscene) |
const FlatView::ZoomMgr & | zoomMgr () const |
void | reInitZooms () |
Public Member Functions inherited from uiGroup | |
uiGroup (uiParent *, const char *nm="uiGroup", bool manage=true) | |
virtual | ~uiGroup () |
operator const uiGroupObj * () const | |
operator uiGroupObj * () | |
operator const uiObject & () const | |
operator uiObject & () | |
uiObject * | attachObj () |
const uiObject * | attachObj () const |
uiParent * | parent () |
const uiParent * | parent () const |
void | setHSpacing (int) |
void | setVSpacing (int) |
void | setSpacing (int s=0) |
void | setBorder (int) |
void | setFrame (bool yn=true) |
void | setNoBackGround () |
uiObject * | hAlignObj () |
void | setHAlignObj (uiObject *o) |
void | setHAlignObj (uiGroup *o) |
uiObject * | hCenterObj () |
void | setHCenterObj (uiObject *o) |
void | setHCenterObj (uiGroup *o) |
void | setIsMain (bool) |
internal use only. Tells the layout manager it's a toplevel mngr. More... | |
virtual uiMainWin * | mainwin () |
void | setChildrenSensitive (bool) |
virtual Notifier< uiBaseObject > & | preFinalise () |
virtual Notifier< uiBaseObject > & | postFinalise () |
virtual void | setSize (const uiSize &) |
Public Member Functions inherited from uiParent | |
uiParent (const char *nm, uiParentBody *) | |
void | addChild (uiBaseObject &) |
void | manageChld (uiBaseObject &, uiObjectBody &) |
void | attachChild (constraintType tp, uiObject *child, uiObject *other, int margin, bool reciprocal) |
const ObjectSet< uiBaseObject > * | childList () const |
uiObject * | mainObject () |
const uiObject * | mainObject () const |
uiParentBody * | pbody () |
const uiParentBody * | pbody () const |
void | attach (constraintType t, int margin=-1) |
void | attach (constraintType t, uiParent *oth, int margin=-1, bool reciprocal=true) |
void | attach (constraintType t, uiObject *oth, int margin=-1, bool reciprocal=true) |
virtual void | display (bool yn, bool shrk=false, bool maximize=false) |
bool | isDisplayed () const |
void | setFocus () |
bool | hasFocus () const |
void | setSensitive (bool yn=true) |
bool | sensitive () const |
const uiFont * | font () const |
void | setFont (const uiFont &f) |
void | setCaption (const uiString &c) |
void | setCursor (const MouseCursor &c) |
uiSize | actualsize (bool include_border) const |
int | prefHNrPics () const |
int | prefVNrPics () const |
void | setPrefHeight (int h) |
void | setPrefWidth (int w) |
void | setPrefHeightInChar (int h) |
void | setPrefHeightInChar (float h) |
void | setPrefWidthInChar (float w) |
void | setPrefWidthInChar (int w) |
virtual void | reDraw (bool deep) |
void | shallowRedraw (CallBacker *=0) |
void | deepRedraw (CallBacker *=0) |
void | setStretch (int h, int v) |
Color | backgroundColor () const |
Color | roBackgroundColor () const |
void | setBackgroundColor (const Color &c) |
void | translateText () |
Static Public Member Functions | |
static uiWorldRect | getZoomOrPanRect (Geom::Point2D< double > mousepos, Geom::Size2D< double > newsz, const uiWorldRect &view, const uiWorldRect &bbox) |
Static Public Member Functions inherited from uiGroup | |
static uiGroup * | gtDynamicCastToGrp (mQtclass(QWidget *)) |
Public Attributes | |
Notifier< uiFlatViewControl > | infoChanged |
Notifier< uiFlatViewControl > | viewerAdded |
Notifier< uiFlatViewControl > | zoomChanged |
Notifier< uiFlatViewControl > | rubberBandUsed |
Protected Member Functions | |
uiFlatViewControl (uiFlatViewer &, uiParent *, bool) | |
MouseEventHandler & | mouseEventHandler (int vwridx, bool ofscene) |
virtual void | finalPrepare () |
virtual void | onFinalise (CallBacker *) |
virtual bool | canReUseZoomSettings (Geom::Point2D< double >, Geom::Size2D< double >) const |
virtual void | setViewToCustomZoomLevel (uiFlatViewer &) |
virtual void | setNewWorldRect (uiFlatViewer &, uiWorldRect &) |
virtual void | updateZoomManager () |
virtual void | dataChangeCB (CallBacker *) |
virtual void | rubBandCB (CallBacker *) |
virtual void | vwrAdded (CallBacker *) |
virtual void | handDragStarted (CallBacker *) |
virtual void | handDragging (CallBacker *) |
virtual void | handDragged (CallBacker *) |
virtual void | mouseMoveCB (CallBacker *) |
virtual void | keyPressCB (CallBacker *) |
virtual void | usrClickCB (CallBacker *) |
virtual bool | handleUserClick (int vwridx) |
virtual void | propDlgClosed (CallBacker *) |
virtual void | applyProperties (CallBacker *cb) |
virtual void | saveProperties (FlatView::Viewer &) |
void | initZoom (CallBacker *) |
Protected Member Functions inherited from uiGroup | |
virtual uiObject * | mainobject () |
virtual void | attach_ (constraintType, uiObject *oth, int margin=-1, bool reciprocal=true) |
virtual void | reDraw_ (bool deep) |
void | setShrinkAllowed (bool) |
bool | shrinkAllowed () |
void | bodyDel (CallBacker *) |
void | uiobjDel (CallBacker *) |
void | setFrameStyle (int) |
void | reSizeChildren (const uiObject *, float, float) |
Protected Attributes | |
ObjectSet< uiFlatViewer > | vwrs_ |
FlatView::ZoomMgr | zoommgr_ |
bool | haverubber_ |
IOPar | infopars_ |
uiFlatViewPropDlg * | propdlg_ |
Protected Attributes inherited from uiGroup | |
uiGroupObj * | grpobj_ |
uiGroupParentBody * | body_ |
Tools to control uiFlatViewer(s).
uiFlatViewControl::~uiFlatViewControl | ( | ) |
|
protected |
void uiFlatViewControl::addViewer | ( | uiFlatViewer & | ) |
No attaching done. Viewer may be in other window.
|
protectedvirtual |
Reimplemented in PreStackView::uiViewer2DControl, and WellTie::uiControlView.
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
Reimplemented in PreStackView::uiViewer2DControl.
|
inlineprotectedvirtual |
Reimplemented in uiFlatViewStdControl.
|
virtual |
reverses uiWorldRect's LR or TB swapping
TypeSet<uiWorldRect> uiFlatViewControl::getBoundingBoxes | ( | ) | const |
Returns bounding boxes of all viewers.
int uiFlatViewControl::getViewerIdx | ( | const MouseEventHandler * | , |
bool | ofscene | ||
) |
ofscene should be true while passing MouseEventHandler of uiGraphicsScene and false while passing MouseEventHandler of uiGraphicsView.
|
static |
If size of view and newsz differ, zooms in/out the uiWorldRect represented by view (current). Returns the resulting uiWorldRect after shifting it such that it falls inside the bounding box. Pass centre instead of mousepos if there is no MouseEvent. In case of panning, pass the view after translation.
|
inlineprotectedvirtual |
Reimplemented in uiFlatViewStdControl.
|
inlineprotectedvirtual |
Reimplemented in uiFlatViewStdControl.
|
inlineprotectedvirtual |
Reimplemented in uiFlatViewStdControl.
|
inlineprotectedvirtual |
Reimplemented in uiFlatViewStdControl, uiMultiFlatViewControl, and WellTie::uiControlView.
|
protected |
|
inlineprotectedvirtual |
Reimplemented in uiFlatViewStdControl, and WellTie::uiControlView.
|
protected |
Returns MouseEventHandler of uiGraphicsScene if ofscene is true else returns that of uiGraphicsView
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
void uiFlatViewControl::reInitZooms | ( | ) |
void uiFlatViewControl::removeViewer | ( | uiFlatViewer & | ) |
|
protectedvirtual |
Reimplemented in uiMultiFlatViewControl, and WellTie::uiControlView.
|
protectedvirtual |
|
virtual |
Pass centre instead of mousepos if there is no MouseEvent. Retains uiWorldRect's LR/TB swapping while changing the input to the actual new values. Use for setting new view while zoomin/zoom out only. Makes sure
mousepos | (pointed by MouseCursor) does not change after changing view and bitmaps are filled in extra available space without changing aspect ratio (if has to be constant) along with needed uiFlatViewer::setBoundingRect(const uiRect&). |
Reimplemented in uiMultiFlatViewControl.
|
protectedvirtual |
Sets uiWorldRect that can be filled in available space without changing aspect ratio along with needed uiFlatViewer::setBoundingRect(const uiRect&).
|
inlineprotectedvirtual |
Reimplemented in uiFlatViewStdControl.
|
protectedvirtual |
Reimplemented in uiMultiFlatViewControl.
|
protectedvirtual |
|
inlineprotectedvirtual |
Reimplemented in uiFlatViewStdControl, and uiMultiFlatViewControl.
|
inline |
|
protected |
Notifier<uiFlatViewControl> uiFlatViewControl::infoChanged |
|
protected |
|
protected |
Notifier<uiFlatViewControl> uiFlatViewControl::rubberBandUsed |
Notifier<uiFlatViewControl> uiFlatViewControl::viewerAdded |
|
protected |
Notifier<uiFlatViewControl> uiFlatViewControl::zoomChanged |
|
protected |
Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019