1 #ifndef GUI_WIDGETS_ALN_SCORE___TEMPLATE_METHODS__HPP
2 #define GUI_WIDGETS_ALN_SCORE___TEMPLATE_METHODS__HPP
88 const string& GetSetBases()
const;
89 void AddSetBase(
char cbase);
122 virtual void CreateColorTable(
int size);
150 size_t GetWindowSize()
const;
164 void x_CalculateConsensusScores(
char cons,
const string&
column,
166 void x_CalculateNonConsensusScores(
const string&
column,
TScore& col_score,
200 virtual void CreateColorTable(
int size);
225 size_t GetWindowSize()
const;
236 void x_CalculateConsensusRange();
237 void x_CalculateNonConsensusRange();
238 static int x_BaseToIndex(
char c);
@ eBoth
Both preliminary and traceback stages.
void x_CreateColorTable(CNcbiRegistry ®)
string m_SetBases
> Foreground color when nothing specified for a base.
CRgbaColor m_DefaultForeColor
> Background color when nothing specified for a base.
CRgbaColor m_DefaultBackColor
> foreground or text colors
vector< CRgbaColor > m_Colors
vector< CRgbaColor > m_ForeColors
> background colors
vector< TScore > m_vScore
void x_CreateScoreTable(CNcbiRegistry ®)
size_t m_WindowSize
relative, not absolute scores.
CRgbaGradColorTable m_ColorTable
TScore m_MinScore
weight matrix
TScore m_MaxScore
possible range of scores.
CRgbaColor x_GetThreeColorScore(TScore score) const
CRgbaColor x_GetTwoColorScore(TScore score) const
TScore m_NonConsensusMaxScore
TScore m_NonConsensusMinScore
void x_CreateScoreTable(CNcbiRegistry ®)
unsigned char m_CalculateRange
CNcbiMatrix< TScore > m_vScore
TScore m_ConsensusMinScore
TScore m_ConsensusMaxScore
CRgbaGradColorTable m_ColorTable
class CRgbaColor provides a simple abstraction for managing colors.
CRgbaGradColorTable Provides a storage for colors (to eliminate color creation overhead) and Function...
CTemplateMethod - describes a class of similar methods.
virtual bool Save(CNcbiRegistry ®)
virtual bool Load(CNcbiRegistry ®)
virtual int GetSupportedColorTypes() const
returns a combination of EColorType flags
IColumnScoringMethod - column-based method.
IRowScoringMethod - row-based method.
virtual void CalculateScores(IAlnExplorer::TNumrow row, const IScoringAlignment &aln, IScoringMethod::TScoreColl &scores)=0
IScoringMethod represents an abstract algorithm for calculating alignment scores and assigning colors...
virtual void SetColorForNoScore(IScoringMethod::EColorType type, const CRgbaColor &color)=0
virtual const CRgbaColor & GetColorForScore(TScore score, EColorType type) const =0
returns a color corresponding to a given score value.
vector< TScore > TScoreVector
virtual const CRgbaColor & GetColorForNoScore(IScoringMethod::EColorType type) const =0
Call for display colors when CanCalculateScores returns false.
IWindowScoringMethod - Method that can be windowed, i.e.
CRgbaColor & GetColor(CSeqFeatData::ESubtype subtype)
static const char * column
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIWIDGETS_ALNSCORE_EXPORT
const struct ncbi::grid::netcache::search::fields::SIZE size
#define row(bind, expected)