NCBI C++ ToolKit
Public Member Functions | Protected Attributes | List of all members
CTreeLabel Class Reference

Search Toolkit Book for CTreeLabel

#include <gui/widgets/phylo_tree/phylo_tree_ds.hpp>

+ Collaboration diagram for CTreeLabel:

Public Member Functions

 CTreeLabel ()
 
 CTreeLabel (string label, string font, int font_size, const CRgbaColor &c, int xpos, int ypos)
 
void SetLabel (const string &l)
 
string GetLabel () const
 
void SetFontName (const string &f)
 
string GetFontName () const
 
void SetFontSize (int s)
 
int GetFontSize () const
 
void SetXPos (int x)
 
int GetXPos () const
 
void SetYPos (int y)
 
int GetYPos () const
 
void SetColor (const CRgbaColor &c)
 
CRgbaColor GetColor () const
 
void InitializeFromUserObject (const CBioTreeContainer_Base::TUser &uo)
 
void SaveToUserObject (CBioTreeContainer_Base::TUser &uo)
 

Protected Attributes

string m_Label
 
string m_FontName
 
int m_FontSize
 
CRgbaColor m_Color
 
int m_XPos
 
int m_YPos
 

Detailed Description

Definition at line 182 of file phylo_tree_ds.hpp.

Constructor & Destructor Documentation

◆ CTreeLabel() [1/2]

CTreeLabel::CTreeLabel ( )
inline

Definition at line 185 of file phylo_tree_ds.hpp.

◆ CTreeLabel() [2/2]

CTreeLabel::CTreeLabel ( string  label,
string  font,
int  font_size,
const CRgbaColor c,
int  xpos,
int  ypos 
)
inline

Definition at line 191 of file phylo_tree_ds.hpp.

Member Function Documentation

◆ GetColor()

CRgbaColor CTreeLabel::GetColor ( void  ) const
inline

Definition at line 216 of file phylo_tree_ds.hpp.

References m_Color.

Referenced by CwxTreeLabelEdit::SetParams(), and IPhyloTreeRender::x_RenderTreeLabel().

◆ GetFontName()

string CTreeLabel::GetFontName ( ) const
inline

Definition at line 204 of file phylo_tree_ds.hpp.

References m_FontName.

Referenced by CwxTreeLabelEdit::SetParams(), and IPhyloTreeRender::x_RenderTreeLabel().

◆ GetFontSize()

int CTreeLabel::GetFontSize ( ) const
inline

Definition at line 207 of file phylo_tree_ds.hpp.

References m_FontSize.

Referenced by CwxTreeLabelEdit::SetParams(), and IPhyloTreeRender::x_RenderTreeLabel().

◆ GetLabel()

string CTreeLabel::GetLabel ( void  ) const
inline

Definition at line 201 of file phylo_tree_ds.hpp.

References m_Label.

Referenced by CwxTreeLabelEdit::SetParams(), and IPhyloTreeRender::x_RenderTreeLabel().

◆ GetXPos()

int CTreeLabel::GetXPos ( ) const
inline

Definition at line 210 of file phylo_tree_ds.hpp.

References m_XPos.

Referenced by CwxTreeLabelEdit::SetParams(), and IPhyloTreeRender::x_RenderTreeLabel().

◆ GetYPos()

int CTreeLabel::GetYPos ( ) const
inline

Definition at line 213 of file phylo_tree_ds.hpp.

References m_YPos.

Referenced by CwxTreeLabelEdit::SetParams(), and IPhyloTreeRender::x_RenderTreeLabel().

◆ InitializeFromUserObject()

void CTreeLabel::InitializeFromUserObject ( const CBioTreeContainer_Base::TUser uo)

◆ SaveToUserObject()

void CTreeLabel::SaveToUserObject ( CBioTreeContainer_Base::TUser uo)

◆ SetColor()

void CTreeLabel::SetColor ( const CRgbaColor c)
inline

Definition at line 215 of file phylo_tree_ds.hpp.

References m_Color.

◆ SetFontName()

void CTreeLabel::SetFontName ( const string f)
inline

Definition at line 203 of file phylo_tree_ds.hpp.

References f, and m_FontName.

◆ SetFontSize()

void CTreeLabel::SetFontSize ( int  s)
inline

Definition at line 206 of file phylo_tree_ds.hpp.

References m_FontSize.

◆ SetLabel()

void CTreeLabel::SetLabel ( const string l)
inline

Definition at line 200 of file phylo_tree_ds.hpp.

References l(), and m_Label.

◆ SetXPos()

void CTreeLabel::SetXPos ( int  x)
inline

Definition at line 209 of file phylo_tree_ds.hpp.

References m_XPos.

◆ SetYPos()

void CTreeLabel::SetYPos ( int  y)
inline

Definition at line 212 of file phylo_tree_ds.hpp.

References m_YPos.

Member Data Documentation

◆ m_Color

CRgbaColor CTreeLabel::m_Color
protected

Definition at line 225 of file phylo_tree_ds.hpp.

Referenced by GetColor(), InitializeFromUserObject(), SaveToUserObject(), and SetColor().

◆ m_FontName

string CTreeLabel::m_FontName
protected

◆ m_FontSize

int CTreeLabel::m_FontSize
protected

◆ m_Label

string CTreeLabel::m_Label
protected

Definition at line 222 of file phylo_tree_ds.hpp.

Referenced by GetLabel(), InitializeFromUserObject(), SaveToUserObject(), and SetLabel().

◆ m_XPos

int CTreeLabel::m_XPos
protected

Definition at line 227 of file phylo_tree_ds.hpp.

Referenced by GetXPos(), InitializeFromUserObject(), SaveToUserObject(), and SetXPos().

◆ m_YPos

int CTreeLabel::m_YPos
protected

Definition at line 228 of file phylo_tree_ds.hpp.

Referenced by GetYPos(), InitializeFromUserObject(), SaveToUserObject(), and SetYPos().


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:58:28 2024 by modify_doxy.py rev. 669887