UNIVERS
15.3
UNIVERS base processing software API
|
#include <zq_rubberline.hpp>
Public Types | |
enum | RangeMode { Vertical = 0x01, Horizontal = 0x02, Vertical = 0x01, Horizontal = 0x02 } |
enum | RangeMode { Vertical = 0x01, Horizontal = 0x02, Vertical = 0x01, Horizontal = 0x02 } |
Public Member Functions | |
ZqRubberLine (const char *szName=NULL) | |
ZqRubberLine (ZqbPlaceholder *pPh, const char *szName=NULL) | |
virtual void | setThickness (int iThickness) |
virtual int | getThickness () const |
virtual void | setRangeMode (int mMode) |
virtual int | getRangeMode () const |
virtual void | redraw (QPainter &paint) |
virtual ZqbEventHint | input (QEvent &event) |
virtual void | setInputable (bool bFlag) |
virtual void | line (QRect r) |
ZqRubberLine (const char *szName=NULL) | |
ZqRubberLine (ZqbPlaceholder *pPh, const char *szName=NULL) | |
virtual | ~ZqRubberLine () |
virtual bool | attachToPlace (ZqbPlaceholder *pPh) |
virtual bool | detachFromPlace () |
virtual void | setThickness (int iThickness) |
virtual int | getThickness () const |
virtual void | setRangeMode (int mMode) |
virtual int | getRangeMode () const |
virtual void | redraw (QPainter &paint) |
virtual ZqbEventHint | input (QEvent &event) |
virtual void | setInputable (bool bFlag) |
virtual void | line (QRect r) |
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 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 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 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 bool | getRect (QRect &) |
virtual bool | setRect (const QRect &) |
Protected Member Functions | |
void | drawRubberLine (const QRect &p) |
void | drawRubberLine (const QRect &p) |
void | hideRubberLine () |
Protected Attributes | |
bool | m_bDrawn |
QRect | m_qLine |
QPoint | m_qCurrent |
QPoint | m_qStart |
int | m_iThickness |
int | m_mMode |
QRubberBand * | m_qRB |
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 |
Class for interactive rubber line drawing.
ZqRubberLine::ZqRubberLine | ( | const char * | szName = NULL | ) |
Create rubber line object without placeholder.
ZqRubberLine::ZqRubberLine | ( | ZqbPlaceholder * | pPh, |
const char * | szName = NULL |
||
) |
Create rubber line object at given place.
ZqRubberLine::ZqRubberLine | ( | const char * | szName = NULL | ) |
Create rubber line object without placeholder.
ZqRubberLine::ZqRubberLine | ( | ZqbPlaceholder * | pPh, |
const char * | szName = NULL |
||
) |
Create rubber line object at given place.
|
virtual |
Destroy rubber line.
|
virtual |
Attach to the placeholder and return true. If the object is already attached to some placeholder returns false.
Reimplemented from ZqObject.
|
virtual |
Detach from the placeholder and return true. If the object is not attached returns false.
Reimplemented from ZqObject.
|
protected |
Drawing the rectangle using current coordinates of the placeholder, default screen painter and custom thickness. The method does not change or analyze m_bDrawn flag.
|
protected |
Drawing the rectangle using current coordinates of the placeholder, default screen painter and custom thickness. The method does not change or analyze m_bDrawn flag.
|
virtual |
Get mode of rubber line selection. ORed mask of flags is returned.
Get mode of rubber rectangle selection. ORed mask of flags is returned.
|
virtual |
Get mode of rubber line selection. ORed mask of flags is returned.
|
virtual |
Get thickness of the rectangle lines.
|
virtual |
Get thickness of the rectangle lines.
|
protected |
Erasing of drawn rubber line.
|
virtual |
Mouse press/move/release events are processed to obtain target rectangle.
Reimplemented from ZqObject.
|
virtual |
Mouse press/move/release events are processed to obtain target rectangle.
Reimplemented from ZqObject.
|
virtual |
The method is called when rectangle selection is finished. By default it does nothing.
|
virtual |
The method is called when rectangle selection is finished. By default it does nothing.
|
virtual |
Just to mark line as not drawn.
Reimplemented from ZqObject.
|
virtual |
Just to mark line as not drawn.
Reimplemented from ZqObject.
|
virtual |
Remove rubber rectangle on-the-fly if the object is said to become not inputable.
Reimplemented from ZqbVisible.
|
virtual |
Remove rubber rectangle on-the-fly if the object is said to become not inputable.
Reimplemented from ZqbVisible.
|
virtual |
Set mode of rubber line selection: vertical 1D range or horizontal 1D range. ORed flags are welcome.
Set mode of rubber rectangle selection: vertical 1D range, horizontal 1D range or 2D range to select. ORed flags are welcome.
|
virtual |
Set mode of rubber line selection: vertical 1D range or horizontal 1D range. ORed flags are welcome.
|
virtual |
Set thickness of the rectangle lines.
|
virtual |
Set thickness of the rectangle lines.
|
protected |
Flag of drawn line. Since XorROP is used for drawing then drawn twice means erased.
|
protected |
Thickness of lines used for rectangle drawing.
|
protected |
Range mode selection. ORed mask of flags mentioned in enum RangeMode.
|
protected |
Current line coordinates.
|
protected |
Rubber band to draw.