OpendTect-6_4  6.4
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Friends | List of all members
uiGraphicsViewBase Class Reference
Inheritance diagram for uiGraphicsViewBase:
[legend]

Public Types

enum  ODDragMode { NoDrag, ScrollHandDrag, RubberBandDrag }
 
enum  ScrollBarPolicy { ScrollBarAsNeeded, ScrollBarAlwaysOff, ScrollBarAlwaysOn }
 
- Public Types inherited from uiObject
enum  SzPolicy {
  Undef, Small, Medium, Wide,
  SmallVar, MedVar, WideVar, SmallMax,
  MedMax, WideMax
}
 How should the object's size behave? Undef : use default. Small : 1 base sz. Medium : 2* base sz + 1. Wide : 4* base sz + 3. The xxVar options specify that the element may have a bigger internal preferred size. In that case, the maximum is taken. The xxMax options specify that the element should take all available space ( stretch = 2 ) More...
 

Public Member Functions

 uiGraphicsViewBase (uiParent *, const char *)
 
 ~uiGraphicsViewBase ()
 
void setScene (uiGraphicsScene &)
 Scene becomes mine. More...
 
uiGraphicsScenescene ()
 
void show ()
 
void setScrollBarPolicy (bool hor, ScrollBarPolicy)
 
void setDragMode (ODDragMode)
 
ODDragMode dragMode () const
 
bool isRubberBandingOn () const
 
void setMouseTracking (bool)
 
bool hasMouseTracking () const
 
void setMouseWheelReversal (bool)
 
bool getMouseWheelReversal () const
 
void setMidMouseButtonForDrag (bool)
 
bool hasMidMouseButtonForDrag () const
 
int width () const
 width of widget More...
 
int height () const
 height of widget More...
 
int viewWidth () const
 width of viewport More...
 
int viewHeight () const
 height of viewport More...
 
int getSceneBorder () const
 
void setSceneBorder (int)
 
void centreOn (uiPoint)
 
uiRect getSceneRect () const
 
void setSceneRect (const uiRect &)
 
void setSceneAlignment (const Alignment &)
 
void setScaleFactor (float, float)
 
uiPoint getCursorPos () const
 
void getScaleFactor (float &, float &) const
 
uiPoint getScenePos (float, float) const
 
const uiPointgetStartPos () const
 
const uiRectgetSelectedArea () const
 
void setViewArea (double x, double y, double w, double h)
 
uiRect getViewArea () const
 
void setBackgroundColor (const Color &)
 
Color backgroundColor () const
 
void setNoBackGround ()
 
void rePaint ()
 
void enableScrollZoom (bool yn=true)
 
void disableScrollZoom ()
 
bool scrollZoomEnabled ()
 
uiSize scrollBarSize (bool horizontal) const
 
const uiPoint mapFromScene (const Geom::Point2D< float > &) const
 
const Geom::Point2D< float > mapToScene (const uiPoint &) const
 
bool isCtrlPressed () const
 
void setCtrlPressed (bool yn)
 
bool print ()
 
MouseEventHandlergetNavigationMouseEventHandler ()
 
MouseEventHandlergetMouseEventHandler ()
 
KeyboardEventHandlergetKeyboardEventHandler ()
 
GestureEventHandlergestureEventHandler ()
 
- Public Member Functions inherited from uiObject
 uiObject (uiParent *, const char *nm)
 
 uiObject (uiParent *, const char *nm, uiObjectBody &)
 
 ~uiObject ()
 
void setHSzPol (SzPolicy)
 
void setVSzPol (SzPolicy)
 
SzPolicy szPol (bool hor=true) const
 
virtual void setName (const char *)
 
void setToolTip (const uiString &)
 
const uiStringtoolTip () const
 
void translateText ()
 
void display (bool yn, bool shrink=false, bool maximized=false)
 
void setFocus ()
 
bool hasFocus () const
 
void disabFocus ()
 
virtual void setCursor (const MouseCursor &)
 
bool isCursorInside () const
 
virtual void setStyleSheet (const char *)
 
Color roBackgroundColor () const
 
virtual void setBackgroundPixmap (const uiPixmap &)
 
virtual void setTextColor (const Color &)
 
void setSensitive (bool yn=true)
 
bool sensitive () const
 
bool visible () const
 
bool isDisplayed () const
 
int prefHNrPics () const
 
virtual void setPrefWidth (int)
 
void setPrefWidthInChar (int)
 
void setPrefWidthInChar (float)
 
void setMinimumWidth (int)
 
void setMaximumWidth (int)
 
int prefVNrPics () const
 
virtual void setPrefHeight (int)
 
void setPrefHeightInChar (int)
 
void setPrefHeightInChar (float)
 
void setMinimumHeight (int)
 
void setMaximumHeight (int)
 
void setStretch (int hor, int ver)
 Sets stretch factors for object If stretch factor is > 1, then object will already grow at pop-up. More...
 
void attach (constraintType, int margin=-1)
 attaches object to another In case the stretched... options are used, margin=-1 (default) stretches the object not to cross the border. margin=-2 stretches the object to fill the parent's border. This looks nice with separators. More...
 
void attach (constraintType, uiObject *, int margin=-1, bool reciprocal=true)
 
void attach (constraintType, uiParent *, int margin=-1, bool reciprocal=true)
 
void setFont (const uiFont &)
 
const uiFontfont () const
 
void setCaption (const uiString &)
 
void shallowRedraw (CallBacker *=0)
 
void deepRedraw (CallBacker *=0)
 
void reDraw (bool deep)
 
uiSize actualsize (bool include_border=true) const
 
uiParentparent ()
 
const uiParentparent () const
 
void reParent (uiParent *)
 
uiMainWinmainwin ()
 
 mQtclass (QWidget *) getWidget()
 
 mQtclass (QWidget *) qwidget()
 
const mQtclass (QWidget *) qwidget() const
 
virtual bool handleLongTabletPress ()
 
virtual const ObjectSet< uiBaseObject > * childList () const
 
void close ()
 

Static Public Member Functions

static const ObjectSet< uiGraphicsViewBase > & allInstances ()
 
- Static Public Member Functions inherited from uiObject
static void updateToolTips ()
 
static void setTabOrder (uiObject *first, uiObject *second)
 
static int baseFldSize ()
 
static int iconSize ()
 

Public Attributes

CNotifier< uiGraphicsViewBase, uiSizereSize
 CallBacker is OLD size. More...
 
Notifier< uiGraphicsViewBaserubberBandUsed
 
Notifier< uiGraphicsViewBasereDrawNeeded
 
Notifier< uiGraphicsViewBasereDrawn
 In practice, this happens only after reSize. More...
 
Notifier< uiGraphicsViewBasepreDraw
 
Notifier< uiGraphicsViewBasescrollBarUsed
 
- Public Attributes inherited from uiObject
Notifier< uiObjectclosed
 Triggered when object closes. More...
 
CNotifier< uiObject, uiRect & > setGeometry
 triggered when getting a new geometry A reference to the new geometry is passed which can be manipulated, before the geometry is actually set to the QWidget. More...
 

Protected Member Functions

void translateText ()
 
uiGraphicsViewBodymkbody (uiParent *, const char *)
 
void rubberBandCB (CallBacker *)
 
- Protected Member Functions inherited from uiObject
virtual bool closeOK ()
 hook. Accepts/denies closing of window. More...
 
void triggerSetGeometry (const i_LayoutItem *, uiRect &)
 setGeometry should be triggered by this's layoutItem More...
 
void updateToolTip (CallBacker *=0)
 

Protected Attributes

uiGraphicsViewBodybody_
 
uiRectselectedarea_
 
uiGraphicsScenescene_
 
int sceneborder_
 
bool isctrlpressed_
 
bool enabscrollzoom_
 
- Protected Attributes inherited from uiObject
uiString tooltip_
 
uiObjEventFilter * uiobjeventfilter_
 

Friends

class uiGraphicsViewBody
 

Detailed Description

Member Enumeration Documentation

Enumerator
NoDrag 
ScrollHandDrag 
RubberBandDrag 
Enumerator
ScrollBarAsNeeded 
ScrollBarAlwaysOff 
ScrollBarAlwaysOn 

Constructor & Destructor Documentation

uiGraphicsViewBase::uiGraphicsViewBase ( uiParent ,
const char *   
)
uiGraphicsViewBase::~uiGraphicsViewBase ( )

Member Function Documentation

static const ObjectSet<uiGraphicsViewBase>& uiGraphicsViewBase::allInstances ( )
static
Color uiGraphicsViewBase::backgroundColor ( ) const
virtual

Reimplemented from uiObject.

void uiGraphicsViewBase::centreOn ( uiPoint  )
void uiGraphicsViewBase::disableScrollZoom ( )
ODDragMode uiGraphicsViewBase::dragMode ( ) const
void uiGraphicsViewBase::enableScrollZoom ( bool  yn = true)
GestureEventHandler& uiGraphicsViewBase::gestureEventHandler ( )
uiPoint uiGraphicsViewBase::getCursorPos ( ) const
KeyboardEventHandler& uiGraphicsViewBase::getKeyboardEventHandler ( )
MouseEventHandler& uiGraphicsViewBase::getMouseEventHandler ( )
bool uiGraphicsViewBase::getMouseWheelReversal ( ) const
MouseEventHandler& uiGraphicsViewBase::getNavigationMouseEventHandler ( )

This eventhandler handles events related to navigation (rubberbands & panning). For general calls, use getMouseEventHandler().

void uiGraphicsViewBase::getScaleFactor ( float &  ,
float &   
) const
int uiGraphicsViewBase::getSceneBorder ( ) const
uiPoint uiGraphicsViewBase::getScenePos ( float  ,
float   
) const
uiRect uiGraphicsViewBase::getSceneRect ( ) const
const uiRect* uiGraphicsViewBase::getSelectedArea ( ) const
inline
const uiPoint& uiGraphicsViewBase::getStartPos ( ) const
uiRect uiGraphicsViewBase::getViewArea ( ) const
bool uiGraphicsViewBase::hasMidMouseButtonForDrag ( ) const
bool uiGraphicsViewBase::hasMouseTracking ( ) const
int uiGraphicsViewBase::height ( ) const
virtual

height of widget

Reimplemented from uiObject.

bool uiGraphicsViewBase::isCtrlPressed ( ) const
inline
bool uiGraphicsViewBase::isRubberBandingOn ( ) const
const uiPoint uiGraphicsViewBase::mapFromScene ( const Geom::Point2D< float > &  ) const
const Geom::Point2D<float> uiGraphicsViewBase::mapToScene ( const uiPoint ) const
uiGraphicsViewBody& uiGraphicsViewBase::mkbody ( uiParent ,
const char *   
)
protected
bool uiGraphicsViewBase::print ( )
void uiGraphicsViewBase::rePaint ( )
void uiGraphicsViewBase::rubberBandCB ( CallBacker )
protected
uiGraphicsScene& uiGraphicsViewBase::scene ( )
uiSize uiGraphicsViewBase::scrollBarSize ( bool  horizontal) const
bool uiGraphicsViewBase::scrollZoomEnabled ( )
inline
void uiGraphicsViewBase::setBackgroundColor ( const Color )
virtual

Reimplemented from uiObject.

void uiGraphicsViewBase::setCtrlPressed ( bool  yn)
inline
void uiGraphicsViewBase::setDragMode ( ODDragMode  )
void uiGraphicsViewBase::setMidMouseButtonForDrag ( bool  )
void uiGraphicsViewBase::setMouseTracking ( bool  )
void uiGraphicsViewBase::setMouseWheelReversal ( bool  )
void uiGraphicsViewBase::setNoBackGround ( )
void uiGraphicsViewBase::setScaleFactor ( float  ,
float   
)
void uiGraphicsViewBase::setScene ( uiGraphicsScene )

Scene becomes mine.

void uiGraphicsViewBase::setSceneAlignment ( const Alignment )
void uiGraphicsViewBase::setSceneBorder ( int  )
void uiGraphicsViewBase::setSceneRect ( const uiRect )
void uiGraphicsViewBase::setScrollBarPolicy ( bool  hor,
ScrollBarPolicy   
)
void uiGraphicsViewBase::setViewArea ( double  x,
double  y,
double  w,
double  h 
)
void uiGraphicsViewBase::show ( )
void uiGraphicsViewBase::translateText ( )
protected
int uiGraphicsViewBase::viewHeight ( ) const

height of viewport

int uiGraphicsViewBase::viewWidth ( ) const

width of viewport

int uiGraphicsViewBase::width ( ) const
virtual

width of widget

Reimplemented from uiObject.

Friends And Related Function Documentation

friend class uiGraphicsViewBody
friend

Member Data Documentation

uiGraphicsViewBody* uiGraphicsViewBase::body_
protected
bool uiGraphicsViewBase::enabscrollzoom_
protected
bool uiGraphicsViewBase::isctrlpressed_
protected
Notifier<uiGraphicsViewBase> uiGraphicsViewBase::preDraw
Notifier<uiGraphicsViewBase> uiGraphicsViewBase::reDrawn

In practice, this happens only after reSize.

Notifier<uiGraphicsViewBase> uiGraphicsViewBase::reDrawNeeded
CNotifier<uiGraphicsViewBase,uiSize> uiGraphicsViewBase::reSize

CallBacker is OLD size.

Notifier<uiGraphicsViewBase> uiGraphicsViewBase::rubberBandUsed
uiGraphicsScene* uiGraphicsViewBase::scene_
protected
int uiGraphicsViewBase::sceneborder_
protected
Notifier<uiGraphicsViewBase> uiGraphicsViewBase::scrollBarUsed
uiRect* uiGraphicsViewBase::selectedarea_
protected

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