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

The standard tools to control uiFlatViewer(s). More...

Inheritance diagram for uiFlatViewStdControl:
[legend]

Classes

struct  Setup
 

Public Member Functions

 uiFlatViewStdControl (uiFlatViewer &, const Setup &)
 
 ~uiFlatViewStdControl ()
 
virtual uiToolBartoolBar ()
 
uiToolBareditToolBar ()
 
virtual uiFlatViewColTabEdcolTabEd ()
 
void setEditMode (bool yn)
 
float getCurrentPosPerCM (bool forx1) const
 
bool isEditModeOn () const
 
bool isRubberBandOn () const
 
NotifierAccesseditPushed ()
 
- Public Member Functions inherited from uiFlatViewControl
 ~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 void setGlobalZoomLevel (float x1pospercm, float x2pospercm, bool isvertical)
 
static void getGlobalZoomLevel (float &x1pospercm, float &x2pospercm, bool isvertical)
 
- Static Public Member Functions inherited from uiFlatViewControl
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 *))
 

Protected Member Functions

virtual void finalPrepare ()
 
void clearToolBar ()
 
void updatePosButtonStates ()
 
void updateZoomLevel (float x1pospercm, float x2pospercm)
 
void doZoom (bool zoomin, bool onlyvertzoom, uiFlatViewer &)
 
void setViewToCustomZoomLevel (uiFlatViewer &)
 
virtual void coltabChg (CallBacker *)
 
virtual void dispChgCB (CallBacker *)
 
virtual void zoomChgCB (CallBacker *)
 
virtual void rubBandUsedCB (CallBacker *)
 
virtual void dragModeCB (CallBacker *)
 
void editModeCB (CallBacker *)
 
void flipCB (CallBacker *)
 
void helpCB (CallBacker *)
 
void handDragStarted (CallBacker *)
 
void handDragging (CallBacker *)
 
void handDragged (CallBacker *)
 
void aspectRatioCB (CallBacker *)
 
void keyPressCB (CallBacker *)
 
void homeZoomOptSelCB (CallBacker *)
 
void fitToScreenCB (CallBacker *)
 
void viewScaleBarCB (CallBacker *)
 
virtual void parsCB (CallBacker *)
 
virtual void vwrAdded (CallBacker *)
 
virtual void wheelMoveCB (CallBacker *)
 
virtual void zoomCB (CallBacker *)
 
virtual void pinchZoomCB (CallBacker *)
 
virtual void cancelZoomCB (CallBacker *)
 
virtual void gotoHomeZoomCB (CallBacker *)
 
virtual bool handleUserClick (int vwridx)
 
void createMenuCB (CallBacker *)
 
void handleMenuCB (CallBacker *)
 
void setVwrCursor (uiFlatViewer &, const MouseCursor &)
 
- Protected Member Functions inherited from uiFlatViewControl
 uiFlatViewControl (uiFlatViewer &, uiParent *, bool)
 
MouseEventHandlermouseEventHandler (int vwridx, bool ofscene)
 
virtual void onFinalise (CallBacker *)
 
virtual bool canReUseZoomSettings (Geom::Point2D< double >, Geom::Size2D< double >) const
 
virtual void setNewWorldRect (uiFlatViewer &, uiWorldRect &)
 
virtual void updateZoomManager ()
 
virtual void dataChangeCB (CallBacker *)
 
virtual void rubBandCB (CallBacker *)
 
virtual void mouseMoveCB (CallBacker *)
 
virtual void usrClickCB (CallBacker *)
 
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

bool mousepressed_
 
uiPoint mousedownpt_
 
float defx1pospercm_
 
float defx2pospercm_
 
uiToolBartb_
 
uiToolBaredittb_
 
uiToolButtonrubbandzoombut_
 
uiToolButtonzoominbut_
 
uiToolButtonzoomoutbut_
 
uiToolButtonvertzoominbut_
 
uiToolButtonvertzoomoutbut_
 
uiToolButtoncancelzoombut_
 
uiToolButtonsethomezoombut_
 
uiToolButtongotohomezoombut_
 
uiToolButtonscalebarbut_
 
uiToolButtonfittoscrnbut_
 
uiToolButtonparsbut_
 
uiToolButtoneditbut_
 
uiFlatViewervwr_
 
uiFlatViewColTabEdctabed_
 
const Setup setup_
 
uiMenuHandlermenu_
 
MenuItem propertiesmnuitem_
 
HelpKey helpkey_
 
- Protected Attributes inherited from uiFlatViewControl
ObjectSet< uiFlatViewervwrs_
 
FlatView::ZoomMgr zoommgr_
 
bool haverubber_
 
IOPar infopars_
 
uiFlatViewPropDlgpropdlg_
 
- Protected Attributes inherited from uiGroup
uiGroupObjgrpobj_
 
uiGroupParentBodybody_
 

Private Member Functions

 mODTextTranslationClass (uiFlatViewStdControl)
 

Additional Inherited Members

- Public Attributes inherited from uiFlatViewControl
Notifier< uiFlatViewControlinfoChanged
 
Notifier< uiFlatViewControlviewerAdded
 
Notifier< uiFlatViewControlzoomChanged
 
Notifier< uiFlatViewControlrubberBandUsed
 

Detailed Description

The standard tools to control uiFlatViewer(s).

Constructor & Destructor Documentation

uiFlatViewStdControl::uiFlatViewStdControl ( uiFlatViewer ,
const Setup  
)
uiFlatViewStdControl::~uiFlatViewStdControl ( )

Member Function Documentation

void uiFlatViewStdControl::aspectRatioCB ( CallBacker )
protected
virtual void uiFlatViewStdControl::cancelZoomCB ( CallBacker )
protectedvirtual
void uiFlatViewStdControl::clearToolBar ( )
protected
virtual void uiFlatViewStdControl::coltabChg ( CallBacker )
protectedvirtual
virtual uiFlatViewColTabEd* uiFlatViewStdControl::colTabEd ( )
inlinevirtual
void uiFlatViewStdControl::createMenuCB ( CallBacker )
protected
virtual void uiFlatViewStdControl::dispChgCB ( CallBacker )
protectedvirtual
void uiFlatViewStdControl::doZoom ( bool  zoomin,
bool  onlyvertzoom,
uiFlatViewer  
)
protected
virtual void uiFlatViewStdControl::dragModeCB ( CallBacker )
protectedvirtual
void uiFlatViewStdControl::editModeCB ( CallBacker )
protected
NotifierAccess* uiFlatViewStdControl::editPushed ( )
uiToolBar* uiFlatViewStdControl::editToolBar ( )
inline
virtual void uiFlatViewStdControl::finalPrepare ( )
protectedvirtual

Reimplemented from uiFlatViewControl.

void uiFlatViewStdControl::fitToScreenCB ( CallBacker )
protected
void uiFlatViewStdControl::flipCB ( CallBacker )
protected
float uiFlatViewStdControl::getCurrentPosPerCM ( bool  forx1) const
static void uiFlatViewStdControl::getGlobalZoomLevel ( float &  x1pospercm,
float &  x2pospercm,
bool  isvertical 
)
static
virtual void uiFlatViewStdControl::gotoHomeZoomCB ( CallBacker )
protectedvirtual
void uiFlatViewStdControl::handDragged ( CallBacker )
protectedvirtual

Reimplemented from uiFlatViewControl.

void uiFlatViewStdControl::handDragging ( CallBacker )
protectedvirtual

Reimplemented from uiFlatViewControl.

void uiFlatViewStdControl::handDragStarted ( CallBacker )
protectedvirtual

Reimplemented from uiFlatViewControl.

void uiFlatViewStdControl::handleMenuCB ( CallBacker )
protected
virtual bool uiFlatViewStdControl::handleUserClick ( int  vwridx)
protectedvirtual

Reimplemented from uiFlatViewControl.

Reimplemented in uiMultiFlatViewControl, and WellTie::uiControlView.

void uiFlatViewStdControl::helpCB ( CallBacker )
protected
void uiFlatViewStdControl::homeZoomOptSelCB ( CallBacker )
protected
bool uiFlatViewStdControl::isEditModeOn ( ) const
bool uiFlatViewStdControl::isRubberBandOn ( ) const
void uiFlatViewStdControl::keyPressCB ( CallBacker )
protectedvirtual

Reimplemented from uiFlatViewControl.

Reimplemented in WellTie::uiControlView.

uiFlatViewStdControl::mODTextTranslationClass ( uiFlatViewStdControl  )
private
virtual void uiFlatViewStdControl::parsCB ( CallBacker )
protectedvirtual

Reimplemented in uiMultiFlatViewControl.

virtual void uiFlatViewStdControl::pinchZoomCB ( CallBacker )
protectedvirtual

Reimplemented in uiMultiFlatViewControl.

virtual void uiFlatViewStdControl::rubBandUsedCB ( CallBacker )
protectedvirtual
void uiFlatViewStdControl::setEditMode ( bool  yn)
static void uiFlatViewStdControl::setGlobalZoomLevel ( float  x1pospercm,
float  x2pospercm,
bool  isvertical 
)
static
void uiFlatViewStdControl::setViewToCustomZoomLevel ( uiFlatViewer )
protectedvirtual

Reimplemented from uiFlatViewControl.

void uiFlatViewStdControl::setVwrCursor ( uiFlatViewer ,
const MouseCursor  
)
protected
virtual uiToolBar* uiFlatViewStdControl::toolBar ( )
inlinevirtual
void uiFlatViewStdControl::updatePosButtonStates ( )
protected
void uiFlatViewStdControl::updateZoomLevel ( float  x1pospercm,
float  x2pospercm 
)
protected
void uiFlatViewStdControl::viewScaleBarCB ( CallBacker )
protected
virtual void uiFlatViewStdControl::vwrAdded ( CallBacker )
inlineprotectedvirtual

Reimplemented from uiFlatViewControl.

Reimplemented in uiMultiFlatViewControl.

virtual void uiFlatViewStdControl::wheelMoveCB ( CallBacker )
protectedvirtual
virtual void uiFlatViewStdControl::zoomCB ( CallBacker )
protectedvirtual

Reimplemented in uiMultiFlatViewControl.

virtual void uiFlatViewStdControl::zoomChgCB ( CallBacker )
protectedvirtual

Member Data Documentation

uiToolButton* uiFlatViewStdControl::cancelzoombut_
protected
uiFlatViewColTabEd* uiFlatViewStdControl::ctabed_
protected
float uiFlatViewStdControl::defx1pospercm_
protected
float uiFlatViewStdControl::defx2pospercm_
protected
uiToolButton* uiFlatViewStdControl::editbut_
protected
uiToolBar* uiFlatViewStdControl::edittb_
protected
uiToolButton* uiFlatViewStdControl::fittoscrnbut_
protected
uiToolButton* uiFlatViewStdControl::gotohomezoombut_
protected
HelpKey uiFlatViewStdControl::helpkey_
protected
uiMenuHandler& uiFlatViewStdControl::menu_
protected
uiPoint uiFlatViewStdControl::mousedownpt_
protected
bool uiFlatViewStdControl::mousepressed_
protected
uiToolButton* uiFlatViewStdControl::parsbut_
protected
MenuItem uiFlatViewStdControl::propertiesmnuitem_
protected
uiToolButton* uiFlatViewStdControl::rubbandzoombut_
protected
uiToolButton* uiFlatViewStdControl::scalebarbut_
protected
uiToolButton* uiFlatViewStdControl::sethomezoombut_
protected
const Setup uiFlatViewStdControl::setup_
protected
uiToolBar* uiFlatViewStdControl::tb_
protected
uiToolButton* uiFlatViewStdControl::vertzoominbut_
protected
uiToolButton* uiFlatViewStdControl::vertzoomoutbut_
protected
uiFlatViewer& uiFlatViewStdControl::vwr_
protected
uiToolButton* uiFlatViewStdControl::zoominbut_
protected
uiToolButton* uiFlatViewStdControl::zoomoutbut_
protected

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