1 #ifndef GUI_WIDGETS_SEQ_GRAPHIC___ALIGN_STATISTICS_GLYPH__HPP
2 #define GUI_WIDGETS_SEQ_GRAPHIC___ALIGN_STATISTICS_GLYPH__HPP
91 fShowMismatch = 1 << 2,
93 fDefault = fBarGraph | fShowCount | fShowMismatch | fShowTotal
157 bool IsBarGraph()
const;
158 bool ShowCount()
const;
159 bool ShowAGTC()
const;
160 bool ShowTotal()
const;
161 bool ShowLabel()
const;
162 void SetShowLabel(
bool flag);
164 void SetDisplayFlag(FDisplay bit,
bool f);
169 bool m_HasAmbigBases =
false;
198 virtual void GetHTMLActiveAreas(
TAreaVector* p_areas)
const;
199 virtual bool IsClickable()
const;
206 void SetCgiMode(
bool cgi_mode =
true);
214 virtual void x_Draw()
const;
215 virtual void x_UpdateBoundingBox();
218 void x_DrawBarGraph()
const;
219 void x_DrawDensityTable()
const;
220 int x_GetMaxTotal()
const;
221 vector<int> x_GetShowList()
const;
233 bool m_CgiMode =
false;
234 bool m_ShowIntrons =
false;
static string GetStatLabel(int stat)
@ fBarGraph
otherwise, shown as density table
@ fShowCount
otherwise, shown percentage
@ fShowMismatch
otherwise, shown individual count
void SetDisplayFlag(FDisplay bit, bool f)
int m_StatZoomLevel
at what zoom level to turn on statistics
static int GetRefSeqIdex(char base)
void SetShowLabel(bool flag)
array< CRgbaColor, eStat_Total+1 > m_Colors
color settings
EStatType
statistics enum.
@ eStat_Intron
intron (for mRNA-to-genome alignments)
@ eStat_Ambig
ambiguous consensus (for MSA pileup)
@ eStat_Mismatch
mismatches (A+G+T+C - matches)
@ eStat_Total
total alignment count at this base (A+G+T+C+Gap)
bool IsBarGraph() const
CAlnStatConfig inline method implementation.
const TStatVec & GetStatVec() const
void SetCgiMode(bool cgi_mode=true)
void SetConfig(CRef< CAlnStatConfig > conf, CRef< CHistParams > params)
CAlnStatGlyph inline method implementation.
TModelUnit m_ZoomScale
zoom scale when this statistics are computed.
void SetDialogHost(IGlyphDialogHost *host)
vector< SStatStruct > TStatVec
CRef< CAlnStatConfig > m_Config
void ShowIntrons(bool show=true)
CRef< CHistParams > m_GraphParams
IGlyphDialogHost * m_DlgHost
class CRgbaColor provides a simple abstraction for managing colors.
class CSeqGlyph defines an interface that wraps a rectilinear abstract object.
vector< CHTMLActiveArea > TAreaVector
IGlyphDialogHost An interface used for handling issues related to any dialog pops up that requires so...
unsigned int TSeqPos
Type for sequence locations and lengths.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIWIDGETS_SEQGRAPHIC_EXPORT
static const char label[]
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
double f(double x_, const double &y_)