CAlnVecRow Class Reference

Search Toolkit Book for CAlnVecRow

#include <align_row.hpp>

Inheritance diagram for CAlnVecRow:

Inheritance graph
[legend]
Collaboration diagram for CAlnVecRow:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

CAlnVecRow uses CAlnVecRowHandle as proxy for accesing data in CAlnVec.

Definition at line 73 of file align_row.hpp.

Public Types

typedef IAlnExplorer::TSignedRange TSignedRange

Public Member Functions

 CAlnVecRow (const IAlignRowHandle &handle)
 CAlnVecRow.
 CAlnVecRow (const IAlignRowHandle &handle, vector< IAlnVecRowGraph * > &graphs)
 ~CAlnVecRow ()
virtual void SetScoreCache (CScoreCache *cache)
virtual bool IsExpandable () const
virtual bool IsExpanded () const
virtual void Expand (bool b_exp)
virtual const IAlnRowGraphPropertiesGetProperties () const
virtual void SetProperties (IAlnRowGraphProperties *props)
virtual TSeqPos GetColumnAsSeqPos (TColumnType type, const TModelRect &rc_vis)
virtual string GetColumnAsString (TColumnType type)
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.
virtual int GetHeightPixels () const
 Returns height of the row in pixels.
virtual void RenderColumn (TColumnType col_type, CGlPane &pane, int state)
virtual void OnMouseEvent (wxMouseEvent &event, TColumnType col_type, CGlPane &pane)
virtual string GetTooltip (const TVPPoint &vp_pt, TColumnType col_type, CGlPane &pane)
 returns tooltip text by point in the viewport coordinates
virtual void GraphicsCacheCmd (EGraphCacheCmd cmd)
virtual void GetHTMLActiveAreas (TColumnType col_type, CGlPane &pane, TAreaVector &areas)
virtual void UpdateOnStyleChanged ()
virtual void UpdateOnAnchorChanged ()

Protected Types

typedef CScoreCache::TScoreColl::const_iterator TScoreConstIterator
enum  EButtons { eInvalid = -1, eStrandMarker, eExpand, eSetupGraphs }

Protected Member Functions

 DECLARE_EVENT_MAP ()
virtual int x_GetBaseHeight () const
virtual void x_RenderDescr (CGlPane &pane, int state)
virtual void x_RenderAlign (CGlPane &pane)
 Renders graphical part of the row.
virtual void x_RenderIcons (CGlPane &pane, int state)
virtual void x_RenderIconStrand (CGlPane &pane, int state)
virtual void x_RenderIconExpand (CGlPane &pane, int state)
virtual void x_RenderEmptyBox (CGlPane &pane)
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 (CGlPane &pane, 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.
virtual void x_RenderSequence (CGlPane &pane, TModelUnit top_y, TModelUnit bottom_y, int start, int stop)
virtual void x_RenderGraph (CGlPane &pane, const TSignedRange &range)
virtual void x_RenderStartPos (CGlPane &pane, int state)
virtual void x_RenderEndPos (CGlPane &pane, int state)
virtual void x_RenderSeqStart (CGlPane &pane, int state)
virtual void x_RenderSeqEnd (CGlPane &pane, int state)
virtual void x_RenderSeqLength (CGlPane &pane, int state)
virtual void x_RenderAlnPos (CGlPane &pane, TSeqPos aln_pos, IAlnExplorer::ESearchDirection dir, int state)
virtual void x_RenderTextCell (CGlPane &pane, const string &text, int state, IGlFont::TAlign align)
virtual TVPRect x_GetButtonRect (CGlPane &pane, EButtons btn, int shift=1)
virtual EButtons x_HitTestButton (CGlPane &pane, const TVPPoint &pt)
virtual void x_OnClickExpandBtn ()
virtual string x_GetDescrTooltip (const TVPPoint &pt, CGlPane &pane)
virtual string x_GetIconsTooltip (const TVPPoint &pt, CGlPane &pane)
virtual string x_GetAlignmentTooltip (const TVPPoint &pt, CGlPane &pane)
string x_GetAlignmentTooltip_General (const TSeqPos pos)
string x_GetAlignmentTooltip_Insert (const TSignedSeqRange &aln_r, const TSignedSeqRange &seq_r)
string x_GetAlignmentTooltip_Gap (const TSignedSeqRange &aln_r, const TSignedSeqRange &seq_r)
string x_GetAlignmentTooltip_Unaligned (TSignedSeqPos aln_prev_to, TSignedSeqPos aln_from, TSignedSeqPos prev_to, TSignedSeqPos from)
string x_GetTooltipSequence (TSeqPos from, TSeqPos to)
IAlignRowHostx_GetHost ()
void x_OnGraphContentChanged (CEvent *evt)
void x_OnGraphSizeChanged (CEvent *evt)
virtual void x_UpdateRowHeight ()

Protected Attributes

const IAlignRowHandlem_Handle
IAlignRowHostm_Host
int m_Height
int m_BaseHeight
string m_Text
bool m_bExpanded
const CRowDisplayStylem_Style
CScoreCachem_Cache
 row display style
CRef< CAlignRowGraphContm_GraphCont
CGlDisplayList m_DList
 Graphics caching.
TVPUnit m_PixLeft
TVPUnit m_PixRight
TModelUnit m_ModelLeft
TModelUnit m_ModelRight


Member Typedef Documentation

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

Definition at line 131 of file align_row.hpp.

typedef IAlnExplorer::TSignedRange CAlnVecRow::TSignedRange
 

Definition at line 78 of file align_row.hpp.


Member Enumeration Documentation

enum CAlnVecRow::EButtons [protected]
 

Enumerator:
eInvalid 
eStrandMarker 
eExpand 
eSetupGraphs 

Definition at line 125 of file align_row.hpp.


Constructor & Destructor Documentation

CAlnVecRow::CAlnVecRow const IAlignRowHandle handle  ) 
 

CAlnVecRow.

Definition at line 85 of file align_row.cpp.

References CLabel::eDefault, IAlignRowHandle::GetBioseqHandle(), CLabel::GetLabel(), m_Handle, and m_Text.

CAlnVecRow::CAlnVecRow const IAlignRowHandle handle,
vector< IAlnVecRowGraph * > &  graphs
 

Definition at line 101 of file align_row.cpp.

References _ASSERT, CEventHandler::AddListener(), CLabel::eDefault, CEventHandler::ePool_Child, CEventHandler::ePool_Parent, IAlignRowHandle::GetBioseqHandle(), CLabel::GetLabel(), CRef< C, Locker >::GetPointer(), m_GraphCont, m_Handle, m_Text, NON_CONST_ITERATE, and CRef< C, Locker >::Reset().

&CAlnVecRow::x_OnGraphSizeChanged CAlnVecRow::~CAlnVecRow  ) 
 

Definition at line 137 of file align_row.cpp.


Member Function Documentation

CAlnVecRow::DECLARE_EVENT_MAP  )  [protected]
 

void CAlnVecRow::Expand bool  b_exp  )  [virtual]
 

Definition at line 1656 of file align_row.cpp.

References IAlignRowHost::ARH_OnRowChanged(), IsExpandable(), IsExpanded(), m_bExpanded, m_GraphCont, x_GetHost(), and x_UpdateRowHeight().

Referenced by x_OnClickExpandBtn().

TSeqPos CAlnVecRow::GetColumnAsSeqPos TColumnType  type,
const TModelRect rc_vis
[virtual]
 

Definition at line 1702 of file align_row.cpp.

References IAlignRow::eEnd, IAlnExplorer::eLeft, IAlnExplorer::eRight, IAlignRow::eSeqEnd, IAlignRow::eSeqLength, IAlignRow::eSeqStart, IAlignRow::eStart, IAlignRowHandle::GetBioseqHandle(), IAlignRowHandle::GetSeqPosFromAlnPos(), IAlignRowHandle::GetSeqStart(), IAlignRowHandle::GetSeqStop(), IAlignRowHandle::IsNegativeStrand(), CGlRect< T >::Left(), m_Handle, and CGlRect< T >::Right().

string CAlnVecRow::GetColumnAsString TColumnType  type  )  [virtual]
 

Definition at line 1734 of file align_row.cpp.

References IAlignRow::eDescr, and m_Text.

const CRowDisplayStyle * CAlnVecRow::GetDisplayStyle  )  [virtual]
 

Implements IAlignRow.

Definition at line 280 of file align_row.cpp.

References m_Style.

int CAlnVecRow::GetHeightPixels  )  const [virtual]
 

Returns height of the row in pixels.

Implements IAlignRow.

Definition at line 298 of file align_row.cpp.

References m_Height.

void CAlnVecRow::GetHTMLActiveAreas TColumnType  col_type,
CGlPane pane,
TAreaVector areas
[virtual]
 

Definition at line 159 of file align_row.cpp.

References CGlPane::Close(), IAlignRowHandle::CreateSegmentIterator(), IAlignRow::eAlignment, IAlignRow::eDescr, eExpand, CAlnMultiRenderer::eHtmlArea_CheckBox, CAlnMultiRenderer::eHtmlArea_Link, IAlignRow::eIcons, IAlnSegmentIterator::eSkipInserts, COpenRange< Position >::GetFrom(), IAlignRowHandle::GetRowNum(), IAlignRowHandle::GetSeqAlnStart(), IAlignRowHandle::GetSeqAlnStop(), COpenRange< Position >::GetToOpen(), CGlPane::GetViewport(), CGlPane::GetVisibleRect(), NStr::IntToString(), IsExpandable(), CGlRect< T >::Left(), m_Handle, m_Text, CGlPane::OpenOrtho(), CGlPane::ProjectX(), CGlRect< T >::Right(), CGlRect< T >::SetHorz(), and x_GetButtonRect().

const IAlnRowGraphProperties * CAlnVecRow::GetProperties  )  const [virtual]
 

Definition at line 1683 of file align_row.cpp.

References m_GraphCont.

int CAlnVecRow::GetRowNum  )  const [virtual]
 

Returns index of row in IAlnMultiDataSource.

Implements IAlignRow.

Definition at line 292 of file align_row.cpp.

References IAlignRowHandle::GetRowNum(), and m_Handle.

string CAlnVecRow::GetTooltip const TVPPoint vp_pt,
TColumnType  col_type,
CGlPane pane
[virtual]
 

returns tooltip text by point in the viewport coordinates

Definition at line 361 of file align_row.cpp.

References IAlignRow::eAlignment, IAlignRow::eDescr, IAlignRow::eEnd, IAlignRow::eIcons, IAlignRow::eSeqEnd, IAlignRow::eSeqLength, IAlignRow::eSeqStart, IAlignRow::eStart, x_GetAlignmentTooltip(), x_GetDescrTooltip(), and x_GetIconsTooltip().

void CAlnVecRow::GraphicsCacheCmd EGraphCacheCmd  cmd  )  [virtual]
 

Definition at line 150 of file align_row.cpp.

References CGlDisplayList::Delete(), IAlignRow::eDelete, IAlignRow::eInvalidate, CGlDisplayList::Invalidate(), and m_DList.

bool CAlnVecRow::IsExpandable  )  const [virtual]
 

Definition at line 1643 of file align_row.cpp.

Referenced by Expand(), GetHTMLActiveAreas(), x_GetIconsTooltip(), and x_RenderIconExpand().

bool CAlnVecRow::IsExpanded  )  const [virtual]
 

Definition at line 1650 of file align_row.cpp.

References m_bExpanded.

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

void CAlnVecRow::OnMouseEvent wxMouseEvent &  event,
TColumnType  col_type,
CGlPane pane
[virtual]
 

Definition at line 340 of file align_row.cpp.

References IAlignRowHost::ARH_GetVPPosByWindowPos(), eExpand, IAlignRow::eIconExpand, pos, CGlRect< T >::PtInRect(), x_GetButtonRect(), x_GetHost(), and x_OnClickExpandBtn().

void CAlnVecRow::RenderColumn TColumnType  col_type,
CGlPane pane,
int  state
[virtual]
 

Definition at line 304 of file align_row.cpp.

References IAlignRow::eAlignment, IAlignRow::eDescr, IAlignRow::eEnd, IAlignRow::eIconExpand, IAlignRow::eIcons, IAlignRow::eIconStrand, ERR_POST, error(), IAlignRow::eSeqEnd, IAlignRow::eSeqLength, IAlignRow::eSeqStart, IAlignRow::eStart, CException::GetMsg(), m_Style, NCBI_ASSERT, x_RenderAlign(), x_RenderDescr(), x_RenderEndPos(), x_RenderIconExpand(), x_RenderIcons(), x_RenderIconStrand(), x_RenderSeqEnd(), x_RenderSeqLength(), x_RenderSeqStart(), and x_RenderStartPos().

void CAlnVecRow::SetDisplayStyle const CRowDisplayStyle style  )  [virtual]
 

Implements IAlignRow.

Definition at line 238 of file align_row.cpp.

References m_Style, and UpdateOnStyleChanged().

Referenced by CAlnMultiModel::x_CreateRow().

void CAlnVecRow::SetHost IAlignRowHost host  )  [virtual]
 

Implements IAlignRow.

Definition at line 286 of file align_row.cpp.

References m_Host.

void CAlnVecRow::SetProperties IAlnRowGraphProperties props  )  [virtual]
 

Definition at line 1689 of file align_row.cpp.

References m_BaseHeight, m_GraphCont, and m_Height.

void CAlnVecRow::SetScoreCache CScoreCache cache  )  [virtual]
 

Definition at line 144 of file align_row.cpp.

References m_Cache.

Referenced by CAlnMultiModel::x_CreateRow().

void CAlnVecRow::UpdateOnAnchorChanged  )  [virtual]
 

Reimplemented from IAlignRow.

Definition at line 257 of file align_row.cpp.

References m_bExpanded, and m_GraphCont.

void CAlnVecRow::UpdateOnStyleChanged  )  [virtual]
 

Implements IAlignRow.

Definition at line 246 of file align_row.cpp.

References m_BaseHeight, m_bExpanded, m_GraphCont, m_Height, and x_GetBaseHeight().

Referenced by SetDisplayStyle().

bool CAlnVecRow::x_CanRenderSeq CGlPane pane  )  [protected, virtual]
 

Checks if sequence can be drawn.

Definition at line 1221 of file align_row.cpp.

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

Referenced by x_RenderAlign().

string CAlnVecRow::x_GetAlignmentTooltip const TVPPoint pt,
CGlPane pane
[protected, virtual]
 

Definition at line 463 of file align_row.cpp.

References m_bExpanded, m_GraphCont, CGlRect< T >::PtInRect(), CGlPoint< T >::X(), and CGlPoint< T >::Y().

Referenced by GetTooltip().

string CAlnVecRow::x_GetAlignmentTooltip_Gap const TSignedSeqRange aln_r,
const TSignedSeqRange seq_r
[protected]
 

Definition at line 596 of file align_row.cpp.

References FormatRange(), COpenRange< Position >::GetFrom(), and COpenRange< Position >::GetTo().

string CAlnVecRow::x_GetAlignmentTooltip_General const TSeqPos  pos  )  [protected]
 

Definition at line 557 of file align_row.cpp.

References NStr::fWithCommas, IAlignRowHandle::GetSeqPosFromAlnPos(), NStr::IntToString(), IAlignRowHandle::IsNegativeStrand(), m_Handle, and m_Text.

string CAlnVecRow::x_GetAlignmentTooltip_Insert const TSignedSeqRange aln_r,
const TSignedSeqRange seq_r
[protected]
 

Definition at line 575 of file align_row.cpp.

References FormatRange(), NStr::fWithCommas, COpenRange< Position >::GetFrom(), COpenRange< Position >::GetTo(), NStr::IntToString(), and x_GetTooltipSequence().

string CAlnVecRow::x_GetAlignmentTooltip_Unaligned TSignedSeqPos  aln_prev_to,
TSignedSeqPos  aln_from,
TSignedSeqPos  prev_to,
TSignedSeqPos  from
[protected]
 

Definition at line 607 of file align_row.cpp.

References FormatRange(), NStr::fWithCommas, NStr::IntToString(), and x_GetTooltipSequence().

int CAlnVecRow::x_GetBaseHeight  )  const [protected, virtual]
 

Definition at line 266 of file align_row.cpp.

References CRowDisplayStyle::GetSeqFont(), CRowDisplayStyle::GetTextFont(), kSeqVertSpace, kTextVertSpace, m_Style, and CGlBitmapFont::TextHeight().

Referenced by UpdateOnStyleChanged().

TVPRect CAlnVecRow::x_GetButtonRect CGlPane pane,
EButtons  btn,
int  shift = 1
[protected, virtual]
 

Definition at line 1349 of file align_row.cpp.

References CGlPane::GetViewport(), CGlRect< T >::Left(), m_BaseHeight, and CGlRect< T >::Top().

Referenced by GetHTMLActiveAreas(), OnMouseEvent(), x_RenderIconExpand(), x_RenderIcons(), and x_RenderIconStrand().

string CAlnVecRow::x_GetDescrTooltip const TVPPoint pt,
CGlPane pane
[protected, virtual]
 

first, the text for our row

next, title of the bioseq

org info

sequence length information

Definition at line 387 of file align_row.cpp.

References IAlignRowHandle::GetBioseqHandle(), COrg_ref::GetLabel(), GetOrg_ref(), GetTitle(), CBioseq_Handle::IsNa(), m_Handle, and m_Text.

Referenced by GetTooltip().

IAlignRowHost* CAlnVecRow::x_GetHost  )  [inline, protected]
 

Definition at line 195 of file align_row.hpp.

References m_Host.

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

string CAlnVecRow::x_GetIconsTooltip const TVPPoint pt,
CGlPane pane
[protected, virtual]
 

Definition at line 426 of file align_row.cpp.

References _ASSERT, eExpand, eStrandMarker, IsExpandable(), IAlignRowHandle::IsNegativeStrand(), m_bExpanded, m_Handle, x_GetHost(), and x_HitTestButton().

Referenced by GetTooltip().

string CAlnVecRow::x_GetTooltipSequence TSeqPos  from,
TSeqPos  to
[protected]
 

Definition at line 628 of file align_row.cpp.

References COpenRange< Position >::GetFrom(), COpenRange< Position >::GetLength(), IAlignRowHandle::GetSeqString(), kMaxSeqInTooltip, m_Handle, and COpenRange< Position >::Set().

Referenced by x_GetAlignmentTooltip_Insert(), and x_GetAlignmentTooltip_Unaligned().

CAlnVecRow::EButtons CAlnVecRow::x_HitTestButton CGlPane pane,
const TVPPoint pt
[protected, virtual]
 

Definition at line 1363 of file align_row.cpp.

References CGlPane::GetViewport(), CGlRect< T >::Left(), and CGlPoint< T >::X().

Referenced by x_GetIconsTooltip().

void CAlnVecRow::x_OnClickExpandBtn  )  [protected, virtual]
 

Definition at line 653 of file align_row.cpp.

References Expand(), and IsExpanded().

Referenced by OnMouseEvent().

void CAlnVecRow::x_OnGraphContentChanged CEvent evt  )  [protected]
 

Definition at line 1745 of file align_row.cpp.

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

void CAlnVecRow::x_OnGraphSizeChanged CEvent evt  )  [protected]
 

Definition at line 1753 of file align_row.cpp.

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

void CAlnVecRow::x_RenderAlign CGlPane pane  )  [protected, virtual]
 

Renders graphical part of the row.

Render Alignment segments & Gaps

Render Inserts

Render Sequence

Render Graph

Definition at line 671 of file align_row.cpp.

References _ASSERT, CGlPane::Close(), color, IAlignRowHandle::CreateSegmentIterator(), CWidgetDisplayStyle::eAlignSegs, CWidgetDisplayStyle::eAlignSegsNoScores, IAlnSegmentIterator::eAllSegments, f(), CRowDisplayStyle::GetColor(), CGlPane::GetModelLimitsRect(), CGlPane::GetOffsetY(), CGlPane::GetScaleX(), CScoreCache::GetScoringMethod(), CGlPane::GetVisibleRect(), glColorC(), CScoreCache::HasScores(), IScoringMethod::IsAverageable(), kAlignSpace, CGlRect< T >::Left(), m_BaseHeight, m_Cache, m_Handle, m_Style, CGlPane::OpenOrtho(), CGlRect< T >::Right(), CGlRect< T >::Top(), x_CanRenderSeq(), x_RenderAlignScores(), x_RenderAlignSegments(), x_RenderInserts(), x_RenderSequence(), and x_RenderUnaligned().

Referenced by RenderColumn().

void CAlnVecRow::x_RenderAlignScores CGlPane pane,
IAlnSegmentIterator it_seg,
int  top_y,
int  bottom_y,
bool  averageable
[protected, virtual]
 

Definition at line 943 of file align_row.cpp.

References CGlPane::GetViewport(), CGlPane::GetVisibleRect(), CGlDisplayList::Invalidate(), CGlRect< T >::Left(), m_DList, m_ModelLeft, m_ModelRight, m_PixLeft, m_PixRight, CGlPane::OpenPixels(), CGlRect< T >::Right(), and CGlRect< T >::Top().

Referenced by x_RenderAlign().

void CAlnVecRow::x_RenderAlignSegments CGlPane pane,
IAlnSegmentIterator it,
TModelUnit  top_y,
TModelUnit  bottom_y,
const CRgbaColor color
[protected, virtual]
 

Render Segments

Rasterize segments - raster represents density of pixel coverage by segments

otherwise consider it to be transparent

use density as a measure of transparency

Definition at line 839 of file align_row.cpp.

References CGlPane::Close(), color, CGlPane::GetOffsetX(), IAlignRowHandle::GetSeqAlnStart(), IAlignRowHandle::GetSeqAlnStop(), CGlPane::GetViewport(), CGlPane::GetVisibleRect(), glColorC(), glLined(), CGlRect< T >::Left(), m_Handle, CGlPane::OpenOrtho(), CGlPane::OpenPixels(), and CGlRect< T >::Right().

Referenced by x_RenderAlign().

void CAlnVecRow::x_RenderAlnPos CGlPane pane,
TSeqPos  aln_pos,
IAlnExplorer::ESearchDirection  dir,
int  state
[protected, virtual]
 

Definition at line 1565 of file align_row.cpp.

References IGlFont::eAlign_Right, IAlnExplorer::eLeft, IAlnExplorer::eRight, CTextUtils::FormatSeparatedNumber(), IAlignRowHandle::GetSeqPosFromAlnPos(), m_Handle, and x_RenderTextCell().

Referenced by x_RenderEndPos(), and x_RenderStartPos().

void CAlnVecRow::x_RenderAveragableScores CGlPane pane,
IAlnSegmentIterator it_seg,
TScoreConstIterator  it,
const TScoreConstIterator  it_end,
int  vp_top_y,
int  vp_bottom_y
[protected, virtual]
 

apply attributes to the intersection

advance iterators

Definition at line 1049 of file align_row.cpp.

References COpenRange< Position >::GetFrom(), IAlignRowHandle::GetSeqAlnStart(), IAlignRowHandle::GetSeqAlnStop(), COpenRange< Position >::GetTo(), CGlPane::GetViewport(), CGlPane::GetVisibleRect(), CGlRect< T >::Left(), m_Handle, and CGlRect< T >::Right().

void CAlnVecRow::x_RenderDescr CGlPane pane,
int  state
[protected, virtual]
 

Definition at line 1296 of file align_row.cpp.

References _ASSERT, IGlFont::eAlign_Left, m_Style, m_Text, and x_RenderTextCell().

Referenced by RenderColumn().

void CAlnVecRow::x_RenderEmptyBox CGlPane pane  )  [protected, virtual]
 

Definition at line 1634 of file align_row.cpp.

References CGlRect< T >::Bottom(), CWidgetDisplayStyle::eFrame, CRowDisplayStyle::GetColor(), CGlPane::GetViewport(), glColorC(), CGlRect< T >::Left(), m_Style, CGlRect< T >::Right(), and CGlRect< T >::Top().

Referenced by x_RenderTextCell().

void CAlnVecRow::x_RenderEndPos CGlPane pane,
int  state
[protected, virtual]
 

Definition at line 1524 of file align_row.cpp.

References IAlnExplorer::eLeft, CGlPane::GetVisibleRect(), CGlRect< T >::Right(), and x_RenderAlnPos().

Referenced by RenderColumn().

void CAlnVecRow::x_RenderGraph CGlPane pane,
const TSignedRange range
[protected, virtual]
 

Definition at line 1304 of file align_row.cpp.

References IAlignRowHandle::CreateSegmentIterator(), IAlnSegmentIterator::eSkipInserts, CGlRect< T >::IntersectWith(), IsExpanded(), m_BaseHeight, m_GraphCont, m_Handle, CGlRect< T >::SetTop(), and CGlRect< T >::Top().

void CAlnVecRow::x_RenderIconExpand CGlPane pane,
int  state
[protected, virtual]
 

if(m_GraphCont && m_GraphCont->HasData()) { // draw "Graph" button rc_btn = x_GetButtonRect(pane, eSetupGraphs); glRectd(rc_btn.Left(), rc_btn.Bottom(), rc_btn.Right(), rc_btn.Top());

m_Style->GetTextFont().TextOut(rc_btn.Left() + 1, rc_btn.Bottom() + 1, kButtonSize - 2, kButtonSize - 2, "...", IGlFont::eAlign_Center); }

Definition at line 1471 of file align_row.cpp.

References _ASSERT, CGlRect< T >::Bottom(), CGlRect< T >::CenterPoint(), CGlPane::Close(), eExpand, eStrandMarker, CWidgetDisplayStyle::eText, CRowDisplayStyle::GetColor(), glColorC(), IsExpandable(), kButtonSize, CGlRect< T >::Left(), m_bExpanded, m_Style, CGlPane::OpenPixels(), CGlRect< T >::Right(), CGlRect< T >::Top(), CGlPoint< T >::X(), x_GetButtonRect(), and CGlPoint< T >::Y().

Referenced by RenderColumn().

void CAlnVecRow::x_RenderIcons CGlPane pane,
int  state
[protected, virtual]
 

if(m_GraphCont && m_GraphCont->HasData()) { // draw "Graph" button rc_btn = x_GetButtonRect(pane, eSetupGraphs); glRectd(rc_btn.Left(), rc_btn.Bottom(), rc_btn.Right(), rc_btn.Top());

m_Style->GetTextFont().TextOut(rc_btn.Left() + 1, rc_btn.Bottom() + 1, kButtonSize - 2, kButtonSize - 2, "...", IGlFont::eAlign_Center); }

Definition at line 1381 of file align_row.cpp.

References _ASSERT, CGlRect< T >::CenterPoint(), eStrandMarker, half, CGlRect< T >::Height(), IAlignRowHandle::IsNegativeStrand(), CGlRect< T >::Left(), m_Handle, m_Style, CGlPane::OpenPixels(), CGlRect< T >::Right(), swap(), and x_GetButtonRect().

Referenced by RenderColumn().

void CAlnVecRow::x_RenderIconStrand CGlPane pane,
int  state
[protected, virtual]
 

Definition at line 1442 of file align_row.cpp.

References _ASSERT, CGlRect< T >::CenterPoint(), eExpand, half, CGlRect< T >::Height(), IAlignRowHandle::IsNegativeStrand(), CGlRect< T >::Left(), m_Handle, m_Style, CGlPane::OpenPixels(), CGlRect< T >::Right(), swap(), and x_GetButtonRect().

Referenced by RenderColumn().

void CAlnVecRow::x_RenderInserts CGlPane pane,
int  from,
int  to,
TModelUnit  top_y,
TModelUnit  bottom_y
[protected, virtual]
 

Definition at line 757 of file align_row.cpp.

References CompressLength(), IAlignRowHandle::CreateSegmentIterator(), IAlnSegmentIterator::eInsertsOnly, f(), CGlPane::GetOffsetX(), CGlPane::GetScaleX(), glColorC(), glLined(), len, and m_Handle.

Referenced by x_RenderAlign().

void CAlnVecRow::x_RenderNonAveragableScores CGlPane pane,
IAlnSegmentIterator it_seg,
TScoreConstIterator  it,
const TScoreConstIterator  it_end,
int  vp_top_y,
int  vp_bottom_y
[protected, virtual]
 

apply attributes to the intersection

advance iterators

Definition at line 1148 of file align_row.cpp.

References FSetPixMaxCoverage(), COpenRange< Position >::GetFrom(), IAlignRowHandle::GetSeqAlnStart(), IAlignRowHandle::GetSeqAlnStop(), COpenRange< Position >::GetTo(), CGlPane::GetViewport(), CGlPane::GetVisibleRect(), CGlRect< T >::Left(), m_Handle, and CGlRect< T >::Right().

void CAlnVecRow::x_RenderSeqEnd CGlPane pane,
int  state
[protected, virtual]
 

Definition at line 1544 of file align_row.cpp.

References IGlFont::eAlign_Right, CTextUtils::FormatSeparatedNumber(), IAlignRowHandle::GetSeqStart(), IAlignRowHandle::GetSeqStop(), IAlignRowHandle::IsNegativeStrand(), m_Handle, and x_RenderTextCell().

Referenced by RenderColumn().

void CAlnVecRow::x_RenderSeqLength CGlPane pane,
int  state
[protected, virtual]
 

Definition at line 1555 of file align_row.cpp.

References IGlFont::eAlign_Right, CTextUtils::FormatSeparatedNumber(), IAlignRowHandle::GetBioseqHandle(), m_Handle, and x_RenderTextCell().

Referenced by RenderColumn().

void CAlnVecRow::x_RenderSeqStart CGlPane pane,
int  state
[protected, virtual]
 

Definition at line 1533 of file align_row.cpp.

References IGlFont::eAlign_Right, CTextUtils::FormatSeparatedNumber(), IAlignRowHandle::GetSeqStart(), IAlignRowHandle::GetSeqStop(), IAlignRowHandle::IsNegativeStrand(), m_Handle, and x_RenderTextCell().

Referenced by RenderColumn().

void CAlnVecRow::x_RenderSequence CGlPane pane,
TModelUnit  top_y,
TModelUnit  bottom_y,
int  start,
int  stop
[protected, virtual]
 

need to draw colored sequence on colored background

simply render the sequence

Definition at line 1235 of file align_row.cpp.

References _ASSERT, IScoringMethod::fForeground, IAlignRowHandle::GetAlnSeqString(), CGlPane::GetOffsetX(), CGlPane::GetScaleX(), CScoreCache::GetScoringMethod(), CRowDisplayStyle::GetSeqFont(), H, CScoreCache::HasScores(), IfDash(), m_Cache, m_Handle, m_Style, and CGlBitmapFont::TextHeight().

Referenced by x_RenderAlign().

void CAlnVecRow::x_RenderStartPos CGlPane pane,
int  state
[protected, virtual]
 

Definition at line 1515 of file align_row.cpp.

References IAlnExplorer::eRight, CGlPane::GetVisibleRect(), CGlRect< T >::Left(), and x_RenderAlnPos().

Referenced by RenderColumn().

void CAlnVecRow::x_RenderTextCell CGlPane pane,
const string &  text,
int  state,
IGlFont::TAlign  align
[protected, virtual]
 

Definition at line 1588 of file align_row.cpp.

References _ASSERT, CGlRect< T >::Bottom(), CGlPane::Close(), CWidgetDisplayStyle::eFocusedBack, CWidgetDisplayStyle::eSelectedBack, CWidgetDisplayStyle::eSelectedText, CWidgetDisplayStyle::eText, IAlignRow::fItemFocused, IAlignRow::fItemSelected, IAlignRow::fWidgetFocused, CRowDisplayStyle::GetColor(), CRowDisplayStyle::GetTextFont(), CGlPane::GetViewport(), glColorC(), kTextOffsetX, CGlRect< T >::Left(), m_BaseHeight, m_Style, CGlPane::OpenPixels(), CGlRect< T >::Right(), CGlBitmapFont::TextOut(), CGlRect< T >::Top(), CGlRect< T >::Width(), and x_RenderEmptyBox().

Referenced by x_RenderAlnPos(), x_RenderDescr(), x_RenderSeqEnd(), x_RenderSeqLength(), and x_RenderSeqStart().

void CAlnVecRow::x_RenderUnaligned CGlPane pane,
int  from,
int  to,
TModelUnit  top_y,
TModelUnit  bottom_y
[protected, virtual]
 

Definition at line 789 of file align_row.cpp.

References CompressLength(), IAlignRowHandle::CreateSegmentIterator(), IAlnSegmentIterator::eSkipGaps, f(), COpenRange< Position >::GetFrom(), CGlPane::GetOffsetX(), CGlPane::GetScaleX(), glColorC(), glLined(), len, and m_Handle.

Referenced by x_RenderAlign().

void CAlnVecRow::x_UpdateRowHeight  )  [protected, virtual]
 

Definition at line 1674 of file align_row.cpp.

References m_BaseHeight, m_GraphCont, and m_Height.

Referenced by Expand(), x_OnGraphContentChanged(), and x_OnGraphSizeChanged().


Member Data Documentation

int CAlnVecRow::m_BaseHeight [protected]
 

Definition at line 208 of file align_row.hpp.

Referenced by SetProperties(), UpdateOnStyleChanged(), x_GetButtonRect(), x_RenderAlign(), x_RenderGraph(), x_RenderTextCell(), and x_UpdateRowHeight().

bool CAlnVecRow::m_bExpanded [protected]
 

Definition at line 211 of file align_row.hpp.

Referenced by Expand(), IsExpanded(), UpdateOnAnchorChanged(), UpdateOnStyleChanged(), x_GetAlignmentTooltip(), x_GetIconsTooltip(), and x_RenderIconExpand().

CScoreCache* CAlnVecRow::m_Cache [protected]
 

row display style

Definition at line 215 of file align_row.hpp.

Referenced by SetScoreCache(), x_RenderAlign(), and x_RenderSequence().

CGlDisplayList CAlnVecRow::m_DList [protected]
 

Graphics caching.

Definition at line 220 of file align_row.hpp.

Referenced by GraphicsCacheCmd(), and x_RenderAlignScores().

CRef<CAlignRowGraphCont> CAlnVecRow::m_GraphCont [protected]
 

Definition at line 217 of file align_row.hpp.

Referenced by CAlnVecRow(), Expand(), GetProperties(), SetProperties(), UpdateOnAnchorChanged(), UpdateOnStyleChanged(), x_GetAlignmentTooltip(), x_RenderGraph(), and x_UpdateRowHeight().

const IAlignRowHandle& CAlnVecRow::m_Handle [protected]
 

Definition at line 203 of file align_row.hpp.

Referenced by CAlnVecRow(), GetColumnAsSeqPos(), GetHTMLActiveAreas(), GetRowNum(), x_GetAlignmentTooltip_General(), x_GetDescrTooltip(), x_GetIconsTooltip(), x_GetTooltipSequence(), x_RenderAlign(), x_RenderAlignSegments(), x_RenderAlnPos(), x_RenderAveragableScores(), x_RenderGraph(), x_RenderIcons(), x_RenderIconStrand(), x_RenderInserts(), x_RenderNonAveragableScores(), x_RenderSeqEnd(), x_RenderSeqLength(), x_RenderSeqStart(), x_RenderSequence(), and x_RenderUnaligned().

int CAlnVecRow::m_Height [protected]
 

Definition at line 207 of file align_row.hpp.

Referenced by GetHeightPixels(), SetProperties(), UpdateOnStyleChanged(), and x_UpdateRowHeight().

IAlignRowHost* CAlnVecRow::m_Host [protected]
 

Definition at line 205 of file align_row.hpp.

Referenced by SetHost(), x_GetHost(), x_OnGraphContentChanged(), and x_OnGraphSizeChanged().

TModelUnit CAlnVecRow::m_ModelLeft [protected]
 

Definition at line 222 of file align_row.hpp.

Referenced by x_RenderAlignScores().

TModelUnit CAlnVecRow::m_ModelRight [protected]
 

Definition at line 222 of file align_row.hpp.

Referenced by x_RenderAlignScores().

TVPUnit CAlnVecRow::m_PixLeft [protected]
 

Definition at line 221 of file align_row.hpp.

Referenced by x_RenderAlignScores().

TVPUnit CAlnVecRow::m_PixRight [protected]
 

Definition at line 221 of file align_row.hpp.

Referenced by x_RenderAlignScores().

const CRowDisplayStyle* CAlnVecRow::m_Style [protected]
 

Definition at line 213 of file align_row.hpp.

Referenced by GetDisplayStyle(), RenderColumn(), SetDisplayStyle(), x_CanRenderSeq(), x_GetBaseHeight(), x_RenderAlign(), x_RenderDescr(), x_RenderEmptyBox(), x_RenderIconExpand(), x_RenderIcons(), x_RenderIconStrand(), x_RenderSequence(), and x_RenderTextCell().

string CAlnVecRow::m_Text [protected]
 

Definition at line 209 of file align_row.hpp.

Referenced by CAlnVecRow(), GetColumnAsString(), GetHTMLActiveAreas(), x_GetAlignmentTooltip_General(), x_GetDescrTooltip(), and x_RenderDescr().


The documentation for this class was generated from the following files:
Generated on Mon Dec 7 09:57:40 2009 for NCBI C++ ToolKit by  doxygen 1.4.6
Modified on Mon Dec 07 16:22:27 2009 by modify_doxy.py rev. 173732