UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
zqb_bar_draw.hpp
1 /* zqb_bar_draw.hpp */
2 /* $Id: zqb_bar_draw.hpp,v 1.5 2006/05/19 12:26:11 guser4 Exp $
3  Instantiated from ZBarDraw.H Revision: 1.7 Date: 2003/01/31 17:11:47
4  */
5 #ifndef __zqb_bar_draw_hpp
6 #define __zqb_bar_draw_hpp
7 
8 #include <qpainter.h>
9 
10 #include "zqb_palette.hpp"
11 
12 
18 {
19 protected:
20 
23  bool m_bFlip;
24 
29 
31  QPainter &m_qPaint;
32 
34  QRect m_qClipRect;
35 
38 
41  int m_iColor;
42 
44  QPointArray m_Buffer;
45 
46 public:
47 
51  ZqbBarDraw (QPainter& paint, const QRect& clip, bool bHardcopy);
52 
54  virtual ~ZqbBarDraw ();
55 
56 
59  virtual void flip (bool new_flag) {
60  m_bFlip = new_flag;
61  }
62 
64  virtual bool isFlipped () const {
65  return m_bFlip;
66  }
67 
70  virtual bool clipAndFlip (QPointArray& dest, int pos,
71  int start, int end);
72 
74  virtual void setPalette (const ZqbPalette& zpal);
75 
79  virtual void drawBar (int pos, int start, int end, int ci);
80 
84  virtual void drawBar (int pos, int start, int end, const QColor& c);
85 
89  virtual void drawBar (int pos, int start, int end);
90 
92  virtual void setColor (int ci);
93 
95  virtual void flush ();
96 
97 };
98 
99 
100 #endif /* zqb_bar_draw.hpp */
bool m_bFlip
Definition: zqb_bar_draw.hpp:23
bool m_bHardcopy
Definition: zqb_bar_draw.hpp:28
virtual void flush()
virtual void flip(bool new_flag)
Definition: zqb_bar_draw.hpp:59
virtual void setColor(int ci)
ZqbPalette m_zPal
Definition: zqb_bar_draw.hpp:37
QPainter & m_qPaint
Definition: zqb_bar_draw.hpp:31
virtual bool isFlipped() const
Definition: zqb_bar_draw.hpp:64
virtual ~ZqbBarDraw()
QPointArray m_Buffer
Definition: zqb_bar_draw.hpp:44
virtual bool clipAndFlip(QPointArray &dest, int pos, int start, int end)
virtual void setPalette(const ZqbPalette &zpal)
virtual void drawBar(int pos, int start, int end, int ci)
ZqbBarDraw(QPainter &paint, const QRect &clip, bool bHardcopy)
Definition: zqb_bar_draw.hpp:17
QRect m_qClipRect
Definition: zqb_bar_draw.hpp:34
Definition: zqb_palette.hpp:17
int m_iColor
Definition: zqb_bar_draw.hpp:41