NCBI C++ ToolKit
|
Search Toolkit Book for CTreeLabel
#include <gui/widgets/phylo_tree/phylo_tree_ds.hpp>
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 |
Definition at line 182 of file phylo_tree_ds.hpp.
|
inline |
Definition at line 185 of file phylo_tree_ds.hpp.
|
inline |
Definition at line 191 of file phylo_tree_ds.hpp.
|
inline |
Definition at line 216 of file phylo_tree_ds.hpp.
References m_Color.
Referenced by CwxTreeLabelEdit::SetParams(), and IPhyloTreeRender::x_RenderTreeLabel().
|
inline |
Definition at line 204 of file phylo_tree_ds.hpp.
References m_FontName.
Referenced by CwxTreeLabelEdit::SetParams(), and IPhyloTreeRender::x_RenderTreeLabel().
|
inline |
Definition at line 207 of file phylo_tree_ds.hpp.
References m_FontSize.
Referenced by CwxTreeLabelEdit::SetParams(), and IPhyloTreeRender::x_RenderTreeLabel().
|
inline |
Definition at line 201 of file phylo_tree_ds.hpp.
References m_Label.
Referenced by CwxTreeLabelEdit::SetParams(), and IPhyloTreeRender::x_RenderTreeLabel().
|
inline |
Definition at line 210 of file phylo_tree_ds.hpp.
References m_XPos.
Referenced by CwxTreeLabelEdit::SetParams(), and IPhyloTreeRender::x_RenderTreeLabel().
|
inline |
Definition at line 213 of file phylo_tree_ds.hpp.
References m_YPos.
Referenced by CwxTreeLabelEdit::SetParams(), and IPhyloTreeRender::x_RenderTreeLabel().
void CTreeLabel::InitializeFromUserObject | ( | const CBioTreeContainer_Base::TUser & | uo | ) |
Definition at line 53 of file phylo_tree_ds.cpp.
References CRgbaColor::FromString(), CUser_field_Base::GetData(), CUser_object::GetField(), CUser_field_Base::C_Data::GetObject(), CUser_object::HasField(), CUser_field_Base::C_Data::IsObject(), m_Color, m_FontName, m_FontSize, m_Label, m_XPos, and m_YPos.
Referenced by CPhyloTreeDataSource::Init().
void CTreeLabel::SaveToUserObject | ( | CBioTreeContainer_Base::TUser & | uo | ) |
Definition at line 92 of file phylo_tree_ds.cpp.
References CUser_object::AddField(), CUser_field_Base::GetData(), CUser_object::GetField(), CUser_object::HasField(), CUser_field_Base::C_Data::IsObject(), m_Color, m_FontName, m_FontSize, m_Label, m_XPos, m_YPos, CRef< C, Locker >::Reset(), CUser_field_Base::SetData(), CUser_object::SetField(), CObject_id_Base::SetStr(), CUser_object_Base::SetType(), and CRgbaColor::ToString().
Referenced by CPhyTreeView::OnSomethingEdited().
|
inline |
Definition at line 215 of file phylo_tree_ds.hpp.
References m_Color.
Definition at line 203 of file phylo_tree_ds.hpp.
References f, and m_FontName.
|
inline |
Definition at line 206 of file phylo_tree_ds.hpp.
References m_FontSize.
Definition at line 200 of file phylo_tree_ds.hpp.
|
inline |
Definition at line 209 of file phylo_tree_ds.hpp.
References m_XPos.
|
inline |
Definition at line 212 of file phylo_tree_ds.hpp.
References m_YPos.
|
protected |
Definition at line 225 of file phylo_tree_ds.hpp.
Referenced by GetColor(), InitializeFromUserObject(), SaveToUserObject(), and SetColor().
|
protected |
Definition at line 223 of file phylo_tree_ds.hpp.
Referenced by GetFontName(), InitializeFromUserObject(), SaveToUserObject(), and SetFontName().
|
protected |
Definition at line 224 of file phylo_tree_ds.hpp.
Referenced by GetFontSize(), InitializeFromUserObject(), SaveToUserObject(), and SetFontSize().
|
protected |
Definition at line 222 of file phylo_tree_ds.hpp.
Referenced by GetLabel(), InitializeFromUserObject(), SaveToUserObject(), and SetLabel().
|
protected |
Definition at line 227 of file phylo_tree_ds.hpp.
Referenced by GetXPos(), InitializeFromUserObject(), SaveToUserObject(), and SetXPos().
|
protected |
Definition at line 228 of file phylo_tree_ds.hpp.
Referenced by GetYPos(), InitializeFromUserObject(), SaveToUserObject(), and SetYPos().