(
size_tbin = 0; bin < numBins; ++bin) {
71 if(
m_Map[bin].obj.NotEmpty()) {
72 ITERATE(objects::NSnpBins::TBinEntryList, iEntryList,
m_Map[bin].obj->m_EntryList) {
73 doublepvalue(-
log10((*iEntryList)->pvalue));
125p_areas->push_back(area);
167 doublePixelScale(Height / AxisRange);
179 stringsColorKey(
"Default");
185 for(
size_tbin = 0; bin < numBins; bin++)
187 if(
m_Map[bin].obj.NotEmpty()) {
188 ITERATE(objects::NSnpBins::TBinEntryList, iEntryList,
m_Map[bin].obj->m_EntryList) {
189 doublepvalue(-
log10((*iEntryList)->pvalue));
191 TSeqPospos((*iEntryList)->pos);
196y1 = line_y2 - (pvalue -
m_AxisMin) * PixelScale;
215 if(dist_x < min_dist) {
221 for(; x <
GetRight(); x += dist_x) {
228line_y2 - 1,
false);
232line_y1 + font_height + 1,
false);
234gl.
Color4f(0.0f, 0.0f,0.0f, 1.0f);
CConstRef< CSeqGraphicConfig > GetGlobalConfig() const
expose global configuration
static CGuiRegistry & GetInstance()
access the application-wide singleton
string m_Descr
description that can be used as label or tooltip
@ fNoPin
tooltip is not pinnable
@ fNoSelection
the object can't be selected
@ fTooltipEmbedded
tooltip embedded
int m_Flags
area flags, will need to replace m_Type
bool m_PositiveStrand
the default is true
class CRegistryReadView provides a nested hierarchical view at a particular key.
void DrawDisk(const TModelPoint &p, TModelUnit radius, GLint from=0, GLint to=360) const
void TextOut(const CGlTextureFont *font, const char *text, TModelUnit x, TModelUnit y, bool center, bool adjust_flip=true) const
void DrawLine(TModelUnit x1, TModelUnit y1, TModelUnit x2, TModelUnit y2) const
TModelUnit ScreenToSeq(const TModelUnit &size) const
convert from screen pixels to sequence positions
class CRgbaColor provides a simple abstraction for managing colors.
static CRegistryReadView GetColorReadView(const CGuiRegistry ®, const string &base_key, const string §, const string &key, const string &def_sect="")
Create a read view specifically for 'Color' section.
static void GetColor(const CRegistryReadView &view, const string &key, CRgbaColor &color)
string x_GetDescription() const
virtual void GetTooltip(const TModelPoint &, ITooltipFormatter &tt, string &t_title) const
Get the tooltip if available.
string x_GetColorTheme() const
virtual void x_UpdateBoundingBox()
Update the bounding box assuming children's sizes are fixed if any.
virtual bool OnLeftDblClick(const TModelPoint &)
CScatterPlotGlyph(const TMap &map, const objects::CSeq_loc &loc)
virtual TSeqRange GetRange(void) const
get the total range of this object.
virtual bool IsClickable() const
Query if this glyph is clickable.
virtual bool NeedTooltip(const TModelPoint &p, ITooltipFormatter &tt, string &t_title) const
Check if need to show tooltip.
CConstRef< objects::CSeq_loc > m_Location
virtual void GetHTMLActiveAreas(TAreaVector *p_areas) const
Get html active areas.
virtual void x_Draw() const
The default renderer for this layout object.
class CSeqGlyph defines an interface that wraps a rectilinear abstract object.
void x_InitHTMLActiveArea(CHTMLActiveArea &area) const
initialize the basic information for a given active area.
CRenderingContext * m_Context
the rendering context
virtual void SetHeight(TModelUnit h)
virtual TModelUnit GetRight() const
virtual void SetWidth(TModelUnit w)
virtual void SetLeft(TModelUnit l)
virtual TModelUnit GetTop() const
virtual TModelUnit GetWidth() const
virtual TModelUnit GetLeft() const
vector< CHTMLActiveArea > TAreaVector
const CSeqGlyph * GetParent(void) const
const string & GetColorTheme() const
unsigned int TSeqPos
Type for sequence locations and lengths.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
IRender & GetGl()
convenience function for getting current render manager
void Color4f(GLfloat r, GLfloat g, GLfloat b, GLfloat a)
virtual TModelUnit GetMetric(EMetric metric, const char *text=NULL, int len=-1) const
CGlPoint< TModelUnit > TModelPoint
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
float GetBlue(void) const
float GetGreen(void) const
static string PValueAsColorKey(double pvalue)
preferred colorings for a given pvalue
static string PValueToString(double pvalue)
virtual bool IsEmpty() const =0
Indicates if the tooltip is empty.
static const int c_BinHeight
float GetRed(void) const
Get specific channels in floating point values.
position_type GetLength(void) const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
TFrom GetFrom(void) const
Get the From member data.
static void text(MDB_val *v)
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