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
ZqSeismicView Class Reference

#include <zq_seismic_view.hpp>

Inheritance diagram for ZqSeismicView:
ZqView ZqView ZqbView ZqObject ZqbView ZqObject ZqbView ZqObject ZqbView ZqObject

Classes

struct  Trace
 

Public Member Functions

 ZqSeismicView (ZqbNatGroup &rNatTime, ZqbNatGroup &rNatCoord, const char *szName=NULL)
 
 ZqSeismicView (ZqbNatGroup &rNatTime, ZqbNatGroup &rNatCoord, ZqbPlaceholder *pPh, const char *szName=NULL)
 
int getLedgeSize () const
 
virtual bool compatibleDoc (const ZdDocument *pDoc) const
 
virtual void attachFile (ZdSeismicFile *pFile)
 
virtual void detachDoc ()
 
virtual ZdSeismicFilefile ()
 
virtual bool tip (const QPoint &p, QString &qsShort, QString &qsLong)
 
virtual void setTipContents (std::vector< int > &hwlist)
 
virtual void setTipContents (int n,...)
 
virtual const std::vector< int > & getTipContents () const
 
virtual bool traceAt (QPoint p, Trace &rTraceLoc)
 
virtual bool traceAt (double fPseudoCoord, Trace &rTraceLoc)
 
virtual void redraw (QPainter &paint)
 
 ZqSeismicView (ZqbNatGroup &rNatTime, ZqbNatGroup &rNatCoord, const char *szName=NULL)
 
 ZqSeismicView (ZqbNatGroup &rNatTime, ZqbNatGroup &rNatCoord, ZqbPlaceholder *pPh, const char *szName=NULL)
 
int getLedgeSize () const
 
virtual bool compatibleDoc (const ZdDocument *pDoc) const
 
virtual void attachFile (ZdSeismicFile *pFile)
 
virtual void detachDoc ()
 
virtual ZdSeismicFilefile ()
 
virtual bool tip (const QPoint &p, QString &qsShort, QString &qsLong)
 
virtual void setTipContents (std::vector< int > &hwlist)
 
virtual void setTipContents (int n,...)
 
virtual const std::vector< int > & getTipContents () const
 
virtual bool traceAt (QPoint p, Trace &rTraceLoc)
 
virtual bool traceAt (double fPseudoCoord, Trace &rTraceLoc)
 
virtual void redraw (QPainter &paint)
 
virtual void updateView ()
 
- Public Member Functions inherited from ZqView
 ZqView (const char *szName=NULL)
 
 ZqView (ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual void attachDoc (ZdDocument *pData)
 
 ZqView (const char *szName=NULL)
 
 ZqView (ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual void attachDoc (ZdDocument *pData)
 
- Public Member Functions inherited from ZqObject
 ZqObject (const char *szName=NULL)
 
 ZqObject (ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual ~ZqObject ()
 
virtual void debugState ()
 
virtual void clearPlace ()
 
virtual ZqbPlaceholderVector * placeholders ()
 
virtual ZqbEventHint input (QEvent &event)
 
virtual void updateLimits (QPainter *paint=NULL)
 
virtual void updateGeometry ()
 
virtual QPainter * getScreenPainter () const
 
virtual void setScreenPainter (QPainter *pPainter)
 
virtual QzqAreagetArea () const
 
virtual QWidget * getAreaWidget () const
 
virtual void setAreaWidget (QWidget *pWidget)
 
virtual bool isHardcopy () const
 
bool isPlaced () const
 
ZqbPlaceholdergetPlace () const
 
ZqbPixGrpMemberpx () const
 
ZqbPixGrpMemberpy () const
 
bool getRect (QRect &rect) const
 
virtual bool attachToPlace (ZqbPlaceholder *pPh)
 
virtual bool detachFromPlace ()
 
virtual void setDirty ()
 
virtual void resetDirty ()
 
virtual bool isDirty () const
 
void setInteractive (bool bInteractive)
 
bool isInteractive () const
 
virtual void fullRedraw (bool bForce=false)
 
virtual void interactiveRedraw ()
 
 ZqObject (const char *szName=NULL)
 
 ZqObject (ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual ~ZqObject ()
 
virtual void debugState ()
 
virtual void clearPlace ()
 
virtual ZqbPlaceholderVector * placeholders ()
 
virtual ZqbEventHint input (QEvent &event)
 
virtual void updateLimits (QPainter *paint=NULL)
 
virtual void updateGeometry ()
 
virtual QPainter * getScreenPainter () const
 
virtual void setScreenPainter (QPainter *pPainter)
 
virtual QzqAreagetArea () const
 
virtual QWidget * getAreaWidget () const
 
virtual void setAreaWidget (QWidget *pWidget)
 
virtual bool isHardcopy () const
 
bool isPlaced () const
 
ZqbPlaceholdergetPlace () const
 
ZqbPixGrpMemberpx () const
 
ZqbPixGrpMemberpy () const
 
bool getRect (QRect &rect) const
 
virtual bool attachToPlace (ZqbPlaceholder *pPh)
 
virtual bool detachFromPlace ()
 
virtual void setDirty ()
 
virtual void resetDirty ()
 
virtual bool isDirty () const
 
void setInteractive (bool bInteractive)
 
bool isInteractive () const
 
virtual void fullRedraw (bool bForce=false)
 
virtual void interactiveRedraw ()
 
- Public Member Functions inherited from ZqbAutoName
 ZqbAutoName (int *pCounter, const char *szRoot, const char *szCustomName=NULL)
 
virtual ~ZqbAutoName ()
 
 ZqbAutoName (int *pCounter, const char *szRoot, const char *szCustomName=NULL)
 
virtual ~ZqbAutoName ()
 
- Public Member Functions inherited from ZqbName
 ZqbName (const char *szRoot, const char *szCustomName=NULL)
 
 ZqbName (const ZqbName &name)
 
virtual ~ZqbName ()
 
ZqbNameoperator= (const ZqbName &name)
 
virtual const char * getName () const
 
virtual const char * getType () const
 
bool hasName (const char *szString) const
 
 ZqbName (const char *szRoot, const char *szCustomName=NULL)
 
 ZqbName (const ZqbName &name)
 
virtual ~ZqbName ()
 
ZqbNameoperator= (const ZqbName &name)
 
virtual const char * getName () const
 
virtual const char * getType () const
 
bool hasName (const char *szString) const
 
- Public Member Functions inherited from ZqbVisible
 ZqbVisible (bool bDrawable=false, bool bInputable=false, bool bTipable=false)
 
virtual ~ZqbVisible ()
 
virtual bool isDrawable () const
 
virtual void setDrawable (bool bFlag)
 
virtual void redraw ()
 
virtual void setTipable (bool bFlag)
 
virtual bool isTipable () const
 
virtual bool isInputable () const
 
virtual void setInputable (bool bFlag)
 
virtual bool getRect (QRect &)
 
virtual bool setRect (const QRect &)
 
 ZqbVisible (bool bDrawable=false, bool bInputable=false, bool bTipable=false)
 
virtual ~ZqbVisible ()
 
virtual bool isDrawable () const
 
virtual void setDrawable (bool bFlag)
 
virtual void redraw ()
 
virtual void setTipable (bool bFlag)
 
virtual bool isTipable () const
 
virtual bool isInputable () const
 
virtual void setInputable (bool bFlag)
 
virtual bool getRect (QRect &)
 
virtual bool setRect (const QRect &)
 
- Public Member Functions inherited from ZqbView
 ZqbView (const char *szName=NULL)
 
virtual ~ZqbView ()
 
virtual ZdDocumentdoc ()
 
virtual void updateDoc ()
 
 ZqbView (const char *szName=NULL)
 
virtual ~ZqbView ()
 
virtual ZdDocumentdoc ()
 
virtual void updateDoc ()
 

Public Attributes

ZqbNatGrpMember m_Time
 
ZqbNatGrpMember m_Coord
 
ZqbSVOptions m_Options
 
std::vector< Tracem_vVisTrace
 
std::map< int, Trace * > m_mVisTrace
 
float m_fGlobalAmax
 

Protected Member Functions

void normTrace (ZqSeismicTrace &seistr, float mm[2], float fEnsAmax)
 
void drawEnsBrackets (QPainter &paint)
 
void normTrace (ZqSeismicTrace &seistr, float mm[2], float fEnsAmax)
 
void drawEnsBrackets (QPainter &paint)
 
void map_redraw (QPainter &paint)
 
void wiggle_redraw (QPainter &paint)
 

Protected Attributes

int m_nHalfHeight
 
std::vector< int > m_vTipHW
 
- Protected Attributes inherited from ZqObject
ZqbPlaceholderm_pPh
 
ZqbPixGrpMemberm_pPx
 
ZqbPixGrpMemberm_pPy
 
bool m_bInteractive
 
- Protected Attributes inherited from ZqbName
char * m_szName
 
char * m_szRoot
 

Additional Inherited Members

- Static Public Member Functions inherited from ZqbView
static bool findTypeAmong (const ZdDocument *pDoc, const char *szExpectedType1,...)
 
static bool findTypeAmong (const ZdDocument *pDoc, const char *szExpectedType1,...)
 

Detailed Description

Class for drawing sequence of traces represented by some abstract stream.

test_zq_seismic_view_1.png

Constructor & Destructor Documentation

ZqSeismicView::ZqSeismicView ( ZqbNatGroup rNatTime,
ZqbNatGroup rNatCoord,
const char *  szName = NULL 
)

Create seismic view drawing object without placeholder. Natural coordinates for time and coordinate axis are provided.

ZqSeismicView::ZqSeismicView ( ZqbNatGroup rNatTime,
ZqbNatGroup rNatCoord,
ZqbPlaceholder pPh,
const char *  szName = NULL 
)

Create seismic view drawing object at given place. Natural coordinates for time and amplitude axis are provided.

ZqSeismicView::ZqSeismicView ( ZqbNatGroup rNatTime,
ZqbNatGroup rNatCoord,
const char *  szName = NULL 
)

Create seismic view drawing object without placeholder. Natural coordinates for time and coordinate axis are provided.

ZqSeismicView::ZqSeismicView ( ZqbNatGroup rNatTime,
ZqbNatGroup rNatCoord,
ZqbPlaceholder pPh,
const char *  szName = NULL 
)

Create seismic view drawing object at given place. Natural coordinates for time and amplitude axis are provided.

Member Function Documentation

virtual void ZqSeismicView::attachFile ( ZdSeismicFile pFile)
virtual

Attach seismic file which is represented as an abstract iterator through traces with coordinates.

virtual void ZqSeismicView::attachFile ( ZdSeismicFile pFile)
virtual

Attach seismic file which is represented as an abstract iterator through traces with coordinates.

virtual bool ZqSeismicView::compatibleDoc ( const ZdDocument pDoc) const
virtual

Return true if passed object is in list of compatible documents for this view. ZdSeismicFile and subclasses are welcome.

Implements ZqbView.

virtual bool ZqSeismicView::compatibleDoc ( const ZdDocument pDoc) const
virtual

Return true if passed object is in list of compatible documents for this view. ZdSeismicFile and subclasses are welcome.

Implements ZqbView.

virtual void ZqSeismicView::detachDoc ( )
virtual

Detach trace disabling drawin in single trace mode. Withdraws information about ranges for coordinate and time of the trace.

Reimplemented from ZqView.

virtual void ZqSeismicView::detachDoc ( )
virtual

Detach trace disabling drawin in single trace mode. Withdraws information about ranges for coordinate and time of the trace.

Reimplemented from ZqView.

void ZqSeismicView::drawEnsBrackets ( QPainter &  paint)
protected

Draw ensemble brackets at current seismic file natural coordinate.

void ZqSeismicView::drawEnsBrackets ( QPainter &  paint)
protected

Draw ensemble brackets at current seismic file natural coordinate.

virtual ZdSeismicFile* ZqSeismicView::file ( )
virtual

Return pointer to attached trace.

virtual ZdSeismicFile* ZqSeismicView::file ( )
virtual

Return pointer to attached trace.

int ZqSeismicView::getLedgeSize ( ) const

Return size of maximum amplitude in pixels. It's zero before first redraw() and then it's equal to the half of box 'height' (width for S2D), allocated for the trace drawing.

int ZqSeismicView::getLedgeSize ( ) const

Return size of maximum amplitude in pixels. It's zero before first redraw() and then it's equal to the half of box 'height' (width for S2D), allocated for the trace drawing.

virtual const std::vector<int>& ZqSeismicView::getTipContents ( ) const
virtual

Get vector of header words used to display as a tip under the mouse cursor.

virtual const std::vector<int>& ZqSeismicView::getTipContents ( ) const
virtual

Get vector of header words used to display as a tip under the mouse cursor.

void ZqSeismicView::map_redraw ( QPainter &  paint)
protected

Redraw traces in map mode.

void ZqSeismicView::normTrace ( ZqSeismicTrace seistr,
float  mm[2],
float  fEnsAmax 
)
protected

Setup normalization mode for the trace drawing.

void ZqSeismicView::normTrace ( ZqSeismicTrace seistr,
float  mm[2],
float  fEnsAmax 
)
protected

Setup normalization mode for the trace drawing.

virtual void ZqSeismicView::redraw ( QPainter &  paint)
virtual

General drawing method for all traces in attached file.

Reimplemented from ZqObject.

virtual void ZqSeismicView::redraw ( QPainter &  paint)
virtual

General drawing method for all traces in attached file.

Reimplemented from ZqObject.

virtual void ZqSeismicView::setTipContents ( std::vector< int > &  hwlist)
virtual

Setup tip contents as a vector of header word ids to display. In addition, special ids are passed to display coordinate, sample, amplitude and time of sample under the mouse cursor (see TIP_* macros).

virtual void ZqSeismicView::setTipContents ( std::vector< int > &  hwlist)
virtual

Setup tip contents as a vector of header word ids to display. In addition, special ids are passed to display coordinate, sample, amplitude and time of sample under the mouse cursor (see TIP_* macros).

virtual void ZqSeismicView::setTipContents ( int  n,
  ... 
)
virtual

Setup tip contents given number of header word ids to display. In addition, special ids are passed to display coordinate, sample, amplitude and time of sample under the mouse cursor (see TIP_* macros).

virtual void ZqSeismicView::setTipContents ( int  n,
  ... 
)
virtual

Setup tip contents given number of header word ids to display. In addition, special ids are passed to display coordinate, sample, amplitude and time of sample under the mouse cursor (see TIP_* macros).

virtual bool ZqSeismicView::tip ( const QPoint &  p,
QString &  qsShort,
QString &  qsLong 
)
virtual

Display tip at this point (short and long forms) and return true or return false if no tips are associated with this point.

The short form of tip label is displayed nearby mouse pointer position. The long form is displayed in the status line (if defined in a program).

Reimplemented from ZqbVisible.

virtual bool ZqSeismicView::tip ( const QPoint &  p,
QString &  qsShort,
QString &  qsLong 
)
virtual

Display tip at this point (short and long forms) and return true or return false if no tips are associated with this point.

The short form of tip label is displayed nearby mouse pointer position. The long form is displayed in the status line (if defined in a program).

Reimplemented from ZqbVisible.

virtual bool ZqSeismicView::traceAt ( QPoint  p,
Trace rTraceLoc 
)
virtual

Maximum amplitude distribution through coordinate (see m_vCoord, m_vAmax). It's NULL in detached state and before first drawing. The information in this array is created and recalculated on each redrawing. Arrays for coordinate and absolute maximum amplitude at it (including ensembles). Describe the trace location at given pixel position and return true if found and false if not.

virtual bool ZqSeismicView::traceAt ( QPoint  p,
Trace rTraceLoc 
)
virtual

Maximum amplitude distribution through coordinate (see m_vCoord, m_vAmax). It's NULL in detached state and before first drawing. The information in this array is created and recalculated on each redrawing. Arrays for coordinate and absolute maximum amplitude at it (including ensembles). Describe the trace location at given pixel position and return true if found and false if not.

virtual bool ZqSeismicView::traceAt ( double  fPseudoCoord,
Trace rTraceLoc 
)
virtual

Describe the trace location at given coordinate (pseudo-coordinate is used) and return true if found and false if not.

virtual bool ZqSeismicView::traceAt ( double  fPseudoCoord,
Trace rTraceLoc 
)
virtual

Describe the trace location at given coordinate (pseudo-coordinate is used) and return true if found and false if not.

virtual void ZqSeismicView::updateView ( )
virtual

The method to refresh GUI when it seems some data were changed.

Reimplemented from ZqView.

void ZqSeismicView::wiggle_redraw ( QPainter &  paint)
protected

Redraw traces in wiggle mode.

Member Data Documentation

ZqbNatGrpMember ZqSeismicView::m_Coord

Bounds for coordinate axis and access to natural group.

float ZqSeismicView::m_fGlobalAmax

Global amplitude maximum for normalization.

std::map< int, Trace * > ZqSeismicView::m_mVisTrace

Map m_iTraceId to Trace item in m_vVisTrace.

int ZqSeismicView::m_nHalfHeight
protected

Size in pixels allocated for drawing amplitudes of one trace.

ZqbSVOptions ZqSeismicView::m_Options

Drawing options.

ZqbNatGrpMember ZqSeismicView::m_Time

Bounds for time axis and access to natural group.

std::vector< int > ZqSeismicView::m_vTipHW
protected

List of header words displayed in dynamic tip.

std::vector< Trace > ZqSeismicView::m_vVisTrace

All currently visualized traces are listed in this vector. In detached state number of items is zero.


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