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

Fulfills the FlatView::Viewer specifications using 'ui' classes. More...

Inheritance diagram for uiFlatViewer:
[legend]

Public Member Functions

 uiFlatViewer (uiParent *)
 
 ~uiFlatViewer ()
 
void setInitialSize (const uiSize &)
 
int getAnnotChoices (BufferStringSet &) const
 
void setAnnotChoice (int)
 
MouseEventHandlergetMouseEventHandler ()
 
uiGraphicsViewrgbCanvas ()
 
void setView (const uiWorldRect &)
 
void setViewToBoundingBox ()
 
const uiWorldRectcurView () const
 
StepInterval< double > posRange (bool forx1) const
 
uiWorldRect boundingBox () const
 
const uiWorld2UigetWorld2Ui () const
 
uiRect getViewRect (bool withextraborders=true) const
 
uiBorder getAnnotBorder () const
 
void setBoundingRect (const uiRect &)
 
void setExtraBorders (const uiSize &lt, const uiSize &rb)
 
void setExtraFactor (float f)
 
void updateBitmapsOnResize (bool yn)
 
bool updatesBitmapsOnResize () const
 
void handleChange (unsigned int)
 
void setSeisGeomidsToViewer (TypeSet< Pos::GeomID > &)
 
FlatView::AuxDatacreateAuxData (const char *nm) const
 
int nrAuxData () const
 
FlatView::AuxDatagetAuxData (int idx)
 
const FlatView::AuxDatagetAuxData (int idx) const
 
void addAuxData (FlatView::AuxData *a)
 
FlatView::AuxDataremoveAuxData (FlatView::AuxData *a)
 
FlatView::AuxDataremoveAuxData (int idx)
 
void reGenerate (FlatView::AuxData &)
 
uiFlatViewControlcontrol ()
 
void setUseSelDataRanges (bool yn)
 
void setSelDataRanges (Interval< double >, Interval< double >)
 
const Interval< double > & getSelDataRange (bool forx) const
 
const FlatPosDatagetFlatPosData (bool iswva)
 
uiBitMapDisplaybitmapDisp ()
 
- 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 ()
 
- Public Member Functions inherited from FlatView::Viewer
 Viewer ()
 
virtual ~Viewer ()
 
virtual Appearanceappearance ()
 
const Appearanceappearance () const
 
ZAxisTransformgetZAxisTransform () const
 
bool setZAxisTransform (ZAxisTransform *)
 
bool hasZAxisTransform () const
 
void addPack (::DataPack::ID)
 
void usePack (bool wva,::DataPack::ID, bool usedefs=true)
 Does not add new packs, just selects from added. More...
 
void removePack (::DataPack::ID)
 Releases DataPack after removing from the list. More...
 
void setPack (bool wva,::DataPack::ID id, bool usedefs=true)
 
void clearAllPacks ()
 
const FlatDataPackobtainPack (bool wva, bool checkother=false) const
 
bool hasPack (bool wva) const
 
DataPack::ID packID (bool wva) const
 
const TypeSet< ::DataPack::ID > & availablePacks () const
 
virtual bool isVertical () const
 
bool isVisible (bool wva) const
 
void setVisible (bool wva, bool visibility)
 
Coord3 getCoord (const Point &) const
 
virtual void fillAppearancePar (IOPar &iop) const
 Does not store any data, just how data is displayed. More...
 
virtual void useAppearancePar (const IOPar &iop)
 
void storeDefaults (const char *key) const
 
void useStoredDefaults (const char *key)
 
void getAuxInfo (const Point &, IOPar &) const
 
virtual void showAuxDataObjects (AuxData &, bool)
 
virtual void updateProperties (const AuxData &)
 
virtual void remove (const AuxData &)
 
StepInterval< double > getDataPackRange (bool forx1) const
 
virtual Interval< float > getDataRange (bool wva) const
 
void removeAuxDatas (ObjectSet< AuxData > &)
 
void removeAllAuxData ()
 
virtual int getAnnotChoice (BufferStringSet &) const
 
void enableStatusBarUpdate ()
 
void disableStatusBarUpdate ()
 
bool needStatusBarUpdate () const
 
void setSeisGeomidsToViewer (TypeSet< Pos::GeomID > &)
 
const TypeSet< Pos::GeomID > & getAllSeisGeomids () const
 
void setZDomain (const ZDomain::Def &)
 
const ZDomain::InfozDomain () const
 

Static Public Member Functions

static int bitMapZVal ()
 
static int auxDataZVal ()
 
static int annotZVal ()
 
- Static Public Member Functions inherited from uiGroup
static uiGroupgtDynamicCastToGrp (mQtclass(QWidget *))
 

Public Attributes

Notifier< uiFlatViewerviewChanged
 setView called More...
 
Notifier< uiFlatViewerdataChanged
 new DataPack set More...
 
Notifier< uiFlatViewerdispParsChanged
 Triggered with each bitmap update. More...
 
Notifier< uiFlatViewerannotChanged
 Annotation changed. More...
 
Notifier< uiFlatViewerdispPropChanged
 Triggered with property dlg change. More...
 

Protected Member Functions

void updateCB (CallBacker *)
 
void updateAnnotCB (CallBacker *)
 
void updateBitmapCB (CallBacker *)
 
void updateAuxDataCB (CallBacker *)
 
uiWorldRect getBoundingBox (bool wva) const
 
void reSizeCB (CallBacker *)
 
void updateTransforms ()
 
void rangeUpdatedCB (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 Member Functions inherited from FlatView::Viewer
void addAuxInfo (bool, const Point &, IOPar &) const
 

Protected Attributes

uiGraphicsViewview_
 
AxesDraweraxesdrawer_
 Must be declared after canvas_. More...
 
uiWorldRect wr_
 
uiGraphicsItemGroupworldgroup_
 
uiWorld2Ui w2ui_
 
uiBitMapDisplaybitmapdisp_
 
Threads::Atomic< bool > updateannot_
 
Threads::Atomic< bool > updatebitmap_
 
Threads::Atomic< bool > updateauxdata_
 
bool updatebitmapsonresize_
 
float extfac_
 
uiFlatViewControlcontrol_
 
Interval< double > xseldatarange_
 
Interval< double > yseldatarange_
 
bool useseldataranges_
 
ObjectSet< FlatView::uiAuxDataDisplayauxdata_
 
- Protected Attributes inherited from uiGroup
uiGroupObjgrpobj_
 
uiGroupParentBodybody_
 
- Protected Attributes inherited from FlatView::Viewer
TypeSet< ::DataPack::IDids_
 
Appearancedefapp_
 
DataPackMgrdpm_
 
ZAxisTransformdatatransform_
 
FlatView_CB_Rcvr * cbrcvr_
 
Threads::Lock lock_
 
bool needstatusbarupd_
 
ZDomain::Infozdinfo_
 

Friends

class uiFlatViewControl
 

Additional Inherited Members

- Public Types inherited from FlatView::Viewer
enum  DataChangeType {
  All =0xFFFFFFFF, BitmapData =0x0001, DisplayPars =0x0002, Annot =0x0004,
  Auxdata =0x0008
}
 

Detailed Description

Fulfills the FlatView::Viewer specifications using 'ui' classes.

Constructor & Destructor Documentation

uiFlatViewer::uiFlatViewer ( uiParent )
uiFlatViewer::~uiFlatViewer ( )

Member Function Documentation

void uiFlatViewer::addAuxData ( FlatView::AuxData a)
virtual

Implements FlatView::Viewer.

static int uiFlatViewer::annotZVal ( )
inlinestatic
static int uiFlatViewer::auxDataZVal ( )
inlinestatic
uiBitMapDisplay* uiFlatViewer::bitmapDisp ( )
inline
static int uiFlatViewer::bitMapZVal ( )
inlinestatic
uiWorldRect uiFlatViewer::boundingBox ( ) const
uiFlatViewControl* uiFlatViewer::control ( )
inline
FlatView::AuxData* uiFlatViewer::createAuxData ( const char *  nm) const
virtual

Implements FlatView::Viewer.

const uiWorldRect& uiFlatViewer::curView ( ) const
inline

May be reversed if display is reversed.

uiBorder uiFlatViewer::getAnnotBorder ( ) const
int uiFlatViewer::getAnnotChoices ( BufferStringSet ) const
FlatView::AuxData* uiFlatViewer::getAuxData ( int  idx)
virtual

Implements FlatView::Viewer.

const FlatView::AuxData* uiFlatViewer::getAuxData ( int  idx) const
virtual

Implements FlatView::Viewer.

uiWorldRect uiFlatViewer::getBoundingBox ( bool  wva) const
protected
const FlatPosData* uiFlatViewer::getFlatPosData ( bool  iswva)
MouseEventHandler& uiFlatViewer::getMouseEventHandler ( )
const Interval<double>& uiFlatViewer::getSelDataRange ( bool  forx) const
inline
uiRect uiFlatViewer::getViewRect ( bool  withextraborders = true) const

The rectangle onto which wr_ is projected

const uiWorld2Ui& uiFlatViewer::getWorld2Ui ( ) const
inline
void uiFlatViewer::handleChange ( unsigned  datachangetype)
virtual
Parameters
datachangetypecan be any combination of DataChangeType.

Implements FlatView::Viewer.

int uiFlatViewer::nrAuxData ( ) const
virtual

Implements FlatView::Viewer.

StepInterval<double> uiFlatViewer::posRange ( bool  forx1) const
void uiFlatViewer::rangeUpdatedCB ( CallBacker )
protected
void uiFlatViewer::reGenerate ( FlatView::AuxData )
virtual

Reimplemented from FlatView::Viewer.

FlatView::AuxData* uiFlatViewer::removeAuxData ( FlatView::AuxData a)
virtual

Implements FlatView::Viewer.

FlatView::AuxData* uiFlatViewer::removeAuxData ( int  idx)
virtual

Implements FlatView::Viewer.

void uiFlatViewer::reSizeCB ( CallBacker )
protected
uiGraphicsView& uiFlatViewer::rgbCanvas ( )
inline
void uiFlatViewer::setAnnotChoice ( int  )
virtual

Reimplemented from FlatView::Viewer.

void uiFlatViewer::setBoundingRect ( const uiRect )

Sets extra borders on the right and at the bottom if boundingrect is smaller than getViewRect(false). Extraborders set will be same as their differences in width and height.

void uiFlatViewer::setExtraBorders ( const uiSize lt,
const uiSize rb 
)
void uiFlatViewer::setExtraFactor ( float  f)
inline

when reporting boundingBox(), extends this amount of positions outward. Default 0.5.

void uiFlatViewer::setInitialSize ( const uiSize )
void uiFlatViewer::setSeisGeomidsToViewer ( TypeSet< Pos::GeomID > &  )
void uiFlatViewer::setSelDataRanges ( Interval< double >  ,
Interval< double >   
)
void uiFlatViewer::setUseSelDataRanges ( bool  yn)
inline
void uiFlatViewer::setView ( const uiWorldRect )
void uiFlatViewer::setViewToBoundingBox ( )
void uiFlatViewer::updateAnnotCB ( CallBacker )
protected
void uiFlatViewer::updateAuxDataCB ( CallBacker )
protected
void uiFlatViewer::updateBitmapCB ( CallBacker )
protected
void uiFlatViewer::updateBitmapsOnResize ( bool  yn)
inline

If true, will resize bitmaps as per the size of the window without maintaining the aspect ratio. Else it is the responsibility of the programmer to change view on resize.

void uiFlatViewer::updateCB ( CallBacker )
protected
bool uiFlatViewer::updatesBitmapsOnResize ( ) const
inline
void uiFlatViewer::updateTransforms ( )
protected

Friends And Related Function Documentation

friend class uiFlatViewControl
friend

Member Data Documentation

Notifier<uiFlatViewer> uiFlatViewer::annotChanged

Annotation changed.

ObjectSet<FlatView::uiAuxDataDisplay> uiFlatViewer::auxdata_
protected
AxesDrawer& uiFlatViewer::axesdrawer_
protected

Must be declared after canvas_.

uiBitMapDisplay* uiFlatViewer::bitmapdisp_
protected
uiFlatViewControl* uiFlatViewer::control_
protected
Notifier<uiFlatViewer> uiFlatViewer::dataChanged

new DataPack set

Notifier<uiFlatViewer> uiFlatViewer::dispParsChanged

Triggered with each bitmap update.

Notifier<uiFlatViewer> uiFlatViewer::dispPropChanged

Triggered with property dlg change.

float uiFlatViewer::extfac_
protected
Threads::Atomic<bool> uiFlatViewer::updateannot_
protected
Threads::Atomic<bool> uiFlatViewer::updateauxdata_
protected
Threads::Atomic<bool> uiFlatViewer::updatebitmap_
protected
bool uiFlatViewer::updatebitmapsonresize_
protected
bool uiFlatViewer::useseldataranges_
protected
uiGraphicsView* uiFlatViewer::view_
protected
Notifier<uiFlatViewer> uiFlatViewer::viewChanged

setView called

uiWorld2Ui uiFlatViewer::w2ui_
protected
uiGraphicsItemGroup* uiFlatViewer::worldgroup_
protected
uiWorldRect uiFlatViewer::wr_
protected

May be reversed if display is reversed.

Interval<double> uiFlatViewer::xseldatarange_
protected
Interval<double> uiFlatViewer::yseldatarange_
protected

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