UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
zqb_bar_buffer.hpp
1 /* zqb_bar_buffer.hpp */
2 /* $Id: zqb_bar_buffer.hpp 20080 2009-12-15 15:57:52Z vlad $
3  Instantiated from ZBarBuffer.H Revision: 1.4 Date: 2003/12/10 08:54:35
4  */
5 #ifndef __zqb_bar_buffer_hpp
6 #define __zqb_bar_buffer_hpp
7 
8 #include "zqb_bar_draw.hpp"
9 
10 
18 class ZqbBarBuffer : public ZqbBarDraw
19 {
20 protected:
21 
22  int prev_nocolor_bar;
23  int limit;
24  int *start_vect;
25  int *end_vect;
26  int *color_vect;
28  enum SpecType {
29  NoStick = 0,
30  ColorWillBeLater,
31  StickIsHere
32  } *spec_vect;
36  bool merge_2_bars (int& pos, int& start, int& end);
37 
38 public:
39 
42  ZqbBarBuffer (QPainter& paint, const QRect& clip);
43 
45  virtual ~ZqbBarBuffer ();
46 
49  virtual void flip (bool new_flag);
50 
54  virtual void drawBar (int pos, int start, int end, int ci);
55 
59  virtual void drawBar (int pos, int start, int end);
60 
62  virtual void setColor (int ci);
63 
65  virtual void flush ();
66 
67 };
68 
69 
70 #endif /* zqb_bar_buffer.hpp */
ZqbBarBuffer(QPainter &paint, const QRect &clip, bool bHardcopy)
enum ZqbBarBuffer::SpecType * spec_vect
virtual void drawBar(int pos, int start, int end, int ci)
virtual ~ZqbBarBuffer()
int * end_vect
Definition: zqb_bar_buffer.hpp:25
int * color_vect
Definition: zqb_bar_buffer.hpp:26
Definition: zqb_bar_buffer.hpp:18
virtual void setColor(int ci)
virtual void flush()
virtual void flip(bool new_flag)
int limit
Definition: zqb_bar_buffer.hpp:23
int * start_vect
Definition: zqb_bar_buffer.hpp:24
Definition: zqb_bar_draw.hpp:17
bool merge_2_bars(int &pos, int &start, int &end)