UNIVERS
15.3
UNIVERS base processing software API
|
#include <zq_coord_marker.hpp>
Classes | |
struct | Mark |
Public Types | |
typedef std::vector< Mark > | Marks |
typedef std::vector< Mark > | Marks |
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 ZdCoordObjStream * | coStream () |
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 ZdCoordObjStream * | coStream () |
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 QzqArea * | getArea () const |
virtual QWidget * | getAreaWidget () const |
virtual void | setAreaWidget (QWidget *pWidget) |
virtual bool | isHardcopy () const |
bool | isPlaced () const |
ZqbPlaceholder * | getPlace () const |
ZqbPixGrpMember * | px () const |
ZqbPixGrpMember * | py () 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 QzqArea * | getArea () const |
virtual QWidget * | getAreaWidget () const |
virtual void | setAreaWidget (QWidget *pWidget) |
virtual bool | isHardcopy () const |
bool | isPlaced () const |
ZqbPlaceholder * | getPlace () const |
ZqbPixGrpMember * | px () const |
ZqbPixGrpMember * | py () 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 () |
ZqbName & | operator= (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 () |
ZqbName & | operator= (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 ZdDocument * | doc () |
virtual void | updateDoc () |
ZqbView (const char *szName=NULL) | |
virtual | ~ZqbView () |
virtual ZdDocument * | doc () |
virtual void | updateDoc () |
Public Member Functions inherited from ZqbNatGrpMember | |
ZqbNatGrpMember (ZqbNatGroup *pNatGroup) | |
ZqbNatGrpMember (ZqbNatGroup *pNatGroup, void(*CustomOnSetCoord)(void *), void *pUserData=NULL) | |
virtual | ~ZqbNatGrpMember () |
virtual ZqbNatGroup & | group () 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 ZqbNatGroup & | group () 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 | |
ZqbPlaceholder * | m_pPh |
ZqbPixGrpMember * | m_pPx |
ZqbPixGrpMember * | m_pPy |
bool | m_bInteractive |
Protected Attributes inherited from ZqbName | |
char * | m_szName |
char * | m_szRoot |
Protected Attributes inherited from ZqbNatGrpMember | |
ZqbNatGroup * | m_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,...) |
Class for interactive putting marks in some set of coordinates provided by some stream.
typedef std::vector<Mark> ZqCoordMarker::Marks |
Array of marks.
typedef std::vector<Mark> ZqCoordMarker::Marks |
Array of marks.
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 |
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 |
Destroy the object detaching the placeholder.
|
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 |
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 |
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 |
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 |
Return true if passed object is in list of compatible documents for this view. Subclasses of ZdCoordObjStream are welcome.
Implements ZqbView.
|
virtual |
Return true if passed object is in list of compatible documents for this view. Subclasses of ZdCoordObjStream are welcome.
Implements ZqbView.
|
virtual |
Return pointer to the stream of coordinates.
|
virtual |
Return pointer to the stream of coordinates.
|
virtual |
Detach stream of coordinates. Marks made continue to exist but are not drawn.
Reimplemented from ZqView.
|
virtual |
Detach stream of coordinates. Marks made continue to exist but are not drawn.
Reimplemented from ZqView.
|
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 |
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 |
Get mark at given coordinate. Matched coordinate is returned if needed.
|
virtual |
Get mark at given coordinate. Matched coordinate is returned if needed.
|
virtual |
Get vector of marks.
|
virtual |
Get vector of marks.
|
virtual |
Get dimension of coordinates of natural group.
|
virtual |
Get dimension of coordinates of natural group.
|
virtual |
Get pen used for marker drawing.
|
virtual |
Get pen used for marker drawing.
|
virtual |
General event processing method.
Reimplemented from ZqObject.
|
virtual |
General event processing method.
Reimplemented from ZqObject.
|
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 |
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 |
Access pen used for marker drawing.
|
virtual |
Access pen used for marker drawing.
|
virtual |
General drawing method - draw all marks.
Reimplemented from ZqObject.
|
virtual |
General drawing method - draw all marks.
Reimplemented from ZqObject.
|
virtual |
Set given mark at the coordinate the most close to given one. Matched coordinate is returned if needed.
|
virtual |
Set given mark at the coordinate the most close to given one. Matched coordinate is returned if needed.
|
virtual |
Set dimension of coordinates of natural group.
|
virtual |
Set dimension of coordinates of natural group.
|
virtual |
Set pen for marker drawing. Default pen color is black.
|
virtual |
Set pen for marker drawing. Default pen color is black.
|
protected |
Natural coordinate orientation regarding screen pixel coordinates.
|
protected |
Stored pen used for marker drawing.
|
protected |
Set of coordinates obtained from stream on attach and associated marks.