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

#include <seismic_area_widget.hpp>

Inheritance diagram for hds::SeismicAreaWidget:
hds::SeismicArea

Classes

struct  CoordAxis
 

Signals

void toolTipDelivered (const QString &tip_str, const QString &info_str)
 

Public Member Functions

 SeismicAreaWidget (QWidget *parent=0, Qt::WindowFlags f=0)
 
 SeismicAreaWidget (QPaintDevice *pdev, QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~SeismicAreaWidget ()
 
virtual void attachData (ZdSeismicSet &seis_set)
 
virtual void detachData ()
 
virtual ZdSeismicSetdata ()
 
void setInteractiveMode (int imode)
 
virtual void addCoordAxis (const CoordAxisVisMode &axis_vis_mode)
 
virtual void removeCoordAxes ()
 
virtual size_t coordAxesNum () const
 
virtual bool getCoordAxisVisMode (size_t id, CoordAxisVisMode &axis_vis_mode) const
 
virtual bool setCoordAxisVisMode (size_t id, const CoordAxisVisMode &axis_vis_mode)
 
virtual void redraw (bool repaint_flag=true)
 
void zoomAll (bool repaint_flag=true)
 
void zoomIn (bool repaint_flag=true)
 
void zoomOut (bool repaint_flag=true)
 
void setClosable (const bool closable=true)
 
QzqAreagetZqArea ()
 
- Public Member Functions inherited from hds::SeismicArea
 SeismicArea ()
 
virtual ~SeismicArea ()
 
virtual ViewOptionsoptions ()
 
virtual int interactiveMode () const
 
const ZqbNatGroupgetTimeNaturalGroup () const
 
ZqbNatGroupgetTimeNaturalGroup ()
 
const ZqbNatGroupgetCoordNaturalGroup () const
 
ZqbNatGroupgetCoordNaturalGroup ()
 
bool loadDefaults (const QString &fname)
 
bool saveDefaults (const QString &fname) const
 

Protected Member Functions

virtual void init (QWidget *parent, Qt::WindowFlags f)
 
void closeEvent (QCloseEvent *ev)
 
virtual void showEvent (QShowEvent *ev)
 
virtual void paintEvent (QPaintEvent *pev)
 

Protected Attributes

std::vector< CoordAxism_coord_axes
 
ZdSeismicSetmp_seis_doc
 
QzqAreamp_zqarea
 
QGridLayout * mp_grid_layout
 
ZqLayoutmp_zqlayout
 
ZqSeismicViewmp_seis_view
 
ZqScalemp_time_scale
 
ZqTitlemp_time_title
 
ZqScrollBarmp_bottom_scrbar
 
ZqScrollBarmp_right_scrbar
 
ZqZoommp_seis_zoom
 
ZqGridmp_time_grid
 
bool m_closable
 
QPaintDevice * m_pdev
 
- Protected Attributes inherited from hds::SeismicArea
ZqbNatGroup m_time_ng
 
ZqbNatGroup m_coord_ng
 
ViewOptions m_options
 
int m_interactive_mode
 

Additional Inherited Members

- Public Types inherited from hds::SeismicArea
enum  InteractiveMode { SA_DUMMY_IMODE = 0, SA_INFO_IMODE = 1, SA_ZOOM_IMODE = 2 }
 
enum  ShowMode { SA_SHOW_SEISMIC_ONLY = 0, SA_SHOW_TIME_SCALE = 1, SA_SHOW_COORD_SCALES = 2, SA_SHOW_SCROLLS = 4 }
 

Detailed Description

Provides base features for seismic visualization with simple interactions. Allows of multiple coordinate scales visualization. Visual area:

tleft left center right

ttop | | | title | |

top | | | scale | |

| | | | | center |t | scale | seismic | scroll | |i | | | | |t | | | | |l | | | | |e | | | |

| | | | |

bottom | | | scroll | |

Constructor & Destructor Documentation

hds::SeismicAreaWidget::SeismicAreaWidget ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Default constructor with parent widget and widget flags provided.

hds::SeismicAreaWidget::SeismicAreaWidget ( QPaintDevice *  pdev,
QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Construct widget with paint device provided.

virtual hds::SeismicAreaWidget::~SeismicAreaWidget ( )
virtual

Destructor.

Member Function Documentation

virtual void hds::SeismicAreaWidget::addCoordAxis ( const CoordAxisVisMode axis_vis_mode)
virtual

Add new coordinate axis.

Reimplemented from hds::SeismicArea.

virtual void hds::SeismicAreaWidget::attachData ( ZdSeismicSet seis_set)
virtual

Attach seismic data document object.

Implements hds::SeismicArea.

virtual size_t hds::SeismicAreaWidget::coordAxesNum ( ) const
virtual

Return number of coordinate axes defined.

Reimplemented from hds::SeismicArea.

virtual ZdSeismicSet* hds::SeismicAreaWidget::data ( )
virtual

Access to attached seismic data pointer. NULL if seismic data not attached.

Reimplemented from hds::SeismicArea.

virtual void hds::SeismicAreaWidget::detachData ( )
virtual

Detach current seismic data dociument.

Implements hds::SeismicArea.

virtual bool hds::SeismicAreaWidget::getCoordAxisVisMode ( size_t  id,
CoordAxisVisMode axis_vis_mode 
) const
virtual
Get coordinate axis visualization mode for provide id. 

Returns false on error.

Reimplemented from hds::SeismicArea.

QzqArea* hds::SeismicAreaWidget::getZqArea ( )
inline

Get zqools area pointer.

virtual void hds::SeismicAreaWidget::init ( QWidget *  parent,
Qt::WindowFlags  f 
)
protectedvirtual

Initialize object with current parameters.

virtual void hds::SeismicAreaWidget::redraw ( bool  repaint_flag = true)
virtual
Redraw visual area (repait if provided flag is true). 
Parameters
repaint_flagForce zq area repaint flag.

Implements hds::SeismicArea.

virtual void hds::SeismicAreaWidget::removeCoordAxes ( )
virtual

Remove all coordinate axes.

Reimplemented from hds::SeismicArea.

void hds::SeismicAreaWidget::setClosable ( const bool  closable = true)
inline
Set closable flag. 
Parameters
repaint_flagForce zq area repaint flag.
virtual bool hds::SeismicAreaWidget::setCoordAxisVisMode ( size_t  id,
const CoordAxisVisMode axis_vis_mode 
)
virtual
Set coordinate axis visualization mode for provide id. 

Returns false on error.

Reimplemented from hds::SeismicArea.

void hds::SeismicAreaWidget::setInteractiveMode ( int  imode)
virtual

Set interactive mode.

Reimplemented from hds::SeismicArea.

void hds::SeismicAreaWidget::toolTipDelivered ( const QString &  tip_str,
const QString &  info_str 
)
signal
The signal emited whenever tooltip delivered from ZqArea widget. 

Provides tip and info strings.

void hds::SeismicAreaWidget::zoomAll ( bool  repaint_flag = true)
Zoom all seismic area. 
Parameters
repaint_flagForce zq area repaint flag.
void hds::SeismicAreaWidget::zoomIn ( bool  repaint_flag = true)
Zoom in seismic area. 
Parameters
repaint_flagForce zq area repaint flag.
void hds::SeismicAreaWidget::zoomOut ( bool  repaint_flag = true)
Zoom out seismic area. 
Parameters
repaint_flagForce zq area repaint flag.

Member Data Documentation

bool hds::SeismicAreaWidget::m_closable
protected

Current paint device for drawing.

std::vector<CoordAxis> hds::SeismicAreaWidget::m_coord_axes
protected

Array of coordinate axes.

QGridLayout* hds::SeismicAreaWidget::mp_grid_layout
protected

Layout for Zqools objects.

ZqScrollBar * hds::SeismicAreaWidget::mp_right_scrbar
protected

Seismic zoom.

ZdSeismicSet* hds::SeismicAreaWidget::mp_seis_doc
protected

Seismic set document pointer. Zqools area pointer for seismic visualization and interactions.

ZqZoom* hds::SeismicAreaWidget::mp_seis_zoom
protected

Time grid.

ZqGrid* hds::SeismicAreaWidget::mp_time_grid
protected

Widget can be closed flag.

ZqScale* hds::SeismicAreaWidget::mp_time_scale
protected

Time scale. Time title.

ZqTitle* hds::SeismicAreaWidget::mp_time_title
protected

Time and coordinate scroll bars.

QzqArea* hds::SeismicAreaWidget::mp_zqarea
protected

Grid layout of the widget.

ZqLayout* hds::SeismicAreaWidget::mp_zqlayout
protected

View object for seismic.


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