47 const list<TSeqRange>& vis_ranges,
54 if ( !vis_ranges.empty() ) {
void DrawQuad(const TModelRect &rc, bool border=false) 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 void SetLeft(TModelUnit l)
TModelRect GetModelRect() const
get the bounding box.
virtual TSeqRange GetRange(void) const
get the total range of this object.
virtual void x_UpdateBoundingBox()
Update the bounding box assuming children's sizes are fixed if any.
CVisRangeGlyph(const CEventHandler *target, const list< TSeqRange > &vis_ranges, const CRgbaColor &color, const string &label)
virtual bool NeedTooltip(const TModelPoint &p, ITooltipFormatter &tt, string &t_title) const
Check if need to show tooltip.
CRef< objects::CSeq_loc > m_Location
virtual void x_Draw() const
The default renderer for this layout object.
virtual void GetTooltip(const TModelPoint &p, ITooltipFormatter &tt, string &t_title) const
Get the tooltip if available.
virtual bool IsClickable() const
Query if this glyph is clickable.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
IRender & GetGl()
convenience function for getting current render manager
virtual void ColorC(const CRgbaColor &c)=0
Set current color (glColor{3,4}{f,d}{v,})
virtual void AddRow(const string &sContents="", unsigned colspan=2)=0
add a row with a cell, spanning across all columns
TSeqPos GetLength(const CSeq_id &id, CScope *scope)
Get sequence length if scope not null, else return max possible TSeqPos.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static const char label[]
double r(size_t dimension_, const Int4 *score_, const double *prob_, double theta_)
TModelUnit kVisRangeBarHeight