OpendTect-6_4  6.4
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
FlatView::Viewer Class Referenceabstract

Flat Viewer using FlatView::Data and FlatView::Appearance. More...

Inheritance diagram for FlatView::Viewer:
[legend]

Public Types

enum  DataChangeType {
  All =0xFFFFFFFF, BitmapData =0x0001, DisplayPars =0x0002, Annot =0x0004,
  Auxdata =0x0008
}
 

Public Member Functions

 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 handleChange (unsigned int datachangetype)=0
 
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 reGenerate (AuxData &)
 
virtual void remove (const AuxData &)
 
StepInterval< double > getDataPackRange (bool forx1) const
 
virtual Interval< float > getDataRange (bool wva) const
 
virtual AuxDatacreateAuxData (const char *nm) const =0
 
virtual int nrAuxData () const =0
 
virtual AuxDatagetAuxData (int idx)=0
 
virtual const AuxDatagetAuxData (int idx) const =0
 
virtual void addAuxData (AuxData *a)=0
 
virtual AuxDataremoveAuxData (AuxData *a)=0
 
virtual AuxDataremoveAuxData (int idx)=0
 
void removeAuxDatas (ObjectSet< AuxData > &)
 
void removeAllAuxData ()
 
virtual void setAnnotChoice (int selannot)
 
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
 

Protected Member Functions

void addAuxInfo (bool, const Point &, IOPar &) const
 

Protected Attributes

TypeSet< ::DataPack::IDids_
 
Appearancedefapp_
 
DataPackMgrdpm_
 
ZAxisTransformdatatransform_
 
FlatView_CB_Rcvr * cbrcvr_
 
Threads::Lock lock_
 
bool needstatusbarupd_
 
ZDomain::Infozdinfo_
 

Private Attributes

const FlatDataPackwvapack_
 
const FlatDataPackvdpack_
 
TypeSet< Pos::GeomIDgeom2dids_
 

Detailed Description

Flat Viewer using FlatView::Data and FlatView::Appearance.

Interface for displaying data and related annotations where at least one of the directions is sampled regularly.

The viewer works with FlatDataPacks - period. in previous versions, you could pass 'loose' data but DataPacks are so neat&clean we got rid of this possibility.

You can attach many datapacks to the viewer; the different modes (WVA, VD) can be attached to zero or one of those packs.

addPack() -> add a DataPack to the list of available data packs usePack() -> sets one of the available packs for wva of vd display setPack() -> Combination of addPack and usePack. removePack() -> removes this pack from the available packs, if necessary it also clears the wva or vd display to no display.

Member Enumeration Documentation

Enumerator
All 
BitmapData 
DisplayPars 
Annot 
Auxdata 

Constructor & Destructor Documentation

FlatView::Viewer::Viewer ( )
virtual FlatView::Viewer::~Viewer ( )
virtual

Member Function Documentation

virtual void FlatView::Viewer::addAuxData ( AuxData a)
pure virtual

Implemented in uiFlatViewer, and visBase::FlatViewer.

void FlatView::Viewer::addAuxInfo ( bool  ,
const Point ,
IOPar  
) const
protected
void FlatView::Viewer::addPack ( ::DataPack::ID  )

Adds to list and obtains the DataPack, but does not use for WVA or VD. DataPack gets released in the destructor of this class.

virtual Appearance& FlatView::Viewer::appearance ( )
virtual
const Appearance& FlatView::Viewer::appearance ( ) const
inline
const TypeSet< ::DataPack::ID>& FlatView::Viewer::availablePacks ( ) const
inline
void FlatView::Viewer::clearAllPacks ( )
virtual AuxData* FlatView::Viewer::createAuxData ( const char *  nm) const
pure virtual

Implemented in uiFlatViewer, and visBase::FlatViewer.

void FlatView::Viewer::disableStatusBarUpdate ( )
inline
void FlatView::Viewer::enableStatusBarUpdate ( )
inline
virtual void FlatView::Viewer::fillAppearancePar ( IOPar iop) const
inlinevirtual

Does not store any data, just how data is displayed.

const TypeSet<Pos::GeomID>& FlatView::Viewer::getAllSeisGeomids ( ) const
virtual int FlatView::Viewer::getAnnotChoice ( BufferStringSet ) const
inlinevirtual
virtual AuxData* FlatView::Viewer::getAuxData ( int  idx)
pure virtual

Implemented in uiFlatViewer, and visBase::FlatViewer.

virtual const AuxData* FlatView::Viewer::getAuxData ( int  idx) const
pure virtual

Implemented in uiFlatViewer, and visBase::FlatViewer.

void FlatView::Viewer::getAuxInfo ( const Point ,
IOPar  
) const
Coord3 FlatView::Viewer::getCoord ( const Point ) const
StepInterval<double> FlatView::Viewer::getDataPackRange ( bool  forx1) const
virtual Interval<float> FlatView::Viewer::getDataRange ( bool  wva) const
virtual

Reimplemented in visBase::FlatViewer.

ZAxisTransform* FlatView::Viewer::getZAxisTransform ( ) const
inline
virtual void FlatView::Viewer::handleChange ( unsigned int  datachangetype)
pure virtual
Parameters
datachangetypecan be any combination of DataChangeType.

Implemented in uiFlatViewer, and visBase::FlatViewer.

bool FlatView::Viewer::hasPack ( bool  wva) const
inline
bool FlatView::Viewer::hasZAxisTransform ( ) const
inline
virtual bool FlatView::Viewer::isVertical ( ) const
inlinevirtual
bool FlatView::Viewer::isVisible ( bool  wva) const
bool FlatView::Viewer::needStatusBarUpdate ( ) const
inline
virtual int FlatView::Viewer::nrAuxData ( ) const
pure virtual

Implemented in uiFlatViewer, and visBase::FlatViewer.

const FlatDataPack* FlatView::Viewer::obtainPack ( bool  wva,
bool  checkother = false 
) const

Obtains DataPack before returning the pointer. Has to be released after it is used. For convenience use ConstDataPackRef which releases the DataPack in its destructor.

Parameters
checkotherif true, the datapack of other display (i.e. variable density or wiggles) is returned if the specified display has no datapack.
DataPack::ID FlatView::Viewer::packID ( bool  wva) const
virtual void FlatView::Viewer::reGenerate ( AuxData )
inlinevirtual

Reimplemented in uiFlatViewer.

virtual void FlatView::Viewer::remove ( const AuxData )
inlinevirtual
void FlatView::Viewer::removeAllAuxData ( )
virtual AuxData* FlatView::Viewer::removeAuxData ( AuxData a)
pure virtual

Implemented in uiFlatViewer, and visBase::FlatViewer.

virtual AuxData* FlatView::Viewer::removeAuxData ( int  idx)
pure virtual

Implemented in uiFlatViewer, and visBase::FlatViewer.

void FlatView::Viewer::removeAuxDatas ( ObjectSet< AuxData > &  )
void FlatView::Viewer::removePack ( ::DataPack::ID  )

Releases DataPack after removing from the list.

virtual void FlatView::Viewer::setAnnotChoice ( int  selannot)
inlinevirtual

Reimplemented in uiFlatViewer.

void FlatView::Viewer::setPack ( bool  wva,
::DataPack::ID  id,
bool  usedefs = true 
)
inline
void FlatView::Viewer::setSeisGeomidsToViewer ( TypeSet< Pos::GeomID > &  )
void FlatView::Viewer::setVisible ( bool  wva,
bool  visibility 
)

Will also handleChange. So, do not use unless you want both.

bool FlatView::Viewer::setZAxisTransform ( ZAxisTransform )
void FlatView::Viewer::setZDomain ( const ZDomain::Def )
virtual void FlatView::Viewer::showAuxDataObjects ( AuxData ,
bool   
)
inlinevirtual
void FlatView::Viewer::storeDefaults ( const char *  key) const
virtual void FlatView::Viewer::updateProperties ( const AuxData )
inlinevirtual
virtual void FlatView::Viewer::useAppearancePar ( const IOPar iop)
inlinevirtual

Does not retrieve any data, just how data is displayed

void FlatView::Viewer::usePack ( bool  wva,
::DataPack::ID  ,
bool  usedefs = true 
)

Does not add new packs, just selects from added.

void FlatView::Viewer::useStoredDefaults ( const char *  key)
const ZDomain::Info& FlatView::Viewer::zDomain ( ) const

Member Data Documentation

FlatView_CB_Rcvr* FlatView::Viewer::cbrcvr_
protected
ZAxisTransform* FlatView::Viewer::datatransform_
protected
Appearance* FlatView::Viewer::defapp_
protected
DataPackMgr& FlatView::Viewer::dpm_
protected
TypeSet<Pos::GeomID> FlatView::Viewer::geom2dids_
private
TypeSet< ::DataPack::ID> FlatView::Viewer::ids_
protected
Threads::Lock FlatView::Viewer::lock_
mutableprotected
bool FlatView::Viewer::needstatusbarupd_
protected
const FlatDataPack* FlatView::Viewer::vdpack_
private
const FlatDataPack* FlatView::Viewer::wvapack_
private
ZDomain::Info* FlatView::Viewer::zdinfo_
protected

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