OpendTect-6_4  6.4
Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
uiFlatViewControl Class Reference

Tools to control uiFlatViewer(s). More...

Inheritance diagram for uiFlatViewControl:
[legend]

Public Member Functions

 ~uiFlatViewControl ()
 
void addViewer (uiFlatViewer &)
 No attaching done. Viewer may be in other window. More...
 
void removeViewer (uiFlatViewer &)
 
TypeSet< uiWorldRectgetBoundingBoxes () 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::ZoomMgrzoomMgr () 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 & ()
 
uiObjectattachObj ()
 
const uiObjectattachObj () const
 
uiParentparent ()
 
const uiParentparent () const
 
void setHSpacing (int)
 
void setVSpacing (int)
 
void setSpacing (int s=0)
 
void setBorder (int)
 
void setFrame (bool yn=true)
 
void setNoBackGround ()
 
uiObjecthAlignObj ()
 
void setHAlignObj (uiObject *o)
 
void setHAlignObj (uiGroup *o)
 
uiObjecthCenterObj ()
 
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 uiMainWinmainwin ()
 
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
 
uiObjectmainObject ()
 
const uiObjectmainObject () const
 
uiParentBodypbody ()
 
const uiParentBodypbody () 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 uiFontfont () 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 uiGroupgtDynamicCastToGrp (mQtclass(QWidget *))
 

Public Attributes

Notifier< uiFlatViewControlinfoChanged
 
Notifier< uiFlatViewControlviewerAdded
 
Notifier< uiFlatViewControlzoomChanged
 
Notifier< uiFlatViewControlrubberBandUsed
 

Protected Member Functions

 uiFlatViewControl (uiFlatViewer &, uiParent *, bool)
 
MouseEventHandlermouseEventHandler (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 uiObjectmainobject ()
 
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< uiFlatViewervwrs_
 
FlatView::ZoomMgr zoommgr_
 
bool haverubber_
 
IOPar infopars_
 
uiFlatViewPropDlgpropdlg_
 
- Protected Attributes inherited from uiGroup
uiGroupObjgrpobj_
 
uiGroupParentBodybody_
 

Detailed Description

Tools to control uiFlatViewer(s).

Constructor & Destructor Documentation

uiFlatViewControl::~uiFlatViewControl ( )
uiFlatViewControl::uiFlatViewControl ( uiFlatViewer ,
uiParent ,
bool   
)
protected

Member Function Documentation

void uiFlatViewControl::addViewer ( uiFlatViewer )

No attaching done. Viewer may be in other window.

virtual void uiFlatViewControl::applyProperties ( CallBacker cb)
protectedvirtual
virtual bool uiFlatViewControl::canReUseZoomSettings ( Geom::Point2D< double >  ,
Geom::Size2D< double >   
) const
protectedvirtual
virtual void uiFlatViewControl::dataChangeCB ( CallBacker )
protectedvirtual
virtual void uiFlatViewControl::doPropertiesDialog ( int  vieweridx = 0)
virtual
virtual void uiFlatViewControl::finalPrepare ( )
inlineprotectedvirtual

Reimplemented in uiFlatViewStdControl.

virtual void uiFlatViewControl::flip ( bool  hor)
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 uiWorldRect uiFlatViewControl::getZoomOrPanRect ( Geom::Point2D< double >  mousepos,
Geom::Size2D< double >  newsz,
const uiWorldRect view,
const uiWorldRect bbox 
)
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.

virtual void uiFlatViewControl::handDragged ( CallBacker )
inlineprotectedvirtual

Reimplemented in uiFlatViewStdControl.

virtual void uiFlatViewControl::handDragging ( CallBacker )
inlineprotectedvirtual

Reimplemented in uiFlatViewStdControl.

virtual void uiFlatViewControl::handDragStarted ( CallBacker )
inlineprotectedvirtual

Reimplemented in uiFlatViewStdControl.

virtual bool uiFlatViewControl::handleUserClick ( int  vwridx)
inlineprotectedvirtual
void uiFlatViewControl::initZoom ( CallBacker )
protected
virtual void uiFlatViewControl::keyPressCB ( CallBacker )
inlineprotectedvirtual
MouseEventHandler& uiFlatViewControl::mouseEventHandler ( int  vwridx,
bool  ofscene 
)
protected

Returns MouseEventHandler of uiGraphicsScene if ofscene is true else returns that of uiGraphicsView

virtual void uiFlatViewControl::mouseMoveCB ( CallBacker )
protectedvirtual
virtual void uiFlatViewControl::onFinalise ( CallBacker )
protectedvirtual
virtual void uiFlatViewControl::propDlgClosed ( CallBacker )
protectedvirtual
void uiFlatViewControl::reInitZooms ( )
void uiFlatViewControl::removeViewer ( uiFlatViewer )
virtual void uiFlatViewControl::rubBandCB ( CallBacker )
protectedvirtual
virtual void uiFlatViewControl::saveProperties ( FlatView::Viewer )
protectedvirtual
virtual void uiFlatViewControl::setNewView ( Geom::Point2D< double >  mousepos,
Geom::Size2D< double >  newsize,
uiFlatViewer vwr = 0 
)
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

Parameters
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.

virtual void uiFlatViewControl::setNewWorldRect ( uiFlatViewer ,
uiWorldRect  
)
protectedvirtual

Sets uiWorldRect that can be filled in available space without changing aspect ratio along with needed uiFlatViewer::setBoundingRect(const uiRect&).

virtual void uiFlatViewControl::setViewToCustomZoomLevel ( uiFlatViewer )
inlineprotectedvirtual

Reimplemented in uiFlatViewStdControl.

virtual void uiFlatViewControl::updateZoomManager ( )
protectedvirtual

Reimplemented in uiMultiFlatViewControl.

virtual void uiFlatViewControl::usrClickCB ( CallBacker )
protectedvirtual
virtual void uiFlatViewControl::vwrAdded ( CallBacker )
inlineprotectedvirtual
const FlatView::ZoomMgr& uiFlatViewControl::zoomMgr ( ) const
inline

Member Data Documentation

bool uiFlatViewControl::haverubber_
protected
Notifier<uiFlatViewControl> uiFlatViewControl::infoChanged
IOPar uiFlatViewControl::infopars_
protected
uiFlatViewPropDlg* uiFlatViewControl::propdlg_
protected
Notifier<uiFlatViewControl> uiFlatViewControl::rubberBandUsed
Notifier<uiFlatViewControl> uiFlatViewControl::viewerAdded
ObjectSet<uiFlatViewer> uiFlatViewControl::vwrs_
protected
Notifier<uiFlatViewControl> uiFlatViewControl::zoomChanged
FlatView::ZoomMgr uiFlatViewControl::zoommgr_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B. V. 2019