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

TVectorItem Class Reference

This class stores a vector item. More...

#include <TVector.h>

List of all members.

Public Member Functions

 TVectorItem ()
 Default constructor.
 TVectorItem (wxString sn, wxString n, int f, int t, char ty)
 Constructor.
 ~TVectorItem ()
wxBrush * getBrush ()
 Returns a pointer to the brush used to draw the item.
wxColour getFontColor ()
 Returns the font color.
void setColor (wxColour col)
 Sets the font color.
bool isVisible ()
 Is this item visible?
void setVisible (bool b)
 Set visibility.
int getRF ()
 Returns the reading frame.
void setRF (int x)
 Sets the reading frame.
int getOffset ()
 returns the offset; -1 = no offset
void setOffset (int o=-1)
 Sets the offset; -1 = no offset.
void setType (wxString s)
 Sets the item type.
int getOffsetAt (int i)
 Returns the offset of the item at a specific position.
void doRemove (int f, int t, int l)
 Remove a part of the item.
wxString implodeParams ()
 Join item parameters for storage.
void explodeParams (wxString _s)
 Extract item parameters from stored form.
wxTreeItemId getTreeID ()
void setTreeID (wxTreeItemId newid)
 Set new item ID in TVectorTree.
int getDirection ()
 Return the direction.
void setDirection (int newdir)
 Set the direction.
char getType ()
 Returns the item type.
void setType (char newtype)
 Sets the item type.
int getMem ()
 Estimates the memory usage of this item (debugging use only).
wxString getParam (wxString p, wxString def=_T(""))
 Returns the value of a parameter; optional default value.
wxArrayString getParamKeys ()
 Get a list of all parameter keys.
void setParam (wxString p, wxString v)
 Set a parameter key/value pair.
void setParam (wxString p, int v)
 Set a parameter key/value pair.
void translate (TVector *v, SeqAA *aa, vector< Tdna2aa > &dna2aa)
 Translate DNA to amino acids.
void getArrangedAA (TVector *v, wxString &s, int disp, SeqAA *aa=NULL)
 Generate the amino acid sequence in place.
wxString getAminoAcidSequence ()
 Return the amino acid sequence.
void setLastVector (TVector *v)
 Set the last TVector to own this item.

Public Attributes

wxString desc
 Item description.
wxString name
 Item name.
int from
 Item start.
int to
 Item end.

Private Member Functions

void initParams ()
 Reset parameters.

Private Attributes

signed char direction
 The item direction; 1=clockwise, -1=counter-clockwise.
char type
 The type of the item in VIT_XXX form.
wxTreeItemId treeid
 The item ID in the TVectorTree.
wxArrayString pname
 Parameter keys.
wxArrayString pvalue
 Parameter values.
vector< Tdna2aadna2aa_item
 The cache of the translated amino acids.
TVectorlastVector
 The last TVector to own this item.
int r1
int r2
int r3
int r4
float a1
float a2

Friends

class TVectorEditor
class MyChild
class PlasmidCanvas
class MyFrame


Detailed Description

This class stores a vector item.


Constructor & Destructor Documentation

TVectorItem::TVectorItem  ) 
 

Default constructor.

TVectorItem::TVectorItem wxString  sn,
wxString  n,
int  f,
int  t,
char  ty
 

Constructor.

TVectorItem::~TVectorItem  )  [inline]
 


Member Function Documentation

void TVectorItem::doRemove int  f,
int  t,
int  l
 

Remove a part of the item.

void TVectorItem::explodeParams wxString  _s  ) 
 

Extract item parameters from stored form.

wxString TVectorItem::getAminoAcidSequence  ) 
 

Return the amino acid sequence.

void TVectorItem::getArrangedAA TVector v,
wxString &  s,
int  disp,
SeqAA aa = NULL
 

Generate the amino acid sequence in place.

wxBrush * TVectorItem::getBrush  ) 
 

Returns a pointer to the brush used to draw the item.

int TVectorItem::getDirection  )  [inline]
 

Return the direction.

wxColour TVectorItem::getFontColor  ) 
 

Returns the font color.

int TVectorItem::getMem  ) 
 

Estimates the memory usage of this item (debugging use only).

int TVectorItem::getOffset  ) 
 

returns the offset; -1 = no offset

int TVectorItem::getOffsetAt int  i  ) 
 

Returns the offset of the item at a specific position.

wxString TVectorItem::getParam wxString  p,
wxString  def = _T("")
 

Returns the value of a parameter; optional default value.

wxArrayString TVectorItem::getParamKeys  ) 
 

Get a list of all parameter keys.

int TVectorItem::getRF  ) 
 

Returns the reading frame.

wxTreeItemId TVectorItem::getTreeID  )  [inline]
 

char TVectorItem::getType  )  [inline]
 

Returns the item type.

wxString TVectorItem::implodeParams  ) 
 

Join item parameters for storage.

void TVectorItem::initParams  )  [private]
 

Reset parameters.

bool TVectorItem::isVisible  ) 
 

Is this item visible?

void TVectorItem::setColor wxColour  col  ) 
 

Sets the font color.

void TVectorItem::setDirection int  newdir  )  [inline]
 

Set the direction.

void TVectorItem::setLastVector TVector v  ) 
 

Set the last TVector to own this item.

void TVectorItem::setOffset int  o = -1  ) 
 

Sets the offset; -1 = no offset.

void TVectorItem::setParam wxString  p,
int  v
 

Set a parameter key/value pair.

void TVectorItem::setParam wxString  p,
wxString  v
 

Set a parameter key/value pair.

void TVectorItem::setRF int  x  ) 
 

Sets the reading frame.

void TVectorItem::setTreeID wxTreeItemId  newid  )  [inline]
 

Set new item ID in TVectorTree.

void TVectorItem::setType char  newtype  )  [inline]
 

Sets the item type.

void TVectorItem::setType wxString  s  ) 
 

Sets the item type.

void TVectorItem::setVisible bool  b  ) 
 

Set visibility.

void TVectorItem::translate TVector v,
SeqAA aa,
vector< Tdna2aa > &  dna2aa
 

Translate DNA to amino acids.


Friends And Related Function Documentation

friend class MyChild [friend]
 

friend class MyFrame [friend]
 

friend class PlasmidCanvas [friend]
 

friend class TVectorEditor [friend]
 


Member Data Documentation

float TVectorItem::a1 [private]
 

float TVectorItem::a2 [private]
 

wxString TVectorItem::desc
 

Item description.

signed char TVectorItem::direction [private]
 

The item direction; 1=clockwise, -1=counter-clockwise.

vector<Tdna2aa> TVectorItem::dna2aa_item [private]
 

The cache of the translated amino acids.

int TVectorItem::from
 

Item start.

TVector* TVectorItem::lastVector [private]
 

The last TVector to own this item.

wxString TVectorItem::name
 

Item name.

wxArrayString TVectorItem::pname [private]
 

Parameter keys.

wxArrayString TVectorItem::pvalue [private]
 

Parameter values.

int TVectorItem::r1 [private]
 

int TVectorItem::r2 [private]
 

int TVectorItem::r3 [private]
 

int TVectorItem::r4 [private]
 

int TVectorItem::to
 

Item end.

wxTreeItemId TVectorItem::treeid [private]
 

The item ID in the TVectorTree.

char TVectorItem::type [private]
 

The type of the item in VIT_XXX form.


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