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

#include <zq_grid.hpp>

Inheritance diagram for ZqGrid:
ZqObject ZqbNatGrpMember ZqObject ZqbNatGrpMember ZqbVisible ZqbAutoName ZqbVisible ZqbAutoName ZqbVisible ZqbAutoName ZqbVisible ZqbAutoName

Public Member Functions

 ZqGrid (ZqbNatGroup &rNatAxis, Qt::Orientation eAxisOrient, const char *szName=NULL)
 
 ZqGrid (ZqbNatGroup &rNatAxis, Qt::Orientation eAxisOrient, ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual void setPen (const QPen &pen)
 
virtual const QPen & getPen () const
 
virtual QPen & pen ()
 
virtual void setIntegerTicks (bool bFlag)
 
virtual bool isIntegerTicks () const
 
virtual void redraw (QPainter &paint)
 
 ZqGrid (ZqbNatGroup &rNatAxis, Qt::Orientation eAxisOrient, const char *szName=NULL)
 
 ZqGrid (ZqbNatGroup &rNatAxis, Qt::Orientation eAxisOrient, ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual void setPen (const QPen &pen)
 
virtual const QPen & getPen () const
 
virtual QPen & pen ()
 
virtual void setIntegerTicks (bool bFlag)
 
virtual bool isIntegerTicks () const
 
virtual void redraw (QPainter &paint)
 
- 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 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 ZqbEventHint input (QEvent &event)
 
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 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_qLinePen
 
bool m_bIntegerTicks
 
Qt::Orientation m_eAxisOrient
 
- 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
 

Detailed Description

Object for grid drawing. The step of grid is ruled by ZqbNatGroup::calcTicks() method.

test_zq_grid_1.png

Constructor & Destructor Documentation

ZqGrid::ZqGrid ( ZqbNatGroup rNatAxis,
Qt::Orientation  eAxisOrient,
const char *  szName = NULL 
)

Create one dimension grid of given natural axis and its orientation. Initially placeholder is not specified.

ZqGrid::ZqGrid ( ZqbNatGroup rNatAxis,
Qt::Orientation  eAxisOrient,
ZqbPlaceholder pPh,
const char *  szName = NULL 
)

Create one dimension grid of given natural axis and its orientation and place it into given placeholder.

ZqGrid::ZqGrid ( ZqbNatGroup rNatAxis,
Qt::Orientation  eAxisOrient,
const char *  szName = NULL 
)

Create one dimension grid of given natural axis and its orientation. Initially placeholder is not specified.

ZqGrid::ZqGrid ( ZqbNatGroup rNatAxis,
Qt::Orientation  eAxisOrient,
ZqbPlaceholder pPh,
const char *  szName = NULL 
)

Create one dimension grid of given natural axis and its orientation and place it into given placeholder.

Member Function Documentation

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

Get pen used for grid line drawing.

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

Get pen used for grid line drawing.

INLINE bool ZqGrid::isIntegerTicks ( ) const
virtual

Return flag of integer numbers used for ticks.

virtual bool ZqGrid::isIntegerTicks ( ) const
virtual

Return flag of integer numbers used for ticks.

virtual QPen& ZqGrid::pen ( )
virtual

Access current value of pen for grid line drawing.

INLINE QPen & ZqGrid::pen ( )
virtual

Access current value of pen for grid line drawing.

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

General drawing method.

Reimplemented from ZqObject.

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

General drawing method.

Reimplemented from ZqObject.

INLINE void ZqGrid::setIntegerTicks ( bool  bFlag)
virtual

Set flag of integer numbers used for ticks. It allows to prevent drawing grid lines for not-labeled tick positions.

virtual void ZqGrid::setIntegerTicks ( bool  bFlag)
virtual

Set flag of integer numbers used for ticks. It allows to prevent drawing grid lines for not-labeled tick positions.

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

Set pen for grid line drawing. Default pen has zero width, DotLine method and gray color.

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

Set pen for grid line drawing. Default pen has zero width, DotLine method and gray color.

Member Data Documentation

bool ZqGrid::m_bIntegerTicks
protected

Flag of drawing grid lines only for labeled ticks. false by default.

Qt::Orientation ZqGrid::m_eAxisOrient
protected

Axis orientation. Horizontal means vertical grid lines, vertical means horizontal grid lines.

QPen ZqGrid::m_qLinePen
protected

Grid line pen.


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