UNIVERS
15.3
UNIVERS base processing software API
|
#include <zqb_bar_buffer.hpp>
Public Member Functions | |
ZqbBarBuffer (QPainter &paint, const QRect &clip, bool bHardcopy) | |
virtual | ~ZqbBarBuffer () |
virtual void | flip (bool new_flag) |
virtual void | drawBar (int pos, int start, int end, int ci) |
virtual void | drawBar (int pos, int start, int end) |
virtual void | setColor (int ci) |
virtual void | flush () |
ZqbBarBuffer (QPainter &paint, const QRect &clip) | |
virtual | ~ZqbBarBuffer () |
virtual void | flip (bool new_flag) |
virtual void | drawBar (int pos, int start, int end, int ci) |
virtual void | drawBar (int pos, int start, int end) |
virtual void | setColor (int ci) |
virtual void | flush () |
Public Member Functions inherited from ZqbBarDraw | |
ZqbBarDraw (QPainter &paint, const QRect &clip, bool bHardcopy) | |
virtual | ~ZqbBarDraw () |
virtual bool | isFlipped () const |
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, const QColor &c) |
ZqbBarDraw (QPainter &paint, const QRect &clip) | |
virtual | ~ZqbBarDraw () |
virtual bool | isFlipped () const |
virtual bool | clipAndFlip (QLine &dest, int pos, int start, int end) |
virtual void | setPalette (const ZqbPalette &zpal) |
virtual void | drawBar (int pos, int start, int end, const QColor &c) |
Protected Member Functions | |
bool | merge_2_bars (int &pos, int &start, int &end) |
bool | merge_2_bars (int &pos, int &start, int &end) |
Protected Attributes | |
int | prev_nocolor_bar |
int | limit |
int * | start_vect |
int * | end_vect |
int * | color_vect |
enum ZqbBarBuffer::SpecType * | spec_vect |
Protected Attributes inherited from ZqbBarDraw | |
bool | m_bFlip |
bool | m_bHardcopy |
QPainter & | m_qPaint |
QRect | m_qClipRect |
ZqbPalette | m_zPal |
int | m_iColor |
QPointArray | m_Buffer |
QVector< QLine > | m_Buffer |
Draw color bars (sticks) with smart bufferization by merging two overlapped sticks of the same color into one stick.
ZqbBarBuffer::ZqbBarBuffer | ( | QPainter & | paint, |
const QRect & | clip, | ||
bool | bHardcopy | ||
) |
Create drawing buffer with given painting device, clip rectangle and drawing algorithm.
|
virtual |
Free resources.
ZqbBarBuffer::ZqbBarBuffer | ( | QPainter & | paint, |
const QRect & | clip | ||
) |
Create drawing buffer with given painting device and clip rectangle.
|
virtual |
Free resources.
|
virtual |
Draw one bar in pointed position from start to end with given color index in attached palette. Drawing is performed into the buffer.
Reimplemented from ZqbBarDraw.
|
virtual |
Draw one bar in pointed position from start to end with given color index in attached palette. Drawing is performed into the buffer.
Reimplemented from ZqbBarDraw.
|
virtual |
Draw one bar in pointed position from start to end with undefined color. It will be known after setColor(). Drawing is performed into the buffer.
Reimplemented from ZqbBarDraw.
|
virtual |
Draw one bar in pointed position from start to end with undefined color. It will be known after setColor(). Drawing is performed into the buffer.
Reimplemented from ZqbBarDraw.
|
virtual |
Interpret position as x-coord (vertical bars – flip false) or as y-coord (horizontal bars – flip true)
Reimplemented from ZqbBarDraw.
|
virtual |
Interpret position as x-coord (vertical bars – flip false) or as y-coord (horizontal bars – flip true)
Reimplemented from ZqbBarDraw.
|
virtual |
Send all accumulated segments (bars) to the graphics device.
Reimplemented from ZqbBarDraw.
|
virtual |
Send all accumulated segments (bars) to the graphics device.
Reimplemented from ZqbBarDraw.
|
protected |
Merges two bars and returns true if it's needed flush bar with returned coords.
|
protected |
Merges two bars and returns true if it's needed flush bar with returned coords.
|
virtual |
Assign color index to all previously "drawn" bars.
Reimplemented from ZqbBarDraw.
|
virtual |
Assign color index to all previously "drawn" bars.
Reimplemented from ZqbBarDraw.
|
protected |
line of color indeces
|
protected |
line of sticks' ends
|
protected |
number of items in arrays
|
protected |
species
|
protected |
line of sticks' starts