SetMarkerType(EMarkerType
t);
99 voidRender(
CGlPane& Pane, ERenderingOption
option,
double& height);
100 voidSetLabel(
const string&
label);
102 voidSetId(
const string&
id);
103 const string&
GetId()
const;
107 TSeqPosGetExtendedPos()
const;
118 voidSetShowCoord(
bool f);
119 voidSetFlipped(
boolflipped);
128 voidOnLeftDown(wxMouseEvent& event);
129 voidOnLeftDoubleClick(wxMouseEvent& event);
130 voidOnLeftUp(wxMouseEvent& event);
131 voidOnMotion(wxMouseEvent& event);
132 voidOnMouseCaptureLost(wxMouseCaptureLostEvent& evt);
139 virtual stringx_GetText(
TSeqPospos);
141 voidx_OnEndAction();
class CRgbaColor provides a simple abstraction for managing colors.
Class CSeqMarkHandler represents in GUI a single "hairpin" on a sequence bar.
string m_Id
unique id for manager multiple markers (optional).
const CRgbaColor & GetColor() const
TModelUnit m_PosOff
offset between mouse position and marker position
void SetShowCoord(bool f)
CGlTextureFont m_Font_Helv10
const string & GetLabel() const
string m_Label
label shown beside the marker (optional).
void SetId(const string &id)
TSeqPos GetExtendedPos() const
const string & GetId() const
bool m_MarkDrag
For draging the mark.
TModelUnit m_ExtendedPos
Second position, for range markers.
CGlTextureFont m_LabelFont
TSeqPos x_SeqDragPos() const
helper functions
EMarkerType GetMarkerType() const
void SetLabel(const string &label)
bool m_Flipped
True if strands are flipped.
void SetColor(const CRgbaColor &color)
ISeqMarkHandlerHost * m_Host
bool m_ShowCoord
show coordinate
TModelUnit m_DragPos
marker position
virtual void SetPane(CGlPane *)
virtual wxEvtHandler * GetEvtHandler()=0
class ISeqMarkHandlerHost
virtual void SMHH_OnReset(const string &marker_id)=0
The derived class may need to do something differently when a marker gets reset, such as remove the m...
virtual ~ISeqMarkHandlerHost()
virtual TSeqPos SMHH_GetSeqMark() const =0
If the host needs to dictate/store the marker position, then it needs to return a non (TSeqPos)-1 val...
virtual void SMHH_SetSeqMark(TSeqPos mark)=0
The derived class may choose do something differently when marker position is changed.
virtual TModelUnit SMHH_GetModelByWindow(int z, EOrientation orient)=0
CRgbaColor & GetColor(CSeqFeatData::ESubtype subtype)
unsigned int TSeqPos
Type for sequence locations and lengths.
string GetLabel(const CSeq_id &id)
const CSeq_id & GetId(const CSeq_loc &loc, CScope *scope)
If all CSeq_ids embedded in CSeq_loc refer to the same CBioseq, returns the first CSeq_id found,...
#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[]
The NCBI C++/STL use hints.
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