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

Search Toolkit Book for CTranslationConfig

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

+ Inheritance diagram for CTranslationConfig:
+ Collaboration diagram for CTranslationConfig:

Public Member Functions

 CTranslationConfig ()
 
void SetStartCodonColor (const CRgbaColor &color)
 CTranslationConfig inline methods. More...
 
CRgbaColorGetStartCodonColor ()
 
const CRgbaColorGetStartCodonColor () const
 
void SetStopCodonColor (const CRgbaColor &color)
 
CRgbaColorGetStopCodonColor ()
 
const CRgbaColorGetStopCodonColor () const
 
void SetOrfHighlightColor (const CRgbaColor &color)
 
CRgbaColorGetOrfHighlightColor ()
 
const CRgbaColorGetOrfHighlightColor () const
 
void SetSeqColor (const CRgbaColor &color)
 
CRgbaColorGetSeqColor ()
 
const CRgbaColorGetSeqColor () const
 
void SetOrfSeqColor (const CRgbaColor &color)
 
CRgbaColorGetOrfSeqColor ()
 
const CRgbaColorGetOrfSeqColor () const
 
void SetLabelBgColor (const CRgbaColor &color)
 
CRgbaColorGetLabelBgColor ()
 
const CRgbaColorGetLabelBgColor () const
 
void SetCommentColor (const CRgbaColor &color)
 
CRgbaColorGetCommentColor ()
 
const CRgbaColorGetCommentColor () const
 
void SetSeqFont (CGlTextureFont::EFontFace font, unsigned int font_size)
 
CGlTextureFontGetSeqFont ()
 
const CGlTextureFontGetSeqFont () const
 
void SetStrandFont (CGlTextureFont::EFontFace font, unsigned int font_size)
 
CGlTextureFontGetStrandFont ()
 
const CGlTextureFontGetStrandFont () const
 
void SetBarHeight (int h)
 
int GetBarHeight () const
 
void SetOrfThreshold (int val)
 
int GetOrfThreshold () const
 
void SetHighlightCodons (bool f)
 
bool GetHighlightCodons () const
 
void SetShowLabel (bool f)
 
bool ShowLabel () 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 Attributes

CRgbaColor m_StartCodonColor
 
CRgbaColor m_StopCodonColor
 
CRgbaColor m_OrfHighlightColor
 
CRgbaColor m_SeqColor
 
CRgbaColor m_OrfSeqColor
 
CRgbaColor m_LabelBgColor
 
CRgbaColor m_CommentColor
 
CGlTextureFont m_SeqFont
 
CGlTextureFont m_StrandFont
 
int m_BarHeight
 
int m_OrfThreshold
 
bool m_HighlightCodons
 
bool m_ShowLabel
 

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 119 of file translation_glyph.hpp.

Constructor & Destructor Documentation

◆ CTranslationConfig()

CTranslationConfig::CTranslationConfig ( )
inline

Definition at line 122 of file translation_glyph.hpp.

Member Function Documentation

◆ GetBarHeight()

int CTranslationConfig::GetBarHeight ( ) const
inline

◆ GetCommentColor() [1/2]

CRgbaColor & CTranslationConfig::GetCommentColor ( )
inline

Definition at line 336 of file translation_glyph.hpp.

References m_CommentColor.

◆ GetCommentColor() [2/2]

const CRgbaColor & CTranslationConfig::GetCommentColor ( ) const
inline

Definition at line 340 of file translation_glyph.hpp.

References m_CommentColor.

◆ GetHighlightCodons()

bool CTranslationConfig::GetHighlightCodons ( ) const
inline

◆ GetLabelBgColor() [1/2]

CRgbaColor & CTranslationConfig::GetLabelBgColor ( )
inline

Definition at line 324 of file translation_glyph.hpp.

References m_LabelBgColor.

Referenced by CTranslationGlyph::x_Draw().

◆ GetLabelBgColor() [2/2]

const CRgbaColor & CTranslationConfig::GetLabelBgColor ( ) const
inline

Definition at line 328 of file translation_glyph.hpp.

References m_LabelBgColor.

◆ GetOrfHighlightColor() [1/2]

CRgbaColor & CTranslationConfig::GetOrfHighlightColor ( )
inline

Definition at line 288 of file translation_glyph.hpp.

References m_OrfHighlightColor.

Referenced by CTranslationGlyph::x_Draw().

◆ GetOrfHighlightColor() [2/2]

const CRgbaColor & CTranslationConfig::GetOrfHighlightColor ( ) const
inline

Definition at line 292 of file translation_glyph.hpp.

References m_OrfHighlightColor.

◆ GetOrfSeqColor() [1/2]

CRgbaColor & CTranslationConfig::GetOrfSeqColor ( )
inline

Definition at line 312 of file translation_glyph.hpp.

References m_OrfSeqColor.

Referenced by CTranslationGlyph::x_Draw().

◆ GetOrfSeqColor() [2/2]

const CRgbaColor & CTranslationConfig::GetOrfSeqColor ( ) const
inline

Definition at line 316 of file translation_glyph.hpp.

References m_OrfSeqColor.

◆ GetOrfThreshold()

int CTranslationConfig::GetOrfThreshold ( ) const
inline

◆ GetSeqColor() [1/2]

CRgbaColor & CTranslationConfig::GetSeqColor ( )
inline

Definition at line 300 of file translation_glyph.hpp.

References m_SeqColor.

Referenced by CTranslationGlyph::x_Draw().

◆ GetSeqColor() [2/2]

const CRgbaColor & CTranslationConfig::GetSeqColor ( ) const
inline

Definition at line 304 of file translation_glyph.hpp.

References m_SeqColor.

◆ GetSeqFont() [1/2]

CGlTextureFont & CTranslationConfig::GetSeqFont ( void  )
inline

◆ GetSeqFont() [2/2]

const CGlTextureFont & CTranslationConfig::GetSeqFont ( void  ) const
inline

Definition at line 352 of file translation_glyph.hpp.

References m_SeqFont.

◆ GetStartCodonColor() [1/2]

CRgbaColor & CTranslationConfig::GetStartCodonColor ( )
inline

Definition at line 264 of file translation_glyph.hpp.

References m_StartCodonColor.

Referenced by CTranslationGlyph::x_Draw().

◆ GetStartCodonColor() [2/2]

const CRgbaColor & CTranslationConfig::GetStartCodonColor ( ) const
inline

Definition at line 268 of file translation_glyph.hpp.

References m_StartCodonColor.

◆ GetStopCodonColor() [1/2]

CRgbaColor & CTranslationConfig::GetStopCodonColor ( )
inline

Definition at line 276 of file translation_glyph.hpp.

References m_StopCodonColor.

Referenced by CTranslationGlyph::x_Draw().

◆ GetStopCodonColor() [2/2]

const CRgbaColor & CTranslationConfig::GetStopCodonColor ( ) const
inline

Definition at line 280 of file translation_glyph.hpp.

References m_StopCodonColor.

◆ GetStrandFont() [1/2]

CGlTextureFont & CTranslationConfig::GetStrandFont ( )
inline

◆ GetStrandFont() [2/2]

const CGlTextureFont & CTranslationConfig::GetStrandFont ( ) const
inline

Definition at line 364 of file translation_glyph.hpp.

References m_StrandFont.

◆ SetBarHeight()

void CTranslationConfig::SetBarHeight ( int  h)
inline

Definition at line 368 of file translation_glyph.hpp.

References m_BarHeight.

Referenced by CSixFramesTransTrack::x_LoadSettings().

◆ SetCommentColor()

void CTranslationConfig::SetCommentColor ( const CRgbaColor color)
inline

Definition at line 332 of file translation_glyph.hpp.

References color, and m_CommentColor.

Referenced by CSixFramesTransTrack::x_LoadSettings().

◆ SetHighlightCodons()

void CTranslationConfig::SetHighlightCodons ( bool  f)
inline

◆ SetLabelBgColor()

void CTranslationConfig::SetLabelBgColor ( const CRgbaColor color)
inline

Definition at line 320 of file translation_glyph.hpp.

References color, and m_LabelBgColor.

Referenced by CSixFramesTransTrack::x_LoadSettings().

◆ SetOrfHighlightColor()

void CTranslationConfig::SetOrfHighlightColor ( const CRgbaColor color)
inline

Definition at line 284 of file translation_glyph.hpp.

References color, and m_OrfHighlightColor.

Referenced by CSixFramesTransTrack::x_LoadSettings().

◆ SetOrfSeqColor()

void CTranslationConfig::SetOrfSeqColor ( const CRgbaColor color)
inline

Definition at line 308 of file translation_glyph.hpp.

References color, and m_OrfSeqColor.

Referenced by CSixFramesTransTrack::x_LoadSettings().

◆ SetOrfThreshold()

void CTranslationConfig::SetOrfThreshold ( int  val)
inline

◆ SetSeqColor()

void CTranslationConfig::SetSeqColor ( const CRgbaColor color)
inline

Definition at line 296 of file translation_glyph.hpp.

References color, and m_SeqColor.

Referenced by CSixFramesTransTrack::x_LoadSettings().

◆ SetSeqFont()

void CTranslationConfig::SetSeqFont ( CGlTextureFont::EFontFace  font,
unsigned int  font_size 
)
inline

◆ SetShowLabel()

void CTranslationConfig::SetShowLabel ( bool  f)
inline

Definition at line 392 of file translation_glyph.hpp.

References f(), and m_ShowLabel.

Referenced by CSixFramesTransTrack::x_LoadSettings().

◆ SetStartCodonColor()

void CTranslationConfig::SetStartCodonColor ( const CRgbaColor color)
inline

CTranslationConfig inline methods.

Definition at line 260 of file translation_glyph.hpp.

References color, and m_StartCodonColor.

Referenced by CSixFramesTransTrack::x_LoadSettings().

◆ SetStopCodonColor()

void CTranslationConfig::SetStopCodonColor ( const CRgbaColor color)
inline

Definition at line 272 of file translation_glyph.hpp.

References color, and m_StopCodonColor.

Referenced by CSixFramesTransTrack::x_LoadSettings().

◆ SetStrandFont()

void CTranslationConfig::SetStrandFont ( CGlTextureFont::EFontFace  font,
unsigned int  font_size 
)
inline

◆ ShowLabel()

bool CTranslationConfig::ShowLabel ( ) const
inline

Definition at line 396 of file translation_glyph.hpp.

References m_ShowLabel.

Referenced by CTranslationGlyph::x_Draw().

Member Data Documentation

◆ m_BarHeight

int CTranslationConfig::m_BarHeight
private

Definition at line 187 of file translation_glyph.hpp.

Referenced by GetBarHeight(), and SetBarHeight().

◆ m_CommentColor

CRgbaColor CTranslationConfig::m_CommentColor
private

Definition at line 184 of file translation_glyph.hpp.

Referenced by GetCommentColor(), and SetCommentColor().

◆ m_HighlightCodons

bool CTranslationConfig::m_HighlightCodons
private

Definition at line 189 of file translation_glyph.hpp.

Referenced by GetHighlightCodons(), and SetHighlightCodons().

◆ m_LabelBgColor

CRgbaColor CTranslationConfig::m_LabelBgColor
private

Definition at line 183 of file translation_glyph.hpp.

Referenced by GetLabelBgColor(), and SetLabelBgColor().

◆ m_OrfHighlightColor

CRgbaColor CTranslationConfig::m_OrfHighlightColor
private

Definition at line 180 of file translation_glyph.hpp.

Referenced by GetOrfHighlightColor(), and SetOrfHighlightColor().

◆ m_OrfSeqColor

CRgbaColor CTranslationConfig::m_OrfSeqColor
private

Definition at line 182 of file translation_glyph.hpp.

Referenced by GetOrfSeqColor(), and SetOrfSeqColor().

◆ m_OrfThreshold

int CTranslationConfig::m_OrfThreshold
private

Definition at line 188 of file translation_glyph.hpp.

Referenced by GetOrfThreshold(), and SetOrfThreshold().

◆ m_SeqColor

CRgbaColor CTranslationConfig::m_SeqColor
private

Definition at line 181 of file translation_glyph.hpp.

Referenced by GetSeqColor(), and SetSeqColor().

◆ m_SeqFont

CGlTextureFont CTranslationConfig::m_SeqFont
private

Definition at line 185 of file translation_glyph.hpp.

Referenced by GetSeqFont(), and SetSeqFont().

◆ m_ShowLabel

bool CTranslationConfig::m_ShowLabel
private

Definition at line 190 of file translation_glyph.hpp.

Referenced by SetShowLabel(), and ShowLabel().

◆ m_StartCodonColor

CRgbaColor CTranslationConfig::m_StartCodonColor
private

Definition at line 178 of file translation_glyph.hpp.

Referenced by GetStartCodonColor(), and SetStartCodonColor().

◆ m_StopCodonColor

CRgbaColor CTranslationConfig::m_StopCodonColor
private

Definition at line 179 of file translation_glyph.hpp.

Referenced by GetStopCodonColor(), and SetStopCodonColor().

◆ m_StrandFont

CGlTextureFont CTranslationConfig::m_StrandFont
private

Definition at line 186 of file translation_glyph.hpp.

Referenced by GetStrandFont(), and SetStrandFont().


The documentation for this class was generated from the following file:
Modified on Sat Dec 02 09:21:19 2023 by modify_doxy.py rev. 669887