m_BackColor(0.9f, 0.9f, 0.9f),
52m_TextColor(0.0f, 0.0f, 0.0f),
53m_ShowAbsolutePosition (
true),
88 size.m_Y += (
int) ceil(seq_h);
102 TSeqPoschars_in_line, lines_in_seq;
104 if(chars_in_line < 1) {
150 while(vis_start < vis_stop && vis_start < m_DataSource->GetDataLen()) {
158print_start = rc_limits.
Right() - seq.length() -
kMargin;
161(
float) scale_x, (
float) scale_y);
162vis_start += chars_in_line;
179 return "No sequence loaded";
CSeqTextDataSource implements Adapter design pattern.
TSeqPos SourcePosToSequencePos(TSeqPos source_pos)
virtual string GetTooltip()
CRef< CGlTextureFont > m_pSeqFont
void SetFont(CGlTextureFont *seq_font)
virtual void Render(CGlPane &pane)
virtual void SetDataSource(CSeqTextDataSource *p_ds)
virtual void SetModelRect(const TModelRect &rc)
ISeqTextGeometry * m_pGeometry
CRef< CSeqTextDataSource > m_DataSource
void ShowAbsolutePosition(bool show_abs)
virtual TVPPoint PreferredSize()
virtual TModelRect GetModelRect() const
virtual bool NeedTooltip(CGlPane &pane, int vp_x, int vp_y)
bool m_ShowAbsolutePosition
virtual void STG_GetVisibleRange(TSeqPos &seq_start, TSeqPos &seq_stop)=0
virtual TModelPoint STG_GetModelPointBySourcePos(TSeqPos z)=0
virtual void STG_GetLineInfo(TSeqPos &chars_in_line, TSeqPos &lines_in_pane)=0
unsigned int TSeqPos
Type for sequence locations and lengths.
void SetModelLimitsRect(const TModelRect &R)
void SetViewport(const TVPRect &R)
IRender & GetGl()
convenience function for getting current render manager
TVPRect & GetViewport(void)
static int GetCharsCount(int number)
returns number of characters in symbolic representation of the given number including non-digit separ...
void ArrayTextOut(TModelUnit x, TModelUnit y, TModelUnit dx, TModelUnit dy, const char *text, const vector< CRgbaColor * > *colors=NULL, TModelUnit scale_x=1.0f, TModelUnit scale_y=1.0f) const
prints array of characters in positions (x + i*dx, y + i*dy) where "i" is index of a character in the...
static string FormatSeparatedNumber(int number, bool b_postfix=false)
TModelRect & GetModelLimitsRect(void)
bool PtInRect(T x, T y) const
void Inflate(T d_x, T d_y)
virtual void PolygonMode(GLenum face, GLenum mode)=0
Set the polygon rasterization mode.
void SetVisibleRect(const TModelRect &R)
virtual TModelUnit GetMetric(EMetric metric, const char *text=NULL, int len=-1) const
TModelRect & GetVisibleRect(void)
TModelUnit GetScaleX(void) const
TModelUnit GetScaleY(void) const
void SetHorz(T left, T right)
virtual void ColorC(const CRgbaColor &c)=0
Set current color (glColor{3,4}{f,d}{v,})
void Rectd(GLdouble x1, GLdouble y1, GLdouble x2, GLdouble y2)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
unsigned int
A callback function used to compare two keys in a database.
const struct ncbi::grid::netcache::search::fields::SIZE size
The NCBI C++/STL use hints.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4