fShowTextLabel = 0x08,
113fFillBackground = 0x10,
114fHideNegative = 0x20,
115fHideFirstLabel = 0x40,
116fHideLastLabel = 0x80,
117fFirstLabelHasText = 0x100,
118fDefaultDisplayOptions = fFillBackground
130 CRuler(
boolhorz =
true);
137 unsigned intfont_size=12);
143 voidSetDisplayOptions(
intoptions);
154 voidSetRange(
intstart,
intend,
intseq_start,
boolreverse);
157 voidSetBaseWidth(
int value);
159 voidSetTextLabel(
const string&
label);
161 TVPPointGetPreferredSize(
intmax_num = 0)
const;
164 intGetLabelStep()
const;
191 boolx_TextAlongAxis()
const;
193 intx_ToDisplay(
const TAlignRange& range,
intmodel)
const;
197 voidx_CalculatePosLabelsStep(
CGlPane& Pane);
198 voidx_ChooseTickSpace(
doublescale);
200 voidx_UpdateMappingByPane(
CGlPane& pane);
201 voidx_UpdatePosLabelsStep(
CGlPane& pane);
207 voidx_RenderOriginAndMetric(
CGlPane& pane,
const TRange& clip_r);
209 stringx_GetPositionLabel(
const TAlignRange& range,
intiElem);
210 voidx_GenerateLabelPositions(
const TAlignRange& range,
211 intfirst_elem,
intlast_elem, vector<TModelUnit>& vElemPos);
213 voidx_RenderPosLabel(
CGlPane& pane,
doublepos_u,
214 doublelabel_offset_u,
const string&
text,
215 booldraw_tick =
true);
216 voidx_RenderHorzPosLabel(
CGlPane& pane,
doublepos_u,
217 doublelabel_offset_u,
const string&
text,
218 booldraw_tick =
true);
219 voidx_RenderVertPosLabel(
CGlPane& pane,
doublepos_u,
220 doublelabel_offset_u,
const string&
text,
221 booldraw_tick =
true);
225 intx_GetTicksLabelsSizeV(
intmax_num)
const;
226 intx_GetOriginMetricSizeV()
const;
CAlignRange Represents an element of pairwise alignment of two sequences.
class CRgbaColor provides a simple abstraction for managing colors.
CRuler is a renderable object drawing a scale with position labels.
CAlignRange< TPos > TAlignRange
int GetLabelStep() const
Get the distance between two tick labels.
TModelRect m_rcLimits
"true" if parameters affecting layout have been changed
CGlTextureFont::EFontRotateFlags m_FontRotate
Font rotation flags (rotate around base or cap)
virtual void SetOrder(int order)
CAlignRangeCollection< TAlignRange > TAlignColl
int m_FontRotateDegrees
Use degrees as int for safe comparison to 0, 90, 180 etc.
void SetBaseWidth(int value)
EGeometryParam
Ticks and labels placement.
@ eOppMajorTickHeight
major tick on the opposite side
@ eOppMinorTickHeight
minor tick on the opposite side
@ eLabelTickHeight
tick size at label position
virtual int GetOrder() const
ELabelPlacement m_LabelPlace
void x_UpdatePosLabelsStep(CGlPane &pane)
ELabelAlign
How labels align around ticks.
@ eAln_Top
valid for vertical mode only (mapped to eAln_Right for horizontal mode)
@ eAln_Right
valid for horizontal mode only (mapped to eAln_Top for vertical mode)
@ eAln_Left
valid for horizontal mode only (mapped to eAln_Bottom for vertical mode)
void Update(CGlPane &pane)
TAlignColl m_Mapping
range displayed is [m_Start + m_Offset, m_End + m_Offset]
IRenderable class IRenderable defines an abstract interface required for rendering graphical panels i...
virtual void SetModelRect(const TModelRect &rc)=0
virtual int GetOrder() const =0
virtual void SetVisible(bool set)=0
virtual void SetOrder(int order)=0
virtual void SetVPRect(const TVPRect &rc)=0
virtual bool NeedTooltip(CGlPane &pane, TVPUnit vp_x, TVPUnit vp_y)=0
virtual void Render(CGlPane &pane)=0
virtual TModelRect GetModelRect() const =0
virtual TVPPoint PreferredSize()=0
virtual bool IsVisible()=0
virtual TVPRect GetVPRect() const =0
virtual string GetTooltip()=0
int TSignedSeqPos
Type for signed sequence position.
EFontRotateFlags
Font rotate options.
EFontFace
Set of pre-defined fonts for which we know we have valid font files.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIWIDGETS_GL_EXPORT
static const char label[]
static void text(MDB_val *v)
constexpr auto rotate(list< Ts... >) -> decltype((list<>{}+...+rotate_item< Ts >{}))
const GenericPointer< typename T::ValueType > T2 value
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