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

SeqPlot Class Reference

Sequence display class showing plot data in the amino acid module. More...

#include <SequenceCanvas.h>

Inheritance diagram for SeqPlot:

SeqDNA SeqBasic List of all members.

Public Member Functions

 SeqPlot (SequenceCanvas *ncan=NULL)
 Constructor.
virtual void show (wxDC &dc)
 Show.
virtual wxString whatsthis ()
 Returns the linetype.
virtual void initFromTVector (TVector *v)
 Set from a TVector class.
virtual int arrange (int n)
 Arrange "chars" as line n.
virtual void setLines (int l)
 What line(s) this spans.
virtual void useChouFasman ()
 Chou-Fasman-Plot.
virtual void useNcoils ()
 Coiled-coil-Plot.
virtual void useMW ()
 Molecular weight plot.
virtual void usePI ()
 Isoelectric point plot.
virtual void useHP ()
 Hydrophobicity plot.
virtual void showPlot (wxDC &dc, int b, int tx, int ty, int lx, int ph)
 Draws the plot.
virtual void init (SequenceCanvas *ncan=NULL)
 Initialization.
virtual wxString getTip (int pos)
 Returns the tooltip text for this position in the sequence.
virtual int arrange_direct (int n)
 Arrange quickly (bypassing SeqPos).
virtual void show_direct (wxDC &dc)
 Show quickly.
virtual bool useDirectRoutines ()
 Do we draw directly (or do we use SeqPos)?

Private Types

enum  {
  CHOU_FASMAN, P_I, M_W, H_P,
  COILED_COIL
}

Private Member Functions

virtual void scanMinMax ()
 Determine minimum/maximum values.
virtual void scanChouFasman (int x, int y, int t, int min, int seek_cnt, int seek_avg, int avg)
virtual void drawSymbol (char c, wxDC &dc, int x1, int y1, int x2, int y2)
virtual void showChouFasman (wxDC &dc, int b, int tx, int ty, int lx)
 Display Chou-Fasman.
virtual void showNcoils (wxDC &dc, int b, int tx, int ty, int lx)
 Display Coiled-coil.
virtual void showMW (wxDC &dc, int b, int tx, int ty, int lx)
 Display molecular weight.
virtual void showPI (wxDC &dc, int b, int tx, int ty, int lx)
 Display isoelectric point.
virtual void showHP (wxDC &dc, int b, int tx, int ty, int lx)
 Display hydrophobicity.
virtual void fixMinMax (float &f)
 What the hell does this do??
virtual void drawDottedLine (wxDC &dc, int x1, int y1, int x2, int y2)
 Draws a horizontal/vertical helper line.
virtual void myRect (wxDC &dc, int x, int y, int w, int h)
 Draws a "special" rectangle.

Private Attributes

enum SeqPlot:: { ... }  type
int lines
int l_top
int l_bottom
wxArrayString d1
wxArrayString d2
wxArrayString d3
vector< TAAPropprop
bool startOfLine
float data_max
float data_min
float data_h
float data_step
wxRect plotr
int hp_window
wxString hp_method

Detailed Description

Sequence display class showing plot data in the amino acid module.


Member Enumeration Documentation

anonymous enum [private]
 

Enumeration values:
CHOU_FASMAN 
P_I 
M_W 
H_P 
COILED_COIL 


Constructor & Destructor Documentation

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

Constructor.


Member Function Documentation

int SeqPlot::arrange int  n  )  [virtual]
 

Arrange "chars" as line n.

Reimplemented from SeqDNA.

virtual int SeqPlot::arrange_direct int  n  )  [inline, virtual]
 

Arrange quickly (bypassing SeqPos).

Reimplemented from SeqDNA.

void SeqPlot::drawDottedLine wxDC &  dc,
int  x1,
int  y1,
int  x2,
int  y2
[private, virtual]
 

Draws a horizontal/vertical helper line.

void SeqPlot::drawSymbol char  c,
wxDC &  dc,
int  x1,
int  y1,
int  x2,
int  y2
[private, virtual]
 

void SeqPlot::fixMinMax float &  f  )  [private, virtual]
 

What the hell does this do??

wxString SeqPlot::getTip int  pos  )  [virtual]
 

Returns the tooltip text for this position in the sequence.

void SeqPlot::init SequenceCanvas ncan = NULL  )  [virtual]
 

Initialization.

Reimplemented from SeqBasic.

void SeqPlot::initFromTVector TVector v  )  [virtual]
 

Set from a TVector class.

Reimplemented from SeqDNA.

void SeqPlot::myRect wxDC &  dc,
int  x,
int  y,
int  w,
int  h
[private, virtual]
 

Draws a "special" rectangle.

void SeqPlot::scanChouFasman int  x,
int  y,
int  t,
int  min,
int  seek_cnt,
int  seek_avg,
int  avg
[private, virtual]
 

void SeqPlot::scanMinMax  )  [private, virtual]
 

Determine minimum/maximum values.

void SeqPlot::setLines int  l  )  [virtual]
 

What line(s) this spans.

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

Show.

Reimplemented from SeqDNA.

virtual void SeqPlot::show_direct wxDC &  dc  )  [inline, virtual]
 

Show quickly.

Reimplemented from SeqDNA.

void SeqPlot::showChouFasman wxDC &  dc,
int  b,
int  tx,
int  ty,
int  lx
[private, virtual]
 

Display Chou-Fasman.

void SeqPlot::showHP wxDC &  dc,
int  b,
int  tx,
int  ty,
int  lx
[private, virtual]
 

Display hydrophobicity.

void SeqPlot::showMW wxDC &  dc,
int  b,
int  tx,
int  ty,
int  lx
[private, virtual]
 

Display molecular weight.

void SeqPlot::showNcoils wxDC &  dc,
int  b,
int  tx,
int  ty,
int  lx
[private, virtual]
 

Display Coiled-coil.

void SeqPlot::showPI wxDC &  dc,
int  b,
int  tx,
int  ty,
int  lx
[private, virtual]
 

Display isoelectric point.

void SeqPlot::showPlot wxDC &  dc,
int  b,
int  tx,
int  ty,
int  lx,
int  ph
[virtual]
 

Draws the plot.

void SeqPlot::useChouFasman  )  [virtual]
 

Chou-Fasman-Plot.

virtual bool SeqPlot::useDirectRoutines  )  [inline, virtual]
 

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

Reimplemented from SeqDNA.

void SeqPlot::useHP  )  [virtual]
 

Hydrophobicity plot.

void SeqPlot::useMW  )  [virtual]
 

Molecular weight plot.

void SeqPlot::useNcoils  )  [virtual]
 

Coiled-coil-Plot.

void SeqPlot::usePI  )  [virtual]
 

Isoelectric point plot.

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

Returns the linetype.

Reimplemented from SeqDNA.


Member Data Documentation

wxArrayString SeqPlot::d1 [private]
 

wxArrayString SeqPlot::d2 [private]
 

wxArrayString SeqPlot::d3 [private]
 

float SeqPlot::data_h [private]
 

float SeqPlot::data_max [private]
 

float SeqPlot::data_min [private]
 

float SeqPlot::data_step [private]
 

wxString SeqPlot::hp_method [private]
 

int SeqPlot::hp_window [private]
 

int SeqPlot::l_bottom [private]
 

int SeqPlot::l_top [private]
 

int SeqPlot::lines [private]
 

wxRect SeqPlot::plotr [private]
 

vector<TAAProp> SeqPlot::prop [private]
 

bool SeqPlot::startOfLine [private]
 

enum { ... } SeqPlot::type [private]
 


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