NCBI C++ ToolKit
Public Types | Public Member Functions | Protected Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
CSeqGraphicPane Class Reference

Search Toolkit Book for CSeqGraphicPane

class CSeqGraphicPane More...

#include "seqgraphic_pane.hpp"
(Private to src/gui/widgets/seq_graphic.)

+ Inheritance diagram for CSeqGraphicPane:
+ Collaboration diagram for CSeqGraphicPane:

Public Types

enum  EHandlerArea {
  fArea_Ruler = 1 << 0 , fArea_Object = 1 << 1 , fArea_Alignment = 1 << 2 , fArea_Feature = 1 << 3 ,
  fArea_Temp_Track =1 << 4 , fArea_Track = 1 << 5 , fArea_Container = 1 << 6 , fArea_Other = 1 << 7 ,
  fArea_All
}
 
enum  EDirection { eDir_Next , eDir_Prev , eDir_Left , eDir_Right }
 
enum  EMouseMode {
  eMouse_RectSelect , eMouse_IncRectSelect , eMouse_IncSelect , eMouse_Pan ,
  eMouse_Down , eMouse_Idle
}
 
typedef CLinearSelHandler::TRangeColl TRangeColl
 
typedef map< string, CRef< CMarker > > TSeqMarkers
 
- Public Types inherited from IMouseZoomHandlerHost
enum  EScaleType { eMin , eCurrent , eMax }
 
- Public Types inherited from CEventHandler
enum  EDispatch { eDispatch_SelfOnly , eDispatch_AllHandlers , eDispatch_FirstHandler , eDispatch_Default = eDispatch_AllHandlers }
 enum controlling dispatching strategies More...
 
enum  EPoolName {
  ePool_Default = 0 , ePool_Parent , ePool_Child , ePool_Sibling ,
  ePool_NextAvailable
}
 Identifiers for standard pools. More...
 
typedef vector< CEventHandler * > TListeners
 
typedef map< int, TListenersTPools
 
typedef list< AutoPtr< SPostRequest > > TPostRequests
 
typedef std::map< CEventHandler *, intTHandlerToCount
 
typedef void(* FOnPostCallback) ()
 

Public Member Functions

 CSeqGraphicPane (CSeqGraphicWidget *parent)
 
virtual ~CSeqGraphicPane ()
 
void SetInputObject (SConstScopedObject &obj)
 
void SetNonAsnInput (const INonAsnTrackData &data)
 
void InitDataSource (SConstScopedObject &obj)
 
CSGSequenceDSGetDataSource (void)
 
CFeaturePanelGetFeaturePanel ()
 
TModelUnit GetHeight ()
 class CSeqGraphicPane More...
 
void SetExternalGlyphs (const CSeqGlyph::TObjects &objs)
 
void GetFeatureNames (vector< string > &names)
 
bool CanSetSwitchPoint ()
 
void OnKeyUp (wxKeyEvent &event)
 
void OnKeyDown (wxKeyEvent &event)
 
void OnMotion (wxMouseEvent &event)
 
void OnLeftUp (wxMouseEvent &event)
 
void OnLeftDown (wxMouseEvent &event)
 
void OnMiddleDown (wxMouseEvent &event)
 
void OnLeftDblClick (wxMouseEvent &event)
 
void OnMouseWheel (wxMouseEvent &event)
 
void OnContextMenu (wxContextMenuEvent &event)
 
void OnScrollEnd (wxScrollEvent &event)
 
void OnMouseCaptureLost (wxMouseCaptureLostEvent &)
 
void OnKillFocus (wxFocusEvent &event)
 
int GetPopupArea (wxPoint pos)
 
CRef< CSeqGraphicConfigGetConfig ()
 
void AdjustViewPort ()
 Potential actions include loading data and generating layouts. More...
 
void SetUpdateContent ()
 
void UpdateData (TSeqPos from, TSeqPos to)
 
void AdjustViewPortHeightToImage ()
 
void SetViewportWidth (TSeqPos from, TSeqPos to, TVPUnit vp_width)
 
bool AllJobsFinished () const
 
bool AllTracksCreated () const
 
void SetHorizontal (bool b_horz, bool b_flip)
 
bool IsHorizontal () const
 
bool IsFlipped () const
 
void SetSeqMarker (TModelPoint point)
 
void RemoveMarker (const string &marker_id)
 
size_t GetMarkerNum () const
 
const TSeqMarkersGetAllMarkers () const
 
void AddPointMarker (const string &name, TSeqPos pos, const CRgbaColor color)
 
void AddRangeMarker (const string &name, TSeqRange range, const CRgbaColor color)
 
void RemoveAllMarkers ()
 
string GetNewMarkerName ()
 
void RenameMarker (const string &id, const string &label)
 
void ModifyMarker (const string &id, const string &label, TSeqPos pos, const CRgbaColor color)
 
void ModifyMarker (const string &id, const string &label, TSeqRange range, const CRgbaColor color)
 
void SetSeqStartPoint (TModelPoint point)
 
void SetSeqStart (TSeqPos pos)
 
void SetSeqStartMarker (const string &id)
 
void ResetSeqStart ()
 
void SetSwitchPoint ()
 
string GetHitMarker () const
 
CConstRef< CMarkerGetMarker (const string &id)
 
void UpdateConfig ()
 the config object just changed. Do what is necessary. More...
 
void OnDataChanging ()
 
void OnDataChanged ()
 
void GetObjectSelection (TConstObjects &objs) const
 retrieve the selections from our renderer. More...
 
const TRangeCollGetRangeSelection (void) const
 
void SetRangeSelection (const TRangeColl &ranges)
 
CConstRef< CSeqGlyphGetSelectedLayoutObj ()
 
TSeqRange FindText (const string &text, bool match_case)
 
void SaveCurrentRange ()
 For Back or Forward operations. More...
 
void SaveTrackConfig ()
 
interface from wxWindows.
virtual void Update (void) override
 
selection operations

selection-related methods.

void DeSelectObject (const CObject *obj)
 
void SelectObject (const CObject *obj, bool verified)
 
void SelectLastHitObject (int mouse_x, int mouse_y)
 
void SelectOnlyThisObject (const CSeqGlyph *glyph, int mouse_x, int mouse_y)
 
void SelectSeqLoc (const objects::CSeq_loc *loc)
 
void ResetSelection ()
 
void ResetRangeSelection ()
 
void ResetObjectSelection ()
 
IMouseZoomHandlerHost implementation
virtual TModelUnit MZHH_GetScale (EScaleType type) override
 
virtual void MZHH_SetScale (TModelUnit scale, const TModelPoint &point) override
 
virtual void MZHH_ZoomPoint (const TModelPoint &point, TModelUnit factor) override
 
virtual void MZHH_ZoomRect (const TModelRect &rc) override
 
virtual void MZHH_Scroll (TModelUnit d_x, TModelUnit d_y) override
 
virtual TVPUnit MZHH_GetVPPosByY (int y) const override
 converts window coord to Viewport coord More...
 
virtual void MZHH_EndOp () override
 
ISelHandlerHost implementation
virtual void SHH_OnChanged () override
 ISelHandlerHost implementation. More...
 
virtual TModelUnit SHH_GetModelByWindow (int z, EOrientation orient) override
 
virtual TVPUnit SHH_GetWindowByModel (TModelUnit z, EOrientation orient) override
 
ISeqMarkHandlerHost implementation
virtual TModelUnit SMHH_GetModelByWindow (int z, EOrientation orient) override
 
virtual TSeqPos SMHH_GetSeqMark () const override
 If the host needs to dictate/store the marker position, then it needs to return a non (TSeqPos)-1 value. More...
 
virtual void SMHH_SetSeqMark (TSeqPos mark) override
 The derived class may choose do something differently when marker position is changed. More...
 
virtual void SMHH_OnReset (const string &id) override
 The derived class may need to do something differently when a marker gets reset, such as remove the marker. More...
 
class ITrackHandlerHost implementation
virtual CRef< CLayoutTrackTHH_GetLayoutTrack () override
 Get the layout track under the current mouse position. More...
 
virtual TModelPoint THH_GetModelByWindow (const wxPoint &pt) override
 
IStickyTooltipHandlerHost implementation
virtual string TTHH_NeedTooltip (const wxPoint &pt) override
 Return id of the underlying element to dispaly a tooltip, otherwise "". More...
 
virtual CTooltipInfo TTHH_GetTooltip (const wxRect &rect) override
 Return the contents to be displayed in the tool tip. More...
 
virtual bool TTHH_ProcessURL (const wxString &href) override
 Return true if the specified URL has been processed. Used for custom commands. More...
 
ILayoutTrackHost implementation
virtual void LTH_OnLayoutChanged () override
 provides mouse coords in OpenGL viewport coord system More...
 
virtual void LTH_ZoomOnRange (const TSeqRange &range) override
 notifies the host we need to zoom on to a range. More...
 
virtual void LTH_PopupMenu (wxMenu *menu) override
 show track-specific context menu. More...
 
virtual void LTH_PushEventHandler (wxEvtHandler *handler) override
 
virtual void LTH_PopEventHandler () override
 
virtual void LTH_ConfigureTracksDlg (const string &category) override
 
virtual void ResetSearch () override
 
IGlyphDialogHost implementation
virtual void PreDialogShow () override
 Prepare for showing a dialog. More...
 
virtual void PostDialogShow () override
 Post-processing after showing a dialog. More...
 
Command handlers
void ZoomObject (void)
 
bool CanZoomSelection (void)
 
void OnEditCopy (void)
 
void NextPrevSplice (EDirection dir)
 
void LoadDefaultTracks ()
 
void ExpandAllTracks (bool expand)
 
void ShowAllTracks (bool shown)
 
bool CanGoBack (void) const
 
bool CanGoForward (void) const
 
void GoBack (void)
 
void GoForward (void)
 
- Public Member Functions inherited from CGlWidgetPane
 CGlWidgetPane (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0)
 
virtual ~CGlWidgetPane ()
 
void SetPopupMenuDisplayed (bool b)
 
bool GetPopupMenuDisplayed () const
 
void DlgOverlayFix ()
 
void CheckOverlayTimer ()
 
virtual void GHH_Redraw ()
 redraws the Host and the handler More...
 
virtual void GHH_SetCursor (const wxCursor &cursor)
 changes the cursor in the hosting window More...
 
virtual void GHH_CaptureMouse ()
 captures mouse events in the hosting window for D&D More...
 
virtual void GHH_ReleaseMouse ()
 releases captured mouse More...
 
virtual bool TC_NeedTooltip (const wxPoint &pt)
 Returns "true" if client wants to dispaly a tooltip. More...
 
virtual string TC_GetTooltip (const wxRect &rect)
 Returns tooltip string and coordinates for area tootlip associated with. More...
 
virtual wxWindow * TC_GetWindow ()
 Returns pointer to the widget hosting ITooltipClient. More...
 
virtual wxWindow * TTHH_GetWindow ()
 Return the pointer to the underlying window. More...
 
virtual bool TTHH_PopupMenuDisplayed ()
 Return true if underlying window is currently displaying a popup menu. More...
 
void OnEnterWindow (wxMouseEvent &event)
 
void OnTimer (wxTimerEvent &event)
 
void OnMouseDown (wxMouseEvent &event)
 
void OnMouseUp (wxMouseEvent &event)
 
void OnMotion (wxMouseEvent &event)
 
void OnMouseWheel (wxMouseEvent &event)
 
void OnMouseCaptureLost (wxMouseCaptureLostEvent &event)
 
void OnLeaveWindow (wxMouseEvent &event)
 
void OnKeyEvent (wxKeyEvent &event)
 
void OnSetFocus (wxFocusEvent &event)
 
void OnKillFocus (wxFocusEvent &event)
 
void OnSize (wxSizeEvent &event)
 
void OnCmdEvent (wxCommandEvent &event)
 
void OnTipRemoved (wxCommandEvent &event)
 
- Public Member Functions inherited from CGLCanvas
 CGLCanvas (wxWindow *parent, wxWindowID id, const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=0)
 
virtual ~CGLCanvas ()
 
void OnPaint (wxPaintEvent &event)
 
void DoNotUpdate ()
 
void SetClearColor (float r, float g, float b, float a)
 
- Public Member Functions inherited from IGenericHandlerHost
virtual ~IGenericHandlerHost ()
 
- Public Member Functions inherited from ITooltipHandlerHost
virtual ~ITooltipHandlerHost ()
 
- Public Member Functions inherited from IStickyTooltipHandlerHost
 IStickyTooltipHandlerHost ()
 
virtual ~IStickyTooltipHandlerHost ()
 
void TTHH_Init ()
 Init calls virtual functions so can't be called from ctor. More...
 
std::vector< TipLocationGetDisplayedTips ()
 Return id and position information for currently displayed tips. More...
 
void SetServiceLocator (IServiceLocator *s)
 Set service locator so we can find other views and adjust z order. More...
 
- Public Member Functions inherited from IMouseZoomHandlerHost
virtual ~IMouseZoomHandlerHost ()
 
- Public Member Functions inherited from ISelHandlerHost
virtual ~ISelHandlerHost ()
 
- Public Member Functions inherited from ISeqMarkHandlerHost
virtual ~ISeqMarkHandlerHost ()
 
- Public Member Functions inherited from ITrackHandlerHost
virtual ~ITrackHandlerHost ()
 
- Public Member Functions inherited from CEventHandler
 CEventHandler ()
 CEventHandler. More...
 
virtual ~CEventHandler ()
 
virtual void AddListener (CEventHandler *listener, int pool_name=ePool_Default)
 Add a listener. More...
 
virtual void RemoveListener (CEventHandler *listener)
 Remove a listener. More...
 
virtual void RemoveAllListeners (void)
 
virtual bool HasListener (CEventHandler *listener, int pool_name=ePool_Default) const
 returns "true" if the given listener belongs to the specified pool More...
 
virtual const TListenersGetListeners (int pool_name=ePool_Default) const
 returns a set of listeners fro the specified pool More...
 
virtual bool OnEvent (CEvent *evt)
 Processes en event. Returns "true" if event has been processed. More...
 
virtual bool Dispatch (CEvent *evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default)
 Dispatches an event to the listeners (but does not handle it). More...
 
virtual bool Send (CEvent *evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default)
 Sends an event synchronously. More...
 
virtual bool Send (CEvent *evt, int pool_name)
 
void Post (CRef< CEvent > evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default)
 Handles an event asynchronously (process and/or dispatch). More...
 
- Public Member Functions inherited from ILayoutTrackHost
virtual ~ILayoutTrackHost ()
 
- Public Member Functions inherited from IGlyphDialogHost
virtual ~IGlyphDialogHost ()
 
- Public Member Functions inherited from IVectorGraphicsRenderer
virtual ~IVectorGraphicsRenderer ()
 

Protected Member Functions

void x_NotifyWidgetSelChanged ()
 
void x_NotifyWidgetRangeChanged ()
 
virtual void x_Render () override
 Draw the GL window. More...
 
CSeqGraphicWidgetx_GetParent ()
 
const CSeqGraphicWidgetx_GetParent () const
 
Methods from CGLWidgetPane
virtual int x_GetAreaByVPPos (int vp_x, int vp_y) override
 
virtual TVPPoint GetPortSize (void) override
 Get GL view port size. More...
 
- Protected Member Functions inherited from CGlWidgetPane
virtual int x_GetAreaByWindowPos (const wxPoint &pos)
 
virtual bool x_GrabFocus ()
 
bool x_RegisterHandler (IGlEventHandler *handler, int area, CGlPane *pane, int index=-1)
 
bool x_UnregisterHandler (IGlEventHandler *handler)
 
void x_SetCurrHandler (SHandlerRec *rec)
 
bool x_Handlers_handle (wxEvent &event, int area, bool ignore_curr=true)
 
bool x_DispatchEventToHandler (wxEvent &event, SHandlerRec *rec)
 
void x_HandleAccels (wxKeyEvent &event)
 
- Protected Member Functions inherited from CGLCanvas
void x_SetupGLContext ()
 
void x_CheckGlVersion ()
 
const wxGLAttributes & x_GetAttribList () const
 Not having all programs share the same window attributes has caused crashing on Linux, so each window will use these attributes (this should be the superset of attributes needed by program windows). More...
 
- Protected Member Functions inherited from IStickyTooltipHandlerHost
void x_SetCurrentTips (std::vector< TipLocation > &tips)
 Sets information on current tips that can be queried by the user. More...
 
wxFrame * GetUnderlyingFrame ()
 Return the undering wxFrame parent for a wxWindow object. More...
 
bool IsFloatingWindow ()
 Return true if the hosting window is ultimately enclosed in a CFloatingFrame class (meaning its in a floating window) More...
 
void RaiseOverlappingWindows (wxRect r)
 If the tip window is docked in the main window (not a CFloatingFrame) this raises all the CFloatingFrame windows to make sure none of them are overlapped by tooltips. More...
 
bool IsDragging ()
 Retruns true if Any window is currently being dragged. More...
 
void InitWindowGroup (int dock_count=0)
 Mac only - create or return window group for this window. More...
 
- Protected Member Functions inherited from CEventHandler
virtual const SEvtMapGetEventMap () const
 
void x_DeclareDead ()
 Removes itself unavailable for async event delivery. More...
 
void x_AddListenerToPool (CEventHandler *listener, int pool_name)
 

Private Types

typedef map< string, CRef< CCachedTipHandle > > TPinnedTips
 

Private Member Functions

void x_SelectByRect ()
 
void x_RenderTooltipConnector ()
 
void x_RenderRectSelHandler (CGlPane &pane)
 Rectangular selection. More...
 
void x_ChangeSwitchPoint ()
 
void x_OnEndRectSelect ()
 
void x_OnEndPan ()
 
void x_OnPan ()
 
CConstRef< CSeqGlyphx_GetOnlyOneSelectedGlyph ()
 
string x_GetCachedTipId (const CSeqGlyph *glyph) const
 
CWeakRef< CSeqGlyphx_GetGlyphByTipId (const string &tip_id)
 

Private Attributes

CTooltipInfo m_TooltipInfo
 
string m_ActivatedTipId
 
TPinnedTips m_PinnedTips
 
EMouseMode m_MouseMode
 
bool m_Flipped
 
bool m_Horz
 
int m_MarkerHandlerIndex
 Marker handler index among all registered handlers. More...
 
size_t m_MarkerId
 
TSeqPos m_SeqStart
 
bool m_Title
 When rendering vector image, add a title. More...
 
bool m_VectorPane
 If true pane is only for creating vector graphics - ignore other draw events. More...
 
Handlers
CLayoutTrackHandler m_TrackHandler
 
CLinearSelHandler m_SelHandler
 
CMouseZoomHandler m_MouseZoomHandler
 
CStickyTooltipHandler m_TooltipManager
 
TSeqMarkers m_SeqMarkers
 
navigation history
TRangeVec m_BackForwardHistory
 
size_t m_BackForwardPos
 position in m_BackForwardHistory More...
 
Rectangular selection
wxPoint m_StartPoint
 
wxPoint m_DragPoint
 
wxPoint m_CurrMouse
 

IVectorGraphicsRenderer implementations

virtual const TVPRectGetViewportRect () const override
 
virtual void RenderVectorGraphics (int vp_width, int vp_height) override
 Render for vector output. More...
 
virtual void UpdateVectorLayout () override
 
virtual void AddTitle (bool b) override
 
void SetVectorMode (bool b)
 @) More...
 
void OnSearchTip (const string &tip_id, const wxRect &tip_rect)
 
void OnZoomTip (const string &tip_id, const wxRect &)
 
void OnInfoTip (const string &)
 
void SetActivatedTip (const string &id)
 
void OnTipAdded (const string &tip_id)
 
void OnTipRemoved (const string &tip_id)
 
string GetMarkers () const
 get/set markers stored as a string. More...
 
void SetMarkers (const string &markers)
 
TSeqPos GetSeqStart () const
 
void GetCurrentObject (int mouse_x, int mouse_y, TConstObjects &objs)
 
 DECLARE_EVENT_MAP ()
 
void x_OnPurgeMarkers (CEvent *)
 

marker-related methods

@ {

typedef vector< TSeqRangeTRangeVec
 @ } More...
 
CRef< CSeqGraphicRendererm_Renderer
 
CRef< CSeqGraphicConfigm_ConfigSettings
 
CIRef< ISGDataSourceContextm_DSContext
 
CRef< CSGSequenceDSm_DS
 
CWeakRef< CSeqGlyphm_LastHitGlyph
 last hit glyph. More...
 
CSeqMarkHandlerx_GetDefaultMarker ()
 
void x_AddNewMarker (CRef< CMarker > marker, const string &label, const CRgbaColor &color)
 
void x_RemoveMarker (const string &id)
 
bool x_HasDefaultMarker () const
 
void x_ClearMarkers ()
 
bool x_ModifyMarker (CRef< CMarker > &marker, const string &id, const string &label, const CRgbaColor color)
 

Additional Inherited Members

- Static Public Member Functions inherited from CEventHandler
static bool HandlePostRequest ()
 
static void ClearPostQueue ()
 erases all events from the queue More...
 
static void DestroyPostQueue ()
 
- Protected Types inherited from CGlWidgetPane
typedef list< SHandlerRecTHandlerRecList
 
- Protected Attributes inherited from CGlWidgetPane
THandlerRecList m_lsHandlerRecs
 list of records for registered handlers More...
 
SHandlerRecm_pCurrHandlerRec
 pointer to record for last active handler More...
 
bool m_PopupMenuDisplayed
 Some handlers may need to know if popup (right click) menu is active. More...
 
CStopWatch m_EnterTimer
 Windows vista bug screws up opengl after dlgs/popups displayed over window. More...
 
wxTimer m_GLOverlapFixTimer
 Need associated timer since some popups take a little time to clear. More...
 
bool m_PseudoSized
 For windows (e.g. tree) that do not want to layout/update for the fake size event. More...
 
- Protected Attributes inherited from CGLCanvas
bool m_DoNotUpdate
 
float m_ClearColor [4]
 
- Protected Attributes inherited from IStickyTooltipHandlerHost
IServiceLocatorm_ServiceLocator
 Needed to find other views. More...
 
std::vector< TipLocationm_CurrentTips
 
- Protected Attributes inherited from CEventHandler
TPools m_Pools
 
- Static Protected Attributes inherited from CEventHandler
static const SEvtMap sm_EvtMap
 

Detailed Description

class CSeqGraphicPane

Definition at line 146 of file seqgraphic_pane.hpp.

Member Typedef Documentation

◆ TPinnedTips

Definition at line 520 of file seqgraphic_pane.hpp.

◆ TRangeColl

Definition at line 173 of file seqgraphic_pane.hpp.

◆ TRangeVec

typedef vector<TSeqRange> CSeqGraphicPane::TRangeVec
private

@ }

Definition at line 490 of file seqgraphic_pane.hpp.

◆ TSeqMarkers

Definition at line 174 of file seqgraphic_pane.hpp.

Member Enumeration Documentation

◆ EDirection

Enumerator
eDir_Next 
eDir_Prev 
eDir_Left 
eDir_Right 

Definition at line 177 of file seqgraphic_pane.hpp.

◆ EHandlerArea

Enumerator
fArea_Ruler 
fArea_Object 
fArea_Alignment 
fArea_Feature 
fArea_Temp_Track 
fArea_Track 
fArea_Container 
fArea_Other 
fArea_All 

Definition at line 159 of file seqgraphic_pane.hpp.

◆ EMouseMode

Enumerator
eMouse_RectSelect 

with SHIFT key down

eMouse_IncRectSelect 

with SHIFT and CTRL key down

eMouse_IncSelect 

with CTRL key down

eMouse_Pan 

left click and drag

eMouse_Down 

left button down, not sure what to do yet

eMouse_Idle 

no button down

Definition at line 184 of file seqgraphic_pane.hpp.

Constructor & Destructor Documentation

◆ CSeqGraphicPane()

CSeqGraphicPane::CSeqGraphicPane ( CSeqGraphicWidget parent)

◆ ~CSeqGraphicPane()

CSeqGraphicPane::~CSeqGraphicPane ( )
virtual

Member Function Documentation

◆ AddPointMarker()

void CSeqGraphicPane::AddPointMarker ( const string name,
TSeqPos  pos,
const CRgbaColor  color 
)

◆ AddRangeMarker()

void CSeqGraphicPane::AddRangeMarker ( const string name,
TSeqRange  range,
const CRgbaColor  color 
)

◆ AddTitle()

virtual void CSeqGraphicPane::AddTitle ( bool  b)
inlineoverridevirtual

Implements IVectorGraphicsRenderer.

Definition at line 409 of file seqgraphic_pane.hpp.

References b, and m_Title.

◆ AdjustViewPort()

void CSeqGraphicPane::AdjustViewPort ( )

Potential actions include loading data and generating layouts.

Definition at line 763 of file seqgraphic_pane.cpp.

References GetPort(), m_Flipped, m_Horz, m_Renderer, CSeqGraphicRenderer::SetHorizontal(), and x_GetParent().

◆ AdjustViewPortHeightToImage()

void CSeqGraphicPane::AdjustViewPortHeightToImage ( )

◆ AllJobsFinished()

bool CSeqGraphicPane::AllJobsFinished ( ) const

◆ AllTracksCreated()

bool CSeqGraphicPane::AllTracksCreated ( ) const

◆ CanGoBack()

bool CSeqGraphicPane::CanGoBack ( void  ) const

Definition at line 1535 of file seqgraphic_pane.cpp.

References m_BackForwardPos.

Referenced by GoBack().

◆ CanGoForward()

bool CSeqGraphicPane::CanGoForward ( void  ) const

Definition at line 1541 of file seqgraphic_pane.cpp.

References m_BackForwardHistory, and m_BackForwardPos.

Referenced by GoForward().

◆ CanSetSwitchPoint()

bool CSeqGraphicPane::CanSetSwitchPoint ( )

◆ CanZoomSelection()

bool CSeqGraphicPane::CanZoomSelection ( void  )

◆ DECLARE_EVENT_MAP()

CSeqGraphicPane::DECLARE_EVENT_MAP ( )
protected

◆ DeSelectObject()

void CSeqGraphicPane::DeSelectObject ( const CObject obj)

Definition at line 834 of file seqgraphic_pane.cpp.

References CSeqGraphicRenderer::DeSelectObject(), and m_Renderer.

Referenced by OnLeftUp().

◆ ExpandAllTracks()

void CSeqGraphicPane::ExpandAllTracks ( bool  expand)
inline
Parameters
expandtrue if expand, false if collapse

Definition at line 586 of file seqgraphic_pane.hpp.

References CSeqGraphicRenderer::ExpandAllTracks(), and m_Renderer.

◆ FindText()

TSeqRange CSeqGraphicPane::FindText ( const string text,
bool  match_case 
)

◆ GetAllMarkers()

const CSeqGraphicPane::TSeqMarkers & CSeqGraphicPane::GetAllMarkers ( ) const
inline

Definition at line 603 of file seqgraphic_pane.hpp.

References m_SeqMarkers.

◆ GetConfig()

CRef< CSeqGraphicConfig > CSeqGraphicPane::GetConfig ( void  )

Definition at line 2106 of file seqgraphic_pane.cpp.

References m_ConfigSettings.

Referenced by CwxExportVectorImageDlg::OnTimer().

◆ GetCurrentObject()

void CSeqGraphicPane::GetCurrentObject ( int  mouse_x,
int  mouse_y,
TConstObjects objs 
)

◆ GetDataSource()

CSGSequenceDS * CSeqGraphicPane::GetDataSource ( void  )

Definition at line 267 of file seqgraphic_pane.cpp.

References CRef< C, Locker >::GetPointer(), and m_DS.

Referenced by FindText(), and CwxExportVectorImageDlg::SetSeqRange().

◆ GetFeatureNames()

void CSeqGraphicPane::GetFeatureNames ( vector< string > &  names)

Definition at line 2096 of file seqgraphic_pane.cpp.

References CSeqFeatData::GetFeatList(), ITERATE, and names.

◆ GetFeaturePanel()

CFeaturePanel * CSeqGraphicPane::GetFeaturePanel ( )

◆ GetHeight()

TModelUnit CSeqGraphicPane::GetHeight ( void  )
inline

class CSeqGraphicPane

Definition at line 556 of file seqgraphic_pane.hpp.

References CSeqGraphicRenderer::GetHeight(), and m_Renderer.

Referenced by AdjustViewPortHeightToImage().

◆ GetHitMarker()

string CSeqGraphicPane::GetHitMarker ( ) const

Definition at line 2329 of file seqgraphic_pane.cpp.

References ITERATE, kEmptyStr, and m_SeqMarkers.

◆ GetMarker()

CConstRef< CMarker > CSeqGraphicPane::GetMarker ( const string id)

◆ GetMarkerNum()

size_t CSeqGraphicPane::GetMarkerNum ( ) const

Definition at line 2193 of file seqgraphic_pane.cpp.

References ITERATE, and m_SeqMarkers.

◆ GetMarkers()

string CSeqGraphicPane::GetMarkers ( ) const

get/set markers stored as a string.

Syntax: <position>|<marker name>|<color in RGB hex> Multiple markers can be set by separating the triples with a comma, and the name and color parameters are optional. Examples:

  • 1000
  • 1000|Marker1|00ff00,
  • 1000|Marker1|00ff00,3000|Marker2|80ff10

Definition at line 2559 of file seqgraphic_pane.cpp.

References CSeqMarkHandler::eRange, first(), CSeqMarkHandler::GetColor(), CSeqMarkHandler::GetExtendedPos(), CSeqMarkHandler::GetLabel(), CSeqMarkHandler::GetMarkerType(), CSeqMarkHandler::GetPos(), ITERATE, m_SeqMarkers, NStr::NumericToString(), s_EscapeCommaAndPipe(), str(), and CRgbaColor::ToString().

◆ GetNewMarkerName()

string CSeqGraphicPane::GetNewMarkerName ( )

Definition at line 2205 of file seqgraphic_pane.cpp.

References kNamedMarker, m_MarkerId, and NStr::NumericToString().

◆ GetObjectSelection()

void CSeqGraphicPane::GetObjectSelection ( TConstObjects objs) const

retrieve the selections from our renderer.

Definition at line 941 of file seqgraphic_pane.cpp.

References CSeqGraphicRenderer::GetObjectSelection(), and m_Renderer.

◆ GetPopupArea()

int CSeqGraphicPane::GetPopupArea ( wxPoint  pos)

Definition at line 2505 of file seqgraphic_pane.cpp.

References MZHH_GetVPPosByY(), and x_GetAreaByVPPos().

◆ GetPortSize()

TVPPoint CSeqGraphicPane::GetPortSize ( void  )
overrideprotectedvirtual

Get GL view port size.

It is required by CGlWidgetPane. There is no actuall meaning.

Implements CGlWidgetPane.

Definition at line 2134 of file seqgraphic_pane.cpp.

References GetViewportRect(), CGlRect< T >::Height(), and CGlRect< T >::Width().

◆ GetRangeSelection()

const CSeqGraphicPane::TRangeColl & CSeqGraphicPane::GetRangeSelection ( void  ) const

Definition at line 948 of file seqgraphic_pane.cpp.

References CLinearSelHandler::GetSelection(), and m_SelHandler.

◆ GetSelectedLayoutObj()

CConstRef< CSeqGlyph > CSeqGraphicPane::GetSelectedLayoutObj ( )

Definition at line 1162 of file seqgraphic_pane.cpp.

References x_GetOnlyOneSelectedGlyph().

◆ GetSeqStart()

TSeqPos CSeqGraphicPane::GetSeqStart ( void  ) const
inline

Definition at line 615 of file seqgraphic_pane.hpp.

References m_SeqStart.

◆ GetViewportRect()

const TVPRect & CSeqGraphicPane::GetViewportRect ( ) const
overridevirtual

◆ GoBack()

void CSeqGraphicPane::GoBack ( void  )

◆ GoForward()

void CSeqGraphicPane::GoForward ( void  )

◆ InitDataSource()

void CSeqGraphicPane::InitDataSource ( SConstScopedObject obj)

◆ IsFlipped()

bool CSeqGraphicPane::IsFlipped ( ) const
inline

Definition at line 574 of file seqgraphic_pane.hpp.

References m_Flipped.

◆ IsHorizontal()

bool CSeqGraphicPane::IsHorizontal ( ) const
inline

Definition at line 568 of file seqgraphic_pane.hpp.

References m_Horz.

Referenced by SetSeqMarker(), and SetSeqStartPoint().

◆ LoadDefaultTracks()

void CSeqGraphicPane::LoadDefaultTracks ( )
inline

Definition at line 580 of file seqgraphic_pane.hpp.

References CSeqGraphicRenderer::LoadDefaultTracks(), and m_Renderer.

◆ LTH_ConfigureTracksDlg()

void CSeqGraphicPane::LTH_ConfigureTracksDlg ( const string category)
overridevirtual

Reimplemented from ILayoutTrackHost.

Definition at line 1867 of file seqgraphic_pane.cpp.

References GetFeaturePanel(), and CFeaturePanel::ShowConfigureTracksDlg().

◆ LTH_OnLayoutChanged()

void CSeqGraphicPane::LTH_OnLayoutChanged ( )
overridevirtual

provides mouse coords in OpenGL viewport coord system

notifies the host about changes of the track.

Implements ILayoutTrackHost.

Definition at line 1846 of file seqgraphic_pane.cpp.

References m_Renderer, and CSeqGraphicRenderer::SetNeedUpdateSelection().

◆ LTH_PopEventHandler()

void CSeqGraphicPane::LTH_PopEventHandler ( )
overridevirtual

Implements ILayoutTrackHost.

Definition at line 1917 of file seqgraphic_pane.cpp.

◆ LTH_PopupMenu()

void CSeqGraphicPane::LTH_PopupMenu ( wxMenu *  menu)
overridevirtual

show track-specific context menu.

Implements ILayoutTrackHost.

Definition at line 1859 of file seqgraphic_pane.cpp.

References CGlWidgetPane::SetPopupMenuDisplayed().

◆ LTH_PushEventHandler()

void CSeqGraphicPane::LTH_PushEventHandler ( wxEvtHandler *  handler)
overridevirtual

Implements ILayoutTrackHost.

Definition at line 1911 of file seqgraphic_pane.cpp.

◆ LTH_ZoomOnRange()

void CSeqGraphicPane::LTH_ZoomOnRange ( const TSeqRange range)
overridevirtual

notifies the host we need to zoom on to a range.

Implements ILayoutTrackHost.

Definition at line 1853 of file seqgraphic_pane.cpp.

References CSeqGraphicWidget::fSaveRange, compile_time_bits::range(), x_GetParent(), and CSeqGraphicWidget::ZoomOnRange().

◆ ModifyMarker() [1/2]

void CSeqGraphicPane::ModifyMarker ( const string id,
const string label,
TSeqPos  pos,
const CRgbaColor  color 
)

◆ ModifyMarker() [2/2]

void CSeqGraphicPane::ModifyMarker ( const string id,
const string label,
TSeqRange  range,
const CRgbaColor  color 
)

◆ MZHH_EndOp()

void CSeqGraphicPane::MZHH_EndOp ( )
overridevirtual

◆ MZHH_GetScale()

TModelUnit CSeqGraphicPane::MZHH_GetScale ( EScaleType  type)
overridevirtual

◆ MZHH_GetVPPosByY()

TVPUnit CSeqGraphicPane::MZHH_GetVPPosByY ( int  y) const
overridevirtual

◆ MZHH_Scroll()

void CSeqGraphicPane::MZHH_Scroll ( TModelUnit  d_x,
TModelUnit  d_y 
)
overridevirtual

Implements IMouseZoomHandlerHost.

Definition at line 1764 of file seqgraphic_pane.cpp.

References CGlWidgetBase::Scroll(), and x_GetParent().

Referenced by OnMouseWheel(), and x_OnPan().

◆ MZHH_SetScale()

void CSeqGraphicPane::MZHH_SetScale ( TModelUnit  scale,
const TModelPoint point 
)
overridevirtual

Implements IMouseZoomHandlerHost.

Definition at line 1742 of file seqgraphic_pane.cpp.

References CSeqGraphicWidget::SetScaleX(), and x_GetParent().

◆ MZHH_ZoomPoint()

void CSeqGraphicPane::MZHH_ZoomPoint ( const TModelPoint point,
TModelUnit  factor 
)
overridevirtual

Implements IMouseZoomHandlerHost.

Definition at line 1748 of file seqgraphic_pane.cpp.

References x_GetParent(), and CGlWidgetBase::ZoomPoint().

◆ MZHH_ZoomRect()

void CSeqGraphicPane::MZHH_ZoomRect ( const TModelRect rc)
overridevirtual

◆ NextPrevSplice()

void CSeqGraphicPane::NextPrevSplice ( EDirection  dir)

◆ OnContextMenu()

void CSeqGraphicPane::OnContextMenu ( wxContextMenuEvent &  event)

◆ OnDataChanged()

void CSeqGraphicPane::OnDataChanged ( )
inline

Definition at line 592 of file seqgraphic_pane.hpp.

References m_Renderer, and CSeqGraphicRenderer::OnDataChanged().

◆ OnDataChanging()

void CSeqGraphicPane::OnDataChanging ( )
inline

Definition at line 287 of file seqgraphic_pane.hpp.

References m_Renderer, and CSeqGraphicRenderer::OnDataChanging().

◆ OnEditCopy()

void CSeqGraphicPane::OnEditCopy ( void  )

Definition at line 1517 of file seqgraphic_pane.cpp.

◆ OnInfoTip()

void CSeqGraphicPane::OnInfoTip ( const string )

Definition at line 1702 of file seqgraphic_pane.cpp.

◆ OnKeyDown()

void CSeqGraphicPane::OnKeyDown ( wxKeyEvent &  event)

◆ OnKeyUp()

void CSeqGraphicPane::OnKeyUp ( wxKeyEvent &  event)

Definition at line 279 of file seqgraphic_pane.cpp.

◆ OnKillFocus()

void CSeqGraphicPane::OnKillFocus ( wxFocusEvent &  event)

Definition at line 2756 of file seqgraphic_pane.cpp.

References GetFeaturePanel(), and CFeaturePanel::SaveTrackConfig().

◆ OnLeftDblClick()

void CSeqGraphicPane::OnLeftDblClick ( wxMouseEvent &  event)

◆ OnLeftDown()

void CSeqGraphicPane::OnLeftDown ( wxMouseEvent &  event)

◆ OnLeftUp()

void CSeqGraphicPane::OnLeftUp ( wxMouseEvent &  event)

◆ OnMiddleDown()

void CSeqGraphicPane::OnMiddleDown ( wxMouseEvent &  event)

Definition at line 480 of file seqgraphic_pane.cpp.

References CGlWidgetPane::CheckOverlayTimer().

◆ OnMotion()

void CSeqGraphicPane::OnMotion ( wxMouseEvent &  event)

◆ OnMouseCaptureLost()

void CSeqGraphicPane::OnMouseCaptureLost ( wxMouseCaptureLostEvent &  )

◆ OnMouseWheel()

void CSeqGraphicPane::OnMouseWheel ( wxMouseEvent &  event)

Definition at line 536 of file seqgraphic_pane.cpp.

References CGlWidgetPane::CheckOverlayTimer(), m_Horz, and MZHH_Scroll().

◆ OnScrollEnd()

void CSeqGraphicPane::OnScrollEnd ( wxScrollEvent &  event)

◆ OnSearchTip()

void CSeqGraphicPane::OnSearchTip ( const string tip_id,
const wxRect &  tip_rect 
)

◆ OnTipAdded()

void CSeqGraphicPane::OnTipAdded ( const string tip_id)

◆ OnTipRemoved()

void CSeqGraphicPane::OnTipRemoved ( const string tip_id)

Definition at line 1723 of file seqgraphic_pane.cpp.

References map_checker< Container >::erase(), and m_PinnedTips.

◆ OnZoomTip()

void CSeqGraphicPane::OnZoomTip ( const string tip_id,
const wxRect &   
)

◆ PostDialogShow()

void CSeqGraphicPane::PostDialogShow ( )
overridevirtual

Post-processing after showing a dialog.

Implements IGlyphDialogHost.

Definition at line 1930 of file seqgraphic_pane.cpp.

References CGlWidgetPane::DlgOverlayFix(), and CGlWidgetPane::SetPopupMenuDisplayed().

◆ PreDialogShow()

void CSeqGraphicPane::PreDialogShow ( )
overridevirtual

Prepare for showing a dialog.

Implements IGlyphDialogHost.

Definition at line 1923 of file seqgraphic_pane.cpp.

References CGlWidgetPane::SetPopupMenuDisplayed().

◆ RemoveAllMarkers()

void CSeqGraphicPane::RemoveAllMarkers ( )

◆ RemoveMarker()

void CSeqGraphicPane::RemoveMarker ( const string marker_id)

◆ RenameMarker()

void CSeqGraphicPane::RenameMarker ( const string id,
const string label 
)

◆ RenderVectorGraphics()

void CSeqGraphicPane::RenderVectorGraphics ( int  vp_width,
int  vp_height 
)
overridevirtual

◆ ResetObjectSelection()

void CSeqGraphicPane::ResetObjectSelection ( void  )

Definition at line 933 of file seqgraphic_pane.cpp.

References m_Renderer, and CSeqGraphicRenderer::ResetObjectSelection().

Referenced by ResetSelection().

◆ ResetRangeSelection()

void CSeqGraphicPane::ResetRangeSelection ( )

Definition at line 926 of file seqgraphic_pane.cpp.

References m_SelHandler, and CLinearSelHandler::ResetSelection().

Referenced by ResetSelection().

◆ ResetSearch()

void CSeqGraphicPane::ResetSearch ( void  )
overridevirtual

Reimplemented from ILayoutTrackHost.

Definition at line 1872 of file seqgraphic_pane.cpp.

References GetFeaturePanel(), and CFeaturePanel::ResetSearch().

◆ ResetSelection()

void CSeqGraphicPane::ResetSelection ( void  )

Definition at line 919 of file seqgraphic_pane.cpp.

References ResetObjectSelection(), and ResetRangeSelection().

◆ ResetSeqStart()

void CSeqGraphicPane::ResetSeqStart ( )

Definition at line 2316 of file seqgraphic_pane.cpp.

References SetSeqStart().

◆ SaveCurrentRange()

void CSeqGraphicPane::SaveCurrentRange ( )

For Back or Forward operations.

Definition at line 1565 of file seqgraphic_pane.cpp.

References CSeqGraphicWidget::GetVisibleSeqRange(), m_BackForwardHistory, m_BackForwardPos, CSeqGraphicWidget::SetDirty(), and x_GetParent().

Referenced by MZHH_EndOp(), and x_OnEndPan().

◆ SaveTrackConfig()

void CSeqGraphicPane::SaveTrackConfig ( )
inline

Definition at line 609 of file seqgraphic_pane.hpp.

References m_Renderer, and CSeqGraphicRenderer::SaveTrackConfig().

◆ SelectLastHitObject()

void CSeqGraphicPane::SelectLastHitObject ( int  mouse_x,
int  mouse_y 
)

◆ SelectObject()

void CSeqGraphicPane::SelectObject ( const CObject obj,
bool  verified 
)

Definition at line 845 of file seqgraphic_pane.cpp.

References m_Renderer, and CSeqGraphicRenderer::SelectObject().

Referenced by FindText(), OnLeftUp(), and SelectOnlyThisObject().

◆ SelectOnlyThisObject()

void CSeqGraphicPane::SelectOnlyThisObject ( const CSeqGlyph glyph,
int  mouse_x,
int  mouse_y 
)

◆ SelectSeqLoc()

void CSeqGraphicPane::SelectSeqLoc ( const objects::CSeq_loc *  loc)

◆ SetActivatedTip()

void CSeqGraphicPane::SetActivatedTip ( const string id)
inline

Definition at line 597 of file seqgraphic_pane.hpp.

References m_ActivatedTipId.

◆ SetExternalGlyphs()

void CSeqGraphicPane::SetExternalGlyphs ( const CSeqGlyph::TObjects objs)

Definition at line 827 of file seqgraphic_pane.cpp.

References m_Renderer, and CSeqGraphicRenderer::SetExternalGlyphs().

◆ SetHorizontal()

void CSeqGraphicPane::SetHorizontal ( bool  b_horz,
bool  b_flip 
)

◆ SetInputObject()

void CSeqGraphicPane::SetInputObject ( SConstScopedObject obj)

◆ SetMarkers()

void CSeqGraphicPane::SetMarkers ( const string markers)

◆ SetNonAsnInput()

void CSeqGraphicPane::SetNonAsnInput ( const INonAsnTrackData data)

◆ SetRangeSelection()

void CSeqGraphicPane::SetRangeSelection ( const TRangeColl ranges)

Definition at line 954 of file seqgraphic_pane.cpp.

References m_SelHandler, and CLinearSelHandler::SetSelection().

◆ SetSeqMarker()

void CSeqGraphicPane::SetSeqMarker ( TModelPoint  point)

◆ SetSeqStart()

void CSeqGraphicPane::SetSeqStart ( TSeqPos  pos)

◆ SetSeqStartMarker()

void CSeqGraphicPane::SetSeqStartMarker ( const string id)

Definition at line 2306 of file seqgraphic_pane.cpp.

References GetMarker(), and SetSeqStart().

◆ SetSeqStartPoint()

void CSeqGraphicPane::SetSeqStartPoint ( TModelPoint  point)

◆ SetSwitchPoint()

void CSeqGraphicPane::SetSwitchPoint ( )

Definition at line 2323 of file seqgraphic_pane.cpp.

References x_ChangeSwitchPoint().

◆ SetUpdateContent()

void CSeqGraphicPane::SetUpdateContent ( )
inline

Definition at line 562 of file seqgraphic_pane.hpp.

References m_Renderer, and CSeqGraphicRenderer::SetUpdateContent().

◆ SetVectorMode()

void CSeqGraphicPane::SetVectorMode ( bool  b)
inline

@)

Indicate pane is only for creating vector graphics - ignore other draw events

Definition at line 413 of file seqgraphic_pane.hpp.

References b, and m_VectorPane.

◆ SetViewportWidth()

void CSeqGraphicPane::SetViewportWidth ( TSeqPos  from,
TSeqPos  to,
TVPUnit  vp_width 
)

◆ SHH_GetModelByWindow()

TModelUnit CSeqGraphicPane::SHH_GetModelByWindow ( int  z,
EOrientation  orient 
)
overridevirtual

◆ SHH_GetWindowByModel()

TVPUnit CSeqGraphicPane::SHH_GetWindowByModel ( TModelUnit  z,
EOrientation  orient 
)
overridevirtual

◆ SHH_OnChanged()

void CSeqGraphicPane::SHH_OnChanged ( )
overridevirtual

ISelHandlerHost implementation.

Implements ISelHandlerHost.

Definition at line 1819 of file seqgraphic_pane.cpp.

References x_NotifyWidgetSelChanged().

◆ ShowAllTracks()

void CSeqGraphicPane::ShowAllTracks ( bool  shown)
inline

Definition at line 392 of file seqgraphic_pane.hpp.

References m_Renderer, and CSeqGraphicRenderer::ShowAllTracks().

◆ SMHH_GetModelByWindow()

TModelUnit CSeqGraphicPane::SMHH_GetModelByWindow ( int  z,
EOrientation  orient 
)
overridevirtual

Implements ISeqMarkHandlerHost.

Definition at line 1785 of file seqgraphic_pane.cpp.

References SHH_GetModelByWindow().

◆ SMHH_GetSeqMark()

TSeqPos CSeqGraphicPane::SMHH_GetSeqMark ( ) const
overridevirtual

If the host needs to dictate/store the marker position, then it needs to return a non (TSeqPos)-1 value.

Otherwise, the internal marker position will be used.

Implements ISeqMarkHandlerHost.

Definition at line 1791 of file seqgraphic_pane.cpp.

◆ SMHH_OnReset()

void CSeqGraphicPane::SMHH_OnReset ( const string marker_id)
overridevirtual

The derived class may need to do something differently when a marker gets reset, such as remove the marker.

Implements ISeqMarkHandlerHost.

Definition at line 1810 of file seqgraphic_pane.cpp.

References CEventHandler::eDispatch_Default, CEvent::eEvent_Message, CEventHandler::ePool_Parent, CViewEvent::eWidgetDataChanged, CEventHandler::Send(), and x_RemoveMarker().

◆ SMHH_SetSeqMark()

void CSeqGraphicPane::SMHH_SetSeqMark ( TSeqPos  mark)
overridevirtual

The derived class may choose do something differently when marker position is changed.

Implements ISeqMarkHandlerHost.

Definition at line 1799 of file seqgraphic_pane.cpp.

References CEventHandler::eDispatch_Default, CEvent::eEvent_Message, CEventHandler::ePool_Parent, CViewEvent::eWidgetDataChanged, and CEventHandler::Send().

◆ THH_GetLayoutTrack()

CRef< CLayoutTrack > CSeqGraphicPane::THH_GetLayoutTrack ( )
overridevirtual

Get the layout track under the current mouse position.

Parameters
posthe mouse pos in window coord. sys.

Implements ITrackHandlerHost.

Definition at line 1952 of file seqgraphic_pane.cpp.

References CWeakRef< C, Locker >::Lock(), m_LastHitGlyph, and CRef< C, Locker >::Reset().

◆ THH_GetModelByWindow()

TModelPoint CSeqGraphicPane::THH_GetModelByWindow ( const wxPoint &  pt)
overridevirtual

◆ TTHH_GetTooltip()

CTooltipInfo CSeqGraphicPane::TTHH_GetTooltip ( const wxRect &  )
overridevirtual

◆ TTHH_NeedTooltip()

string CSeqGraphicPane::TTHH_NeedTooltip ( const wxPoint &  )
overridevirtual

◆ TTHH_ProcessURL()

bool CSeqGraphicPane::TTHH_ProcessURL ( const wxString &  )
overridevirtual

Return true if the specified URL has been processed. Used for custom commands.

Reimplemented from IStickyTooltipHandlerHost.

Definition at line 2087 of file seqgraphic_pane.cpp.

References CSGSequenceDS::GetScope(), m_DS, and CURLTooltipHandler::ProcessURL().

◆ Update()

void CSeqGraphicPane::Update ( void  )
overridevirtual

Definition at line 2112 of file seqgraphic_pane.cpp.

◆ UpdateConfig()

void CSeqGraphicPane::UpdateConfig ( )

◆ UpdateData()

void CSeqGraphicPane::UpdateData ( TSeqPos  from,
TSeqPos  to 
)

◆ UpdateVectorLayout()

void CSeqGraphicPane::UpdateVectorLayout ( )
overridevirtual

◆ x_AddNewMarker()

void CSeqGraphicPane::x_AddNewMarker ( CRef< CMarker marker,
const string label,
const CRgbaColor color 
)
private

◆ x_ChangeSwitchPoint()

void CSeqGraphicPane::x_ChangeSwitchPoint ( )
private

◆ x_ClearMarkers()

void CSeqGraphicPane::x_ClearMarkers ( )
private

◆ x_GetAreaByVPPos()

int CSeqGraphicPane::x_GetAreaByVPPos ( int  vp_x,
int  vp_y 
)
overrideprotectedvirtual

◆ x_GetCachedTipId()

string CSeqGraphicPane::x_GetCachedTipId ( const CSeqGlyph glyph) const
private

◆ x_GetDefaultMarker()

CSeqMarkHandler & CSeqGraphicPane::x_GetDefaultMarker ( )
private

◆ x_GetGlyphByTipId()

CWeakRef< CSeqGlyph > CSeqGraphicPane::x_GetGlyphByTipId ( const string tip_id)
private

◆ x_GetOnlyOneSelectedGlyph()

CConstRef< CSeqGlyph > CSeqGraphicPane::x_GetOnlyOneSelectedGlyph ( )
private

◆ x_GetParent() [1/2]

CSeqGraphicWidget* CSeqGraphicPane::x_GetParent ( )
inlineprotected

◆ x_GetParent() [2/2]

const CSeqGraphicWidget* CSeqGraphicPane::x_GetParent ( ) const
inlineprotected

Definition at line 459 of file seqgraphic_pane.hpp.

◆ x_HasDefaultMarker()

bool CSeqGraphicPane::x_HasDefaultMarker ( ) const
private

◆ x_ModifyMarker()

bool CSeqGraphicPane::x_ModifyMarker ( CRef< CMarker > &  marker,
const string id,
const string label,
const CRgbaColor  color 
)
private

◆ x_NotifyWidgetRangeChanged()

void CSeqGraphicPane::x_NotifyWidgetRangeChanged ( )
protected

◆ x_NotifyWidgetSelChanged()

void CSeqGraphicPane::x_NotifyWidgetSelChanged ( )
protected

◆ x_OnEndPan()

void CSeqGraphicPane::x_OnEndPan ( )
private

◆ x_OnEndRectSelect()

void CSeqGraphicPane::x_OnEndRectSelect ( )
private

◆ x_OnPan()

void CSeqGraphicPane::x_OnPan ( )
private

◆ x_OnPurgeMarkers()

void CSeqGraphicPane::x_OnPurgeMarkers ( CEvent )
protected

◆ x_RemoveMarker()

void CSeqGraphicPane::x_RemoveMarker ( const string id)
private

◆ x_Render()

void CSeqGraphicPane::x_Render ( void  )
overrideprotectedvirtual

◆ x_RenderRectSelHandler()

void CSeqGraphicPane::x_RenderRectSelHandler ( CGlPane pane)
private

◆ x_RenderTooltipConnector()

void CSeqGraphicPane::x_RenderTooltipConnector ( )
private

◆ x_SelectByRect()

void CSeqGraphicPane::x_SelectByRect ( )
private

◆ ZoomObject()

void CSeqGraphicPane::ZoomObject ( void  )

Member Data Documentation

◆ m_ActivatedTipId

string CSeqGraphicPane::m_ActivatedTipId
private

Definition at line 519 of file seqgraphic_pane.hpp.

Referenced by SetActivatedTip(), and x_RenderTooltipConnector().

◆ m_BackForwardHistory

TRangeVec CSeqGraphicPane::m_BackForwardHistory
private

◆ m_BackForwardPos

size_t CSeqGraphicPane::m_BackForwardPos
private

position in m_BackForwardHistory

Definition at line 514 of file seqgraphic_pane.hpp.

Referenced by CanGoBack(), CanGoForward(), GoBack(), GoForward(), SaveCurrentRange(), and SetInputObject().

◆ m_ConfigSettings

CRef<CSeqGraphicConfig> CSeqGraphicPane::m_ConfigSettings
private

◆ m_CurrMouse

wxPoint CSeqGraphicPane::m_CurrMouse
private

Definition at line 527 of file seqgraphic_pane.hpp.

Referenced by OnKeyDown(), OnLeftUp(), OnMotion(), and x_OnPan().

◆ m_DragPoint

wxPoint CSeqGraphicPane::m_DragPoint
private

Definition at line 526 of file seqgraphic_pane.hpp.

Referenced by OnLeftDown(), OnMotion(), x_RenderRectSelHandler(), and x_SelectByRect().

◆ m_DS

CRef<CSGSequenceDS> CSeqGraphicPane::m_DS
private

◆ m_DSContext

CIRef<ISGDataSourceContext> CSeqGraphicPane::m_DSContext
private

Definition at line 494 of file seqgraphic_pane.hpp.

Referenced by CSeqGraphicPane(), InitDataSource(), and SetNonAsnInput().

◆ m_Flipped

bool CSeqGraphicPane::m_Flipped
private

◆ m_Horz

bool CSeqGraphicPane::m_Horz
private

◆ m_LastHitGlyph

CWeakRef<CSeqGlyph> CSeqGraphicPane::m_LastHitGlyph
private

last hit glyph.

not necessarilly selected glyph, and not limited to selectable glyphs.

Definition at line 499 of file seqgraphic_pane.hpp.

Referenced by OnLeftDown(), OnLeftUp(), OnMotion(), OnTipAdded(), SelectLastHitObject(), THH_GetLayoutTrack(), TTHH_GetTooltip(), and TTHH_NeedTooltip().

◆ m_MarkerHandlerIndex

int CSeqGraphicPane::m_MarkerHandlerIndex
private

Marker handler index among all registered handlers.

Definition at line 535 of file seqgraphic_pane.hpp.

Referenced by CSeqGraphicPane(), x_AddNewMarker(), and x_GetDefaultMarker().

◆ m_MarkerId

size_t CSeqGraphicPane::m_MarkerId
private

◆ m_MouseMode

EMouseMode CSeqGraphicPane::m_MouseMode
private

◆ m_MouseZoomHandler

CMouseZoomHandler CSeqGraphicPane::m_MouseZoomHandler
private

Definition at line 505 of file seqgraphic_pane.hpp.

Referenced by CSeqGraphicPane(), and x_Render().

◆ m_PinnedTips

TPinnedTips CSeqGraphicPane::m_PinnedTips
private

Definition at line 521 of file seqgraphic_pane.hpp.

Referenced by OnTipAdded(), OnTipRemoved(), x_GetCachedTipId(), and x_GetGlyphByTipId().

◆ m_Renderer

CRef<CSeqGraphicRenderer> CSeqGraphicPane::m_Renderer
private

◆ m_SelHandler

CLinearSelHandler CSeqGraphicPane::m_SelHandler
private

◆ m_SeqMarkers

TSeqMarkers CSeqGraphicPane::m_SeqMarkers
private

◆ m_SeqStart

TSeqPos CSeqGraphicPane::m_SeqStart
private

Definition at line 537 of file seqgraphic_pane.hpp.

Referenced by GetSeqStart(), and SetSeqStart().

◆ m_StartPoint

wxPoint CSeqGraphicPane::m_StartPoint
private

◆ m_Title

bool CSeqGraphicPane::m_Title
private

When rendering vector image, add a title.

Definition at line 540 of file seqgraphic_pane.hpp.

Referenced by AddTitle(), and RenderVectorGraphics().

◆ m_TooltipInfo

CTooltipInfo CSeqGraphicPane::m_TooltipInfo
private

Definition at line 518 of file seqgraphic_pane.hpp.

Referenced by TTHH_GetTooltip(), and TTHH_NeedTooltip().

◆ m_TooltipManager

CStickyTooltipHandler CSeqGraphicPane::m_TooltipManager
private

Definition at line 507 of file seqgraphic_pane.hpp.

Referenced by CSeqGraphicPane().

◆ m_TrackHandler

CLayoutTrackHandler CSeqGraphicPane::m_TrackHandler
private

Definition at line 503 of file seqgraphic_pane.hpp.

Referenced by CSeqGraphicPane(), RenderVectorGraphics(), and x_Render().

◆ m_VectorPane

bool CSeqGraphicPane::m_VectorPane
private

If true pane is only for creating vector graphics - ignore other draw events.

Definition at line 543 of file seqgraphic_pane.hpp.

Referenced by SetVectorMode(), and x_Render().


The documentation for this class was generated from the following files:
Modified on Wed Apr 17 13:09:48 2024 by modify_doxy.py rev. 669887