UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | List of all members
ZqDlgSVOptions Class Reference

#include <zqdlg_svoptions.hpp>

Classes

struct  SVOParam
 

Public Member Functions

 ZqDlgSVOptions (QWidget *parent)
 
 ZqDlgSVOptions (QWidget *parent, int mask)
 
virtual ~ZqDlgSVOptions ()
 
int showModal ()
 
void show ()
 
void hide ()
 
void attachSVOptions (ZqbSVOptions *pSVO, int mChange=~0, float fSpecGain=1.0)
 
void detachSVOptions (ZqbSVOptions *pSVO)
 
void attachUpdater (ZqbSVOUpdateProc proc, void *pUserData=NULL)
 
void detachUpdater (ZqbSVOUpdateProc proc)
 
void detachUpdater (ZqbSVOUpdateProc proc, void *pUserData)
 
void attachArea (QzqArea *pArea)
 
void detachArea (QzqArea *pArea)
 
void publishOptions ()
 
bool changeOptions ()
 
void propagateOptions (bool bForceRedraw=true)
 

Public Attributes

ZqbSVOptions m_Options
 

Protected Member Functions

void assignSVO (ZqbSVOptions &dst, const ZqbSVOptions &src, const SVOParam &params)
 

Protected Attributes

SVOptions * m_pDlg
 
std::map< ZqbSVOptions
*, SVOParam
m_AttachedSVO
 
std::set< std::pair
< ZqbSVOUpdateProc, void * > > 
m_AttachedUpdaters
 
std::set< QzqArea * > m_AttachedArea
 

Detailed Description

Wrapper class around dialog window with seismic view options. The main behavior of the class is attaching ZqbSVOptions objects which are interesting in changing seismic visual parameters.

The dialog is not modal so it can be used transparently with other windows.

Constructor & Destructor Documentation

ZqDlgSVOptions::ZqDlgSVOptions ( QWidget *  parent)

Create dialog window but don't display it.

ZqDlgSVOptions::ZqDlgSVOptions ( QWidget *  parent,
int  mask 
)

Create dialog window but don't display it. ORed mask is composed of ZqbSVOptions::Mask flags to prohibit change of some of seismic view options in some cases. All changes are allowed by ~0.

virtual ZqDlgSVOptions::~ZqDlgSVOptions ( )
virtual

Destroy the dialog.

Member Function Documentation

void ZqDlgSVOptions::assignSVO ( ZqbSVOptions dst,
const ZqbSVOptions src,
const SVOParam params 
)
protected

Assign given options from one to another using given parameters.

void ZqDlgSVOptions::attachArea ( QzqArea pArea)

Attach QzqArea object to be redrawn on changing seismic view options. The area object should be attached in case of at least one of ZqObject with ZqbSVOptions member is attached to the dialog. In this case QzqArea::redraw(true) is called and ZqObject is forced to repaint itself with new values of options.

void ZqDlgSVOptions::attachSVOptions ( ZqbSVOptions pSVO,
int  mChange = ~0,
float  fSpecGain = 1.0 
)

Attach one more seismic view options object to be changed by user. Which options should be changed is controlled by mChange mask composed from ORed ZqbSVOptions::Mask flags. Special gain over standard value may be pointed too to emphasize exact seismic object (seismic trace or view) over another.

void ZqDlgSVOptions::attachUpdater ( ZqbSVOUpdateProc  proc,
void *  pUserData = NULL 
)

Attach some procedure to be called when seismic view options were changed.

bool ZqDlgSVOptions::changeOptions ( )

Assign potentially changed values from dialog window to own options. Diagnose changes and return true or return false if there are no changes.

void ZqDlgSVOptions::detachArea ( QzqArea pArea)

Detach QzqArea object.

void ZqDlgSVOptions::detachSVOptions ( ZqbSVOptions pSVO)

Detach seismic view options object.

void ZqDlgSVOptions::detachUpdater ( ZqbSVOUpdateProc  proc)

Detach all updater procedures with any user data pointer.

void ZqDlgSVOptions::detachUpdater ( ZqbSVOUpdateProc  proc,
void *  pUserData 
)

Detach updater procedure with given user data pointer.

void ZqDlgSVOptions::hide ( )

Hide the dialog.

void ZqDlgSVOptions::propagateOptions ( bool  bForceRedraw = true)

Propagate options to all attached SVO objects and re-display attached areas (if bForceRedraw is true).

void ZqDlgSVOptions::publishOptions ( )

Display own options in the dialog window.

void ZqDlgSVOptions::show ( )

Show the dialog.

int ZqDlgSVOptions::showModal ( )

Show the modal dialog. Return the code which is usually returned by QDialog::exec().

Member Data Documentation

std::set<QzqArea*> ZqDlgSVOptions::m_AttachedArea
protected

Container of attached QzqArea objects to be repainted on options change.

std::map<ZqbSVOptions*,SVOParam> ZqDlgSVOptions::m_AttachedSVO
protected

Container of attached seismic view options. Custom changes will be propagated to every object in this list.

std::set<std::pair<ZqbSVOUpdateProc,void*> > ZqDlgSVOptions::m_AttachedUpdaters
protected

Container of attached updaters with user data pointer used as index.

ZqbSVOptions ZqDlgSVOptions::m_Options

Own options which are displayed and changed by user. The changes are propagated via special mechanism.

SVOptions* ZqDlgSVOptions::m_pDlg
protected

The dialog itself.


The documentation for this class was generated from the following file: