#include <SequenceCanvas.h>
Public Member Functions | |
| SeqPos () | |
| virtual | ~SeqPos () |
| Constructor (empty). | |
| virtual void | cleanup () |
| Empty the class. | |
| virtual void | add (int np, int x, int y, int w, int h, bool memsave=false) |
| Add a "char". | |
| virtual void | addline (int from, int to, int vfrom, int vto) |
| Add a "virtual" line (for faster seeking where the mouse cursor is over). | |
| virtual int | getLine (int y) |
| Gets a line for the y position. | |
| virtual int | getItem (wxPoint pt, int line) |
| Gets the item in the line for the position. | |
| virtual void | reserve (int n, int n2=-1, bool memsave=false) |
| Reserves memory (faster for huge sequences). | |
| virtual void | mark (int where, int value) |
| Mark part of the sequence. | |
| virtual int | getmark (int where) |
| The "type" of marikg at the position. | |
Public Attributes | |
| wxArrayInt | p |
| The data. | |
| wxString | m |
| The marking data. | |
| vector< wxRect > | r |
| Bounding rectangles for the data. | |
| vector< wxRect > | l |
| Bounding rectangles for the lines. | |
Private Attributes | |
| wxArrayInt | mark_from |
| wxArrayInt | mark_to |
| int | mark_value |
The vectors p, r and m are always the same size, and contain information about the same item at the same index:
p contains the seqeunce position matching the item
r contains the visual position of the item
m contains the marking of the item:
0 = not marked
1 = marked
2 = cursor in edit mode
Vector l contains additional positioning information, namely the visual position of a horizontal line of items, for faster access when trying to determine the target of a mouse click
|
|
|
|
|
Constructor (empty).
|
|
||||||||||||||||||||||||||||
|
Add a "char".
|
|
||||||||||||||||||||
|
Add a "virtual" line (for faster seeking where the mouse cursor is over).
|
|
|
Empty the class.
|
|
||||||||||||
|
Gets the item in the line for the position.
|
|
|
Gets a line for the y position.
|
|
|
The "type" of marikg at the position.
|
|
||||||||||||
|
Mark part of the sequence.
|
|
||||||||||||||||
|
Reserves memory (faster for huge sequences).
|
|
|
Bounding rectangles for the lines.
|
|
|
The marking data.
|
|
|
|
|
|
|
|
|
|
|
|
The data.
|
|
|
Bounding rectangles for the data.
|
1.4.1