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

Search Toolkit Book for CAlnVecRow

class CAlnVecRow - implementation of IAlignRow for CAlnVec-based alignments. More...

#include <gui/widgets/aln_multiple/align_row.hpp>

+ Inheritance diagram for CAlnVecRow:
+ Collaboration diagram for CAlnVecRow:

Public Types

typedef IAlnExplorer::TSignedRange TSignedRange
 
- Public Types inherited from CObject
enum  EAllocFillMode { eAllocFillNone = 1 , eAllocFillZero , eAllocFillPattern }
 Control filling of newly allocated memory. More...
 
typedef CObjectCounterLocker TLockerType
 Default locker type for CRef. More...
 
typedef atomic< Uint8TCounter
 Counter type is CAtomiCounter. More...
 
typedef Uint8 TCount
 Alias for value type of counter. More...
 
- 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 Types inherited from IAlignRow
enum  EColumnType {
  eInvalid = -1 , eDescr , eIcons , eSeqStart ,
  eStart , eAlignment , eEnd , eSeqEnd ,
  eSeqLength , eIconStrand , eIconExpand , eTaxLabel ,
  eIsolationSource , eCountry , eCollectionDate , eHost ,
  ePctIdentity , ePctCoverage , eMismatches , eGeneSymbol ,
  eLast
}
 Column identifier for use as TColumnType, defines basic column types this set can be extended in derived classes. More...
 
enum  EState {
  fNone = 0 , fItemSelected = 0x01 , fItemFocused = 0x02 , fItemHidden = 0x08 ,
  fWidgetFocused = 0x40000000 , fFocused = fItemFocused | fWidgetFocused , fSelectedActive = fItemSelected | fWidgetFocused , fSelectedFocused = fFocused | fItemSelected
}
 Row state. More...
 
enum  EGraphCacheCmd { eInvalidate , eDelete }
 
typedef vector< CHTMLActiveAreaTAreaVector
 
typedef int TColumnType
 

Public Member Functions

 CAlnVecRow (const IAlignRowHandle &handle)
 CAlnVecRow. More...
 
 ~CAlnVecRow ()
 
void SetConsensus (CConsensusRow *crow)
 
virtual void SetScoreCache (CScoreCache *cache)
 
virtual bool IsExpandable () const
 
virtual bool IsExpanded () const
 
virtual void Expand (bool b_exp, CGlPane &pane)
 
virtual void UseExternalOrganismLookup (bool f)
 
virtual string GetAlignmentTooltip (TSeqPos pos, TSeqPos half_width)
 
virtual const IAlnRowGraphPropertiesGetProperties () const
 
virtual void SetProperties (IAlnRowGraphProperties *props)
 
virtual TSeqPos GetColumnAsSeqPos (TColumnType type, const TModelRect &rc_vis) const
 
virtual stringGetColumnText (TColumnType col_type, string &text, bool for_printer=false) const
 
virtual float GetColumnAsFloat (TColumnType type) const
 
virtual stringGetAlnSeqString (string &buffer, const IAlnExplorer::TSignedRange &aln_rng) const
 
virtual stringGetStringAtPos (string &buffer, TSignedSeqPos aln_pos) const
 
virtual void GetRowStatistics (ITooltipFormatter &tooltip) const
 
virtual bool UsesAATranslation () const
 
virtual bool IsNucProtAlignment () const
 
const IAlignRowHandleGetRowHandle () const
 
virtual void LTH_OnLayoutChanged ()
 provides mouse coords in OpenGL viewport coord system More...
 
virtual void LTH_ZoomOnRange (const TSeqRange &range)
 notifies the host we need to zoom on to a range. More...
 
virtual void LTH_PopupMenu (wxMenu *menu)
 show track-specific context menu. More...
 
virtual void LTH_PushEventHandler (wxEvtHandler *handler)
 
virtual void LTH_PopEventHandler ()
 
virtual void LTH_ConfigureTracksDlg (const string &category)
 
void SaveTrackConfig ()
 
void LoadDefaultTracks ()
 
void ConfigureTracks (bool reset=false)
 
void ConfigureTracksDialog (const string &category=NcbiEmptyString)
 
size_t GetTrackCount (CGlPane &pane)
 
void GetTaxonomy (string &taxonomy) const
 
IAlignRow implementation
virtual void SetHost (IAlignRowHost *host)
 
virtual void SetDisplayStyle (const CRowDisplayStyle *style)
 
virtual const CRowDisplayStyleGetDisplayStyle ()
 
virtual int GetRowNum () const
 Returns index of row in IAlnMultiDataSource. More...
 
virtual int GetHeightPixels () const
 Returns height of the row in pixels. More...
 
virtual void RenderColumn (TColumnType col_type)
 Renders a row cell corresponding to column specified by "col_type". More...
 
virtual void OnMouseEvent (wxMouseEvent &event, TColumnType col_type, CGlPane &pane)
 
virtual void GetTooltip (const TVPPoint &vp_pt, TColumnType col_type, CGlPane &pane, ITooltipFormatter &tooltip)
 returns tooltip text by point in the viewport coordinates More...
 
virtual void GetHTMLActiveAreas (TColumnType col_type, CGlPane &pane, TAreaVector &areas)
 
virtual void UpdateOnStyleChanged ()
 
virtual void UpdateOnAnchorChanged ()
 
virtual void Update (const CGlPane &pane, bool layout_only=false)
 
virtual void PrepareRendering (CGlPane &pane, TVPUnit row_top, int state)
 
class ITrackHandlerHost implementation
virtual CRef< CLayoutTrackTHH_GetLayoutTrack ()
 Get the layout track under the current mouse position. More...
 
virtual TModelPoint THH_GetModelByWindow (const wxPoint &pt)
 
class IGenericHandlerHost implementation
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...
 
- Public Member Functions inherited from CObjectEx
 CObjectEx (void)
 
virtual ~CObjectEx (void)
 
- Public Member Functions inherited from CObject
 CObject (void)
 Constructor. More...
 
 CObject (const CObject &src)
 Copy constructor. More...
 
virtual ~CObject (void)
 Destructor. More...
 
CObjectoperator= (const CObject &src) THROWS_NONE
 Assignment operator. More...
 
bool CanBeDeleted (void) const THROWS_NONE
 Check if object can be deleted. More...
 
bool IsAllocatedInPool (void) const THROWS_NONE
 Check if object is allocated in memory pool (not system heap) More...
 
bool Referenced (void) const THROWS_NONE
 Check if object is referenced. More...
 
bool ReferencedOnlyOnce (void) const THROWS_NONE
 Check if object is referenced only once. More...
 
void AddReference (void) const
 Add reference to object. More...
 
void RemoveReference (void) const
 Remove reference to object. More...
 
void ReleaseReference (void) const
 Remove reference without deleting object. More...
 
virtual void DoNotDeleteThisObject (void)
 Mark this object as not allocated in heap – do not delete this object. More...
 
virtual void DoDeleteThisObject (void)
 Mark this object as allocated in heap – object can be deleted. More...
 
void * operator new (size_t size)
 Define new operator for memory allocation. More...
 
void * operator new[] (size_t size)
 Define new[] operator for 'array' memory allocation. More...
 
void operator delete (void *ptr)
 Define delete operator for memory deallocation. More...
 
void operator delete[] (void *ptr)
 Define delete[] operator for memory deallocation. More...
 
void * operator new (size_t size, void *place)
 Define new operator. More...
 
void operator delete (void *ptr, void *place)
 Define delete operator. More...
 
void * operator new (size_t size, CObjectMemoryPool *place)
 Define new operator using memory pool. More...
 
void operator delete (void *ptr, CObjectMemoryPool *place)
 Define delete operator. More...
 
virtual void DebugDump (CDebugDumpContext ddc, unsigned int depth) const
 Define method for dumping debug information. More...
 
- Public Member Functions inherited from CDebugDumpable
 CDebugDumpable (void)
 
virtual ~CDebugDumpable (void)
 
void DebugDumpText (ostream &out, const string &bundle, unsigned int depth) const
 
void DebugDumpFormat (CDebugDumpFormatter &ddf, const string &bundle, unsigned int depth) const
 
void DumpToConsole (void) const
 
- Public Member Functions inherited from CWeakObject
 CWeakObject (void)
 
virtual ~CWeakObject (void)
 
CPtrToObjectProxyGetPtrProxy (void) const
 Get pointer to proxy object containing pointer to this object. More...
 
- 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 ()
 
virtual void ResetSearch ()
 
- Public Member Functions inherited from ITrackHandlerHost
virtual ~ITrackHandlerHost ()
 
- Public Member Functions inherited from IGenericHandlerHost
virtual ~IGenericHandlerHost ()
 
- Public Member Functions inherited from CAlnRowState
 CAlnRowState ()
 CAlnRowState. More...
 
virtual int GetRowState () const
 Returns row state (combination of EState flags) More...
 
virtual void SetRowState (int mask, bool b_set)
 Set/Clear Row State. More...
 
- Public Member Functions inherited from IAlignRow
virtual ~IAlignRow ()
 
virtual void RenderRow ()
 
virtual void GraphicsCacheCmd (EGraphCacheCmd)
 

Protected Types

enum  EButtons { eInvalid = -1 , eStrandMarker , eExpand , eSetupGraphs }
 
typedef CScoreCache::TScoreColl::const_iterator TScoreConstIterator
 
- Protected Types inherited from IAlignRow
typedef struct IAlignRow::SRenderCtx SRenderCtx
 

Protected Member Functions

 DECLARE_EVENT_MAP ()
 
virtual int x_GetBaseHeight () const
 
virtual void x_RenderDescr ()
 
virtual void x_RenderAlign ()
 Renders graphical part of the row. More...
 
virtual void x_RenderIcons ()
 
virtual void x_RenderIconStrand ()
 
virtual void x_RenderIconExpand ()
 
virtual void x_RenderEmptyBox ()
 
virtual void x_RenderInserts (CGlPane &pane, int from, int to, TModelUnit top_y, TModelUnit bottom_y)
 
virtual void x_RenderUnaligned (CGlPane &pane, int from, int to, TModelUnit top_y, TModelUnit bottom_y)
 
virtual void x_RenderAlignSegments (CGlPane &pane, IAlnSegmentIterator &it_seg, TModelUnit top_y, TModelUnit bottom_y, const CRgbaColor &color)
 
virtual void x_RenderAlignScores (IAlnSegmentIterator &it_seg, int top_y, int bottom_y, bool averageable)
 
virtual void x_RenderAveragableScores (CGlPane &pane, IAlnSegmentIterator &it_seg, TScoreConstIterator it, const TScoreConstIterator it_end, int vp_top_y, int vp_bottom_y)
 
virtual void x_RenderNonAveragableScores (CGlPane &pane, IAlnSegmentIterator &it_seg, TScoreConstIterator it, const TScoreConstIterator it_end, int vp_top_y, int vp_bottom_y)
 
virtual bool x_CanRenderSeq (CGlPane &pane)
 Checks if sequence can be drawn. More...
 
virtual void x_RenderSequence (CGlPane &pane, TModelUnit top_y, TModelUnit bottom_y, int start, int stop)
 
virtual void x_RenderGraph (const TSignedRange &range)
 
virtual void x_RenderAlnPos (TSeqPos aln_pos, IAlnExplorer::ESearchDirection dir)
 
virtual void x_RenderTextCell (const string &text, IGlFont::TAlign align)
 
virtual TVPRect x_GetButtonRect (EButtons btn, int shift=1)
 
virtual EButtons x_HitTestButton (CGlPane &pane, const TVPPoint &pt)
 
virtual void x_OnClickExpandBtn (CGlPane &pane)
 
virtual void x_GetDescrTooltip (const TVPPoint &pt, CGlPane &pane, ITooltipFormatter &tooltip)
 
virtual void x_GetIconsTooltip (const TVPPoint &pt, CGlPane &pane, ITooltipFormatter &tooltip)
 
virtual void x_GetAlignmentTooltip (const TVPPoint &pt, CGlPane &pane, ITooltipFormatter &tooltip)
 
void x_GetAlnPosLabel (TSeqPos aln_pos, IAlnExplorer::ESearchDirection dir, string &label) const
 
void x_GetAlignmentTooltip_Helper (TSeqPos pos, TSignedRange &range, ITooltipFormatter &tooltip)
 
void x_GetAlignmentTooltip_General (TSeqPos pos, ITooltipFormatter &tooltip)
 
void x_GetAlignmentTooltip_Insert (const TSignedSeqRange &aln_r, const TSignedSeqRange &seq_r, ITooltipFormatter &tooltip)
 
void x_GetAlignmentTooltip_Gap (const TSignedSeqRange &aln_r, const TSignedSeqRange &seq_r, ITooltipFormatter &tooltip)
 
void x_GetAlignmentTooltip_Unaligned (TSignedSeqPos aln_prev_to, TSignedSeqPos aln_from, TSignedSeqPos prev_to, TSignedSeqPos from, ITooltipFormatter &tooltip)
 
string x_GetTooltipSequence (TSeqPos from, TSeqPos to)
 
IAlignRowHostx_GetHost ()
 
void x_OnGraphContentChanged (CEvent *evt)
 
void x_OnGraphSizeChanged (CEvent *evt)
 
virtual void x_UpdateRowHeight ()
 
virtual void x_CreateTrackPanel (CGlPane &pane)
 
virtual void x_ResetTrackPanel ()
 
bool x_InitTrackPane (const CGlPane &row_pane, CGlPane &track_pane)
 
void x_RenderTracks (CGlPane &pane, const TSignedRange &range)
 
CRef< CSeqGlyphx_HitTest (const TVPPoint &vp_pt, CGlPane &pane, TModelPoint &hit_point)
 
void x_ForEachAlnSeg (const IAlnExplorer::TSignedRange &range, const CGlPane &src_pane, CGlPane &target_pane, const function< bool(CGlPane &pane)> &f)
 
- Protected Member Functions inherited from CObject
virtual void DeleteThis (void)
 Virtual method "deleting" this object. More...
 
- Protected Member Functions inherited from CWeakObject
void CleanWeakRefs (void) const
 Method cleaning all CWeakRefs referencing at this moment to the object After calling to this method all existing CWeakRefs referencing to the object will return NULL, so it effectively will be equal to deleting the object. 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)
 

Protected Attributes

const IAlignRowHandlem_Handle
 
CConsensusRowm_ConsensusRow
 
IAlignRowHostm_Host
 
int m_Height
 
int m_BaseHeight
 
bool m_bExpanded
 
bool m_fExtOrgLookup
 
const CRowDisplayStylem_Style
 
CScoreCachem_Cache
 row display style More...
 
unique_ptr< CRenderingContextm_RenderingCtx
 
unique_ptr< CRenderingContextm_SequenceRenderingCtx
 
unique_ptr< CGlPanem_TrackPane
 
CRef< CFeaturePanelm_TrackPanel
 
bool m_NeedUpdateContent = false
 
bool m_NeedUpdateLayout = false
 
bool m_NeedUpdateSelection = false
 
AutoPtr< CLayoutTrackHandlerm_TrackHandler
 
CWeakRef< CLayoutTrackm_LastHitTrack
 
TVPUnit m_PixLeft
 Graphics caching. More...
 
TVPUnit m_PixRight
 
TModelUnit m_ModelLeft
 
TModelUnit m_ModelRight
 
- Protected Attributes inherited from CEventHandler
TPools m_Pools
 
- Protected Attributes inherited from IAlignRow
SRenderCtx m_RenderCtx
 

Additional Inherited Members

- Static Public Member Functions inherited from CObject
static NCBI_XNCBI_EXPORT void ThrowNullPointerException (void)
 Define method to throw null pointer exception. More...
 
static NCBI_XNCBI_EXPORT void ThrowNullPointerException (const type_info &type)
 
static EAllocFillMode GetAllocFillMode (void)
 
static void SetAllocFillMode (EAllocFillMode mode)
 
static void SetAllocFillMode (const string &value)
 Set mode from configuration parameter value. More...
 
- Static Public Member Functions inherited from CDebugDumpable
static void EnableDebugDump (bool on)
 
- Static Public Member Functions inherited from CEventHandler
static bool HandlePostRequest ()
 
static void ClearPostQueue ()
 erases all events from the queue More...
 
static void DestroyPostQueue ()
 
- Static Public Attributes inherited from CObject
static const TCount eCounterBitsCanBeDeleted = 1 << 0
 Define possible object states. More...
 
static const TCount eCounterBitsInPlainHeap = 1 << 1
 Heap signature was found. More...
 
static const TCount eCounterBitsPlaceMask
 Mask for 'in heap' state flags. More...
 
static const int eCounterStep = 1 << 2
 Skip over the "in heap" bits. More...
 
static const TCount eCounterValid = TCount(1) << (sizeof(TCount) * 8 - 2)
 Minimal value for valid objects (reference counter is zero) Must be a single bit value. More...
 
static const TCount eCounterStateMask
 Valid object, and object in heap. More...
 
- Static Protected Attributes inherited from CEventHandler
static const SEvtMap sm_EvtMap
 

Detailed Description

class CAlnVecRow - implementation of IAlignRow for CAlnVec-based alignments.

CAlnVecRow uses CAlnVecRowHandle as proxy for accesing data in CAlnVec.

Definition at line 75 of file align_row.hpp.

Member Typedef Documentation

◆ TScoreConstIterator

typedef CScoreCache::TScoreColl::const_iterator CAlnVecRow::TScoreConstIterator
protected

Definition at line 188 of file align_row.hpp.

◆ TSignedRange

Definition at line 84 of file align_row.hpp.

Member Enumeration Documentation

◆ EButtons

enum CAlnVecRow::EButtons
protected
Enumerator
eInvalid 
eStrandMarker 
eExpand 
eSetupGraphs 

Definition at line 182 of file align_row.hpp.

Constructor & Destructor Documentation

◆ CAlnVecRow()

CAlnVecRow::CAlnVecRow ( const IAlignRowHandle handle)

CAlnVecRow.

Definition at line 104 of file align_row.cpp.

◆ ~CAlnVecRow()

&CAlnVecRow::x_OnGraphSizeChanged CAlnVecRow::~CAlnVecRow ( )

Definition at line 129 of file align_row.cpp.

References NULL.

Member Function Documentation

◆ ConfigureTracks()

void CAlnVecRow::ConfigureTracks ( bool  reset = false)

◆ ConfigureTracksDialog()

void CAlnVecRow::ConfigureTracksDialog ( const string category = NcbiEmptyString)

◆ DECLARE_EVENT_MAP()

CAlnVecRow::DECLARE_EVENT_MAP ( )
protected

◆ Expand()

void CAlnVecRow::Expand ( bool  b_exp,
CGlPane pane 
)
virtual

◆ GetAlignmentTooltip()

string CAlnVecRow::GetAlignmentTooltip ( TSeqPos  pos,
TSeqPos  half_width 
)
virtual

◆ GetAlnSeqString()

string & CAlnVecRow::GetAlnSeqString ( string buffer,
const IAlnExplorer::TSignedRange aln_rng 
) const
virtual

Implements IAlignRow.

Definition at line 2845 of file align_row.cpp.

References buffer, IAlignRowHandle::GetAlnSeqString(), and m_Handle.

Referenced by GetStringAtPos().

◆ GetColumnAsFloat()

float CAlnVecRow::GetColumnAsFloat ( TColumnType  type) const
virtual

◆ GetColumnAsSeqPos()

TSeqPos CAlnVecRow::GetColumnAsSeqPos ( TColumnType  type,
const TModelRect rc_vis 
) const
virtual

◆ GetColumnText()

string & CAlnVecRow::GetColumnText ( TColumnType  col_type,
string text,
bool  for_printer = false 
) const
virtual

◆ GetDisplayStyle()

const CRowDisplayStyle * CAlnVecRow::GetDisplayStyle ( )
virtual

Implements IAlignRow.

Definition at line 374 of file align_row.cpp.

References m_Style.

◆ GetHeightPixels()

int CAlnVecRow::GetHeightPixels ( ) const
virtual

Returns height of the row in pixels.

Implements IAlignRow.

Definition at line 392 of file align_row.cpp.

References m_Height.

◆ GetHTMLActiveAreas()

void CAlnVecRow::GetHTMLActiveAreas ( TColumnType  col_type,
CGlPane pane,
TAreaVector areas 
)
virtual

◆ GetProperties()

const IAlnRowGraphProperties * CAlnVecRow::GetProperties ( void  ) const
virtual

Definition at line 2767 of file align_row.cpp.

◆ GetRowHandle()

const IAlignRowHandle & CAlnVecRow::GetRowHandle ( ) const
inline

Definition at line 307 of file align_row.hpp.

References m_Handle.

◆ GetRowNum()

int CAlnVecRow::GetRowNum ( ) const
virtual

Returns index of row in IAlnMultiDataSource.

Implements IAlignRow.

Definition at line 386 of file align_row.cpp.

References IAlignRowHandle::GetRowNum(), and m_Handle.

◆ GetRowStatistics()

void CAlnVecRow::GetRowStatistics ( ITooltipFormatter tooltip) const
virtual

◆ GetStringAtPos()

string & CAlnVecRow::GetStringAtPos ( string buffer,
TSignedSeqPos  aln_pos 
) const
virtual

◆ GetTaxonomy()

void CAlnVecRow::GetTaxonomy ( string taxonomy) const

Definition at line 1166 of file align_row.cpp.

References IAlignRowHandle::GetTaxonomy(), m_fExtOrgLookup, and m_Handle.

Referenced by x_GetAlignmentTooltip_General().

◆ GetTooltip()

void CAlnVecRow::GetTooltip ( const TVPPoint vp_pt,
TColumnType  col_type,
CGlPane pane,
ITooltipFormatter tooltip 
)
virtual

◆ GetTrackCount()

size_t CAlnVecRow::GetTrackCount ( CGlPane pane)

◆ GHH_CaptureMouse()

void CAlnVecRow::GHH_CaptureMouse ( )
virtual

captures mouse events in the hosting window for D&D

Implements IGenericHandlerHost.

Definition at line 3015 of file align_row.cpp.

References IGenericHandlerHost::GHH_CaptureMouse(), and m_Host.

◆ GHH_Redraw()

void CAlnVecRow::GHH_Redraw ( )
virtual

redraws the Host and the handler

Implements IGenericHandlerHost.

Definition at line 3002 of file align_row.cpp.

References IGenericHandlerHost::GHH_Redraw(), and m_Host.

◆ GHH_ReleaseMouse()

void CAlnVecRow::GHH_ReleaseMouse ( )
virtual

releases captured mouse

Implements IGenericHandlerHost.

Definition at line 3021 of file align_row.cpp.

References IGenericHandlerHost::GHH_ReleaseMouse(), and m_Host.

◆ GHH_SetCursor()

void CAlnVecRow::GHH_SetCursor ( const wxCursor &  cursor)
virtual

changes the cursor in the hosting window

Implements IGenericHandlerHost.

Definition at line 3009 of file align_row.cpp.

References IGenericHandlerHost::GHH_SetCursor(), and m_Host.

◆ IsExpandable()

bool CAlnVecRow::IsExpandable ( ) const
virtual

◆ IsExpanded()

bool CAlnVecRow::IsExpanded ( ) const
virtual

Definition at line 2633 of file align_row.cpp.

References m_bExpanded.

Referenced by Expand(), x_OnClickExpandBtn(), x_RenderAlign(), x_RenderGraph(), and x_RenderTracks().

◆ IsNucProtAlignment()

bool CAlnVecRow::IsNucProtAlignment ( ) const
virtual

Implements IAlignRow.

Definition at line 2947 of file align_row.cpp.

References IAlignRowHandle::IsNucProtAlignment(), and m_Handle.

Referenced by GetStringAtPos().

◆ LoadDefaultTracks()

void CAlnVecRow::LoadDefaultTracks ( )

◆ LTH_ConfigureTracksDlg()

void CAlnVecRow::LTH_ConfigureTracksDlg ( const string category)
virtual

Reimplemented from ILayoutTrackHost.

Definition at line 3103 of file align_row.cpp.

References ConfigureTracksDialog().

◆ LTH_OnLayoutChanged()

void CAlnVecRow::LTH_OnLayoutChanged ( )
virtual

◆ LTH_PopEventHandler()

void CAlnVecRow::LTH_PopEventHandler ( )
virtual

Implements ILayoutTrackHost.

Definition at line 3095 of file align_row.cpp.

References m_Host.

◆ LTH_PopupMenu()

void CAlnVecRow::LTH_PopupMenu ( wxMenu *  menu)
virtual

show track-specific context menu.

Implements ILayoutTrackHost.

Definition at line 3075 of file align_row.cpp.

References m_Host, and CGlWidgetPane::SetPopupMenuDisplayed().

◆ LTH_PushEventHandler()

void CAlnVecRow::LTH_PushEventHandler ( wxEvtHandler *  handler)
virtual

Implements ILayoutTrackHost.

Definition at line 3086 of file align_row.cpp.

References m_Host.

◆ LTH_ZoomOnRange()

virtual void CAlnVecRow::LTH_ZoomOnRange ( const TSeqRange range)
inlinevirtual

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

Implements ILayoutTrackHost.

Definition at line 149 of file align_row.hpp.

◆ OnMouseEvent()

void CAlnVecRow::OnMouseEvent ( wxMouseEvent &  event,
TColumnType  col_type,
CGlPane pane 
)
virtual

◆ PrepareRendering()

void CAlnVecRow::PrepareRendering ( CGlPane pane,
TVPUnit  row_top,
int  state 
)
virtual

◆ RenderColumn()

void CAlnVecRow::RenderColumn ( TColumnType  col_type)
virtual

◆ SaveTrackConfig()

void CAlnVecRow::SaveTrackConfig ( )

Definition at line 3146 of file align_row.cpp.

References m_bExpanded, m_TrackPanel, and CFeaturePanel::SaveTrackConfig().

◆ SetConsensus()

void CAlnVecRow::SetConsensus ( CConsensusRow crow)
inlinevirtual

Implements IAlignRow.

Definition at line 90 of file align_row.hpp.

References m_ConsensusRow.

Referenced by CAlnMultiModel::x_CreateRow().

◆ SetDisplayStyle()

void CAlnVecRow::SetDisplayStyle ( const CRowDisplayStyle style)
virtual

Implements IAlignRow.

Definition at line 322 of file align_row.cpp.

References m_Style, and UpdateOnStyleChanged().

Referenced by CAlnMultiModel::x_CreateRow().

◆ SetHost()

void CAlnVecRow::SetHost ( IAlignRowHost host)
virtual

Implements IAlignRow.

Definition at line 380 of file align_row.cpp.

References m_Host.

◆ SetProperties()

void CAlnVecRow::SetProperties ( IAlnRowGraphProperties props)
virtual

Definition at line 2774 of file align_row.cpp.

◆ SetScoreCache()

void CAlnVecRow::SetScoreCache ( CScoreCache cache)
virtual

Definition at line 135 of file align_row.cpp.

References m_Cache.

Referenced by CAlnMultiModel::x_CreateRow().

◆ THH_GetLayoutTrack()

CRef< CLayoutTrack > CAlnVecRow::THH_GetLayoutTrack ( )
virtual

Get the layout track under the current mouse position.

Parameters
posthe mouse pos in window coord. sys.

Implements ITrackHandlerHost.

Definition at line 2971 of file align_row.cpp.

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

◆ THH_GetModelByWindow()

TModelPoint CAlnVecRow::THH_GetModelByWindow ( const wxPoint &  pt)
virtual

◆ Update()

void CAlnVecRow::Update ( const CGlPane pane,
bool  layout_only = false 
)
virtual

◆ UpdateOnAnchorChanged()

void CAlnVecRow::UpdateOnAnchorChanged ( )
virtual

Reimplemented from IAlignRow.

Definition at line 337 of file align_row.cpp.

References m_NeedUpdateLayout.

◆ UpdateOnStyleChanged()

void CAlnVecRow::UpdateOnStyleChanged ( )
virtual

Implements IAlignRow.

Definition at line 329 of file align_row.cpp.

References CSeqGlyph::GetHeight(), m_BaseHeight, m_bExpanded, m_Height, m_TrackPanel, and x_GetBaseHeight().

Referenced by SetDisplayStyle().

◆ UseExternalOrganismLookup()

void CAlnVecRow::UseExternalOrganismLookup ( bool  f)
virtual

Definition at line 2750 of file align_row.cpp.

References f, and m_fExtOrgLookup.

◆ UsesAATranslation()

bool CAlnVecRow::UsesAATranslation ( ) const
virtual

Implements IAlignRow.

Definition at line 2942 of file align_row.cpp.

References m_Handle, and IAlignRowHandle::UsesAATranslation().

Referenced by GetRowStatistics(), and GetStringAtPos().

◆ x_CanRenderSeq()

bool CAlnVecRow::x_CanRenderSeq ( CGlPane pane)
protectedvirtual

Checks if sequence can be drawn.

Definition at line 1963 of file align_row.cpp.

References IGlFont::eMetric_MaxCharWidth, CGlTextureFont::GetMetric(), CGlPane::GetScaleX(), CRowDisplayStyle::GetSeqFont(), and m_Style.

Referenced by x_RenderAlign().

◆ x_CreateTrackPanel()

void CAlnVecRow::x_CreateTrackPanel ( CGlPane pane)
protectedvirtual

◆ x_ForEachAlnSeg()

void CAlnVecRow::x_ForEachAlnSeg ( const IAlnExplorer::TSignedRange range,
const CGlPane src_pane,
CGlPane target_pane,
const function< bool(CGlPane &pane)> &  f 
)
protected

◆ x_GetAlignmentTooltip()

void CAlnVecRow::x_GetAlignmentTooltip ( const TVPPoint pt,
CGlPane pane,
ITooltipFormatter tooltip 
)
protectedvirtual

◆ x_GetAlignmentTooltip_Gap()

void CAlnVecRow::x_GetAlignmentTooltip_Gap ( const TSignedSeqRange aln_r,
const TSignedSeqRange seq_r,
ITooltipFormatter tooltip 
)
protected

◆ x_GetAlignmentTooltip_General()

void CAlnVecRow::x_GetAlignmentTooltip_General ( TSeqPos  pos,
ITooltipFormatter tooltip 
)
protected

◆ x_GetAlignmentTooltip_Helper()

void CAlnVecRow::x_GetAlignmentTooltip_Helper ( TSeqPos  pos,
TSignedRange range,
ITooltipFormatter tooltip 
)
protected

◆ x_GetAlignmentTooltip_Insert()

void CAlnVecRow::x_GetAlignmentTooltip_Insert ( const TSignedSeqRange aln_r,
const TSignedSeqRange seq_r,
ITooltipFormatter tooltip 
)
protected

◆ x_GetAlignmentTooltip_Unaligned()

void CAlnVecRow::x_GetAlignmentTooltip_Unaligned ( TSignedSeqPos  aln_prev_to,
TSignedSeqPos  aln_from,
TSignedSeqPos  prev_to,
TSignedSeqPos  from,
ITooltipFormatter tooltip 
)
protected

◆ x_GetAlnPosLabel()

void CAlnVecRow::x_GetAlnPosLabel ( TSeqPos  aln_pos,
IAlnExplorer::ESearchDirection  dir,
string label 
) const
protected

◆ x_GetBaseHeight()

int CAlnVecRow::x_GetBaseHeight ( ) const
protectedvirtual

◆ x_GetButtonRect()

TVPRect CAlnVecRow::x_GetButtonRect ( EButtons  btn,
int  shift = 1 
)
protectedvirtual

◆ x_GetDescrTooltip()

void CAlnVecRow::x_GetDescrTooltip ( const TVPPoint pt,
CGlPane pane,
ITooltipFormatter tooltip 
)
protectedvirtual

◆ x_GetHost()

IAlignRowHost* CAlnVecRow::x_GetHost ( )
inlineprotected

Definition at line 252 of file align_row.hpp.

References m_Host.

Referenced by Expand(), OnMouseEvent(), and x_GetIconsTooltip().

◆ x_GetIconsTooltip()

void CAlnVecRow::x_GetIconsTooltip ( const TVPPoint pt,
CGlPane pane,
ITooltipFormatter tooltip 
)
protectedvirtual

◆ x_GetTooltipSequence()

string CAlnVecRow::x_GetTooltipSequence ( TSeqPos  from,
TSeqPos  to 
)
protected

◆ x_HitTest()

CRef< CSeqGlyph > CAlnVecRow::x_HitTest ( const TVPPoint vp_pt,
CGlPane pane,
TModelPoint hit_point 
)
protected

◆ x_HitTestButton()

CAlnVecRow::EButtons CAlnVecRow::x_HitTestButton ( CGlPane pane,
const TVPPoint pt 
)
protectedvirtual

◆ x_InitTrackPane()

bool CAlnVecRow::x_InitTrackPane ( const CGlPane row_pane,
CGlPane track_pane 
)
protected

◆ x_OnClickExpandBtn()

void CAlnVecRow::x_OnClickExpandBtn ( CGlPane pane)
protectedvirtual

Definition at line 1257 of file align_row.cpp.

References Expand(), and IsExpanded().

Referenced by OnMouseEvent().

◆ x_OnGraphContentChanged()

void CAlnVecRow::x_OnGraphContentChanged ( CEvent evt)
protected

Definition at line 2952 of file align_row.cpp.

References IAlignRowHost::ARH_OnRowChanged(), m_Host, and x_UpdateRowHeight().

◆ x_OnGraphSizeChanged()

void CAlnVecRow::x_OnGraphSizeChanged ( CEvent evt)
protected

Definition at line 2962 of file align_row.cpp.

References IAlignRowHost::ARH_OnRowChanged(), m_Host, and x_UpdateRowHeight().

◆ x_RenderAlign()

void CAlnVecRow::x_RenderAlign ( )
protectedvirtual

◆ x_RenderAlignScores()

void CAlnVecRow::x_RenderAlignScores ( IAlnSegmentIterator it_seg,
int  top_y,
int  bottom_y,
bool  averageable 
)
protectedvirtual

◆ x_RenderAlignSegments()

void CAlnVecRow::x_RenderAlignSegments ( CGlPane pane,
IAlnSegmentIterator it_seg,
TModelUnit  top_y,
TModelUnit  bottom_y,
const CRgbaColor color 
)
protectedvirtual

◆ x_RenderAlnPos()

void CAlnVecRow::x_RenderAlnPos ( TSeqPos  aln_pos,
IAlnExplorer::ESearchDirection  dir 
)
protectedvirtual

Definition at line 2567 of file align_row.cpp.

References IGlFont::eAlign_HCenter, label, x_GetAlnPosLabel(), and x_RenderTextCell().

◆ x_RenderAveragableScores()

void CAlnVecRow::x_RenderAveragableScores ( CGlPane pane,
IAlnSegmentIterator it_seg,
TScoreConstIterator  it,
const TScoreConstIterator  it_end,
int  vp_top_y,
int  vp_bottom_y 
)
protectedvirtual

◆ x_RenderDescr()

void CAlnVecRow::x_RenderDescr ( )
protectedvirtual

◆ x_RenderEmptyBox()

void CAlnVecRow::x_RenderEmptyBox ( )
protectedvirtual

◆ x_RenderGraph()

void CAlnVecRow::x_RenderGraph ( const TSignedRange range)
protectedvirtual

◆ x_RenderIconExpand()

void CAlnVecRow::x_RenderIconExpand ( )
protectedvirtual

◆ x_RenderIcons()

void CAlnVecRow::x_RenderIcons ( )
protectedvirtual

◆ x_RenderIconStrand()

void CAlnVecRow::x_RenderIconStrand ( )
protectedvirtual

◆ x_RenderInserts()

void CAlnVecRow::x_RenderInserts ( CGlPane pane,
int  from,
int  to,
TModelUnit  top_y,
TModelUnit  bottom_y 
)
protectedvirtual

◆ x_RenderNonAveragableScores()

void CAlnVecRow::x_RenderNonAveragableScores ( CGlPane pane,
IAlnSegmentIterator it_seg,
TScoreConstIterator  it,
const TScoreConstIterator  it_end,
int  vp_top_y,
int  vp_bottom_y 
)
protectedvirtual

◆ x_RenderSequence()

void CAlnVecRow::x_RenderSequence ( CGlPane pane,
TModelUnit  top_y,
TModelUnit  bottom_y,
int  start,
int  stop 
)
protectedvirtual

Definition at line 1977 of file align_row.cpp.

References _ASSERT, abs, CAttrRangeCollection< Attr, Position >::begin(), IRender::Begin(), IRender::BeginText(), IRender::ColorC(), colors, IAlignRowHandle::CreateSegmentIterator(), IRender::Disable(), IRender::Enable(), CGlPane::EnableOffset(), CAttrRangeCollection< Attr, Position >::end(), IRender::End(), IRender::EndText(), CWidgetDisplayStyle::eSequence, IAlnSegmentIterator::eSkipGaps, IScoringMethod::fForeground, CAttrRangeCollection< Attr, Position >::find(), IAlnSegment::GetAlnRange(), CConsensusRow::GetAlnSeqString(), IAlignRowHandle::GetAlnSeqString(), IAlignRowHandle::GetBaseWidth(), CRowDisplayStyle::GetColor(), CScoreCache::GetColorForScore(), CRowDisplayStyle::GetDotTexture(), CRange_Base::GetFrom(), GetGl(), CConsensusRow::GetHandle(), CGlPane::GetOffsetX(), IAlnSegment::GetRange(), IAlignRowHandle::GetRowNum(), CGlPane::GetScaleX(), CScoreCache::GetScores(), CScoreCache::GetScoringMethod(), CRowDisplayStyle::GetSeqFont(), CRowDisplayStyle::GetShowIdenticalBases(), IScoringMethod::GetSupportedColorTypes(), H, CScoreCache::HasScores(), i, IAlnSegment::IsAligned(), IAlignRowHandle::IsNegativeStrand(), CConsensusRow::IsValid(), len, CRgbaColor::Lighten(), IRender::LineWidth(), m_Cache, m_ConsensusRow, m_Handle, m_SequenceRenderingCtx, m_Style, max(), min(), CRef< C, Locker >::NotEmpty(), NULL, r(), CGlTextureFont::TextHeight(), CGlTextureFont::TextWidth(), IRender::Vertex2d(), and IRender::WriteText().

Referenced by x_RenderAlign().

◆ x_RenderTextCell()

void CAlnVecRow::x_RenderTextCell ( const string text,
IGlFont::TAlign  align 
)
protectedvirtual

◆ x_RenderTracks()

void CAlnVecRow::x_RenderTracks ( CGlPane pane,
const TSignedRange range 
)
protected

◆ x_RenderUnaligned()

void CAlnVecRow::x_RenderUnaligned ( CGlPane pane,
int  from,
int  to,
TModelUnit  top_y,
TModelUnit  bottom_y 
)
protectedvirtual

◆ x_ResetTrackPanel()

void CAlnVecRow::x_ResetTrackPanel ( )
protectedvirtual

◆ x_UpdateRowHeight()

void CAlnVecRow::x_UpdateRowHeight ( )
protectedvirtual

Member Data Documentation

◆ m_BaseHeight

int CAlnVecRow::m_BaseHeight
protected

◆ m_bExpanded

bool CAlnVecRow::m_bExpanded
protected

◆ m_Cache

CScoreCache* CAlnVecRow::m_Cache
protected

◆ m_ConsensusRow

CConsensusRow* CAlnVecRow::m_ConsensusRow
protected

Definition at line 271 of file align_row.hpp.

Referenced by SetConsensus(), and x_RenderSequence().

◆ m_fExtOrgLookup

bool CAlnVecRow::m_fExtOrgLookup
protected

◆ m_Handle

const IAlignRowHandle& CAlnVecRow::m_Handle
protected

◆ m_Height

int CAlnVecRow::m_Height
protected

◆ m_Host

IAlignRowHost* CAlnVecRow::m_Host
protected

◆ m_LastHitTrack

CWeakRef<CLayoutTrack> CAlnVecRow::m_LastHitTrack
protected

Definition at line 298 of file align_row.hpp.

Referenced by THH_GetLayoutTrack(), x_GetAlignmentTooltip(), and x_HitTest().

◆ m_ModelLeft

TModelUnit CAlnVecRow::m_ModelLeft
protected

◆ m_ModelRight

TModelUnit CAlnVecRow::m_ModelRight
protected

◆ m_NeedUpdateContent

bool CAlnVecRow::m_NeedUpdateContent = false
protected

Definition at line 293 of file align_row.hpp.

Referenced by Update(), x_CreateTrackPanel(), x_RenderTracks(), and x_UpdateRowHeight().

◆ m_NeedUpdateLayout

bool CAlnVecRow::m_NeedUpdateLayout = false
protected

Definition at line 294 of file align_row.hpp.

Referenced by Update(), UpdateOnAnchorChanged(), and x_RenderTracks().

◆ m_NeedUpdateSelection

bool CAlnVecRow::m_NeedUpdateSelection = false
protected

Definition at line 295 of file align_row.hpp.

Referenced by LTH_OnLayoutChanged(), OnMouseEvent(), Update(), x_HitTest(), and x_RenderTracks().

◆ m_PixLeft

TVPUnit CAlnVecRow::m_PixLeft
protected

Graphics caching.

Definition at line 301 of file align_row.hpp.

Referenced by LTH_OnLayoutChanged(), Update(), x_GetAlignmentTooltip(), x_RenderAlign(), and x_RenderAlignScores().

◆ m_PixRight

TVPUnit CAlnVecRow::m_PixRight
protected

◆ m_RenderingCtx

unique_ptr<CRenderingContext> CAlnVecRow::m_RenderingCtx
protected

◆ m_SequenceRenderingCtx

unique_ptr<CRenderingContext> CAlnVecRow::m_SequenceRenderingCtx
protected

Definition at line 290 of file align_row.hpp.

Referenced by x_RenderSequence().

◆ m_Style

const CRowDisplayStyle* CAlnVecRow::m_Style
protected

◆ m_TrackHandler

AutoPtr<CLayoutTrackHandler> CAlnVecRow::m_TrackHandler
protected

◆ m_TrackPane

unique_ptr<CGlPane> CAlnVecRow::m_TrackPane
protected

◆ m_TrackPanel

CRef<CFeaturePanel> CAlnVecRow::m_TrackPanel
protected

The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:57:10 2024 by modify_doxy.py rev. 669887