1 #ifndef GUI_WIDGETS_SEQ_GRAPHIC___TRACE_GLYPH__HPP
2 #define GUI_WIDGETS_SEQ_GRAPHIC___TRACE_GLYPH__HPP
117 void SetDesc(
const string& desc);
118 const string& GetDesc()
const;
124 virtual void x_Draw()
const;
127 int x_GetConfGraphH()
const;
128 int x_GetSignalGraphH()
const;
141 void x_InitColors()
const;
143 void x_RenderContour(
CGlPane& pane,
int y,
int top_h,
int total_h)
const;
146 void x_RenderConfGraph(
CGlPane& pane,
int y,
int h)
const;
148 void x_RenderSignalGraph(
CGlPane& pane,
int y,
int h)
const;
150 void x_RenderCurveSegment(
CGlPane& pane,
153 int bottom_y,
int ,
int amp)
const;
155 void x_RenderIntensityGraphs(
CGlPane& pane,
int y,
int h)
const;
159 int x_FindSampleToLeft(
double pos)
const;
160 int x_FindSampleToRight(
double pos)
const;
class CRgbaColor provides a simple abstraction for managing colors.
vector< TSignalValue > TValues
vector< TFloatSeqPos > TPositions
class CSeqGlyph defines an interface that wraps a rectilinear abstract object.
virtual bool IsClickable() const
Query if this glyph is clickable.
virtual void x_Draw() const =0
The default renderer for this layout object.
virtual void GetTooltip(const TModelPoint &, ITooltipFormatter &tt, string &t_title) const
Get the tooltip if available.
virtual bool NeedTooltip(const TModelPoint &, ITooltipFormatter &, string &) const
Check if need to show tooltip.
virtual bool OnLeftDblClick(const TModelPoint &)
virtual void GetHTMLActiveAreas(TAreaVector *) const
Get html active areas.
virtual void x_UpdateBoundingBox()=0
Update the bounding box assuming children's sizes are fixed if any.
vector< CHTMLActiveArea > TAreaVector
void SetShowTitle(bool f)
vector< CRgbaColor > m_vSignalColors
const string & GetTitle() const
CRef< CTraceGraphConfig > m_Config
const string & GetDesc() const
CRef< CSGTraceData > m_Data
void SetDialogHost(IGlyphDialogHost *host)
IGlyphDialogHost * m_DlgHost
string m_Desc
Key for accessing histogram settings.
void SetDesc(const string &desc)
ESingnalStyle m_SignalStyle
CRgbaColor m_colorConfMax
ESingnalStyle
chromatogram rendering mode
EGraphState m_ConfGraphState
EGraphState m_SignalGraphState
array< CRgbaColor, 4 > m_colors
CRgbaColor m_colorConfMin
IGlyphDialogHost An interface used for handling issues related to any dialog pops up that requires so...
NCBI_XOBJUTIL_EXPORT string GetTitle(const CBioseq_Handle &hnd, TGetTitleFlags flags=0)
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIWIDGETS_SEQGRAPHIC_EXPORT
const GenericPointer< typename T::ValueType > T2 value
Portable reference counted smart and weak pointers using CWeakRef, CRef, CObject and CObjectEx.
static const string kTitle
CTraceGlyph inline method implementation.