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/seqmark__handler_8hpp_source.html below:

NCBI C++ ToolKit: include/gui/widgets/gl/seqmark_handler.hpp Source File

1 #ifndef __GUI_WIDGETS_GL___SEQKMARK_HANDLER__HPP 2 #define __GUI_WIDGETS_GL___SEQKMARK_HANDLER__HPP 96  void

SetMarkerType(EMarkerType

t

);

99  void

Render(

CGlPane

& Pane, ERenderingOption

option

,

double

& height);

100  void

SetLabel(

const string

&

label

);

102  void

SetId(

const string

&

id

);

103  const string

&

GetId

()

const

;

107  TSeqPos

GetExtendedPos()

const

;

118  void

SetShowCoord(

bool f

);

119  void

SetFlipped(

bool

flipped);

128  void

OnLeftDown(wxMouseEvent& event);

129  void

OnLeftDoubleClick(wxMouseEvent& event);

130  void

OnLeftUp(wxMouseEvent& event);

131  void

OnMotion(wxMouseEvent& event);

132  void

OnMouseCaptureLost(wxMouseCaptureLostEvent& evt);

139  virtual string

x_GetText(

TSeqPos

pos);

141  void

x_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