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
ZqBBox Class Reference

#include <zq_bbox.hpp>

Inheritance diagram for ZqBBox:
ZqObject ZqObject ZqbVisible ZqbAutoName ZqbVisible ZqbAutoName ZqbVisible ZqbAutoName ZqbVisible ZqbAutoName

Public Member Functions

 ZqBBox (const char *szName=NULL)
 
 ZqBBox (ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual void setPen (const QPen &pen)
 
virtual const QPen & getPen () const
 
virtual QPen & pen ()
 
virtual void setOffset (int offset)
 
virtual int getOffset () const
 
virtual void redraw (QPainter &paint)
 
 ZqBBox (const char *szName=NULL)
 
 ZqBBox (ZqbPlaceholder *pPh, const char *szName=NULL)
 
virtual void setPen (const QPen &pen)
 
virtual const QPen & getPen () const
 
virtual QPen & pen ()
 
virtual void setOffset (int offset)
 
virtual int getOffset () 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 &)
 

Protected Attributes

QPen m_qPen
 
int m_iOffset
 
- 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
 

Detailed Description

Simple object which draws bounding box around own placeholder.

By default bounding box is drawn exactly on the border of the placeholder by thin (0 width) line and black color, but these properties may be customized.

Constructor & Destructor Documentation

ZqBBox::ZqBBox ( const char *  szName = NULL)

Create bounding box without placeholder.

ZqBBox::ZqBBox ( ZqbPlaceholder pPh,
const char *  szName = NULL 
)

Create bounding box at given place.

ZqBBox::ZqBBox ( const char *  szName = NULL)

Create bounding box without placeholder.

ZqBBox::ZqBBox ( ZqbPlaceholder pPh,
const char *  szName = NULL 
)

Create bounding box at given place.

Member Function Documentation

INLINE int ZqBBox::getOffset ( ) const
virtual

Get offset of rectangle to placeholder bounds.

virtual int ZqBBox::getOffset ( ) const
virtual

Get offset of rectangle to placeholder bounds.

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

Get pen used for drawing.

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

Get pen used for drawing.

virtual QPen& ZqBBox::pen ( )
virtual

Access pen for rectangle drawing.

INLINE QPen & ZqBBox::pen ( )
virtual

Access pen for rectangle drawing.

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

Draw bounding box.

Reimplemented from ZqObject.

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

Draw bounding box.

Reimplemented from ZqObject.

INLINE void ZqBBox::setOffset ( int  offset)
virtual

Set offset from placeholder bounds to rectangle to draw. Zero means drawing bounding rectangle. Positive value enlarges rectangle outside placeholder. Negative value makes rectangle inside placeholder. Default value of offset is 1.

virtual void ZqBBox::setOffset ( int  offset)
virtual

Set offset from placeholder bounds to rectangle to draw. Zero means drawing bounding rectangle. Positive value enlarges rectangle outside placeholder. Negative value makes rectangle inside placeholder. Default value of offset is 1.

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

Set pen for bounding box drawing. Default pen has zero width and solid line of black color.

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

Set pen for bounding box drawing. Default pen has zero width and solid line of black color.

Member Data Documentation

int ZqBBox::m_iOffset
protected

Stored value for offset between rectangle to draw and placeholder bounds. Positive offset enlarges rectangle outside placeholder. Negative offset shrinks rectangle inside placeholder.

QPen ZqBBox::m_qPen
protected

Stored pen used for drawing rectangular area around placeholder bounds.


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