NCBI C++ ToolKit
|
Search Toolkit Book for CAlnVecRow
class CAlnVecRow - implementation of IAlignRow for CAlnVec-based alignments. More...
#include <gui/widgets/aln_multiple/align_row.hpp>
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< Uint8 > | TCounter |
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, TListeners > | TPools |
typedef list< AutoPtr< SPostRequest > > | TPostRequests |
typedef std::map< CEventHandler *, int > | THandlerToCount |
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< CHTMLActiveArea > | TAreaVector |
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 IAlnRowGraphProperties * | GetProperties () const |
virtual void | SetProperties (IAlnRowGraphProperties *props) |
virtual TSeqPos | GetColumnAsSeqPos (TColumnType type, const TModelRect &rc_vis) const |
virtual string & | GetColumnText (TColumnType col_type, string &text, bool for_printer=false) const |
virtual float | GetColumnAsFloat (TColumnType type) const |
virtual string & | GetAlnSeqString (string &buffer, const IAlnExplorer::TSignedRange &aln_rng) const |
virtual string & | GetStringAtPos (string &buffer, TSignedSeqPos aln_pos) const |
virtual void | GetRowStatistics (ITooltipFormatter &tooltip) const |
virtual bool | UsesAATranslation () const |
virtual bool | IsNucProtAlignment () const |
const IAlignRowHandle & | GetRowHandle () 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 CRowDisplayStyle * | GetDisplayStyle () |
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< CLayoutTrack > | THH_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... | |
CObject & | operator= (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) |
CPtrToObjectProxy * | GetPtrProxy (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 TListeners * | GetListeners (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 Attributes | |
const IAlignRowHandle & | m_Handle |
CConsensusRow * | m_ConsensusRow |
IAlignRowHost * | m_Host |
int | m_Height |
int | m_BaseHeight |
bool | m_bExpanded |
bool | m_fExtOrgLookup |
const CRowDisplayStyle * | m_Style |
CScoreCache * | m_Cache |
row display style More... | |
unique_ptr< CRenderingContext > | m_RenderingCtx |
unique_ptr< CRenderingContext > | m_SequenceRenderingCtx |
unique_ptr< CGlPane > | m_TrackPane |
CRef< CFeaturePanel > | m_TrackPanel |
bool | m_NeedUpdateContent = false |
bool | m_NeedUpdateLayout = false |
bool | m_NeedUpdateSelection = false |
AutoPtr< CLayoutTrackHandler > | m_TrackHandler |
CWeakRef< CLayoutTrack > | m_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 |
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.
|
protected |
Definition at line 188 of file align_row.hpp.
Definition at line 84 of file align_row.hpp.
|
protected |
Enumerator | |
---|---|
eInvalid | |
eStrandMarker | |
eExpand | |
eSetupGraphs |
Definition at line 182 of file align_row.hpp.
CAlnVecRow::CAlnVecRow | ( | const IAlignRowHandle & | handle | ) |
Definition at line 104 of file align_row.cpp.
&CAlnVecRow::x_OnGraphSizeChanged CAlnVecRow::~CAlnVecRow | ( | ) |
Definition at line 129 of file align_row.cpp.
References NULL.
Definition at line 3129 of file align_row.cpp.
References CFeaturePanel::ConfigureTracks(), CSGConfigUtils::DefTrackProfile(), CRowDisplayStyle::GetSeqGraphicConfig(), m_bExpanded, m_Style, m_TrackPanel, CLayoutTrack::SetProfile(), CFeaturePanel::SetTrackConfig(), and CSeqGraphicConfig::SetTrackProfile().
void CAlnVecRow::ConfigureTracksDialog | ( | const string & | category = NcbiEmptyString | ) |
Definition at line 3121 of file align_row.cpp.
References m_bExpanded, m_TrackPanel, and CFeaturePanel::ShowConfigureTracksDlg().
Referenced by LTH_ConfigureTracksDlg().
|
protected |
Definition at line 2717 of file align_row.cpp.
References IAlignRowHost::ARH_OnRowChanged(), CFeaturePanel::ConfigureTracks(), IsExpandable(), IsExpanded(), m_bExpanded, m_TrackPanel, x_CreateTrackPanel(), x_GetHost(), x_ResetTrackPanel(), and x_UpdateRowHeight().
Referenced by x_OnClickExpandBtn().
Definition at line 933 of file align_row.cpp.
References CHtmlTooltipFormatter::CreateTooltipFormatter(), compile_time_bits::range(), and x_GetAlignmentTooltip_Helper().
|
virtual |
Implements IAlignRow.
Definition at line 2845 of file align_row.cpp.
References buffer, IAlignRowHandle::GetAlnSeqString(), and m_Handle.
Referenced by GetStringAtPos().
|
virtual |
Implements IAlignRow.
Definition at line 2823 of file align_row.cpp.
References IAlignRow::ePctCoverage, IAlignRow::ePctIdentity, IAlignRowHandle::GetPctCoverage(), IAlignRowHandle::GetPctIdentity(), m_Handle, and val.
|
virtual |
Implements IAlignRow.
Definition at line 2789 of file align_row.cpp.
References IAlignRow::eEnd, IAlnExplorer::eLeft, IAlignRow::eMismatches, IAlnExplorer::eRight, IAlignRow::eSeqEnd, IAlignRow::eSeqLength, IAlignRow::eSeqStart, IAlignRow::eStart, IAlignRowHandle::GetMismatches(), IAlignRowHandle::GetSeqLength(), IAlignRowHandle::GetSeqPosFromAlnPos(), IAlignRowHandle::GetSeqStart(), IAlignRowHandle::GetSeqStop(), int, IAlignRowHandle::IsNegativeStrand(), CGlRect< T >::Left(), m_Handle, and CGlRect< T >::Right().
|
virtual |
Implements IAlignRow.
Definition at line 474 of file align_row.cpp.
References NStr::DoubleToString(), IAlignRow::eCollectionDate, IAlignRow::eCountry, IAlignRow::eDescr, IAlignRow::eEnd, IAlignRow::eGeneSymbol, IAlignRow::eHost, IAlignRow::eIsolationSource, IAlnExplorer::eLeft, IAlignRow::eMismatches, IAlignRow::ePctCoverage, IAlignRow::ePctIdentity, IAlnExplorer::eRight, IAlignRow::eSeqEnd, IAlignRow::eSeqLength, IAlignRow::eSeqStart, IAlignRow::eStart, IAlignRow::eTaxLabel, CTextUtils::FormatSeparatedNumber(), IAlignRowHandle::GetCollectionDate(), IAlignRowHandle::GetCountry(), IAlignRowHandle::GetGeneSymbol(), IAlignRowHandle::GetHost(), IAlignRowHandle::GetIsolationSource(), IAlignRowHandle::GetMismatches(), IAlignRowHandle::GetOrgLabel(), IAlignRowHandle::GetPctCoverage(), IAlignRowHandle::GetPctIdentity(), IAlignRowHandle::GetSeqLength(), IAlignRowHandle::GetSeqStart(), IAlignRowHandle::GetSeqStop(), IAlignRowHandle::GetText(), CGlPane::GetVisibleRect(), int, IAlignRowHandle::IsNegativeStrand(), CGlRect< T >::Left(), m_fExtOrgLookup, m_Handle, IAlignRow::SRenderCtx::m_Pane, IAlignRow::m_RenderCtx, NStr::NumericToString(), CGlRect< T >::Right(), text(), and x_GetAlnPosLabel().
Referenced by RenderColumn().
|
virtual |
|
virtual |
Returns height of the row in pixels.
Implements IAlignRow.
Definition at line 392 of file align_row.cpp.
References m_Height.
|
virtual |
Implements IAlignRow.
Definition at line 197 of file align_row.cpp.
References IAlignRow::eAlignment, IAlignRow::eDescr, eExpand, CAlnMultiRenderer::eHtmlArea_CheckBox, CAlnMultiRenderer::eHtmlArea_Link, IAlignRow::eIcons, IAlignRow::eSeqEnd, IAlignRow::eSeqStart, eStrandMarker, IAlignRow::eTaxLabel, IAlignRowHandle::GetOrgLabel(), IAlignRowHandle::GetRowNum(), IAlignRowHandle::GetSeqStart(), IAlignRowHandle::GetSeqStop(), IAlignRowHandle::GetText(), CGlPane::GetViewport(), NStr::IntToString(), IsExpandable(), IAlignRowHandle::IsNegativeStrand(), CGlRect< T >::Left(), m_fExtOrgLookup, m_Handle, IAlignRow::SRenderCtx::m_Pane, IAlignRow::m_RenderCtx, IAlignRow::SRenderCtx::m_Viewport, CGlRect< T >::Right(), CGlRect< T >::SetHorz(), and x_GetButtonRect().
|
virtual |
Definition at line 2767 of file align_row.cpp.
|
inline |
Definition at line 307 of file align_row.hpp.
References m_Handle.
|
virtual |
Returns index of row in IAlnMultiDataSource.
Implements IAlignRow.
Definition at line 386 of file align_row.cpp.
References IAlignRowHandle::GetRowNum(), and m_Handle.
|
virtual |
Implements IAlignRow.
Definition at line 2865 of file align_row.cpp.
References ITooltipFormatter::AddRow(), IAlignRowHandle::CreateSegmentIterator(), IAlnSegmentIterator::eAllSegments, IAlnExplorer::eLeft, IAlnExplorer::eRight, IAlnSegment::fAligned, IAlnSegment::fGap, IAlnSegment::fIndel, flags, IAlnSegment::fUnaligned, NStr::fWithCommas, IAlnSegment::GetAlnRange(), IAlnSegment::GetRange(), IAlignRowHandle::GetSeqAlnStart(), IAlignRowHandle::GetSeqAlnStop(), IAlignRowHandle::GetSeqPosFromAlnPos(), IAlnSegment::GetType(), NStr::IntToString(), IAlignRowHandle::IsNucProtAlignment(), m_Handle, COpenRange< Position >::Set(), and UsesAATranslation().
|
virtual |
Implements IAlignRow.
Definition at line 2851 of file align_row.cpp.
References buffer, IAlnExplorer::eRight, GetAlnSeqString(), IAlignRowHandle::GetSeqPosFromAlnPos(), IAlignRowHandle::GetSeqString(), IsNucProtAlignment(), m_Handle, and UsesAATranslation().
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().
|
virtual |
returns tooltip text by point in the viewport coordinates
Implements IAlignRow.
Definition at line 605 of file align_row.cpp.
References ITooltipFormatter::AddRow(), IAlignRow::eAlignment, IAlignRow::eDescr, IAlignRow::eEnd, IAlignRow::eIcons, IAlignRow::eSeqEnd, IAlignRow::eSeqLength, IAlignRow::eSeqStart, IAlignRow::eStart, IAlignRow::eTaxLabel, x_GetAlignmentTooltip(), x_GetDescrTooltip(), and x_GetIconsTooltip().
size_t CAlnVecRow::GetTrackCount | ( | CGlPane & | pane | ) |
Definition at line 2738 of file align_row.cpp.
References CFeaturePanel::ConfigureTracks(), CLayoutGroup::GetChildrenNum(), CGlyphContainer::GetGroup(), IsExpandable(), m_TrackPanel, and x_CreateTrackPanel().
|
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.
|
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.
|
virtual |
releases captured mouse
Implements IGenericHandlerHost.
Definition at line 3021 of file align_row.cpp.
References IGenericHandlerHost::GHH_ReleaseMouse(), and m_Host.
|
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.
|
virtual |
Definition at line 2627 of file align_row.cpp.
References IAlignRowHandle::CanGetBioseqHandle(), and m_Handle.
Referenced by Expand(), GetHTMLActiveAreas(), GetTrackCount(), x_GetIconsTooltip(), x_RenderIconExpand(), and x_RenderIcons().
|
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().
|
virtual |
Implements IAlignRow.
Definition at line 2947 of file align_row.cpp.
References IAlignRowHandle::IsNucProtAlignment(), and m_Handle.
Referenced by GetStringAtPos().
void CAlnVecRow::LoadDefaultTracks | ( | ) |
Definition at line 3108 of file align_row.cpp.
References CFeaturePanel::LoadDefaultTracks(), m_bExpanded, m_TrackHandler, m_TrackPane, m_TrackPanel, AutoPtr< X, Del >::reset(), CLayoutTrackHandler::SetHost(), and CLayoutTrackHandler::SetPane().
Reimplemented from ILayoutTrackHost.
Definition at line 3103 of file align_row.cpp.
References ConfigureTracksDialog().
|
virtual |
provides mouse coords in OpenGL viewport coord system
notifies the host about changes of the track.
Implements ILayoutTrackHost.
Definition at line 3028 of file align_row.cpp.
References _ASSERT, IAlignRowHost::ARH_GetSelectionVisitor(), IAlignRowHost::ARH_OnRowChanged(), CGlPane::EnableOffset(), f, CSeqGlyph::GetHeight(), IAlignRowHandle::IsNegativeStrand(), m_bExpanded, m_Handle, m_Host, m_ModelLeft, m_ModelRight, m_NeedUpdateSelection, m_PixLeft, m_PixRight, m_RenderingCtx, m_TrackPane, m_TrackPanel, compile_time_bits::range(), CSeqGlyph::SetHeight(), CGlPane::SetViewport(), CGlPane::SetVisibleRect(), swap(), t, CFeaturePanel::Update(), CSelectionVisitor::UpdateSelection(), x_ForEachAlnSeg(), and x_UpdateRowHeight().
|
virtual |
|
virtual |
show track-specific context menu.
Implements ILayoutTrackHost.
Definition at line 3075 of file align_row.cpp.
References m_Host, and CGlWidgetPane::SetPopupMenuDisplayed().
|
virtual |
notifies the host we need to zoom on to a range.
Implements ILayoutTrackHost.
Definition at line 149 of file align_row.hpp.
|
virtual |
Implements IAlignRow.
Definition at line 542 of file align_row.cpp.
References _ASSERT, IAlignRowHost::ARH_GetRowTop(), IAlignRowHost::ARH_GetSelectionVisitor(), IAlignRowHost::ARH_GetVPPosByWindowPos(), IAlignRowHost::ARH_OnSelectionChanged(), CSelectionVisitor::Clear(), CSelectionVisitor::DeSelectObject(), eExpand, IAlignRow::eIconExpand, IAlignRow::eIcons, IObjectBasedGlyph::GetObject(), CRef< C, Locker >::GetPointer(), CSelectionVisitor::HasSelectedObjects(), CSeqGlyph::IsClickable(), CSelectionVisitor::IsObjectSelected(), CTrackContainer::IsTrackInitDone(), m_bExpanded, m_Host, m_NeedUpdateSelection, m_TrackHandler, m_TrackPanel, CGlPoint< T >::m_X, CSeqGlyph::OnLeftDblClick(), CSeqGlyph::OnLeftDown(), CSeqGlyph::OnLeftUp(), PrepareRendering(), CGlRect< T >::PtInRect(), CSelectionVisitor::SelectObject(), x_GetButtonRect(), x_GetHost(), x_HitTest(), and x_OnClickExpandBtn().
Implements IAlignRow.
Definition at line 3155 of file align_row.cpp.
References CGlPane::GetViewport(), m_Height, IAlignRow::SRenderCtx::m_Pane, IAlignRow::m_RenderCtx, IAlignRow::SRenderCtx::m_State, IAlignRow::SRenderCtx::m_Top, IAlignRow::SRenderCtx::m_Viewport, offset, CGlRect< T >::SetVert(), and CGlRect< T >::Top().
Referenced by OnMouseEvent().
|
virtual |
Renders a row cell corresponding to column specified by "col_type".
"Pane" represents port corresponding to the cell; model space is Elems x Pixels.
Implements IAlignRow.
Definition at line 425 of file align_row.cpp.
References _ASSERT, IAlignRow::eAlignment, IAlignRow::eCollectionDate, IAlignRow::eCountry, IAlignRow::eDescr, IAlignRow::eEnd, IAlignRow::eGeneSymbol, IAlignRow::eHost, IAlignRow::eIconExpand, IAlignRow::eIcons, IAlignRow::eIconStrand, IAlignRow::eIsolationSource, IAlignRow::eMismatches, IAlignRow::ePctCoverage, IAlignRow::ePctIdentity, ERR_POST, IAlignRow::eSeqEnd, IAlignRow::eSeqLength, IAlignRow::eSeqStart, IAlignRow::eStart, IAlignRow::eTaxLabel, GetColumnText(), CException::GetMsg(), CGlPane::GetViewport(), CGlRect< T >::Left(), IAlignRow::SRenderCtx::m_Pane, IAlignRow::m_RenderCtx, IAlignRow::SRenderCtx::m_State, m_Style, IAlignRow::SRenderCtx::m_Viewport, NCBI_ASSERT, CGlRect< T >::Right(), s_GetColumnAlignemnt(), CGlRect< T >::SetHorz(), text(), CException::what(), x_RenderAlign(), x_RenderDescr(), x_RenderIconExpand(), x_RenderIcons(), x_RenderIconStrand(), and x_RenderTextCell().
void CAlnVecRow::SaveTrackConfig | ( | ) |
Definition at line 3146 of file align_row.cpp.
References m_bExpanded, m_TrackPanel, and CFeaturePanel::SaveTrackConfig().
|
inlinevirtual |
Implements IAlignRow.
Definition at line 90 of file align_row.hpp.
References m_ConsensusRow.
Referenced by CAlnMultiModel::x_CreateRow().
|
virtual |
Implements IAlignRow.
Definition at line 322 of file align_row.cpp.
References m_Style, and UpdateOnStyleChanged().
Referenced by CAlnMultiModel::x_CreateRow().
|
virtual |
|
virtual |
Definition at line 2774 of file align_row.cpp.
|
virtual |
Definition at line 135 of file align_row.cpp.
References m_Cache.
Referenced by CAlnMultiModel::x_CreateRow().
|
virtual |
Get the layout track under the current mouse position.
pos | the 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().
|
virtual |
Implements ITrackHandlerHost.
Definition at line 2992 of file align_row.cpp.
References IAlignRowHost::ARH_GetVPPosByWindowPos(), m_Host, m_TrackPane, m_TrackPanel, CGlPoint< T >::X(), and CGlPoint< T >::Y().
Reimplemented from IAlignRow.
Definition at line 343 of file align_row.cpp.
References CGlPane::GetViewport(), CGlPane::GetVisibleRect(), CGlRect< T >::Left(), m_bExpanded, m_ModelLeft, m_ModelRight, m_NeedUpdateContent, m_NeedUpdateLayout, m_NeedUpdateSelection, m_PixLeft, m_PixRight, m_TrackPanel, and CGlRect< T >::Right().
|
virtual |
Reimplemented from IAlignRow.
Definition at line 337 of file align_row.cpp.
References m_NeedUpdateLayout.
|
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().
|
virtual |
Definition at line 2750 of file align_row.cpp.
References f, and m_fExtOrgLookup.
|
virtual |
Implements IAlignRow.
Definition at line 2942 of file align_row.cpp.
References m_Handle, and IAlignRowHandle::UsesAATranslation().
Referenced by GetRowStatistics(), and GetStringAtPos().
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().
|
protectedvirtual |
Definition at line 2638 of file align_row.cpp.
References IAlnExplorer::eLeft, IAlnExplorer::eRight, IAlignRowHandle::GetBioseqHandle(), CBioseq_Handle::GetScope(), CRowDisplayStyle::GetSeqGraphicConfig(), CBioseq_Handle::GetSeqId(), IAlignRowHandle::GetSeqPosFromAlnPos(), IAlignRowHandle::GetSeqStart(), IAlignRowHandle::GetSeqStop(), CRowDisplayStyle::GetTrackConfigKey(), CRowDisplayStyle::GetTrackSettings(), CSGDataSource::IsBackgroundJob(), IAlignRowHandle::IsNegativeStrand(), CGlRect< T >::Left(), m_Handle, m_NeedUpdateContent, m_RenderingCtx, m_Style, m_TrackHandler, m_TrackPane, m_TrackPanel, AutoPtr< X, Del >::reset(), CRef< C, Locker >::Reset(), CGlRect< T >::Right(), s_PrepareTrackPane(), CLayoutTrack::SetConfig(), CFeaturePanel::SetConfigKey(), CFeaturePanel::SetDSContext(), CSeqGlyph::SetHeight(), CGlRect< T >::SetHorz(), CLayoutTrack::SetHost(), CLayoutTrackHandler::SetHost(), CFeaturePanel::SetInputObject(), CLayoutTrackHandler::SetPane(), CLayoutTrack::SetProfile(), CFeaturePanel::SetTrackConfig(), CFeaturePanel::Update(), and x_InitTrackPane().
Referenced by Expand(), and GetTrackCount().
|
protected |
Definition at line 711 of file align_row.cpp.
References abs, IRender::BeginClippingRect(), IAlignRowHandle::CreateSegmentIterator(), data, IRender::EndClippingRect(), IAlnSegmentIterator::eSkipInserts, f, flags, IAlnSegment::GetAlnRange(), CRange_Base::GetFrom(), GetGl(), CGlPane::GetOffsetX(), IAlnSegment::GetRange(), CGlPane::GetScaleX(), CGlPane::GetViewport(), CGlRect< T >::Height(), IAlnSegment::IsAligned(), IRender::IsPrinterFriendly(), l(), CGlRect< T >::Left(), len, m_Handle, r(), compile_time_bits::range(), CGlRect< T >::Right(), s_PrepareTrackPane(), CGlRect< T >::SetHorz(), CGlPane::SetViewport(), swap(), CGlRect< T >::Top(), and CGlRect< T >::Width().
Referenced by LTH_OnLayoutChanged(), x_HitTest(), and x_RenderTracks().
|
protectedvirtual |
Definition at line 882 of file align_row.cpp.
References ITooltipFormatter::AddRow(), ITooltipFormatter::Append(), CGlPane::Close(), CHtmlTooltipFormatter::CreateTooltipFormatter(), NStr::fWithCommas, CRef< C, Locker >::GetPointer(), IAlignRowHandle::GetText(), CSeqGlyph::GetTooltip(), CGlPane::GetViewport(), NStr::IntToString(), IAlignRowHandle::IsNegativeStrand(), m_bExpanded, m_Handle, m_LastHitTrack, m_PixLeft, m_PixRight, m_TrackPanel, NcbiEmptyString, CGlPane::OpenOrtho(), compile_time_bits::range(), CWeakRef< C, Locker >::Reset(), TOOLTIP_RANGE_PIX, CGlPane::UnProjectWidth(), CGlPane::UnProjectX(), CGlPoint< T >::X(), x_GetAlignmentTooltip_Helper(), and x_HitTest().
Referenced by GetTooltip().
|
protected |
Definition at line 1185 of file align_row.cpp.
References ITooltipFormatter::AddRow(), COpenRange< Position >::GetLength(), m_Handle, NStr::NumericToString(), and IAlignRowHandle::UsesAATranslation().
Referenced by x_GetAlignmentTooltip_Helper().
|
protected |
Definition at line 1084 of file align_row.cpp.
References ITooltipFormatter::AddRow(), IAlignRowHandle::CanGetBioseqHandle(), CBioseq_Handle::CanGetDescr(), CSubSource_Base::eSubtype_collection_date, CSubSource_Base::eSubtype_country, CSubSource_Base::eSubtype_isolation_source, NStr::fWithCommas, IAlignRowHandle::GetBioseqHandle(), CBioseq_Handle::GetBioseqLength(), CBioseq_Handle::GetDescr(), GetProteinName(), IAlignRowHandle::GetSeqPosFromAlnPos(), GetTaxonomy(), IAlignRowHandle::GetText(), NStr::IntToString(), CBioseq_Handle::IsAa(), IAlignRowHandle::IsNegativeStrand(), IAlignRowHandle::IsNucProtAlignment(), m_Handle, NStr::NumericToString(), s_GetOrgModNatHost(), s_GetSourceSubtype(), s_GetTitle(), and IAlignRowHandle::UsesAATranslation().
Referenced by x_GetAlignmentTooltip_Helper().
|
protected |
Definition at line 941 of file align_row.cpp.
References ITooltipFormatter::AddRow(), IAlignRowHandle::CreateSegmentIterator(), IAlnSegmentIterator::eAllSegments, IAlnSegmentIterator::eInsertsOnly, IAlnExplorer::eLeft, COpenRange< Position >::Empty(), IAlnExplorer::eRight, IAlnSegment::fAligned, IAlnSegment::fGap, flags, IAlignRowHandle::GetAlnPosFromSeqPos(), IAlnSegment::GetAlnRange(), CRange_Base::GetFrom(), COpenRange< Position >::GetLength(), IAlnSegment::GetRange(), IAlignRowHandle::GetSeqAlnRange(), IAlignRowHandle::GetSeqPosFromAlnPos(), CRange_Base::GetTo(), IAlnSegment::GetType(), i, COpenRange< Position >::IntersectionWith(), NStr::IntToString(), kTooltipMaxLines, m_Handle, compile_time_bits::range(), swap(), x_GetAlignmentTooltip_Gap(), x_GetAlignmentTooltip_General(), x_GetAlignmentTooltip_Insert(), and x_GetAlignmentTooltip_Unaligned().
Referenced by GetAlignmentTooltip(), and x_GetAlignmentTooltip().
|
protected |
Definition at line 1171 of file align_row.cpp.
References ITooltipFormatter::AddRow(), FormatRange(), CRange_Base::GetFrom(), CRange_Base::GetTo(), and x_GetTooltipSequence().
Referenced by x_GetAlignmentTooltip_Helper().
|
protected |
Definition at line 1211 of file align_row.cpp.
References ITooltipFormatter::AddRow(), FormatRange(), NStr::fWithCommas, NStr::IntToString(), and x_GetTooltipSequence().
Referenced by x_GetAlignmentTooltip_Helper().
|
protected |
Definition at line 2547 of file align_row.cpp.
References IAlnExplorer::eLeft, IAlnExplorer::eRight, CTextUtils::FormatSeparatedNumber(), IAlignRowHandle::GetSeqPosFromAlnPos(), label, and m_Handle.
Referenced by GetColumnText(), and x_RenderAlnPos().
|
protectedvirtual |
Definition at line 360 of file align_row.cpp.
References CRowDisplayStyle::fShown_Alignment, CRowDisplayStyle::GetSeqFont(), CRowDisplayStyle::GetShownElements(), CRowDisplayStyle::GetTextFont(), int, kSeqVertSpace, kTextVertSpace, m_Style, max(), and CGlTextureFont::TextHeight().
Referenced by UpdateOnStyleChanged().
Definition at line 2336 of file align_row.cpp.
References int, kButtonOffset, kButtonSize, m_BaseHeight, IAlignRow::m_RenderCtx, and IAlignRow::SRenderCtx::m_Viewport.
Referenced by GetHTMLActiveAreas(), OnMouseEvent(), x_RenderIconExpand(), x_RenderIcons(), and x_RenderIconStrand().
|
protectedvirtual |
Definition at line 642 of file align_row.cpp.
References ITooltipFormatter::AddRow(), IAlignRowHandle::CanGetBioseqHandle(), NStr::fWithCommas, IAlignRowHandle::GetBioseqHandle(), CBioseq_Handle::GetBioseqLength(), COrg_ref::GetLabel(), GetOrg_ref(), IAlignRowHandle::GetSeqStart(), IAlignRowHandle::GetSeqStop(), IAlignRowHandle::GetText(), NStr::IntToString(), CBioseq_Handle::IsNa(), m_Handle, str(), and type.
Referenced by GetTooltip().
|
inlineprotected |
Definition at line 252 of file align_row.hpp.
References m_Host.
Referenced by Expand(), OnMouseEvent(), and x_GetIconsTooltip().
|
protectedvirtual |
Definition at line 674 of file align_row.cpp.
References _ASSERT, ITooltipFormatter::AddRow(), eExpand, eStrandMarker, IsExpandable(), IAlignRowHandle::IsNegativeStrand(), m_bExpanded, m_Handle, x_GetHost(), and x_HitTestButton().
Referenced by GetTooltip().
Definition at line 1232 of file align_row.cpp.
References CRange_Base::GetFrom(), COpenRange< Position >::GetLength(), IAlignRowHandle::GetSeqString(), kMaxSeqInTooltip, m_Handle, and COpenRange< Position >::Set().
Referenced by x_GetAlignmentTooltip_Insert(), and x_GetAlignmentTooltip_Unaligned().
|
protected |
Definition at line 798 of file align_row.cpp.
References IAlignRowHost::ARH_GetSelectionVisitor(), CGlPane::eAlwaysUpdate, IAlnExplorer::eLeft, CGlPane::eOrtho, IAlnExplorer::eRight, CRenderingContext::fSkipControls, CRenderingContext::fSkipTitleBar, CSeqGraphicConfig::GetCgiMode(), CRef< C, Locker >::GetPointer(), CRowDisplayStyle::GetSeqGraphicConfig(), IAlignRowHandle::GetSeqPosFromAlnPos(), CGlPane::GetVisibleRect(), CFeaturePanel::HitTest(), if(), IAlignRowHandle::IsAnchor(), IAlignRowHandle::IsNegativeStrand(), CGlRect< T >::Left(), m_Handle, m_Host, m_LastHitTrack, m_NeedUpdateSelection, m_RenderingCtx, m_Style, m_TrackPane, m_TrackPanel, CGlPoint< T >::m_X, compile_time_bits::range(), CWeakRef< C, Locker >::Reset(), CGlRect< T >::Right(), s_PrepareTrackPane(), CGlPane::UnProject(), CGlPane::UnProjectX(), CFeaturePanel::Update(), CSelectionVisitor::UpdateSelection(), CGlPoint< T >::X(), x_ForEachAlnSeg(), x_InitTrackPane(), and CGlPoint< T >::Y().
Referenced by OnMouseEvent(), and x_GetAlignmentTooltip().
|
protectedvirtual |
Definition at line 2356 of file align_row.cpp.
References eInvalid, CGlPane::GetViewport(), i, kButtonOffset, kButtonSize, CGlRect< T >::Left(), and CGlPoint< T >::X().
Referenced by x_GetIconsTooltip().
Definition at line 2173 of file align_row.cpp.
References _ASSERT, abs, CGlRect< T >::Bottom(), CGlPane::EnableOffset(), CRowDisplayStyle::fShown_Alignment, CSeqGlyph::GetHeight(), CGlPane::GetModelLimitsRect(), CRowDisplayStyle::GetShownElements(), CGlPane::GetViewport(), CGlPane::GetVisibleRect(), CGlRect< T >::Height(), m_BaseHeight, IAlignRow::m_RenderCtx, m_Style, IAlignRow::SRenderCtx::m_Top, m_TrackPanel, IAlignRow::SRenderCtx::m_Viewport, CGlPane::SetModelLimitsRect(), CGlRect< T >::SetVert(), CGlPane::SetViewport(), CGlPane::SetVisibleRect(), and CGlRect< T >::Top().
Referenced by x_CreateTrackPanel(), x_HitTest(), and x_RenderTracks().
|
protectedvirtual |
Definition at line 1257 of file align_row.cpp.
References Expand(), and IsExpanded().
Referenced by OnMouseEvent().
|
protected |
Definition at line 2952 of file align_row.cpp.
References IAlignRowHost::ARH_OnRowChanged(), m_Host, and x_UpdateRowHeight().
|
protected |
Definition at line 2962 of file align_row.cpp.
References IAlignRowHost::ARH_OnRowChanged(), m_Host, and x_UpdateRowHeight().
|
protectedvirtual |
Renders graphical part of the row.
Definition at line 1277 of file align_row.cpp.
References _ASSERT, IRender::Begin(), IRender::BeginClippingRect(), CGlRect< T >::Bottom(), color, IRender::ColorC(), IAlignRowHandle::CreateSegmentIterator(), CWidgetDisplayStyle::eAlignSegs, CWidgetDisplayStyle::eAlignSegsNoScores, IAlnSegmentIterator::eAllSegments, CWidgetDisplayStyle::eFrame, CGlPane::EnableOffset(), IRender::End(), IRender::EndClippingRect(), CGlPane::eOrtho, CGlPane::ePixels, flags, CRowDisplayStyle::fShown_Alignment, CRowDisplayStyle::fShown_Track, CGlPane::GetClipRect(), CRowDisplayStyle::GetColor(), GetGl(), CGlPane::GetScaleX(), CScoreCache::GetScoringMethod(), CRowDisplayStyle::GetShownElements(), IRender::GetViewport(), CScoreCache::HasScores(), CGlRect< T >::Height(), int, IScoringMethod::IsAverageable(), IsExpanded(), IRender::IsPrinterFriendly(), CRowDisplayStyle::IsWebRendering(), kAlignSpace, kScoreMinScale, CGlRect< T >::Left(), IRender::LineWidth(), m_BaseHeight, m_Cache, m_Handle, m_ModelLeft, m_ModelRight, IAlignRow::SRenderCtx::m_Pane, m_PixLeft, m_PixRight, IAlignRow::m_RenderCtx, m_Style, IAlignRow::SRenderCtx::m_Viewport, compile_time_bits::range(), CGlRect< T >::Right(), CGlRect< T >::Top(), IRender::Vertex2f(), IRender::Viewport(), CGlRect< T >::Width(), x_CanRenderSeq(), x_RenderAlignScores(), x_RenderAlignSegments(), x_RenderInserts(), x_RenderSequence(), x_RenderTracks(), and x_RenderUnaligned().
Referenced by RenderColumn().
|
protectedvirtual |
Definition at line 1661 of file align_row.cpp.
References CAttrRangeCollection< Attr, Position >::begin(), IRender::BlendFunc(), IRender::Enable(), CAttrRangeCollection< Attr, Position >::end(), CGlPane::ePixels, CAttrRangeCollection< Attr, Position >::find(), GetGl(), IAlignRowHandle::GetRowNum(), CScoreCache::GetScores(), CGlPane::GetVisibleRect(), int, kAlignSpace, CGlRect< T >::Left(), m_BaseHeight, m_Cache, m_Handle, m_ModelLeft, m_ModelRight, IAlignRow::SRenderCtx::m_Pane, m_PixLeft, m_PixRight, IAlignRow::m_RenderCtx, IAlignRow::SRenderCtx::m_Viewport, CGlRect< T >::Right(), x_RenderAveragableScores(), and x_RenderNonAveragableScores().
Referenced by x_RenderAlign().
|
protectedvirtual |
Definition at line 1554 of file align_row.cpp.
References IRender::Begin(), IRender::BlendFunc(), color, IRender::ColorC(), COpenRange< Position >::Empty(), IRender::Enable(), IRender::End(), CGlPane::ePixels, IAlnSegment::GetAlnRange(), CRange_Base::GetFrom(), GetGl(), IAlignRowHandle::GetSeqAlnStart(), IAlignRowHandle::GetSeqAlnStop(), CRange_Base::GetTo(), CGlPane::GetVisibleRect(), glLined(), i, COpenRange< Position >::IntersectWith(), IAlnSegment::IsAligned(), kAlignSpace, CGlRect< T >::Left(), m_BaseHeight, m_Handle, m_ModelLeft, m_ModelRight, IAlignRow::m_RenderCtx, IAlignRow::SRenderCtx::m_Viewport, IRender::PolygonMode(), r(), IRender::Rectd(), CGlRect< T >::Right(), and CRgbaColor::SetAlpha().
Referenced by x_RenderAlign().
|
protectedvirtual |
Definition at line 2567 of file align_row.cpp.
References IGlFont::eAlign_HCenter, label, x_GetAlnPosLabel(), and x_RenderTextCell().
|
protectedvirtual |
Definition at line 1774 of file align_row.cpp.
References color, IRender::ColorC(), IScoringMethod::fBackground, IAlnSegment::GetAlnRange(), CScoreCache::GetColorForScore(), CRange_Base::GetFrom(), GetGl(), CGlPane::GetScaleX(), IAlignRowHandle::GetSeqAlnStart(), IAlignRowHandle::GetSeqAlnStop(), CRange_Base::GetTo(), CGlPane::GetViewport(), CGlPane::GetVisibleRect(), i, CRgbaColor::Interpolate(), IAlnSegment::IsAligned(), IColumnScoringMethod::kAmbiguousResidueScore, CGlRect< T >::Left(), m_Cache, SScPix2::m_GapLen, SScPix2::m_GapScore, m_Handle, SScPix2::m_Init, SScPix2::m_IntLen, SScPix2::m_IntScore, SScPix2::m_MinScore, max(), min(), IRender::PolygonMode(), r(), IRender::Rectd(), CGlRect< T >::Right(), CRange_Base::SetFrom(), and CRange_Base::SetTo().
Referenced by x_RenderAlignScores().
|
protectedvirtual |
Definition at line 2150 of file align_row.cpp.
References _ASSERT, IRender::BeginText(), IGlFont::eAlign_Left, IGlFont::eAlign_Right, IGlFont::eAlign_VCenter, IRender::EndText(), CGlPane::ePixels, CWidgetDisplayStyle::eSelectedText, CWidgetDisplayStyle::eText, IAlignRow::fItemSelected, CRowDisplayStyle::GetColor(), GetGl(), IAlignRowHandle::GetText(), CRowDisplayStyle::GetTextFont(), IAlignRowHandle::IsNegativeStrand(), IRender::IsPrinterFriendly(), kTextOffsetX, m_BaseHeight, m_Handle, IAlignRow::SRenderCtx::m_Pane, IAlignRow::m_RenderCtx, IAlignRow::SRenderCtx::m_State, m_Style, IAlignRow::SRenderCtx::m_Viewport, IRender::WriteText(), and x_RenderTextCell().
Referenced by RenderColumn().
|
protectedvirtual |
Definition at line 2607 of file align_row.cpp.
References IRender::Begin(), IRender::ColorC(), CWidgetDisplayStyle::eFrame, IRender::End(), CRowDisplayStyle::GetColor(), GetGl(), IRender::LineWidth(), IAlignRow::m_RenderCtx, m_Style, IAlignRow::SRenderCtx::m_Viewport, and IRender::Vertex2d().
Referenced by x_RenderIcons(), and x_RenderTextCell().
|
protectedvirtual |
Definition at line 2322 of file align_row.cpp.
References IsExpanded(), IAlignRow::SRenderCtx::m_Pane, IAlignRow::m_RenderCtx, compile_time_bits::range(), and x_RenderTracks().
|
protectedvirtual |
Definition at line 2500 of file align_row.cpp.
References _ASSERT, IRender::Begin(), CGlRect< T >::Bottom(), CGlRect< T >::CenterPoint(), IRender::ColorC(), IRender::Disable(), eExpand, IRender::End(), CGlPane::ePixels, eStrandMarker, CWidgetDisplayStyle::eText, CRowDisplayStyle::GetColor(), GetGl(), IsExpandable(), kButtonSignSize, kButtonSize, CGlRect< T >::Left(), IRender::LineWidth(), m_bExpanded, IAlignRow::SRenderCtx::m_Pane, IAlignRow::m_RenderCtx, m_Style, offset, IRender::PolygonMode(), IRender::Rectd(), CGlRect< T >::Right(), CGlRect< T >::Top(), IRender::Vertex2d(), CGlPoint< T >::X(), x_GetButtonRect(), and CGlPoint< T >::Y().
Referenced by RenderColumn().
|
protectedvirtual |
Definition at line 2374 of file align_row.cpp.
References _ASSERT, IRender::Begin(), CGlRect< T >::Bottom(), CGlRect< T >::CenterPoint(), IRender::Color3d(), IRender::ColorC(), IRender::Disable(), eExpand, CWidgetDisplayStyle::eFocusedBack, IRender::End(), CGlPane::ePixels, CWidgetDisplayStyle::eSelectedBack, CWidgetDisplayStyle::eSelectedText, eStrandMarker, CWidgetDisplayStyle::eText, IAlignRow::fItemSelected, IAlignRow::fWidgetFocused, CRowDisplayStyle::GetColor(), GetGl(), CGlRect< T >::Height(), IsExpandable(), IAlignRowHandle::IsNegativeStrand(), kButtonSignSize, kButtonSize, CGlRect< T >::Left(), IRender::LineWidth(), m_bExpanded, m_Handle, IAlignRow::SRenderCtx::m_Pane, IAlignRow::m_RenderCtx, IAlignRow::SRenderCtx::m_State, m_Style, IAlignRow::SRenderCtx::m_Viewport, offset, IRender::PolygonMode(), IRender::Rectd(), CGlRect< T >::Right(), CGlPane::SetExactOrthoProjection(), swap(), CGlRect< T >::Top(), IRender::Vertex2d(), CGlPoint< T >::X(), x_GetButtonRect(), x_RenderEmptyBox(), and CGlPoint< T >::Y().
Referenced by RenderColumn().
|
protectedvirtual |
Definition at line 2473 of file align_row.cpp.
References _ASSERT, IRender::Begin(), CGlRect< T >::CenterPoint(), IRender::Color3d(), eExpand, IRender::End(), CGlPane::ePixels, GetGl(), CGlRect< T >::Height(), IAlignRowHandle::IsNegativeStrand(), CGlRect< T >::Left(), m_Handle, IAlignRow::SRenderCtx::m_Pane, IAlignRow::m_RenderCtx, m_Style, IRender::PolygonMode(), CGlRect< T >::Right(), swap(), IRender::Vertex2d(), x_GetButtonRect(), and CGlPoint< T >::Y().
Referenced by RenderColumn().
|
protectedvirtual |
Definition at line 1402 of file align_row.cpp.
References IRender::Begin(), IRender::BlendFunc(), IRender::ColorC(), CompressLength(), IAlignRowHandle::CreateSegmentIterator(), IRender::Disable(), IAlnSegmentIterator::eInsertsOnly, IRender::Enable(), IRender::End(), IAlnSegmentIterator::eSkipInserts, flags, IAlnSegment::fUnaligned, IAlnSegment::GetAlnRange(), GetGl(), CGlPane::GetOffsetX(), IAlnSegment::GetRange(), CGlPane::GetScaleX(), IAlignRowHandle::GetSeqAlnStart(), IAlignRowHandle::GetSeqAlnStop(), COpenRange< Position >::GetToOpen(), glLined(), IAlnSegment::IsAligned(), len, m_Handle, max(), r(), compile_time_bits::range(), CRgbaColor::SetAlpha(), CRange_Base::SetTo(), and IRender::Vertex2d().
Referenced by x_RenderAlign().
|
protectedvirtual |
Definition at line 1883 of file align_row.cpp.
References color, IRender::ColorC(), IScoringMethod::fBackground, FSetPixMaxCoverage(), IAlnSegment::GetAlnRange(), CScoreCache::GetColorForScore(), GetGl(), IAlignRowHandle::GetSeqAlnStart(), IAlignRowHandle::GetSeqAlnStop(), CGlPane::GetViewport(), CGlPane::GetVisibleRect(), i, IAlnSegment::IsAligned(), CGlRect< T >::Left(), m_Cache, SScPix::m_Gap, m_Handle, SScPix::m_MaxCoverage, SScPix::m_Score, IRender::PolygonMode(), r(), IRender::Rectd(), and CGlRect< T >::Right().
Referenced by x_RenderAlignScores().
|
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().
|
protectedvirtual |
Definition at line 2575 of file align_row.cpp.
References _ASSERT, IRender::BeginText(), IRender::ColorC(), IGlFont::eAlign_VCenter, CWidgetDisplayStyle::eFocusedBack, IRender::EndText(), CGlPane::ePixels, CWidgetDisplayStyle::eSelectedBack, CWidgetDisplayStyle::eSelectedText, CWidgetDisplayStyle::eText, IAlignRow::fItemSelected, IAlignRow::fWidgetFocused, CRowDisplayStyle::GetColor(), CGlTextureFont::GetFontDescender(), GetGl(), CRowDisplayStyle::GetTextFont(), kTextOffsetX, m_BaseHeight, IAlignRow::SRenderCtx::m_Pane, IAlignRow::m_RenderCtx, IAlignRow::SRenderCtx::m_State, m_Style, IAlignRow::SRenderCtx::m_Viewport, IRender::PolygonMode(), IRender::Rectd(), text(), IRender::WriteText(), and x_RenderEmptyBox().
Referenced by RenderColumn(), x_RenderAlnPos(), and x_RenderDescr().
|
protected |
Definition at line 2228 of file align_row.cpp.
References _ASSERT, IAlignRowHost::ARH_GetSelectionVisitor(), CSeqGlyph::Draw(), IAlnExplorer::eLeft, IAlnExplorer::eRight, CRenderingContext::fSkipContent, CRenderingContext::fSkipControls, CRenderingContext::fSkipFrames, CRenderingContext::fSkipGrid, CRenderingContext::fSkipTitleBar, CGlPane::GetClipRect(), GetGl(), CSeqGlyph::GetHeight(), IAlignRowHandle::GetSeqPosFromAlnPos(), IAlignRowHandle::GetSeqStart(), IAlignRowHandle::GetSeqStop(), CGlRect< T >::IntersectWith(), IAlignRowHandle::IsAnchor(), IsExpanded(), IAlignRowHandle::IsNegativeStrand(), CGlRect< T >::Left(), m_Handle, m_Host, m_NeedUpdateContent, m_NeedUpdateLayout, m_NeedUpdateSelection, IAlignRow::SRenderCtx::m_Pane, IAlignRow::m_RenderCtx, m_RenderingCtx, m_TrackHandler, m_TrackPane, m_TrackPanel, IAlignRow::SRenderCtx::m_Viewport, compile_time_bits::range(), CLayoutTrackHandler::Render(), CGlRect< T >::Right(), s_PrepareTrackPane(), CGlRect< T >::SetHorz(), CFeaturePanel::Update(), CSelectionVisitor::UpdateSelection(), x_ForEachAlnSeg(), and x_InitTrackPane().
Referenced by x_RenderAlign(), and x_RenderGraph().
|
protectedvirtual |
Definition at line 1503 of file align_row.cpp.
References IRender::Begin(), IRender::ColorC(), CompressLength(), IAlignRowHandle::CreateSegmentIterator(), IRender::End(), IAlnSegmentIterator::eSkipGaps, flags, CRange_Base::GetFrom(), GetGl(), CGlPane::GetOffsetX(), CGlPane::GetScaleX(), CRange_Base::GetTo(), glLined(), len, m_Handle, max(), r(), and compile_time_bits::range().
Referenced by x_RenderAlign().
|
protectedvirtual |
Definition at line 2697 of file align_row.cpp.
References _ASSERT, IAlignRowHost::ARH_GetSelectionVisitor(), ERR_POST, Error(), CSeqGraphicConfig::GetHistParamsManager(), CRowDisplayStyle::GetSeqGraphicConfig(), m_Host, m_RenderingCtx, m_Style, m_TrackHandler, m_TrackPane, m_TrackPanel, AutoPtr< X, Del >::reset(), CRef< C, Locker >::Reset(), CSelectionVisitor::ResetObjectSelection(), CHistParamsManager::SaveSettings(), and CFeaturePanel::SaveTrackConfig().
Referenced by Expand().
|
protectedvirtual |
Definition at line 2756 of file align_row.cpp.
References CSeqGlyph::GetHeight(), m_BaseHeight, m_bExpanded, m_Height, m_NeedUpdateContent, m_TrackPanel, and CFeaturePanel::Update().
Referenced by Expand(), LTH_OnLayoutChanged(), x_OnGraphContentChanged(), and x_OnGraphSizeChanged().
|
protected |
Definition at line 276 of file align_row.hpp.
Referenced by UpdateOnStyleChanged(), x_GetButtonRect(), x_InitTrackPane(), x_RenderAlign(), x_RenderAlignScores(), x_RenderAlignSegments(), x_RenderDescr(), x_RenderTextCell(), and x_UpdateRowHeight().
|
protected |
Definition at line 282 of file align_row.hpp.
Referenced by ConfigureTracks(), ConfigureTracksDialog(), Expand(), IsExpanded(), LoadDefaultTracks(), LTH_OnLayoutChanged(), OnMouseEvent(), SaveTrackConfig(), Update(), UpdateOnStyleChanged(), x_GetAlignmentTooltip(), x_GetIconsTooltip(), x_RenderIconExpand(), x_RenderIcons(), and x_UpdateRowHeight().
|
protected |
row display style
Definition at line 287 of file align_row.hpp.
Referenced by SetScoreCache(), x_RenderAlign(), x_RenderAlignScores(), x_RenderAveragableScores(), x_RenderNonAveragableScores(), and x_RenderSequence().
|
protected |
Definition at line 271 of file align_row.hpp.
Referenced by SetConsensus(), and x_RenderSequence().
|
protected |
Definition at line 283 of file align_row.hpp.
Referenced by GetColumnText(), GetHTMLActiveAreas(), GetTaxonomy(), and UseExternalOrganismLookup().
|
protected |
Definition at line 269 of file align_row.hpp.
Referenced by GetAlnSeqString(), GetColumnAsFloat(), GetColumnAsSeqPos(), GetColumnText(), GetHTMLActiveAreas(), GetRowHandle(), GetRowNum(), GetRowStatistics(), GetStringAtPos(), GetTaxonomy(), IsExpandable(), IsNucProtAlignment(), LTH_OnLayoutChanged(), UsesAATranslation(), x_CreateTrackPanel(), x_ForEachAlnSeg(), x_GetAlignmentTooltip(), x_GetAlignmentTooltip_Gap(), x_GetAlignmentTooltip_General(), x_GetAlignmentTooltip_Helper(), x_GetAlnPosLabel(), x_GetDescrTooltip(), x_GetIconsTooltip(), x_GetTooltipSequence(), x_HitTest(), x_RenderAlign(), x_RenderAlignScores(), x_RenderAlignSegments(), x_RenderAveragableScores(), x_RenderDescr(), x_RenderIcons(), x_RenderIconStrand(), x_RenderInserts(), x_RenderNonAveragableScores(), x_RenderSequence(), x_RenderTracks(), and x_RenderUnaligned().
|
protected |
Definition at line 275 of file align_row.hpp.
Referenced by GetHeightPixels(), PrepareRendering(), UpdateOnStyleChanged(), and x_UpdateRowHeight().
|
protected |
Definition at line 273 of file align_row.hpp.
Referenced by GHH_CaptureMouse(), GHH_Redraw(), GHH_ReleaseMouse(), GHH_SetCursor(), LTH_OnLayoutChanged(), LTH_PopEventHandler(), LTH_PopupMenu(), LTH_PushEventHandler(), OnMouseEvent(), SetHost(), THH_GetModelByWindow(), x_GetHost(), x_HitTest(), x_OnGraphContentChanged(), x_OnGraphSizeChanged(), x_RenderTracks(), and x_ResetTrackPanel().
|
protected |
Definition at line 298 of file align_row.hpp.
Referenced by THH_GetLayoutTrack(), x_GetAlignmentTooltip(), and x_HitTest().
|
protected |
Definition at line 302 of file align_row.hpp.
Referenced by LTH_OnLayoutChanged(), Update(), x_RenderAlign(), x_RenderAlignScores(), and x_RenderAlignSegments().
|
protected |
Definition at line 302 of file align_row.hpp.
Referenced by LTH_OnLayoutChanged(), Update(), x_RenderAlign(), x_RenderAlignScores(), and x_RenderAlignSegments().
Definition at line 293 of file align_row.hpp.
Referenced by Update(), x_CreateTrackPanel(), x_RenderTracks(), and x_UpdateRowHeight().
Definition at line 294 of file align_row.hpp.
Referenced by Update(), UpdateOnAnchorChanged(), and x_RenderTracks().
Definition at line 295 of file align_row.hpp.
Referenced by LTH_OnLayoutChanged(), OnMouseEvent(), Update(), x_HitTest(), and x_RenderTracks().
|
protected |
Graphics caching.
Definition at line 301 of file align_row.hpp.
Referenced by LTH_OnLayoutChanged(), Update(), x_GetAlignmentTooltip(), x_RenderAlign(), and x_RenderAlignScores().
|
protected |
Definition at line 301 of file align_row.hpp.
Referenced by LTH_OnLayoutChanged(), Update(), x_GetAlignmentTooltip(), x_RenderAlign(), and x_RenderAlignScores().
|
protected |
Definition at line 289 of file align_row.hpp.
Referenced by LTH_OnLayoutChanged(), x_CreateTrackPanel(), x_HitTest(), x_RenderTracks(), and x_ResetTrackPanel().
|
protected |
Definition at line 290 of file align_row.hpp.
Referenced by x_RenderSequence().
|
protected |
Definition at line 285 of file align_row.hpp.
Referenced by ConfigureTracks(), GetDisplayStyle(), RenderColumn(), SetDisplayStyle(), x_CanRenderSeq(), x_CreateTrackPanel(), x_GetBaseHeight(), x_HitTest(), x_InitTrackPane(), x_RenderAlign(), x_RenderDescr(), x_RenderEmptyBox(), x_RenderIconExpand(), x_RenderIcons(), x_RenderIconStrand(), x_RenderSequence(), x_RenderTextCell(), and x_ResetTrackPanel().
|
protected |
Definition at line 296 of file align_row.hpp.
Referenced by LoadDefaultTracks(), OnMouseEvent(), x_CreateTrackPanel(), x_RenderTracks(), and x_ResetTrackPanel().
|
protected |
Definition at line 291 of file align_row.hpp.
Referenced by LoadDefaultTracks(), LTH_OnLayoutChanged(), THH_GetModelByWindow(), x_CreateTrackPanel(), x_HitTest(), x_RenderTracks(), and x_ResetTrackPanel().
|
protected |
Definition at line 292 of file align_row.hpp.
Referenced by ConfigureTracks(), ConfigureTracksDialog(), Expand(), GetTrackCount(), LoadDefaultTracks(), LTH_OnLayoutChanged(), OnMouseEvent(), SaveTrackConfig(), THH_GetModelByWindow(), Update(), UpdateOnStyleChanged(), x_CreateTrackPanel(), x_GetAlignmentTooltip(), x_HitTest(), x_InitTrackPane(), x_RenderTracks(), x_ResetTrackPanel(), and x_UpdateRowHeight().