Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

SeqDNA Class Reference

Sequence display class showing DNA. More...

#include <SequenceCanvas.h>

Inheritance diagram for SeqDNA:

SeqBasic SeqABI SeqFeature SeqPlot SeqPrimer List of all members.

Public Member Functions

 SeqDNA (SequenceCanvas *ncan=NULL)
 Constructor.
virtual int arrange (int n)
 Arrange "chars" as line n.
virtual void show (wxDC &dc)
 Arrange "chars" as line n.
virtual void initFromTVector (TVector *v)
 Set from a TVector class.
virtual wxString whatsthis ()
 Returns the linetype.
virtual wxPoint showText (int ystart, wxArrayString &tout)
 Show as text (rarely used).
virtual wxColor getBaseColor (char b)
 Returns the color to draw a base/nucleotide in.
virtual int arrange_direct (int n)
 Arrange quickly (bypassing SeqPos).
virtual void show_direct (wxDC &dc)
 Show quickly.
virtual void makeEndnumberLength ()
 Calculates the width needed for the leading numbers.
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.

Public Attributes

TVectorvec
 Pointer to the vector containing the DNA sequence.
bool showNumbers
 Show leading numbers? (Not for IDNA, for example).
wxColour fontColor
 The default font color.
wxString alternateName
 An alternate name, to display instead of the leading numbers.
bool invers
 This sequence is inverse DNA.

Detailed Description

Sequence display class showing DNA.


Constructor & Destructor Documentation

SeqDNA::SeqDNA SequenceCanvas ncan = NULL  )  [inline]
 

Constructor.


Member Function Documentation

int SeqDNA::arrange int  n  )  [virtual]
 

Arrange "chars" as line n.

Reimplemented from SeqBasic.

Reimplemented in SeqABI, and SeqPlot.

int SeqDNA::arrange_direct int  n  )  [virtual]
 

Arrange quickly (bypassing SeqPos).

Reimplemented from SeqBasic.

Reimplemented in SeqPrimer, SeqABI, SeqFeature, and SeqPlot.

wxColor SeqDNA::getBaseColor char  b  )  [virtual]
 

Returns the color to draw a base/nucleotide in.

Reimplemented in SeqABI.

int SeqDNA::getItem wxPoint  pt,
int  line
[virtual]
 

Returns the "char" at that position.

Reimplemented from SeqBasic.

int SeqDNA::getLine int  y  )  [virtual]
 

Returns the line number for the y position.

Reimplemented from SeqBasic.

int SeqDNA::getMark int  i  )  [virtual]
 

Returns the mark value for a "char".

Reimplemented from SeqBasic.

int SeqDNA::getMarkSize  )  [virtual]
 

Returns the length of the SeqPos marked part of the sequence.

Reimplemented from SeqBasic.

int SeqDNA::getPos int  i  )  [virtual]
 

Returns the internal ID of the "char".

Reimplemented from SeqBasic.

wxRect SeqDNA::getRect int  i  )  [virtual]
 

Returns the SeqPos rect for a "char".

Reimplemented from SeqBasic.

int SeqDNA::getRectSize  )  [virtual]
 

Returns the number of SeqPos rectangles.

Reimplemented from SeqBasic.

void SeqDNA::initFromTVector TVector v  )  [virtual]
 

Set from a TVector class.

Reimplemented from SeqBasic.

Reimplemented in SeqPrimer, SeqFeature, and SeqPlot.

void SeqDNA::makeEndnumberLength  )  [virtual]
 

Calculates the width needed for the leading numbers.

Reimplemented from SeqBasic.

void SeqDNA::setMark int  i,
int  v
[virtual]
 

Sets the marking of a "char".

Reimplemented from SeqBasic.

void SeqDNA::setPos int  i,
int  v
[virtual]
 

Sets the internal ID of the "char".

Reimplemented from SeqBasic.

void SeqDNA::show wxDC &  dc  )  [virtual]
 

Arrange "chars" as line n.

Reimplemented from SeqBasic.

Reimplemented in SeqPrimer, SeqABI, SeqFeature, and SeqPlot.

void SeqDNA::show_direct wxDC &  dc  )  [virtual]
 

Show quickly.

Reimplemented from SeqBasic.

Reimplemented in SeqPrimer, SeqABI, SeqFeature, and SeqPlot.

wxPoint SeqDNA::showText int  ystart,
wxArrayString &  tout
[virtual]
 

Show as text (rarely used).

Reimplemented from SeqBasic.

bool SeqDNA::useDirectRoutines  )  [virtual]
 

Do we draw directly (or do we use SeqPos)?

Reimplemented from SeqBasic.

Reimplemented in SeqPrimer, SeqABI, SeqFeature, and SeqPlot.

virtual wxString SeqDNA::whatsthis  )  [inline, virtual]
 

Returns the linetype.

Reimplemented from SeqBasic.

Reimplemented in SeqPrimer, SeqABI, SeqFeature, and SeqPlot.


Member Data Documentation

wxString SeqDNA::alternateName
 

An alternate name, to display instead of the leading numbers.

wxColour SeqDNA::fontColor
 

The default font color.

bool SeqDNA::invers
 

This sequence is inverse DNA.

bool SeqDNA::showNumbers
 

Show leading numbers? (Not for IDNA, for example).

TVector* SeqDNA::vec
 

Pointer to the vector containing the DNA sequence.


The documentation for this class was generated from the following files:
Generated on Fri Aug 11 16:19:45 2006 for GENtle by  doxygen 1.4.1