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

#include <zq_custom_scale.hpp>

Inheritance diagram for ZqCustomScale:
ZqScale ZqView ZqbNatGrpMember ZqObject ZqbNatGrpMember ZqbVisible ZqbAutoName ZqbVisible ZqbAutoName ZqbView ZqObject ZqbView ZqObject

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 ZdCoordObjStreamstream ()
 
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 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 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 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
 

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

ZdCoordObjStreamm_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
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

- 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
 

Detailed Description

Object for scale drawing.

test_zq_scale_1.png

Constructor & Destructor Documentation

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.

Member Function Documentation

virtual void ZqCustomScale::adjustSizeLimits ( QPainter &  paint)
protectedvirtual

Adjust limitations of the scale according to current painter device settings.

Reimplemented from ZqScale.

virtual void ZqCustomScale::attachStream ( ZdCoordObjStream pStream)
virtual

Attach some stream with custom values for every coordinate.

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

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

Reimplemented from ZqScale.

virtual void ZqCustomScale::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 ZqCustomScale::draw_scale ( QPainter &  paint,
ZdCoordObjStream ipStream 
)
protected

Draw scale for provided stream pointer.

int ZqCustomScale::getRedefinedCustomCoord ( )
inline

Get redefined custom coord.

virtual QString ZqCustomScale::prepareLabel ( ZdCoordObjStream ipStream)
protectedvirtual

Prepare string with label for the current stream position.

void ZqCustomScale::redefineCustomCoord ( int  coordId)

Redefine custom coordinate for stream data document object.

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

Draw scale.

Reimplemented from ZqScale.

void ZqCustomScale::setDefaultCustomCoord ( )

Set default custom coordinate, defined inside stream data doc object.

virtual ZdCoordObjStream* ZqCustomScale::stream ( )
virtual

Return pointer to attached trace.

Member Data Documentation

bool ZqCustomScale::m_bDefaultCustomCoord
protected

Use default custom coordinate flag.

int ZqCustomScale::m_CustomCoordId
protected

Current custom coordinate id.

ZdCoordObjStream* ZqCustomScale::m_pStream
protected

Stream with coordinates and custom values


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