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

Search Toolkit Book for CRulerPanel

CRulerPanel – the ruler panel class. More...

#include <gui/widgets/seq_graphic/ruler_panel.hpp>

+ Inheritance diagram for CRulerPanel:
+ Collaboration diagram for CRulerPanel:

Public Member Functions

 CRulerPanel ()
 
virtual ~CRulerPanel ()
 
void SetSeqLength (TSeqPos len)
 CRulerPanel inline methods. More...
 
void SetOrientation (bool horz, bool flip)
 
void SetShown (bool f)
 
bool IsShown () const
 
TVPPoint GetSize (int max_num=0) const
 
int GetMainRulerLabelStep () const
 
void SetRulerSeqStart (TSeqPos pos)
 
bool HitTest (const TModelPoint &p)
 
void Render (CGlPane &pane)
 
void GetHTMLActiveAreas (CSeqGlyph::TAreaVector *p_areas) const
 
void LoadSettings (const CSeqGraphicConfig &g_config)
 
void SaveSettings () const
 
- 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_ReversePane (CGlPane &pane) const
 
void x_UpdateMappingRanges ()
 
void x_InitRulerSpecs ()
 

Private Attributes

CRuler m_MainRuler
 
unique_ptr< CRulerm_ExtraRuler
 extra ruler. More...
 
unique_ptr< CRulerm_ExtraNegRuler
 
TSeqPos m_SeqLength
 the total sequence length in bases. More...
 
TSignedSeqPos m_RulerStart
 
bool m_Flipped
 
bool m_Horz
 
bool m_Shown
 
configuration
CRgbaColor m_BG
 
CRgbaColor m_GridColor
 
CRgbaColor m_LabelColor
 
CGlTextureFont m_LabelFont
 
CGlTextureFont m_SmallLabelFont
 
int m_MajorTickSize
 
int m_MinorTickSize
 
int m_LabelTickSize
 
int m_OppMajorTickSize
 
int m_OppMinorTickSize
 
int m_OppLabelTickSize
 
CRuler::ELabelAlign m_LabelAln
 

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

CRulerPanel – the ruler panel class.

Definition at line 47 of file ruler_panel.hpp.

Constructor & Destructor Documentation

◆ CRulerPanel()

CRulerPanel::CRulerPanel ( )

Definition at line 47 of file ruler_panel.cpp.

References x_InitRulerSpecs().

◆ ~CRulerPanel()

CRulerPanel::~CRulerPanel ( )
virtual

Definition at line 71 of file ruler_panel.cpp.

Member Function Documentation

◆ GetHTMLActiveAreas()

void CRulerPanel::GetHTMLActiveAreas ( CSeqGlyph::TAreaVector p_areas) const

◆ GetMainRulerLabelStep()

int CRulerPanel::GetMainRulerLabelStep ( ) const
inline

◆ GetSize()

TVPPoint CRulerPanel::GetSize ( int  max_num = 0) const

◆ HitTest()

bool CRulerPanel::HitTest ( const TModelPoint p)

◆ IsShown()

bool CRulerPanel::IsShown ( ) const
inline

Definition at line 57 of file ruler_panel.hpp.

References m_Shown.

Referenced by CSeqGraphicRenderer::x_Draw(), and CSeqGraphicRenderer::x_DrawVectorGraphics().

◆ LoadSettings()

void CRulerPanel::LoadSettings ( const CSeqGraphicConfig g_config)

◆ Render()

void CRulerPanel::Render ( CGlPane pane)

◆ SaveSettings()

void CRulerPanel::SaveSettings ( ) const

Definition at line 282 of file ruler_panel.cpp.

◆ SetOrientation()

void CRulerPanel::SetOrientation ( bool  horz,
bool  flip 
)

◆ SetRulerSeqStart()

void CRulerPanel::SetRulerSeqStart ( TSeqPos  pos)

◆ SetSeqLength()

void CRulerPanel::SetSeqLength ( TSeqPos  len)
inline

CRulerPanel inline methods.

Definition at line 119 of file ruler_panel.hpp.

References len, m_SeqLength, and x_UpdateMappingRanges().

Referenced by CSeqGraphicRenderer::SetInputObject().

◆ SetShown()

void CRulerPanel::SetShown ( bool  f)
inline

Definition at line 130 of file ruler_panel.hpp.

References f(), and m_Shown.

Referenced by CSeqGraphicRenderer::HideRuler().

◆ x_InitRulerSpecs()

void CRulerPanel::x_InitRulerSpecs ( )
private

◆ x_ReversePane()

void CRulerPanel::x_ReversePane ( CGlPane pane) const
private

◆ x_UpdateMappingRanges()

void CRulerPanel::x_UpdateMappingRanges ( )
private

Member Data Documentation

◆ m_BG

CRgbaColor CRulerPanel::m_BG
private

Definition at line 100 of file ruler_panel.hpp.

Referenced by LoadSettings(), Render(), SetRulerSeqStart(), and x_InitRulerSpecs().

◆ m_ExtraNegRuler

unique_ptr<CRuler> CRulerPanel::m_ExtraNegRuler
private

Definition at line 88 of file ruler_panel.hpp.

Referenced by Render(), SetOrientation(), SetRulerSeqStart(), and x_UpdateMappingRanges().

◆ m_ExtraRuler

unique_ptr<CRuler> CRulerPanel::m_ExtraRuler
private

extra ruler.

The extra ruler is available only when reseting the origin. It appears right under the main ruler, and count up on the right always regardless of the flip strand mode.

Definition at line 87 of file ruler_panel.hpp.

Referenced by GetSize(), Render(), SetOrientation(), SetRulerSeqStart(), x_InitRulerSpecs(), and x_UpdateMappingRanges().

◆ m_Flipped

bool CRulerPanel::m_Flipped
private

Definition at line 94 of file ruler_panel.hpp.

Referenced by Render(), SetOrientation(), and x_UpdateMappingRanges().

◆ m_GridColor

CRgbaColor CRulerPanel::m_GridColor
private

Definition at line 101 of file ruler_panel.hpp.

Referenced by LoadSettings(), SetRulerSeqStart(), and x_InitRulerSpecs().

◆ m_Horz

bool CRulerPanel::m_Horz
private

Definition at line 95 of file ruler_panel.hpp.

Referenced by GetSize(), Render(), SetOrientation(), x_InitRulerSpecs(), and x_ReversePane().

◆ m_LabelAln

CRuler::ELabelAlign CRulerPanel::m_LabelAln
private

Definition at line 111 of file ruler_panel.hpp.

Referenced by LoadSettings(), SetOrientation(), and x_InitRulerSpecs().

◆ m_LabelColor

CRgbaColor CRulerPanel::m_LabelColor
private

Definition at line 102 of file ruler_panel.hpp.

Referenced by LoadSettings(), SetRulerSeqStart(), and x_InitRulerSpecs().

◆ m_LabelFont

CGlTextureFont CRulerPanel::m_LabelFont
private

Definition at line 103 of file ruler_panel.hpp.

Referenced by LoadSettings(), and x_InitRulerSpecs().

◆ m_LabelTickSize

int CRulerPanel::m_LabelTickSize
private

Definition at line 107 of file ruler_panel.hpp.

Referenced by LoadSettings(), Render(), and x_InitRulerSpecs().

◆ m_MainRuler

CRuler CRulerPanel::m_MainRuler
private

◆ m_MajorTickSize

int CRulerPanel::m_MajorTickSize
private

Definition at line 105 of file ruler_panel.hpp.

Referenced by LoadSettings(), and x_InitRulerSpecs().

◆ m_MinorTickSize

int CRulerPanel::m_MinorTickSize
private

Definition at line 106 of file ruler_panel.hpp.

Referenced by LoadSettings(), and x_InitRulerSpecs().

◆ m_OppLabelTickSize

int CRulerPanel::m_OppLabelTickSize
private

Definition at line 110 of file ruler_panel.hpp.

Referenced by LoadSettings(), and x_InitRulerSpecs().

◆ m_OppMajorTickSize

int CRulerPanel::m_OppMajorTickSize
private

Definition at line 108 of file ruler_panel.hpp.

Referenced by LoadSettings(), and x_InitRulerSpecs().

◆ m_OppMinorTickSize

int CRulerPanel::m_OppMinorTickSize
private

Definition at line 109 of file ruler_panel.hpp.

Referenced by LoadSettings(), and x_InitRulerSpecs().

◆ m_RulerStart

TSignedSeqPos CRulerPanel::m_RulerStart
private

◆ m_SeqLength

TSeqPos CRulerPanel::m_SeqLength
private

the total sequence length in bases.

Definition at line 91 of file ruler_panel.hpp.

Referenced by Render(), SetSeqLength(), x_ReversePane(), and x_UpdateMappingRanges().

◆ m_Shown

bool CRulerPanel::m_Shown
private

Definition at line 96 of file ruler_panel.hpp.

Referenced by GetHTMLActiveAreas(), GetSize(), IsShown(), Render(), and SetShown().

◆ m_SmallLabelFont

CGlTextureFont CRulerPanel::m_SmallLabelFont
private

Definition at line 104 of file ruler_panel.hpp.

Referenced by SetRulerSeqStart(), and x_InitRulerSpecs().


The documentation for this class was generated from the following files:
Modified on Wed Sep 04 15:05:36 2024 by modify_doxy.py rev. 669887