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

Search Toolkit Book for CCrossAlnRenderer

#include "cross_aln_render.hpp"
(Private to src/gui/widgets/aln_crossaln.)

+ Inheritance diagram for CCrossAlnRenderer:
+ Collaboration diagram for CCrossAlnRenderer:

Public Member Functions

 CCrossAlnRenderer ()
 
 ~CCrossAlnRenderer ()
 
void SetDataSource (const TVPRect &rc, ICrossAlnDataSource *ds)
 
void Update ()
 
float GetZoomX_Q (void) const
 
void SetZoomX_Q (float value)
 
float GetZoomX_S (void) const
 
void SetZoomX_S (float value)
 
void SetScaleRef_Q (TModelUnit m_x, TModelUnit m_y, const TModelPoint &point)
 
void SetScaleRef_S (TModelUnit m_x, TModelUnit m_y, const TModelPoint &point)
 
void SetScaleRef_C (TModelUnit m_x, TModelUnit m_y, const TModelPoint &point)
 
void ColorBySegments ()
 
void ColorByScore (CConstRef< CObject_id > score_id)
 
CConstRef< CObject_idGetScoreId () const
 
void ZoomOnRange_Q (TModelUnit from, TModelUnit to)
 
void ZoomOnRange_S (TModelUnit from, TModelUnit to)
 
void SquareOnRect (TModelRect rc)
 
void ResetObjectSelection ()
 
void GetObjectSelection (TConstObjects &objs) const
 
void SetObjectSelection (const vector< const CSeq_align * > sel_aligns)
 
void ZoomIn_Q ()
 
void ZoomOut_Q ()
 
void ZoomAll_Q ()
 
void ZoomToSeq_Q ()
 
void ZoomIn_S ()
 
void ZoomOut_S ()
 
void ZoomAll_S ()
 
void ZoomToSeq_S ()
 
CGlPaneGetRP_Q ()
 
CGlPaneGetCP ()
 
const CGlPaneGetCP () const
 
CGlPaneGetRP_S ()
 
void SetViewport (const TVPRect &rc)
 
void Render ()
 
TModelRect HitTest (int x, int y)
 
TModelRect SelectHitTest (int x, int y)
 
void GetTooltip (int x, int y, string *title)
 
void Scroll (TModelUnit dxQ, TModelUnit dxS)
 
- Public Member Functions inherited from CObject
 CObject (void)
 Constructor. More...
 
 CObject (const CObject &src)
 Copy constructor. More...
 
virtual ~CObject (void)
 Destructor. More...
 
CObjectoperator= (const CObject &src) THROWS_NONE
 Assignment operator. More...
 
bool CanBeDeleted (void) const THROWS_NONE
 Check if object can be deleted. More...
 
bool IsAllocatedInPool (void) const THROWS_NONE
 Check if object is allocated in memory pool (not system heap) More...
 
bool Referenced (void) const THROWS_NONE
 Check if object is referenced. More...
 
bool ReferencedOnlyOnce (void) const THROWS_NONE
 Check if object is referenced only once. More...
 
void AddReference (void) const
 Add reference to object. More...
 
void RemoveReference (void) const
 Remove reference to object. More...
 
void ReleaseReference (void) const
 Remove reference without deleting object. More...
 
virtual void DoNotDeleteThisObject (void)
 Mark this object as not allocated in heap – do not delete this object. More...
 
virtual void DoDeleteThisObject (void)
 Mark this object as allocated in heap – object can be deleted. More...
 
void * operator new (size_t size)
 Define new operator for memory allocation. More...
 
void * operator new[] (size_t size)
 Define new[] operator for 'array' memory allocation. More...
 
void operator delete (void *ptr)
 Define delete operator for memory deallocation. More...
 
void operator delete[] (void *ptr)
 Define delete[] operator for memory deallocation. More...
 
void * operator new (size_t size, void *place)
 Define new operator. More...
 
void operator delete (void *ptr, void *place)
 Define delete operator. More...
 
void * operator new (size_t size, CObjectMemoryPool *place)
 Define new operator using memory pool. More...
 
void operator delete (void *ptr, CObjectMemoryPool *place)
 Define delete operator. More...
 
virtual void DebugDump (CDebugDumpContext ddc, unsigned int depth) const
 Define method for dumping debug information. More...
 
- Public Member Functions inherited from CDebugDumpable
 CDebugDumpable (void)
 
virtual ~CDebugDumpable (void)
 
void DebugDumpText (ostream &out, const string &bundle, unsigned int depth) const
 
void DebugDumpFormat (CDebugDumpFormatter &ddf, const string &bundle, unsigned int depth) const
 
void DumpToConsole (void) const
 

Private Member Functions

void x_SetupViewPorts (const TVPRect &rc)
 
void x_SetupModelLimits ()
 
void x_AdjustCrossPane ()
 

Private Attributes

CIRef< ICrossAlnDataSourcem_DS
 
CGlPane m_RP_Q
 
CGlPane m_CP
 
CGlPane m_RP_S
 
CRuler m_RulerPanel_Q
 
CCrossPanelIR m_CrossPanel
 
CRuler m_RulerPanel_S
 
TSeqPos m_SeqLength_Q
 
TSeqPos m_SeqLength_S
 
TModelUnit m_MinZoomX
 
TModelUnit m_MaxZoomX_Q
 
TModelUnit m_MaxZoomX_S
 

Additional Inherited Members

- Public Types inherited from CObject
enum  EAllocFillMode { eAllocFillNone = 1 , eAllocFillZero , eAllocFillPattern }
 Control filling of newly allocated memory. More...
 
typedef CObjectCounterLocker TLockerType
 Default locker type for CRef. More...
 
typedef atomic< Uint8TCounter
 Counter type is CAtomiCounter. More...
 
typedef Uint8 TCount
 Alias for value type of counter. More...
 
- 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 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...
 
- Protected Member Functions inherited from CObject
virtual void DeleteThis (void)
 Virtual method "deleting" this object. More...
 

Detailed Description

Definition at line 56 of file cross_aln_render.hpp.

Constructor & Destructor Documentation

◆ CCrossAlnRenderer()

CCrossAlnRenderer::CCrossAlnRenderer ( )

◆ ~CCrossAlnRenderer()

CCrossAlnRenderer::~CCrossAlnRenderer ( )

Definition at line 68 of file cross_aln_render.cpp.

Member Function Documentation

◆ ColorByScore()

void CCrossAlnRenderer::ColorByScore ( CConstRef< CObject_id score_id)

Definition at line 203 of file cross_aln_render.cpp.

References CCrossPanelIR::ColorByScore(), and m_CrossPanel.

Referenced by CCrossAlnPane::ColorByScore().

◆ ColorBySegments()

void CCrossAlnRenderer::ColorBySegments ( )

Definition at line 197 of file cross_aln_render.cpp.

References CCrossPanelIR::ColorBySegments(), and m_CrossPanel.

Referenced by CCrossAlnPane::ColorBySegments().

◆ GetCP() [1/2]

CGlPane & CCrossAlnRenderer::GetCP ( )

◆ GetCP() [2/2]

const CGlPane & CCrossAlnRenderer::GetCP ( ) const

Definition at line 471 of file cross_aln_render.cpp.

References m_CP.

◆ GetObjectSelection()

void CCrossAlnRenderer::GetObjectSelection ( TConstObjects objs) const

◆ GetRP_Q()

CGlPane & CCrossAlnRenderer::GetRP_Q ( )

◆ GetRP_S()

CGlPane & CCrossAlnRenderer::GetRP_S ( )

◆ GetScoreId()

CConstRef< CObject_id > CCrossAlnRenderer::GetScoreId ( ) const

Definition at line 209 of file cross_aln_render.cpp.

References CCrossPanelIR::GetScoreId(), and m_CrossPanel.

Referenced by CCrossAlnPane::GetScoreId().

◆ GetTooltip()

void CCrossAlnRenderer::GetTooltip ( int  x,
int  y,
string title 
)

Definition at line 228 of file cross_aln_render.cpp.

Referenced by CCrossAlnPane::TC_NeedTooltip().

◆ GetZoomX_Q()

float CCrossAlnRenderer::GetZoomX_Q ( void  ) const

Definition at line 235 of file cross_aln_render.cpp.

References CGlPane::GetScaleX(), log, m_MaxZoomX_Q, m_MinZoomX, and m_RP_Q.

◆ GetZoomX_S()

float CCrossAlnRenderer::GetZoomX_S ( void  ) const

Definition at line 254 of file cross_aln_render.cpp.

References CGlPane::GetScaleX(), log, m_MaxZoomX_S, m_MinZoomX, and m_RP_S.

◆ HitTest()

TModelRect CCrossAlnRenderer::HitTest ( int  x,
int  y 
)

Definition at line 222 of file cross_aln_render.cpp.

References CCrossPanelIR::HitTest(), m_CP, and m_CrossPanel.

Referenced by CCrossAlnPane::OnLeftDblClick().

◆ Render()

void CCrossAlnRenderer::Render ( void  )

◆ ResetObjectSelection()

void CCrossAlnRenderer::ResetObjectSelection ( void  )

◆ Scroll()

void CCrossAlnRenderer::Scroll ( TModelUnit  dxQ,
TModelUnit  dxS 
)

Definition at line 489 of file cross_aln_render.cpp.

References m_RP_Q, m_RP_S, CGlPane::Scroll(), and x_AdjustCrossPane().

Referenced by CCrossAlnPane::Scroll().

◆ SelectHitTest()

TModelRect CCrossAlnRenderer::SelectHitTest ( int  x,
int  y 
)

Definition at line 215 of file cross_aln_render.cpp.

References CCrossPanelIR::HitTest(), m_CP, and m_CrossPanel.

Referenced by CCrossAlnPane::OnLeftDown().

◆ SetDataSource()

void CCrossAlnRenderer::SetDataSource ( const TVPRect rc,
ICrossAlnDataSource ds 
)

◆ SetObjectSelection()

void CCrossAlnRenderer::SetObjectSelection ( const vector< const CSeq_align * >  sel_aligns)

◆ SetScaleRef_C()

void CCrossAlnRenderer::SetScaleRef_C ( TModelUnit  m_x,
TModelUnit  m_y,
const TModelPoint point 
)

Definition at line 306 of file cross_aln_render.cpp.

◆ SetScaleRef_Q()

void CCrossAlnRenderer::SetScaleRef_Q ( TModelUnit  m_x,
TModelUnit  m_y,
const TModelPoint point 
)

◆ SetScaleRef_S()

void CCrossAlnRenderer::SetScaleRef_S ( TModelUnit  m_x,
TModelUnit  m_y,
const TModelPoint point 
)

◆ SetViewport()

void CCrossAlnRenderer::SetViewport ( const TVPRect rc)

Definition at line 191 of file cross_aln_render.cpp.

References x_SetupViewPorts().

◆ SetZoomX_Q()

void CCrossAlnRenderer::SetZoomX_Q ( float  value)

◆ SetZoomX_S()

void CCrossAlnRenderer::SetZoomX_S ( float  value)

◆ SquareOnRect()

void CCrossAlnRenderer::SquareOnRect ( TModelRect  rc)

◆ Update()

void CCrossAlnRenderer::Update ( void  )

◆ x_AdjustCrossPane()

void CCrossAlnRenderer::x_AdjustCrossPane ( )
private

◆ x_SetupModelLimits()

void CCrossAlnRenderer::x_SetupModelLimits ( )
private

◆ x_SetupViewPorts()

void CCrossAlnRenderer::x_SetupViewPorts ( const TVPRect rc)
private

◆ ZoomAll_Q()

void CCrossAlnRenderer::ZoomAll_Q ( void  )

Definition at line 428 of file cross_aln_render.cpp.

References SetZoomX_Q().

Referenced by CCrossAlnPane::ZoomAll_Q().

◆ ZoomAll_S()

void CCrossAlnRenderer::ZoomAll_S ( void  )

Definition at line 454 of file cross_aln_render.cpp.

References SetZoomX_S().

Referenced by CCrossAlnPane::ZoomAll_S().

◆ ZoomIn_Q()

void CCrossAlnRenderer::ZoomIn_Q ( )

Definition at line 414 of file cross_aln_render.cpp.

References m_RP_Q, x_AdjustCrossPane(), and CGlPane::ZoomInCenter().

Referenced by CCrossAlnPane::ZoomIn_Q().

◆ ZoomIn_S()

void CCrossAlnRenderer::ZoomIn_S ( )

Definition at line 440 of file cross_aln_render.cpp.

References m_RP_S, x_AdjustCrossPane(), and CGlPane::ZoomInCenter().

Referenced by CCrossAlnPane::ZoomIn_S().

◆ ZoomOnRange_Q()

void CCrossAlnRenderer::ZoomOnRange_Q ( TModelUnit  from,
TModelUnit  to 
)

◆ ZoomOnRange_S()

void CCrossAlnRenderer::ZoomOnRange_S ( TModelUnit  from,
TModelUnit  to 
)

◆ ZoomOut_Q()

void CCrossAlnRenderer::ZoomOut_Q ( )

Definition at line 421 of file cross_aln_render.cpp.

References m_RP_Q, x_AdjustCrossPane(), and CGlPane::ZoomOutCenter().

Referenced by CCrossAlnPane::ZoomOut_Q().

◆ ZoomOut_S()

void CCrossAlnRenderer::ZoomOut_S ( )

Definition at line 447 of file cross_aln_render.cpp.

References m_RP_S, x_AdjustCrossPane(), and CGlPane::ZoomOutCenter().

Referenced by CCrossAlnPane::ZoomOut_S().

◆ ZoomToSeq_Q()

void CCrossAlnRenderer::ZoomToSeq_Q ( void  )

Definition at line 433 of file cross_aln_render.cpp.

References SetZoomX_Q().

Referenced by CCrossAlnPane::ZoomToSeq_Q().

◆ ZoomToSeq_S()

void CCrossAlnRenderer::ZoomToSeq_S ( void  )

Definition at line 460 of file cross_aln_render.cpp.

References SetZoomX_S().

Referenced by CCrossAlnPane::ZoomToSeq_S().

Member Data Documentation

◆ m_CP

CGlPane CCrossAlnRenderer::m_CP
private

◆ m_CrossPanel

CCrossPanelIR CCrossAlnRenderer::m_CrossPanel
private

◆ m_DS

CIRef<ICrossAlnDataSource> CCrossAlnRenderer::m_DS
private

◆ m_MaxZoomX_Q

TModelUnit CCrossAlnRenderer::m_MaxZoomX_Q
private

Definition at line 138 of file cross_aln_render.hpp.

Referenced by GetZoomX_Q(), SetZoomX_Q(), and x_SetupViewPorts().

◆ m_MaxZoomX_S

TModelUnit CCrossAlnRenderer::m_MaxZoomX_S
private

Definition at line 138 of file cross_aln_render.hpp.

Referenced by GetZoomX_S(), SetZoomX_S(), and x_SetupViewPorts().

◆ m_MinZoomX

TModelUnit CCrossAlnRenderer::m_MinZoomX
private

◆ m_RP_Q

CGlPane CCrossAlnRenderer::m_RP_Q
private

◆ m_RP_S

CGlPane CCrossAlnRenderer::m_RP_S
private

◆ m_RulerPanel_Q

CRuler CCrossAlnRenderer::m_RulerPanel_Q
private

◆ m_RulerPanel_S

CRuler CCrossAlnRenderer::m_RulerPanel_S
private

Definition at line 129 of file cross_aln_render.hpp.

Referenced by CCrossAlnRenderer(), Render(), and x_SetupModelLimits().

◆ m_SeqLength_Q

TSeqPos CCrossAlnRenderer::m_SeqLength_Q
private

Definition at line 131 of file cross_aln_render.hpp.

Referenced by Update(), and x_SetupModelLimits().

◆ m_SeqLength_S

TSeqPos CCrossAlnRenderer::m_SeqLength_S
private

Definition at line 132 of file cross_aln_render.hpp.

Referenced by Update(), and x_SetupModelLimits().


The documentation for this class was generated from the following files:
Modified on Sun Jun 23 05:21:44 2024 by modify_doxy.py rev. 669887