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

#include <zq_coord_marker.hpp>

Inheritance diagram for ZqCoordMarker:
ZqView ZqbNatGrpMember ZqView ZqbNatGrpMember ZqbView ZqObject ZqbView ZqObject ZqbView ZqObject ZqbView ZqObject

Classes

struct  Mark
 

Public Types

typedef std::vector< MarkMarks
 
typedef std::vector< MarkMarks
 

Public Member Functions

 ZqCoordMarker (ZqbNatGroup &rGroup, const char *szName=NULL)
 
 ZqCoordMarker (ZqbNatGroup &rGroup, ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual ~ZqCoordMarker ()
 
virtual void setPen (const QPen &pen)
 
virtual const QPen & getPen () const
 
virtual QPen & pen ()
 
virtual void setOrientation (Qt::Orientation eOrient)
 
virtual Qt::Orientation getOrientation () const
 
virtual bool compatibleDoc (const ZdDocument *pDoc) const
 
virtual void attachCOStream (ZdCoordObjStream *pCOStream)
 
virtual void detachDoc ()
 
virtual ZdCoordObjStreamcoStream ()
 
virtual void redraw (QPainter &paint)
 
virtual ZqbEventHint input (QEvent &event)
 
virtual bool markEvent (const QEvent &event, QPoint &pos)
 
virtual void drawMarkAt (QPainter &paint, double coord, int mark)
 
virtual int changeMark (double coord, int mark)
 
virtual void setMark (double coord, int mark, double *pMatched=NULL)
 
virtual int getMark (double coord, double *pMatched=NULL) const
 
virtual void getMarks (Marks &vMarks) const
 
 ZqCoordMarker (ZqbNatGroup &rGroup, const char *szName=NULL)
 
 ZqCoordMarker (ZqbNatGroup &rGroup, ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual ~ZqCoordMarker ()
 
virtual void setPen (const QPen &pen)
 
virtual const QPen & getPen () const
 
virtual QPen & pen ()
 
virtual void setOrientation (Qt::Orientation eOrient)
 
virtual Qt::Orientation getOrientation () const
 
virtual bool compatibleDoc (const ZdDocument *pDoc) const
 
virtual void attachCOStream (ZdCoordObjStream *pCOStream)
 
virtual void detachDoc ()
 
virtual ZdCoordObjStreamcoStream ()
 
virtual void redraw (QPainter &paint)
 
virtual ZqbEventHint input (QEvent &event)
 
virtual bool markEvent (const QEvent &event, QPoint &pos)
 
virtual void drawMarkAt (QPainter &paint, double coord, int mark)
 
virtual int changeMark (double coord, int mark)
 
virtual void setMark (double coord, int mark, double *pMatched=NULL)
 
virtual int getMark (double coord, double *pMatched=NULL) const
 
virtual void getMarks (Marks &vMarks) const
 
- Public Member Functions inherited from ZqView
 ZqView (const char *szName=NULL)
 
 ZqView (ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual void updateView ()
 
virtual void attachDoc (ZdDocument *pData)
 
 ZqView (const char *szName=NULL)
 
 ZqView (ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual void updateView ()
 
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 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 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 tip (const QPoint &p, QString &qsShort, QString &qsLong)
 
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 tip (const QPoint &p, QString &qsShort, QString &qsLong)
 
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 Member Functions inherited from ZqbNatGrpMember
 ZqbNatGrpMember (ZqbNatGroup *pNatGroup)
 
 ZqbNatGrpMember (ZqbNatGroup *pNatGroup, void(*CustomOnSetCoord)(void *), void *pUserData=NULL)
 
virtual ~ZqbNatGrpMember ()
 
virtual ZqbNatGroupgroup () const
 
virtual void unsetBounds ()
 
virtual void setBounds (double b[2])
 
void setBounds (double b1, double b2)
 
virtual bool getBounds (double b[2]=NULL) const
 
virtual void onSetCoords ()
 
virtual void onTickChange ()
 
 ZqbNatGrpMember (ZqbNatGroup *pNatGroup)
 
 ZqbNatGrpMember (ZqbNatGroup *pNatGroup, void(*CustomOnSetCoord)(void *), void *pUserData=NULL)
 
virtual ~ZqbNatGrpMember ()
 
virtual ZqbNatGroupgroup () const
 
virtual void unsetBounds ()
 
virtual void setBounds (double b[2])
 
void setBounds (double b1, double b2)
 
virtual bool getBounds (double b[2]=NULL) const
 
virtual void onSetCoords ()
 

Protected Attributes

QPen m_qPen
 
Qt::Orientation m_eOrient
 
Marks m_vMarks
 
- 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
 
- Protected Attributes inherited from ZqbNatGrpMember
ZqbNatGroupm_pNatGroup
 
bool m_bKnownBounds
 
double m_fBounds [2]
 
void(* m_pCustomOnSetCoord )(void *pUserData)
 
void * m_pUserData
 

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 interactive putting marks in some set of coordinates provided by some stream.

Member Typedef Documentation

typedef std::vector<Mark> ZqCoordMarker::Marks

Array of marks.

typedef std::vector<Mark> ZqCoordMarker::Marks

Array of marks.

Constructor & Destructor Documentation

ZqCoordMarker::ZqCoordMarker ( ZqbNatGroup rGroup,
const char *  szName = NULL 
)

Create object for given natural group which is not attached to placeholder. Placeholder may be attached later.

ZqCoordMarker::ZqCoordMarker ( ZqbNatGroup rGroup,
ZqbPlaceholder pPh,
const char *  szName = NULL 
)

Create object for given natural group attached to given placeholder from the birth. It can be detached at any moment and be attached to another place.

virtual ZqCoordMarker::~ZqCoordMarker ( )
virtual

Destroy the object detaching the placeholder.

ZqCoordMarker::ZqCoordMarker ( ZqbNatGroup rGroup,
const char *  szName = NULL 
)

Create object for given natural group which is not attached to placeholder. Placeholder may be attached later.

ZqCoordMarker::ZqCoordMarker ( ZqbNatGroup rGroup,
ZqbPlaceholder pPh,
const char *  szName = NULL 
)

Create object for given natural group attached to given placeholder from the birth. It can be detached at any moment and be attached to another place.

virtual ZqCoordMarker::~ZqCoordMarker ( )
virtual

Destroy the object detaching the placeholder.

Member Function Documentation

virtual void ZqCoordMarker::attachCOStream ( ZdCoordObjStream pCOStream)
virtual

Attach stream of coordinates which can be seismic file for example. Marks can be established only in coordinates existent in this stream. Stream scanned only once and then set of coordinates is assumed to be not changed. In case of changes previously made marks can't be associated with coordinates.

virtual void ZqCoordMarker::attachCOStream ( ZdCoordObjStream pCOStream)
virtual

Attach stream of coordinates which can be seismic file for example. Marks can be established only in coordinates existent in this stream. Stream scanned only once and then set of coordinates is assumed to be not changed. In case of changes previously made marks can't be associated with coordinates.

virtual int ZqCoordMarker::changeMark ( double  coord,
int  mark 
)
virtual

Custon way of changing state of the mark. Coordinate and previous state are passed as arguments and new state is returned. By default logical NOT is applied to previous state to produce new one. May be overridden in derived classes to implement more specific method of this operation.

virtual int ZqCoordMarker::changeMark ( double  coord,
int  mark 
)
virtual

Custon way of changing state of the mark. Coordinate and previous state are passed as arguments and new state is returned. By default logical NOT is applied to previous state to produce new one. May be overridden in derived classes to implement more specific method of this operation.

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

Return true if passed object is in list of compatible documents for this view. Subclasses of ZdCoordObjStream are welcome.

Implements ZqbView.

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

Return true if passed object is in list of compatible documents for this view. Subclasses of ZdCoordObjStream are welcome.

Implements ZqbView.

virtual ZdCoordObjStream* ZqCoordMarker::coStream ( )
virtual

Return pointer to the stream of coordinates.

virtual ZdCoordObjStream* ZqCoordMarker::coStream ( )
virtual

Return pointer to the stream of coordinates.

virtual void ZqCoordMarker::detachDoc ( )
virtual

Detach stream of coordinates. Marks made continue to exist but are not drawn.

Reimplemented from ZqView.

virtual void ZqCoordMarker::detachDoc ( )
virtual

Detach stream of coordinates. Marks made continue to exist but are not drawn.

Reimplemented from ZqView.

virtual void ZqCoordMarker::drawMarkAt ( QPainter &  paint,
double  coord,
int  mark 
)
virtual

Custom way of one marker drawing method. By default, draws a line in mark coordinate position in the width/height of pixel group. May be overridden in derived classes to obtain specific marks.

virtual void ZqCoordMarker::drawMarkAt ( QPainter &  paint,
double  coord,
int  mark 
)
virtual

Custom way of one marker drawing method. By default, draws a line in mark coordinate position in the width/height of pixel group. May be overridden in derived classes to obtain specific marks.

virtual int ZqCoordMarker::getMark ( double  coord,
double *  pMatched = NULL 
) const
virtual

Get mark at given coordinate. Matched coordinate is returned if needed.

virtual int ZqCoordMarker::getMark ( double  coord,
double *  pMatched = NULL 
) const
virtual

Get mark at given coordinate. Matched coordinate is returned if needed.

virtual void ZqCoordMarker::getMarks ( Marks vMarks) const
virtual

Get vector of marks.

virtual void ZqCoordMarker::getMarks ( Marks vMarks) const
virtual

Get vector of marks.

virtual Qt::Orientation ZqCoordMarker::getOrientation ( ) const
virtual

Get dimension of coordinates of natural group.

INLINE Qt::Orientation ZqCoordMarker::getOrientation ( ) const
virtual

Get dimension of coordinates of natural group.

INLINE const QPen & ZqCoordMarker::getPen ( ) const
virtual

Get pen used for marker drawing.

virtual const QPen& ZqCoordMarker::getPen ( ) const
virtual

Get pen used for marker drawing.

virtual ZqbEventHint ZqCoordMarker::input ( QEvent &  event)
virtual

General event processing method.

Reimplemented from ZqObject.

virtual ZqbEventHint ZqCoordMarker::input ( QEvent &  event)
virtual

General event processing method.

Reimplemented from ZqObject.

virtual bool ZqCoordMarker::markEvent ( const QEvent &  event,
QPoint &  pos 
)
virtual

Custom method of marker coordinate request event determination. Returns true in case of success and specified point position is filled back. By default, left button mouse without keyboard modifier matches. May be overridden in derived classes to impement another input method.

virtual bool ZqCoordMarker::markEvent ( const QEvent &  event,
QPoint &  pos 
)
virtual

Custom method of marker coordinate request event determination. Returns true in case of success and specified point position is filled back. By default, left button mouse without keyboard modifier matches. May be overridden in derived classes to impement another input method.

virtual QPen& ZqCoordMarker::pen ( )
virtual

Access pen used for marker drawing.

INLINE QPen & ZqCoordMarker::pen ( )
virtual

Access pen used for marker drawing.

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

General drawing method - draw all marks.

Reimplemented from ZqObject.

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

General drawing method - draw all marks.

Reimplemented from ZqObject.

virtual void ZqCoordMarker::setMark ( double  coord,
int  mark,
double *  pMatched = NULL 
)
virtual

Set given mark at the coordinate the most close to given one. Matched coordinate is returned if needed.

virtual void ZqCoordMarker::setMark ( double  coord,
int  mark,
double *  pMatched = NULL 
)
virtual

Set given mark at the coordinate the most close to given one. Matched coordinate is returned if needed.

INLINE void ZqCoordMarker::setOrientation ( Qt::Orientation  eOrient)
virtual

Set dimension of coordinates of natural group.

virtual void ZqCoordMarker::setOrientation ( Qt::Orientation  eOrient)
virtual

Set dimension of coordinates of natural group.

INLINE void ZqCoordMarker::setPen ( const QPen &  pen)
virtual

Set pen for marker drawing. Default pen color is black.

virtual void ZqCoordMarker::setPen ( const QPen &  pen)
virtual

Set pen for marker drawing. Default pen color is black.

Member Data Documentation

Qt::Orientation ZqCoordMarker::m_eOrient
protected

Natural coordinate orientation regarding screen pixel coordinates.

QPen ZqCoordMarker::m_qPen
protected

Stored pen used for marker drawing.

Marks ZqCoordMarker::m_vMarks
protected

Set of coordinates obtained from stream on attach and associated marks.


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