| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
#ifndef _PAIRMAPCANVAS_HH |
|---|
| 20 |
#define _PAIRMAPCANVAS_HH |
|---|
| 21 |
|
|---|
| 22 |
#include "_Canvas.hh" |
|---|
| 23 |
|
|---|
| 24 |
namespace gui { |
|---|
| 25 |
class _PairMapCanvas : public _Canvas { |
|---|
| 26 |
private: |
|---|
| 27 |
int _top_x, _top_w, _top_y; |
|---|
| 28 |
int _bot_x, _bot_w, _bot_y; |
|---|
| 29 |
|
|---|
| 30 |
int _top_start, _top_end; |
|---|
| 31 |
int _bot_start, _bot_end; |
|---|
| 32 |
|
|---|
| 33 |
|
|---|
| 34 |
float _top_scale, _bot_scale; |
|---|
| 35 |
|
|---|
| 36 |
|
|---|
| 37 |
void recompute(); |
|---|
| 38 |
public: |
|---|
| 39 |
_PairMapCanvas() { |
|---|
| 40 |
_top_x = _top_w = _top_y = _top_start = _top_end = -1; |
|---|
| 41 |
_bot_x = _bot_w = _bot_y = _bot_start = _bot_end = -1; |
|---|
| 42 |
} |
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 |
void set_top_canvas_coords(int x_start, int width, int y); |
|---|
| 46 |
void set_bot_canvas_coords(int x_start, int width, int y); |
|---|
| 47 |
|
|---|
| 48 |
|
|---|
| 49 |
void set_top_sequence_coords(int start, int end); |
|---|
| 50 |
void set_bot_sequence_coords(int start, int end); |
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 |
const int get_top_start() const { return _top_start; } |
|---|
| 54 |
const int get_bot_start() const { return _bot_start; } |
|---|
| 55 |
const int get_top_end() const { return _top_end; } |
|---|
| 56 |
const int get_bot_end() const { return _bot_end; } |
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 |
|
|---|
| 60 |
void draw_feature(int top_pos, int bot_pos, unsigned int width, |
|---|
| 61 |
int orientation); |
|---|
| 62 |
void draw_feature(int top_pos, int bot_pos); |
|---|
| 63 |
|
|---|
| 64 |
void push_clip(); |
|---|
| 65 |
}; |
|---|
| 66 |
} |
|---|
| 67 |
|
|---|
| 68 |
#endif |
|---|
| 69 |
|
|---|