objects::CBioseq_Handle& handle,
48: m_AlignSmear(new
CAlignmentSmear(handle, start, stop, window, strand_type))
52 constobjects::CBioseq_Handle& handle,
55 constobjects::CSeq_annot& seq_annot)
56: m_AlignSmear(new
CAlignmentSmear(handle, start, stop, window, strand_type))
102 for(; seg_it; seg_it.
Advance()) {
112t < m_Context->GetVisSeqFrom())
130 for(; gap_it; gap_it.
Advance()) {
155 label+=
" (negative strand)";
157 label+=
" (positive strand)";
virtual void x_UpdateBoundingBox()
Update the bounding box assuming children's sizes are fixed if any.
virtual void GetTooltip(const TModelPoint &p, ITooltipFormatter &tt, string &t_title) const
Get the tooltip if available.
CRef< CAlignmentSmear > m_AlignSmear
CAlignSmearGlyph(const objects::CBioseq_Handle &handle, TSeqPos start, TSeqPos stop, float window, CAlignmentSmear::EAlignSmearStrand strand_type)
const CAlignmentSmear & GetAlignSmear() const
}
CConstRef< CAlignmentConfig > m_Config
virtual void x_Draw() const
The default renderer for this layout object.
virtual bool NeedTooltip(const TModelPoint &p, ITooltipFormatter &tt, string &t_title) const
Check if need to show tooltip.
virtual bool IsClickable() const
Query if this glyph is clickable.
CRgbaColor m_SmearColorMin
CRgbaColor m_SmearColorMax
CGlTextureFont m_LabelFont
Run iterator. iterate through runs of equal values in the bins.
void TextOut(const CGlTextureFont *font, const char *text, TModelUnit x, TModelUnit y, bool center, bool adjust_flip=true) const
const TModelRange & GetVisibleRange() const
TModelRange IntersectVisible(const CSeqGlyph *obj) const
TSeqPos GetVisSeqTo() const
void DrawLine(TModelUnit x1, TModelUnit y1, TModelUnit x2, TModelUnit y2) const
void DrawQuad(const TModelRect &rc, bool border=false) const
const CRgbaColor & GetSelLabelColor() const
bool WillLabelFit(const TModelRect &rc) const
class CRgbaColor provides a simple abstraction for managing colors.
CRenderingContext * m_Context
the rendering context
virtual void SetHeight(TModelUnit h)
virtual void SetWidth(TModelUnit w)
virtual TSeqRange GetRange(void) const
get the total range of this object.
virtual void SetLeft(TModelUnit l)
virtual TModelUnit GetHeight() const
TModelRect GetModelRect() const
get the bounding box.
unsigned int TSeqPos
Type for sequence locations and lengths.
score_type GetMaxValue() const
void AddAnnot(const objects::CSeq_annot &seq_annot, ISeqTaskProgressCallback *p_cb=NULL)
INPUT:
runlen_iterator SmearGapBegin() const
EAlignSmearStrand GetStrandType() const
runlen_iterator SmearSegBegin() const
OUTPUT:
IRender & GetGl()
convenience function for getting current render manager
virtual TModelUnit TextHeight(const CGlTextureFont *font) const =0
void Color4f(GLfloat r, GLfloat g, GLfloat b, GLfloat a)
virtual void ColorC(const CRgbaColor &c)=0
Set current color (glColor{3,4}{f,d}{v,})
TSeqPos GetSeqPosition() const
virtual void AddRow(const string &sContents="", unsigned colspan=2)=0
add a row with a cell, spanning across all columns
float GetBlue(void) const
float GetGreen(void) const
static CRgbaColor Interpolate(const CRgbaColor &color1, const CRgbaColor &color2, float alpha)
Interpolate two colors.
TSeqPos GetSeqRunLength() const
float GetRed(void) const
Get specific channels in floating point values.
string GetLabel(const CSeq_id &id)
position_type GetLength(void) const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static const char label[]
TTo GetTo(void) const
Get the To member data.
TFrom GetFrom(void) const
Get the From member data.
const GenericPointer< typename T::ValueType > T2 value
double r(size_t dimension_, const Int4 *score_, const double *prob_, double theta_)
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