PrepareContext(
CGlPane& pane,
boolhorz,
boolflipped);
69 const CGlPane* GetGlPane()
const;
75 constobjects::CScope&
GetScope()
const;
77 voidSetOverviewCutoff(
intcutoff);
83 const CRgbaColor& GetHighlightsColor()
const;
87 boolIsHorizontal()
const;
88 boolIsFlippedStrand()
const;
95 voidSetViewWidth(
TSeqPosview_width);
98 const TSeqRange& GetVisSeqRange()
const;
102 boolIsOverviewMode()
const;
104 boolWillSeqLetterFit()
const;
106 boolWillTransLettersFit()
const;
107 boolIsInVisibleRange(
TSeqPospos)
const;
112 boolWillLabelFit(
const TModelRect& rc)
const;
114 boolWillLabelFit(
const TSeqRange&
r)
const;
162 TModelUnity2,
intfactor = 2,
unsigned shortpattern = 0xAAAA)
const;
164 voidDrawLineStrip(
constvector<TModelPoint>& points)
const;
172 const CRgbaColor& c2,
boolshade_vert =
true)
const;
181GLint from = 0, GLint to = 360)
const;
194 boolneg_strand)
const;
214 boolneg_strand)
const;
216 voidDrawSelection(
const TModelRect& rc)
const;
226 voidDrawStrandIndicators(
const TModelPoint& start,
229 boolavoid_center =
false,
boolsingle_indicator_center =
false,
230 constvector<TModelRange> *labels_ranges =
nullptr)
const;
237 voidDrawHairLine(
intopt,
size_ttotal,
258 TModelUnity2,
boolp_start,
boolp_stop,
boolloc)
const;
267 voidAdjustToOrientation(
TModelUnit& x)
const;
269 voidAdjustToOrientation(
TModelRect& rect)
const;
272 voidSetIsDrawn(
const string& sPName,
boolisDrawn);
273 boolGetIsDrawn(
const string& sPName)
const;
277fSkipContent = 1 << 0,
278fSkipTitleBar = 1 << 1,
279fSkipControls = 1 << 2,
286 boolIsSkipTitleBar()
const;
287 boolIsSkipContent()
const;
288 boolIsSkipControls()
const;
289 boolIsSkipGrid()
const;
290 boolIsSkipFrames()
const;
293 voidx_CreateGlyphs();
536 return(
TVPUnit)((x > 0.0) ? floor(x + 0.5) : ceil(x - 0.5));
549 size> right_limit ? right_limit :
size);
552 return(
TVPUnit)((x > 0.0) ? floor(x + 0.5) : ceil(x - 0.5));
585 const string&
label)
const 594 const string&
label)
const 604 const string&
label)
const 607 return r.GetLength() >
size;
613 const string&
label)
const 617 return r.GetLength() >
size;
623 const string&
label)
const 626 return r.GetLength() >
size;
632 const string&
label)
const 636 return r.GetLength() >
size;
651 returngl.
TextWidth(&font,
"A") * 21 + 2;
684gl.
Enable(GL_LINE_SMOOTH);
690 intfactor,
unsigned shortpattern)
const 695gl.
Enable(GL_LINE_STIPPLE);
705gl.
Begin(GL_LINE_STRIP);
706 ITERATE(vector<TModelPoint>, iter, points) {
721gl.
Begin(GL_TRIANGLES);
728gl.
Color3f(0.0f, 0.0f, 0.0f);
729gl.
Begin(GL_LINE_STRIP);
CRenderingContext offers the basic context and utility methods for rendering layout objects in featur...
TModelRange m_LimitRange
Model limits.
TRenderingFlags m_RenderingFlags
bool IsHorizontal() const
CRgbaColor m_SelLabelColor
void SetOverviewCutoff(int cutoff)
CRgbaColor m_HighlightsColor
static const int kLabelSpacePx
extra space for side labeling, in screen pixels
bool m_bHorz
orientation.
TModelUnit m_MinLabelSizePos
minimum label size, in sequence coordinates
void DrawTriangle(TModelUnit x1, TModelUnit y1, TModelUnit x2, TModelUnit y2, TModelUnit x3, TModelUnit y3, bool border=false) const
void SetSeqDS(CSGSequenceDS *ds)
TModelUnit GetVisibleFrom() const
@ fSkipGrid
track frame will be rendered when triggered.
@ fSkipTitleBar
can be collpased and expanded.
@ fSkipControls
track frame will be rendered when triggered.
CRef< CSGSequenceDS > GetSeqDS() const
const TSeqRange & GetVisSeqRange() const
CGlPane * m_Pane
What we drawing on.
CGlPane * GetGlPane()
inline method implementations
bool IsInVisibleRange(TSeqPos pos) const
const TModelUnit & GetOffset() const
void SetHighlightsColor(const CRgbaColor &c)
const TModelRange & GetVisibleRange() const
TModelRange IntersectVisible(const CSeqGlyph *obj) const
TModelUnit GetMinLabelWidthPos() const
TSeqPos GetVisSeqTo() const
void SetSelectionColor(const CRgbaColor &c)
TModelRange m_VisRange
Model visible limits.
TVPUnit SeqToScreenXClipped(const TModelUnit &size) const
TVPUnit SeqToScreenX(const TModelUnit &size) const
void DrawLineStrip(const vector< TModelPoint > &points) const
void DrawLine(TModelUnit x1, TModelUnit y1, TModelUnit x2, TModelUnit y2) const
const CRgbaColor & GetHighlightsColor() const
bool WillTransLettersFit() const
will translation letters fit.
void DrawStippledLine(TModelUnit x1, TModelUnit y1, TModelUnit x2, TModelUnit y2, int factor=2, unsigned short pattern=0xAAAA) const
void DrawRect(const TModelRect &rc) const
objects::CScope & GetScope()
TModelUnit GetVisibleTo() const
void DrawQuad(const TModelRect &rc, bool border=false) const
const TModelUnit & GetScale() const
TSeqRange m_VisSeqRange
Visilble sequence range.
void DrawSelection(const TModelRect &rc) const
bool IsSkipFrames() const
bool IsSkipControls() const
TModelUnit SeqToScreen(const TModelUnit &size) const
convert from sequence positions to screen pixels
CIRef< IVboGeom > m_GlyphGeom
TModelUnit GetMaxLabelWidth(const CGlBitmapFont &font) const
In screen pixel..
TModelUnit SeqToScreenXInModelUnit(const TModelUnit &size) const
CRef< objects::CScope > m_Scope
scope.
const CRgbaColor & GetSelectionColor() const
TModelUnit ScreenToSeq(const TModelUnit &size) const
convert from screen pixels to sequence positions
bool IsOverviewMode() const
bool IsSkipContent() const
bool IsFlippedStrand() const
bool WillSeqLetterFit() const
is it enougth space to sequence letters.
CGlBitmapFont m_Font_Helv10
fonts.
TSeqPos GetVisSeqFrom() const
const CRgbaColor & GetSelLabelColor() const
void DrawLine_NoAA(TModelUnit x1, TModelUnit y1, TModelUnit x2, TModelUnit y2) const
CRef< CSGSequenceDS > m_SeqDS
void SetViewWidth(TSeqPos view_width)
TSeqPos GetViewWidth() const
void SetSelLabelColor(const CRgbaColor &c)
bool WillLabelFit(const TModelRect &rc) const
bool IsSkipTitleBar() const
TSeqPos m_ViewWidth
Browser's window width in pixels, if any.
const TModelRange & GetVisibleLimit() const
void SetRenderingFlags(TRenderingFlags rendering_flags)
void AdjustToOrientation(TModelUnit &x) const
class CRgbaColor provides a simple abstraction for managing colors.
objects::CScope & GetScope(void) const
Get the scope from the handle.
class CSeqGlyph defines an interface that wraps a rectilinear abstract object.
virtual TModelUnit GetWidth() const
virtual TModelUnit GetLeft() const
unsigned int TSeqPos
Type for sequence locations and lengths.
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
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 Begin(GLenum mode)=0
Start rendering.
void Color3f(GLfloat r, GLfloat g, GLfloat b)
IRender & GetGl()
convenience function for getting current render manager
void Vertex2d(GLdouble x, GLdouble y)
virtual TModelUnit TextWidth(const CGlTextureFont *font, const char *text) const =0
virtual TModelUnit TextWidth(const char *text) const
compute the length of a null-terminated string
virtual void End()=0
Finish rendering (create buffer and send to renderer)
virtual void Disable(GLenum glstate)=0
glDisable()
void Reset(void)
Reset reference object.
TThisType IntersectionWith(const TThisType &r) const
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIWIDGETS_SEQGRAPHIC_EXPORT
static const char label[]
TTo GetTo(void) const
Get the To member data.
TFrom GetFrom(void) const
Get the From member data.
static void text(MDB_val *v)
const struct ncbi::grid::netcache::search::fields::SIZE size
double r(size_t dimension_, const Int4 *score_, const double *prob_, double theta_)
static const float kSequenceLevel
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