#include <SequenceCanvas.h>
Inheritance diagram for SeqBasic:
Public Member Functions | |
SeqBasic (SequenceCanvas *ncan=NULL) | |
Constructor. | |
virtual | ~SeqBasic () |
Destructor. | |
virtual void | init (SequenceCanvas *ncan=NULL) |
Initialization. | |
virtual void | initFromTVector (TVector *v) |
Set from a TVector class. | |
virtual int | arrange (int n) |
virtual void | show (wxDC &dc) |
Arrange "chars" as line n. | |
virtual wxPoint | showText (int ystart, wxArrayString &tout) |
Show. | |
virtual wxString | whatsthis () |
Returns the linetype. | |
virtual void | makeEndnumberLength () |
virtual bool | useDirectRoutines () |
Do we draw directly (or do we use SeqPos)? | |
virtual int | getMarkSize () |
Returns the length of the SeqPos marked part of the sequence. | |
virtual int | getRectSize () |
Returns the number of SeqPos rectangles. | |
virtual wxRect | getRect (int i) |
Returns the SeqPos rect for a "char". | |
virtual int | getMark (int i) |
Returns the mark value for a "char". | |
virtual void | setMark (int i, int v) |
Sets the marking of a "char". | |
virtual int | getPos (int i) |
Returns the internal ID of the "char". | |
virtual void | setPos (int i, int v) |
Sets the internal ID of the "char". | |
virtual int | getLine (int y) |
Returns the line number for the y position. | |
virtual int | getItem (wxPoint pt, int line) |
Returns the "char" at that position. | |
virtual bool | isDisplayOnly () |
Do we show something? | |
virtual void | logsize () |
Some memory calculation for debugging, I think... | |
virtual void | editMode (bool on=true) |
Set edit mode for this sequence line. | |
virtual void | addHighlight (int from, int to, wxColour c) |
Adds a sequence highlight. | |
virtual wxColour | getHighlightColor (int pos, wxColour c) |
Sets the color to the highlight color, if the position is highlighted. | |
virtual void | clearHighlights () |
Removes all highlights. | |
Public Attributes | |
wxString | s |
The sequence as a text; may be blank for some linetypes. | |
int | offset |
int | endnumberlength |
int | itemsperline |
SequenceCanvas * | can |
The containing SequenceCanvas. | |
bool | takesMouseActions |
bool | shown |
Protected Member Functions | |
virtual int | arrange_direct (int n) |
Arrange quickly (bypassing SeqPos). | |
virtual void | show_direct (wxDC &dc) |
Protected Attributes | |
wxArrayInt | highlight_begin |
Show quickly. | |
wxArrayInt | highlight_end |
Show quickly. | |
vector< wxColour > | highlight_color |
SeqPos | pos |
Position class (empty when using direct routines). | |
int | force_add_line_number |
Default counter to add to the line number display; usually 0. |
|
Constructor.
|
|
Destructor.
|
|
Adds a sequence highlight.
|
|
Reimplemented in SeqNum, SeqDivider, SeqDNA, SeqAlign, SeqRestriction, SeqAA, SeqAAstructure, SeqABI, and SeqPlot. |
|
Arrange quickly (bypassing SeqPos).
Reimplemented in SeqDNA, SeqPrimer, SeqAA, SeqABI, SeqFeature, and SeqPlot. |
|
Removes all highlights.
|
|
Set edit mode for this sequence line.
|
|
Sets the color to the highlight color, if the position is highlighted.
|
|
Returns the "char" at that position.
|
|
Returns the line number for the y position.
|
|
Returns the mark value for a "char".
|
|
Returns the length of the SeqPos marked part of the sequence.
|
|
Returns the internal ID of the "char".
|
|
Returns the SeqPos rect for a "char".
|
|
Returns the number of SeqPos rectangles.
|
|
Initialization.
Reimplemented in SeqPlot. |
|
Set from a TVector class.
Reimplemented in SeqDivider, SeqDNA, SeqPrimer, SeqRestriction, SeqAA, SeqFeature, and SeqPlot. |
|
Do we show something?
Reimplemented in SeqNum, SeqDivider, SeqBlank, SeqRestriction, and SeqFeature. |
|
Some memory calculation for debugging, I think...
Reimplemented in SeqAA. |
|
|
|
Sets the marking of a "char".
|
|
Sets the internal ID of the "char".
|
|
Arrange "chars" as line n.
Reimplemented in SeqNum, SeqDivider, SeqBlank, SeqDNA, SeqPrimer, SeqAlign, SeqRestriction, SeqAA, SeqAAstructure, SeqABI, SeqFeature, and SeqPlot. |
|
Reimplemented in SeqDNA, SeqPrimer, SeqAA, SeqABI, SeqFeature, and SeqPlot. |
|
Show.
|
|
Do we draw directly (or do we use SeqPos)?
Reimplemented in SeqDNA, SeqPrimer, SeqRestriction, SeqAA, SeqABI, SeqFeature, and SeqPlot. |
|
Returns the linetype.
Reimplemented in SeqNum, SeqDivider, SeqBlank, SeqDNA, SeqPrimer, SeqAlign, SeqRestriction, SeqAA, SeqAAstructure, SeqABI, SeqFeature, and SeqPlot. |
|
The containing SequenceCanvas.
|
|
|
|
Default counter to add to the line number display; usually 0.
|
|
Show quickly.
|
|
|
|
Show quickly.
|
|
|
|
|
|
Position class (empty when using direct routines).
|
|
The sequence as a text; may be blank for some linetypes.
|
|
|
|
|