![]() |
UNIVERS
15.3
UNIVERS base processing software API
|
#include <zq_custom_scale.hpp>
Classes | |
| class | DefCoordObjStream |
Public Member Functions | |
| ZqCustomScale (ZqbNatGroup &rNatAxis, const char *szName=NULL) | |
| ZqCustomScale (ZqbNatGroup &rNatAxis, ZqbPlaceholder *pPh, const char *szName=NULL) | |
| virtual bool | compatibleDoc (const ZdDocument *pDoc) const |
| virtual void | attachStream (ZdCoordObjStream *pStream) |
| virtual void | detachDoc () |
| virtual ZdCoordObjStream * | stream () |
| void | redefineCustomCoord (int coordId) |
| int | getRedefinedCustomCoord () |
| void | setDefaultCustomCoord () |
| virtual void | redraw (QPainter &paint) |
Public Member Functions inherited from ZqScale | |
| ZqScale (ZqbNatGroup &rNatAxis, const char *szName=NULL) | |
| ZqScale (ZqbNatGroup &rNatAxis, ZqbPlaceholder *pPh, const char *szName=NULL) | |
| virtual void | setPen (const QPen &pen) |
| virtual const QPen & | getPen () const |
| virtual QPen & | pen () |
| virtual void | setFont (const QFont &font) |
| virtual const QFont & | getFont () const |
| virtual QFont & | font () |
| virtual void | setPlacement (Placement ePlacement) |
| virtual Placement | getPlacement () const |
| virtual void | setIntegerTicks (bool bFlag) |
| virtual bool | isIntegerTicks () const |
| virtual void | setAxisDecor (int mMode) |
| virtual int | getAxisDecor () const |
| virtual void | updateLimits (QPainter *paint=NULL) |
| virtual void | onSetCoords () |
| virtual QString | prepareLabel (double fCoord) |
| virtual void | prepareTicks (ZqbNatGroup::Ticks &ticks) |
| virtual bool | insideRect (QPoint p) |
| bool | isRect (QPoint p) |
| ZqScale (ZqbNatGroup &rNatAxis, const char *szName=NULL) | |
| ZqScale (ZqbNatGroup &rNatAxis, ZqbPlaceholder *pPh, const char *szName=NULL) | |
| virtual void | setPen (const QPen &pen) |
| virtual const QPen & | getPen () const |
| virtual QPen & | pen () |
| virtual void | setFont (const QFont &font) |
| virtual const QFont & | getFont () const |
| virtual QFont & | font () |
| virtual void | setPlacement (Placement ePlacement) |
| virtual Placement | getPlacement () const |
| virtual void | setIntegerTicks (bool bFlag) |
| virtual bool | isIntegerTicks () const |
| virtual void | setAxisDecor (int mMode) |
| virtual int | getAxisDecor () const |
| virtual void | updateLimits (QPainter *paint=NULL) |
| virtual void | onSetCoords () |
| virtual QString | prepareLabel (double fCoord) |
| virtual void | prepareTicks (ZqbNatGroup::Ticks &ticks) |
| virtual bool | insideRect (QPoint p) |
| bool | isRect (QPoint p) |
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 ZqbEventHint | input (QEvent &event) |
| 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 ZqbEventHint | input (QEvent &event) |
| 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 | 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 |
Protected Member Functions | |
| virtual void | adjustSizeLimits (QPainter &paint) |
| void | draw_scale (QPainter &paint, ZdCoordObjStream *ipStream) |
| virtual QString | prepareLabel (ZdCoordObjStream *ipStream) |
Protected Member Functions inherited from ZqScale | |
| void | adjustSizeLimits (QPainter &paint) |
Protected Attributes | |
| ZdCoordObjStream * | m_pStream |
| bool | m_bDefaultCustomCoord |
| int | m_CustomCoordId |
Protected Attributes inherited from ZqScale | |
| QPen | m_qPen |
| QFont | m_qFont |
| Placement | m_ePlacement |
| bool | m_bIntegerLabels |
| int | m_mAxisDecor |
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 | |
Public Types inherited from ZqScale | |
| enum | Placement { Undefined, TopSide, BottomSide, LeftSide, RightSide, Undefined, TopSide, BottomSide, LeftSide, RightSide } |
| enum | AxisDecor { Standard = 0x0000, NoSubticks = 0x0001, NoTicks = 0x0002, NoLabels = 0x0004, Standard = 0x0000, NoSubticks = 0x0001, NoTicks = 0x0002, NoLabels = 0x0004 } |
| enum | Placement { Undefined, TopSide, BottomSide, LeftSide, RightSide, Undefined, TopSide, BottomSide, LeftSide, RightSide } |
| enum | AxisDecor { Standard = 0x0000, NoSubticks = 0x0001, NoTicks = 0x0002, NoLabels = 0x0004, Standard = 0x0000, NoSubticks = 0x0001, NoTicks = 0x0002, NoLabels = 0x0004 } |
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,...) |
Static Public Attributes inherited from ZqScale | |
| static int | s_iMainTickSize |
| static int | s_iSecTickSize |
| static int | s_iLabelOffset |
| static int | s_iBetweenLabels |
Object for scale drawing.
| ZqCustomScale::ZqCustomScale | ( | ZqbNatGroup & | rNatAxis, |
| const char * | szName = NULL |
||
| ) |
Create scale object without placeholder. Natural coordinates group is provided.
| ZqCustomScale::ZqCustomScale | ( | ZqbNatGroup & | rNatAxis, |
| ZqbPlaceholder * | pPh, | ||
| const char * | szName = NULL |
||
| ) |
Create scale object at given place. Natural coordinates group is provided.
|
protectedvirtual |
Adjust limitations of the scale according to current painter device settings.
Reimplemented from ZqScale.
|
virtual |
Attach some stream with custom values for every coordinate.
|
virtual |
Return true if passed object is in list of compatible documents for this view. ZdCoordObjStream and subclasses are welcome.
Reimplemented from ZqScale.
|
virtual |
Detach trace disabling drawin in single trace mode. Withdraws information about ranges for coordinate and time of the trace.
Reimplemented from ZqView.
|
protected |
Draw scale for provided stream pointer.
|
inline |
Get redefined custom coord.
|
protectedvirtual |
Prepare string with label for the current stream position.
| void ZqCustomScale::redefineCustomCoord | ( | int | coordId | ) |
Redefine custom coordinate for stream data document object.
|
virtual |
Draw scale.
Reimplemented from ZqScale.
| void ZqCustomScale::setDefaultCustomCoord | ( | ) |
Set default custom coordinate, defined inside stream data doc object.
|
virtual |
Return pointer to attached trace.
|
protected |
Use default custom coordinate flag.
|
protected |
Current custom coordinate id.
|
protected |
Stream with coordinates and custom values
1.8.5