A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/rendering__ctx_8hpp_source.html below:

NCBI C++ ToolKit: include/gui/widgets/seq_graphic/rendering_ctx.hpp Source File

1 #ifndef GUI_WIDGETS_SEQ_GRAPHIC___FEAT_PANEL_RENDERING_CONTEXT__HPP 2 #define GUI_WIDGETS_SEQ_GRAPHIC___FEAT_PANEL_RENDERING_CONTEXT__HPP 67  void

PrepareContext(

CGlPane

& pane,

bool

horz,

bool

flipped);

69  const CGlPane

* GetGlPane()

const

;

75  const

objects::CScope&

GetScope

()

const

;

77  void

SetOverviewCutoff(

int

cutoff);

83  const CRgbaColor

& GetHighlightsColor()

const

;

87  bool

IsHorizontal()

const

;

88  bool

IsFlippedStrand()

const

;

95  void

SetViewWidth(

TSeqPos

view_width);

98  const TSeqRange

& GetVisSeqRange()

const

;

102  bool

IsOverviewMode()

const

;

104  bool

WillSeqLetterFit()

const

;

106  bool

WillTransLettersFit()

const

;

107  bool

IsInVisibleRange(

TSeqPos

pos)

const

;

112  bool

WillLabelFit(

const TModelRect

& rc)

const

;

114  bool

WillLabelFit(

const TSeqRange

&

r

)

const

;

162  TModelUnit

y2,

int

factor = 2,

unsigned short

pattern = 0xAAAA)

const

;

164  void

DrawLineStrip(

const

vector<TModelPoint>& points)

const

;

172  const CRgbaColor

& c2,

bool

shade_vert =

true

)

const

;

181

GLint from = 0, GLint to = 360)

const

;

194  bool

neg_strand)

const

;

214  bool

neg_strand)

const

;

216  void

DrawSelection(

const TModelRect

& rc)

const

;

226  void

DrawStrandIndicators(

const TModelPoint

& start,

229  bool

avoid_center =

false

,

bool

single_indicator_center =

false

,

230  const

vector<TModelRange> *labels_ranges =

nullptr

)

const

;

237  void

DrawHairLine(

int

opt,

size_t

total,

258  TModelUnit

y2,

bool

p_start,

bool

p_stop,

bool

loc)

const

;

267  void

AdjustToOrientation(

TModelUnit

& x)

const

;

269  void

AdjustToOrientation(

TModelRect

& rect)

const

;

272  void

SetIsDrawn(

const string

& sPName,

bool

isDrawn);

273  bool

GetIsDrawn(

const string

& sPName)

const

;

277

fSkipContent = 1 << 0,

278

fSkipTitleBar = 1 << 1,

279

fSkipControls = 1 << 2,

286  bool

IsSkipTitleBar()

const

;

287  bool

IsSkipContent()

const

;

288  bool

IsSkipControls()

const

;

289  bool

IsSkipGrid()

const

;

290  bool

IsSkipFrames()

const

;

293  void

x_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  return

gl.

TextWidth

(&font,

"A"

) * 21 + 2;

684

gl.

Enable

(GL_LINE_SMOOTH);

690  int

factor,

unsigned short

pattern)

const 695

gl.

Enable

(GL_LINE_STIPPLE);

705

gl.

Begin

(GL_LINE_STRIP);

706  ITERATE

(vector<TModelPoint>, iter, points) {

721

gl.

Begin

(GL_TRIANGLES);

728

gl.

Color3f

(0.0f, 0.0f, 0.0f);

729

gl.

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