, m_LibraryId(eLibrary_NotSet)
50, m_ErrorType(eError_NotSet)
124verticalOffset = bar_h;
135 if(lcl_p.
m_Y>= t_y && lcl_p.
m_Y<= t_y + bar_h) {
136 const auto&
r= aln_g->GetRange();
137 if(lcl_p.
m_X>=
r.GetFrom() && lcl_p.
m_X<=
r.GetTo()) {
138aln_g->GetTooltip(p, tt, t_title);
142t_y += verticalOffset;
155verticalOffset = bar_h;
176t_y -= verticalOffset;
181p_areas->push_back(area);
218(*iter)->GetObjects(objs);
226 if( (*iter)->HasObject(obj) ) {
239 return(*iter)->GetSignature();
267(*iter)->SetVisible(
true);
331(*iter)->ApplyFading();
332(*iter)->DrawPWAlignElem(rcm_pw,
false,
false, c_fg, c_seq, c_mis);
338 if(fade_factor != 1.) {
340gl.
BlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
349gl.
Enable(GL_LINE_STIPPLE);
356 if(inter_r.
Empty()) {
357 TSeqPosfrom =
r1.GetFrom() <
r2.GetFrom() ?
r1.GetTo() :
r2.GetTo();
358 TSeqPosto =
r1.GetFrom() <
r2.GetFrom() ?
r2.GetFrom() :
r1.GetFrom();
361 m_Context->
DrawLine(from + gap, yy + bar_h * 0.5f - 1.0, to + gap, yy + bar_h * 0.5f - 1.0);
411(*iter)->Update(
true);
416 TModelRangerange((*iter)->GetLeft(), (*iter)->GetRight());
448(*iter)->SetTop(yTop);
456*title =
"Mate Pair: ";
460 if(
tmp.length() > 0) *title = *title +
" / ";
462(*iter)->GetTitle(&
tmp,
type);
463*title = *title +
tmp;
CRgbaColor m_FGOrientation
CRgbaColor m_FGContraAlign
CRgbaColor m_SeqNonUnique
CGlTextureFont m_LabelFont
CRgbaColor m_SeqOrientation
CRgbaColor m_SeqMismatchNo
CRgbaColor m_SeqMismatchNonUnique
CRgbaColor m_SeqMismatchDistance
CRgbaColor m_SeqMismatchOrientation
virtual void GetObjects(vector< CConstRef< CObject > > &objs) const
retrieve CObjects corresponding to this CSeqGlyph.
CRef< objects::CSeq_loc > m_Location
bool IsPairSelected(const CAlignGlyph *pw_aln) const
virtual const TIntervals & GetIntervals(void) const
access sub-intervals (if any).
virtual bool IsClickable() const
Query if this glyph is clickable.
CMatePairGlyph(const TAlignList &aligns)
virtual bool HasObject(CConstRef< CObject > obj) const
check if the wrapped object(s) is the one.
vector< CRef< CAlignGlyph > > TAlignList
virtual TSeqRange GetRange(void) const
get the total range of this object.
virtual string GetSignature() const
return signature for this glyph.
EErrorType GetError() const
virtual void GetTooltip(const TModelPoint &p, ITooltipFormatter &tt, string &t_title) const
Get the tooltip if available.
virtual void x_UpdateBoundingBox()
Update the bounding box assuming children's sizes are fixed if any.
virtual const objects::CSeq_loc & GetLocation(void) const
access the position of this object.
void x_GetTitle(string *title, CLabel::ELabelType type) const
virtual void GetHTMLActiveAreas(TAreaVector *p_areas) const
Get html active areas.
vector< CConstRef< CObject > > m_ObjSel
virtual bool NeedTooltip(const TModelPoint &p, ITooltipFormatter &tt, string &t_title) const
Check if need to show tooltip.
CConstRef< CMatePairConfig > m_Config
virtual CConstRef< CObject > GetObject(TSeqPos pos) const
access our core component - we wrap an object(s) of some sort.
virtual void x_Draw() const
The default renderer for this layout object.
void TextOut(const CGlTextureFont *font, const char *text, TModelUnit x, TModelUnit y, bool center, bool adjust_flip=true) const
TModelRange IntersectVisible(const CSeqGlyph *obj) const
TVPUnit SeqToScreenXClipped(const TModelUnit &size) const
void DrawLine(TModelUnit x1, TModelUnit y1, TModelUnit x2, TModelUnit y2) const
void DrawSelection(const TModelRect &rc) const
TModelUnit SeqToScreen(const TModelUnit &size) const
convert from sequence positions to screen pixels
TModelUnit ScreenToSeq(const TModelUnit &size) const
convert from screen pixels to sequence positions
bool IsFlippedStrand() 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 TModelUnit GetRight() const
virtual void SetWidth(TModelUnit w)
virtual void SetLeft(TModelUnit l)
virtual TModelUnit GetHeight() const
float GetFadeFactor() const
size_t GetTearline() const
size_t GetVisible() const
void x_Local2World(TModelPoint &p) const
Transform the coordiantes from local coord. to world coord.
virtual TModelUnit GetWidth() const
virtual TModelUnit GetLeft() const
TModelRect GetModelRect() const
get the bounding box.
vector< CHTMLActiveArea > TAreaVector
void x_World2Local(TModelPoint &p) const
Transform the coordiante from world coord. to local coord.
bool GetNamedScore(const string &id, int &score) const
Get score.
virtual const objects::CSeq_id & GetSeqId(TNumrow row) const =0
vector< TSeqRange > TIntervals
virtual IAlnExplorer::TNumrow GetAnchor() const =0
unsigned int TSeqPos
Type for sequence locations and lengths.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define NON_CONST_ITERATE(Type, Var, Cont)
Non constant version of ITERATE macro.
#define REVERSE_ITERATE(Type, Var, Cont)
ITERATE macro to reverse sequence through container elements.
virtual bool HasObject(CConstRef< CObject > obj) const
check if the wrapped object(s) is the one.
const IAlnGraphicDataSource & GetAlignMgr(void) const
Inline methods.
const objects::CSeq_align_Handle & GetOrigAlignment(void) const
virtual const objects::CSeq_loc & GetLocation(void) const
access the position of this object.
virtual void Enable(GLenum glstate)=0
virtual void LineStipple(GLint factor, GLushort pattern)=0
Set line stipple pattern: glLineStipple(). Deprecated in gl 3.2+.
virtual void BlendFunc(GLenum sfactor, GLenum dfactor)=0
Options to be used when GL_BLEND is enabled.
IRender & GetGl()
convenience function for getting current render manager
virtual TModelUnit TextHeight(const CGlTextureFont *font) const =0
CRange< TModelUnit > TModelRange
virtual void Disable(GLenum glstate)=0
glDisable()
virtual void LineWidth(GLfloat w)=0
Set line width for drawing: glLineWidth()
virtual void ColorC(const CRgbaColor &c)=0
Set current color (glColor{3,4}{f,d}{v,})
string Truncate(const char *text, TModelUnit w, ETruncate trunc=eTruncate_Ellipsis) const
Truncate text to the secified width.
CConstRef< CSeq_align > GetSeq_align(void) const
Get const reference to current seq-align.
void Reset(void)
Reset reference object.
bool NotEmpty(void) const THROWS_NONE
Check if CConstRef is not empty â pointing to an object and has a non-null value.
position_type GetLength(void) const
TThisType & CombineWith(const TThisType &r)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
TTo GetTo(void) const
Get the To member data.
TFrom GetFrom(void) const
Get the From member data.
double r(size_t dimension_, const Int4 *score_, const double *prob_, double theta_)
static const sljit_gpr r1
static const sljit_gpr r2
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