NCBI C++ ToolKit
|
Search Toolkit Book for IAlignRow
Interface IAlignRow - abstracts row rendering in Multiple Alignment Widget. More...
#include <gui/widgets/aln_multiple/ialign_row.hpp>
Classes | |
struct | SRenderCtx |
Public Types | |
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 | |
virtual | ~IAlignRow () |
virtual void | SetHost (IAlignRowHost *pHost)=0 |
virtual void | SetConsensus (CConsensusRow *crow)=0 |
virtual void | SetDisplayStyle (const CRowDisplayStyle *style)=0 |
virtual const CRowDisplayStyle * | GetDisplayStyle ()=0 |
virtual int | GetRowNum () const =0 |
Returns index of row in IAlnMultiDataSource. More... | |
virtual int | GetHeightPixels () const =0 |
Returns height of the row in pixels. More... | |
virtual void | RenderColumn (TColumnType col_type)=0 |
Renders a row cell corresponding to column specified by "col_type". More... | |
virtual void | RenderRow () |
virtual void | OnMouseEvent (wxMouseEvent &event, TColumnType col_type, CGlPane &pane)=0 |
virtual void | GetTooltip (const TVPPoint &pt, TColumnType col_type, CGlPane &pane, ITooltipFormatter &tooltip)=0 |
virtual void | GraphicsCacheCmd (EGraphCacheCmd) |
virtual void | GetHTMLActiveAreas (TColumnType col_type, CGlPane &pane, TAreaVector &areas)=0 |
virtual void | UpdateOnStyleChanged ()=0 |
virtual void | UpdateOnAnchorChanged () |
virtual void | Update (const CGlPane &pane, bool layout_only=false) |
virtual TSeqPos | GetColumnAsSeqPos (TColumnType type, const TModelRect &rc_vis) const =0 |
virtual string & | GetColumnText (TColumnType col_type, string &text, bool for_printer=false) const =0 |
virtual float | GetColumnAsFloat (TColumnType type) const =0 |
virtual string & | GetAlnSeqString (string &buffer, const IAlnExplorer::TSignedRange &aln_rng) const =0 |
virtual string & | GetStringAtPos (string &buffer, TSignedSeqPos aln_pos) const =0 |
virtual void | GetRowStatistics (ITooltipFormatter &tooltip) const =0 |
virtual bool | UsesAATranslation () const =0 |
virtual bool | IsNucProtAlignment () const =0 |
virtual void | PrepareRendering (CGlPane &pane, TVPUnit row_top, int state)=0 |
Row State accessors | |
virtual int | GetRowState () const =0 |
Returns row state (combination of EState flags) More... | |
virtual void | SetRowState (int mask, bool b_set)=0 |
Set/Clear Row State. More... | |
Protected Types | |
typedef struct IAlignRow::SRenderCtx | SRenderCtx |
Protected Attributes | |
SRenderCtx | m_RenderCtx |
Interface IAlignRow - abstracts row rendering in Multiple Alignment Widget.
IAlignRow represents an object that can render an alignment row as a set of cells corresponding to enumerated columns. No asumptions is made about data structure used for alignment representation. The concrete classes implementing the interface are responsible for providing means for accessing data.
Definition at line 66 of file ialign_row.hpp.
|
protected |
typedef vector<CHTMLActiveArea> IAlignRow::TAreaVector |
Definition at line 69 of file ialign_row.hpp.
typedef int IAlignRow::TColumnType |
Definition at line 70 of file ialign_row.hpp.
Column identifier for use as TColumnType, defines basic column types this set can be extended in derived classes.
Definition at line 74 of file ialign_row.hpp.
Enumerator | |
---|---|
eInvalidate | |
eDelete |
Definition at line 114 of file ialign_row.hpp.
enum IAlignRow::EState |
Row state.
Enumerator | |
---|---|
fNone | |
fItemSelected | |
fItemFocused | |
fItemHidden | |
fWidgetFocused | it isn'e exactly a row state; |
fFocused | |
fSelectedActive | |
fSelectedFocused |
Definition at line 100 of file ialign_row.hpp.
|
inlinevirtual |
Definition at line 119 of file ialign_row.hpp.
|
pure virtual |
Implemented in CAlnVecRow.
Referenced by CAlnMultiRenderer::x_GetRowTooltip().
|
pure virtual |
Implemented in CAlnVecRow.
|
pure virtual |
Implemented in CAlnVecRow.
|
pure virtual |
Implemented in CAlnVecRow.
Referenced by CAlnMultiRenderer::AutoFitColumns(), CAlnMultiWidget::OnUpdateUnhideSelected(), and CAlnMultiWidget::x_GetMatchingHiddenRows().
|
pure virtual |
Implemented in CAlnVecRow.
|
pure virtual |
Returns height of the row in pixels.
Implemented in CAlnVecRow.
Referenced by CAlnMultiModel::x_DoUpdateRowPositions(), CAlnMultiRenderer::x_PrepareMasterPane(), and CAlnMultiRenderer::x_RenderMasterRow().
|
pure virtual |
Implemented in CAlnVecRow.
|
pure virtual |
Returns index of row in IAlnMultiDataSource.
Implemented in CAlnVecRow.
Referenced by CAlnMultiPane::ARH_GetRowTop(), CAlnMultiWidget::GetRowNumByLine(), CAlnMultiWidget::GetSelectedRows(), CAlnMultiModel::SetVisible(), CAlnMultiModel::x_GetItem(), and CAlnMultiWidget::x_UpdateOnStylesChanged().
|
pure virtual |
Returns row state (combination of EState flags)
Implemented in CAlnRowState.
Referenced by CAlnMultiWidget::GetSelectedRows(), CAlnMultiWidget::x_GetMatchingHiddenRows(), and CAlnMultiRenderer::x_RenderMasterRow().
|
pure virtual |
Implemented in CAlnVecRow.
|
pure virtual |
Implemented in CAlnVecRow.
|
pure virtual |
Implemented in CAlnVecRow.
|
inlinevirtual |
Definition at line 143 of file ialign_row.hpp.
|
pure virtual |
Implemented in CAlnVecRow.
|
pure virtual |
Implemented in CAlnVecRow.
Referenced by CAlnMultiPane::x_OnRowMouseEvent().
|
pure virtual |
Implemented in CAlnVecRow.
|
pure 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.
Implemented in CAlnVecRow.
|
inlinevirtual |
Definition at line 137 of file ialign_row.hpp.
|
pure virtual |
Implemented in CAlnVecRow.
|
pure virtual |
Implemented in CAlnVecRow.
|
pure virtual |
Implemented in CAlnVecRow.
Referenced by CAlnMultiWidget::x_UpdateOnDataChanged().
Reimplemented in CAlnVecRow.
Definition at line 149 of file ialign_row.hpp.
Referenced by CAlnMultiRenderer::x_InvalidateRows().
|
inlinevirtual |
Reimplemented in CAlnVecRow.
Definition at line 148 of file ialign_row.hpp.
|
pure virtual |
Implemented in CAlnVecRow.
|
pure virtual |
Implemented in CAlnVecRow.
|
protected |
Definition at line 183 of file ialign_row.hpp.
Referenced by CAlnVecRow::GetColumnText(), CAlnVecRow::GetHTMLActiveAreas(), CAlnVecRow::PrepareRendering(), CAlnVecRow::RenderColumn(), CAlnVecRow::x_GetButtonRect(), CAlnVecRow::x_InitTrackPane(), CAlnVecRow::x_RenderAlign(), CAlnVecRow::x_RenderAlignScores(), CAlnVecRow::x_RenderAlignSegments(), CAlnVecRow::x_RenderDescr(), CAlnVecRow::x_RenderEmptyBox(), CAlnVecRow::x_RenderGraph(), CAlnVecRow::x_RenderIconExpand(), CAlnVecRow::x_RenderIcons(), CAlnVecRow::x_RenderIconStrand(), CAlnVecRow::x_RenderTextCell(), and CAlnVecRow::x_RenderTracks().