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

Search Toolkit Book for CPhyloTreeScheme

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

+ Inheritance diagram for CPhyloTreeScheme:
+ Collaboration diagram for CPhyloTreeScheme:

Public Types

enum  TColoration { eColored , eClusters , eMonochrome }
 
enum  TPhyloTreeObject { eTree , eNode , eLine , eLabel }
 
enum  TPhyloTreeColors {
  eBgColor , eColor , eSelColor , eTraceColor ,
  eSharedColor , eTipSelColor
}
 
enum  TPhyloTreeSizes {
  eLeftMargin , eTopMargin , eRightMargin , eBottomMargin ,
  eNodeSize , eLeafNodeSize , eLineWidth , eMaxNodeSize ,
  eMinNodeSize , eMaxNumChildren , eMinNumChildren
}
 
enum  TLabelsVisibility { eLabelsForLeavesOnly , eLabelsVisible , eLabelsHidden }
 
enum  TLabelTruncation { eLabelsTruncated , eLabelsFull }
 
enum  TLabelStyle { eSimpleLabels , eFancyLabels }
 
enum  TAutoLabels { eAlNone , eAlPhylip , eAlPaml }
 
enum  TSelectionVisibility { eNormalSelection , eHighlightSelection }
 
enum  TZoomBehavior { eZoomXY , eZoomX , eZoomY }
 
- 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...
 

Public Member Functions

 CPhyloTreeScheme ()
 
virtual ~CPhyloTreeScheme (void)
 
void SetMargins (const GLdouble &left, const GLdouble &top, const GLdouble &right, const GLdouble &bottom)
 
void GetMargins (GLdouble &left, GLdouble &top, GLdouble &right, GLdouble &bottom) const
 
stringSetLabelFormat (void)
 
stringSetTooltipFormat (void)
 
void SetMaxLabelLength (int len)
 
int GetMaxLabelLength () const
 
const TLabelsVisibilityGetLabelVisibility (void) const
 
void SetLabelVisibility (const TLabelsVisibility &lv)
 
TSelectionVisibility GetSelectionVisibility () const
 
void SetSelectionVisibility (const TSelectionVisibility sv)
 
bool GetShowAllSelected () const
 
void SetShowAllSelected (bool show_all)
 
float GetNonSelectedAlpha () const
 
void SetNonSelectedAlpha (float a)
 
TLabelTruncationGetLabelTruncation ()
 
void SetLabelTruncation (TLabelTruncation lt)
 
const TLabelStyleGetLabelStyle (void) const
 
void SetLabelStyle (const TLabelStyle &ls)
 
const TColorationGetColoration (void) const
 
void SetColoration (const TColoration &col)
 
const TAutoLabelsGetAutoLabels (void) const
 
void SetAutoLabels (const TAutoLabels &al)
 
const CGlTextureFontGetFont (void) const
 
void SetFont (const CGlTextureFont &font)
 
bool GetBoaNodes () const
 
void SetBoaNodes (bool x_bnodes)
 
bool GetSolidColorLeaves () const
 
void SetSolidColorLeaves (bool b)
 
void SetZoomBehavior (const string &renderer, TZoomBehavior zb)
 
TZoomBehavior GetZoomBehavior (const string &renderer)
 
CRgbaColorSetColor (TPhyloTreeObject obj, TPhyloTreeColors col)
 
short GetColorIdx (TPhyloTreeObject obj, TPhyloTreeColors col)
 
GLdouble & SetSize (TPhyloTreeSizes obj)
 
GLdouble SetSize (TPhyloTreeSizes obj) const
 
GLdouble GetLineWidth () const
 
GLdouble GetNodeSize () const
 
GLdouble GetLeafNodeSize () const
 
GLdouble GetMaxNodeSize () const
 size range for variable-sized collapsed nodes (so min node size here may be greater than node size) More...
 
GLdouble GetMinNodeSize () const
 
GLdouble GetMinNumChildren () const
 collapsed node sizes are scaled from min to max values based on number of children so we need to have that range to do our computation More...
 
GLdouble GetMaxNumChildren () const
 
void SetMinNumChildren (GLdouble min_num_children)
 
void SetMaxNumChildren (GLdouble max_num_children)
 
GLdouble GetMaxBranchDist () const
 And we scale the length of the collapsed node marker based on the max. More...
 
void SetMaxBranchDist (GLdouble bd)
 
void SetLayoutIdx (int lidx)
 
int GetLayoutIdx () const
 
void UpdateColorTable (CRgbaGradColorTable *color_table)
 Make sure all current colors used by the scheme are in 'color_table' and add the ones that are not. More...
 
virtual bool LoadCurrentSettings ()
 
virtual bool SaveCurrentSettings () const
 
void GetDefaultBroadcastProperties (wxArrayString &wxprops)
 
- 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
 

Protected Member Functions

void x_DefaultScheme (void)
 
CRgbaColorx_SetColorMono (TPhyloTreeObject obj, TPhyloTreeColors col)
 
short x_GetColorMonoIdx (TPhyloTreeObject obj, TPhyloTreeColors col)
 
CRegistryReadView x_GetReadView (CGuiRegistry &gui_reg, const string &base_key, const string &curr_key, const string &def_key1="") const
 Return a read view of the registry given a base and 2 subkeys. More...
 
CRegistryWriteView x_GetWriteView (CGuiRegistry &gui_reg, const string &base_key, const string &curr_key, const string &def_key1="") const
 Return a read-write view of the registry given a base and 2 subkeys. More...
 
bool x_UserFieldToColor (const CRegistryReadView &view, const string &key, CRgbaColor &c)
 Load a color from the registry. More...
 
void x_ColorToUserField (CRegistryWriteView &view, const string &key, const CRgbaColor &c) const
 
void x_UpdateColorIndex (CRgbaGradColorTable *color_table, const CRgbaColor &current_color, short &current_index)
 Check if current color index corresponds to the correct color in the color table and, if not, add it. More...
 
- Protected Member Functions inherited from CObject
virtual void DeleteThis (void)
 Virtual method "deleting" this object. More...
 

Protected Attributes

string m_CurrTheme
 themes More...
 
string m_ThemeKey
 
string m_DefaultTheme
 
string m_CurrColorTheme
 
string m_CurrSizeTheme
 
string m_CurrGlobalTheme
 
GLdouble m_TopMargin
 margins More...
 
GLdouble m_BottomMargin
 
GLdouble m_LeftMargin
 
GLdouble m_RightMargin
 
GLdouble m_LineWidth
 sizes More...
 
GLdouble m_NodeSize
 
GLdouble m_LeafNodeSize
 
GLdouble m_MaxNodeSize
 
GLdouble m_MinNodeSize
 
GLdouble m_MinNumChildren
 
GLdouble m_MaxNumChildren
 
GLdouble m_MaxBranchDist
 
CRgbaColor m_BgColor
 colors More...
 
CRgbaColor m_LineColor
 
CRgbaColor m_LineSelColor
 
CRgbaColor m_LineTraceColor
 
CRgbaColor m_LineSharedColor
 
CRgbaColor m_NodeColor
 
CRgbaColor m_NodeSelColor
 
CRgbaColor m_NodeTraceColor
 
CRgbaColor m_NodeSharedColor
 
CRgbaColor m_NodeTipSelColor
 
CRgbaColor m_LabelColor
 
CRgbaColor m_LabelSelColor
 
CRgbaColor m_LabelTraceColor
 
CRgbaColor m_LabelSharedColor
 
CRgbaColor m_BgColorMono
 monochrome colors More...
 
CRgbaColor m_LineColorMono
 
CRgbaColor m_LineSelColorMono
 
CRgbaColor m_LineTraceColorMono
 
CRgbaColor m_LineSharedColorMono
 
CRgbaColor m_NodeColorMono
 
CRgbaColor m_NodeSelColorMono
 
CRgbaColor m_NodeTraceColorMono
 
CRgbaColor m_NodeSharedColorMono
 
CRgbaColor m_NodeTipSelColorMono
 
CRgbaColor m_LabelColorMono
 
CRgbaColor m_LabelSelColorMono
 
CRgbaColor m_LabelTraceColorMono
 
CRgbaColor m_LabelSharedColorMono
 
short m_BgColorIdx
 Color indices in color table. More...
 
short m_LineColorIdx
 
short m_LineSelColorIdx
 
short m_LineTraceColorIdx
 
short m_LineSharedColorIdx
 
short m_NodeColorIdx
 
short m_NodeSelColorIdx
 
short m_NodeTraceColorIdx
 
short m_NodeSharedColorIdx
 
short m_NodeTipSelColorIdx
 
short m_LabelColorIdx
 
short m_LabelSelColorIdx
 
short m_LabelTraceColorIdx
 
short m_LabelSharedColorIdx
 
short m_BgColorMonoIdx
 
short m_LineColorMonoIdx
 
short m_LineSelColorMonoIdx
 
short m_LineTraceColorMonoIdx
 
short m_LineSharedColorMonoIdx
 
short m_NodeColorMonoIdx
 
short m_NodeSelColorMonoIdx
 
short m_NodeTraceColorMonoIdx
 
short m_NodeSharedColorMonoIdx
 
short m_NodeTipSelColorMonoIdx
 
short m_LabelColorMonoIdx
 
short m_LabelSelColorMonoIdx
 
short m_LabelTraceColorMonoIdx
 
short m_LabelSharedColorMonoIdx
 
string m_LabelFormat
 label format More...
 
int m_MaxLabelLength
 max label display length (characters). -1=>No max len More...
 
string m_TooltipFormat
 tooltip format More...
 
TLabelsVisibility m_LabelVisibility
 label visibility More...
 
TSelectionVisibility m_SelectionVisibility
 visibility of selected nodes vs. non selected nodes More...
 
bool m_ShowAllSelected
 If true (the default) all selected nodes are shown as selected. More...
 
float m_NonSelectedAlpha
 alpha value of non-selected glyphs when visibility is eHighlightSelection More...
 
TLabelTruncation m_LabelTruncation
 Label truncation (how are labels clipped at edges) More...
 
TLabelStyle m_LabelStyle
 labels style More...
 
TAutoLabels m_AutoLabels
 auto-labeling More...
 
std::map< string, TZoomBehaviorm_ZoomBehavior
 zoom behavior by renderer (string is GetDescription() from renderer) More...
 
TColoration m_Coloration
 
CGlTextureFont m_Font
 
bool m_bBoaNodes
 boa - node size behavior More...
 
bool m_SolidColorLeaves
 Solid color leaf nodes (if true) More...
 
int m_LastLayout
 

Additional Inherited Members

- 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...
 

Detailed Description

Definition at line 48 of file phylo_tree_scheme.hpp.

Member Enumeration Documentation

◆ TAutoLabels

Enumerator
eAlNone 
eAlPhylip 
eAlPaml 

Definition at line 104 of file phylo_tree_scheme.hpp.

◆ TColoration

Enumerator
eColored 
eClusters 
eMonochrome 

Definition at line 51 of file phylo_tree_scheme.hpp.

◆ TLabelStyle

Enumerator
eSimpleLabels 
eFancyLabels 

Definition at line 99 of file phylo_tree_scheme.hpp.

◆ TLabelsVisibility

Enumerator
eLabelsForLeavesOnly 
eLabelsVisible 
eLabelsHidden 

Definition at line 87 of file phylo_tree_scheme.hpp.

◆ TLabelTruncation

Enumerator
eLabelsTruncated 
eLabelsFull 

Definition at line 94 of file phylo_tree_scheme.hpp.

◆ TPhyloTreeColors

Enumerator
eBgColor 
eColor 
eSelColor 
eTraceColor 
eSharedColor 
eTipSelColor 

Definition at line 64 of file phylo_tree_scheme.hpp.

◆ TPhyloTreeObject

Enumerator
eTree 
eNode 
eLine 
eLabel 

Definition at line 57 of file phylo_tree_scheme.hpp.

◆ TPhyloTreeSizes

Enumerator
eLeftMargin 
eTopMargin 
eRightMargin 
eBottomMargin 
eNodeSize 
eLeafNodeSize 
eLineWidth 
eMaxNodeSize 
eMinNodeSize 
eMaxNumChildren 
eMinNumChildren 

Definition at line 73 of file phylo_tree_scheme.hpp.

◆ TSelectionVisibility

Enumerator
eNormalSelection 
eHighlightSelection 

Definition at line 110 of file phylo_tree_scheme.hpp.

◆ TZoomBehavior

Enumerator
eZoomXY 
eZoomX 
eZoomY 

Definition at line 115 of file phylo_tree_scheme.hpp.

Constructor & Destructor Documentation

◆ CPhyloTreeScheme()

CPhyloTreeScheme::CPhyloTreeScheme ( )

Definition at line 48 of file phylo_tree_scheme.cpp.

References x_DefaultScheme().

◆ ~CPhyloTreeScheme()

virtual CPhyloTreeScheme::~CPhyloTreeScheme ( void  )
inlinevirtual

Definition at line 119 of file phylo_tree_scheme.hpp.

Member Function Documentation

◆ GetAutoLabels()

const TAutoLabels& CPhyloTreeScheme::GetAutoLabels ( void  ) const
inline

Definition at line 176 of file phylo_tree_scheme.hpp.

References m_AutoLabels.

Referenced by CPhyloTreeLabel::GetLabel(), and CPhyloTreeWidget::OnUpdateAl().

◆ GetBoaNodes()

bool CPhyloTreeScheme::GetBoaNodes ( ) const
inline

◆ GetColoration()

const TColoration& CPhyloTreeScheme::GetColoration ( void  ) const
inline

◆ GetColorIdx()

short CPhyloTreeScheme::GetColorIdx ( TPhyloTreeObject  obj,
TPhyloTreeColors  col 
)

◆ GetDefaultBroadcastProperties()

void CPhyloTreeScheme::GetDefaultBroadcastProperties ( wxArrayString &  wxprops)

Definition at line 830 of file phylo_tree_scheme.cpp.

References wxT.

◆ GetFont()

const CGlTextureFont& CPhyloTreeScheme::GetFont ( void  ) const
inline

◆ GetLabelStyle()

const TLabelStyle& CPhyloTreeScheme::GetLabelStyle ( void  ) const
inline

Definition at line 170 of file phylo_tree_scheme.hpp.

References m_LabelStyle.

◆ GetLabelTruncation()

TLabelTruncation& CPhyloTreeScheme::GetLabelTruncation ( )
inline

◆ GetLabelVisibility()

const TLabelsVisibility& CPhyloTreeScheme::GetLabelVisibility ( void  ) const
inline

◆ GetLayoutIdx()

int CPhyloTreeScheme::GetLayoutIdx ( ) const
inline

Definition at line 220 of file phylo_tree_scheme.hpp.

References m_LastLayout.

Referenced by CPhyTreeView::InitView().

◆ GetLeafNodeSize()

GLdouble CPhyloTreeScheme::GetLeafNodeSize ( ) const
inline

◆ GetLineWidth()

GLdouble CPhyloTreeScheme::GetLineWidth ( ) const
inline

Definition at line 197 of file phylo_tree_scheme.hpp.

References m_LineWidth.

◆ GetMargins()

void CPhyloTreeScheme::GetMargins ( GLdouble &  left,
GLdouble &  top,
GLdouble &  right,
GLdouble &  bottom 
) const
inline

◆ GetMaxBranchDist()

GLdouble CPhyloTreeScheme::GetMaxBranchDist ( ) const
inline

And we scale the length of the collapsed node marker based on the max.

distance of any child of a collapsed node from the collapsed node itself so we need that distance too

Definition at line 216 of file phylo_tree_scheme.hpp.

References m_MaxBranchDist.

Referenced by CPhyloNodeData::GetNodeWidthScaler().

◆ GetMaxLabelLength()

int CPhyloTreeScheme::GetMaxLabelLength ( ) const
inline

Definition at line 144 of file phylo_tree_scheme.hpp.

References m_MaxLabelLength.

Referenced by CPhyloTreeLabel::GetLabel(), and CwxPhyloSettingsDlg::SetParams().

◆ GetMaxNodeSize()

GLdouble CPhyloTreeScheme::GetMaxNodeSize ( ) const
inline

size range for variable-sized collapsed nodes (so min node size here may be greater than node size)

Definition at line 203 of file phylo_tree_scheme.hpp.

References m_MaxNodeSize.

Referenced by CPhyloNodeData::GetDefaultNodeSize(), CPhyloNodeData::GetNodeWidthScaler(), and CTreeGraphicsModel::x_CircularLabelMinAngle().

◆ GetMaxNumChildren()

GLdouble CPhyloTreeScheme::GetMaxNumChildren ( ) const
inline

◆ GetMinNodeSize()

GLdouble CPhyloTreeScheme::GetMinNodeSize ( ) const
inline

◆ GetMinNumChildren()

GLdouble CPhyloTreeScheme::GetMinNumChildren ( ) const
inline

collapsed node sizes are scaled from min to max values based on number of children so we need to have that range to do our computation

Definition at line 208 of file phylo_tree_scheme.hpp.

References m_MinNumChildren.

Referenced by CPhyloNodeData::GetDefaultNodeSize(), and CPhyloNodeData::GetNodeWidthScaler().

◆ GetNodeSize()

GLdouble CPhyloTreeScheme::GetNodeSize ( ) const
inline

◆ GetNonSelectedAlpha()

float CPhyloTreeScheme::GetNonSelectedAlpha ( ) const
inline

◆ GetSelectionVisibility()

TSelectionVisibility CPhyloTreeScheme::GetSelectionVisibility ( ) const
inline

◆ GetShowAllSelected()

bool CPhyloTreeScheme::GetShowAllSelected ( ) const
inline

◆ GetSolidColorLeaves()

bool CPhyloTreeScheme::GetSolidColorLeaves ( ) const
inline

Definition at line 185 of file phylo_tree_scheme.hpp.

References m_SolidColorLeaves.

◆ GetZoomBehavior()

CPhyloTreeScheme::TZoomBehavior CPhyloTreeScheme::GetZoomBehavior ( const string renderer)

◆ LoadCurrentSettings()

bool CPhyloTreeScheme::LoadCurrentSettings ( )
virtual

◆ SaveCurrentSettings()

bool CPhyloTreeScheme::SaveCurrentSettings ( ) const
virtual

◆ SetAutoLabels()

void CPhyloTreeScheme::SetAutoLabels ( const TAutoLabels al)
inline

Definition at line 177 of file phylo_tree_scheme.hpp.

References m_AutoLabels.

Referenced by CPhyloTreeWidget::OnAl().

◆ SetBoaNodes()

void CPhyloTreeScheme::SetBoaNodes ( bool  x_bnodes)
inline

Definition at line 183 of file phylo_tree_scheme.hpp.

References m_bBoaNodes.

Referenced by CwxPhyloSettingsDlg::OnOkClick().

◆ SetColor()

CRgbaColor & CPhyloTreeScheme::SetColor ( TPhyloTreeObject  obj,
TPhyloTreeColors  col 
)

◆ SetColoration()

void CPhyloTreeScheme::SetColoration ( const TColoration col)
inline

◆ SetFont()

void CPhyloTreeScheme::SetFont ( const CGlTextureFont font)
inline

Definition at line 180 of file phylo_tree_scheme.hpp.

References m_Font.

Referenced by CwxPhyloSettingsDlg::OnOkClick(), and IPhyloTreeRender::RenderPdf().

◆ SetLabelFormat()

string& CPhyloTreeScheme::SetLabelFormat ( void  )
inline

◆ SetLabelStyle()

void CPhyloTreeScheme::SetLabelStyle ( const TLabelStyle ls)
inline

Definition at line 171 of file phylo_tree_scheme.hpp.

References m_LabelStyle.

Referenced by CPhyTreeView::OnBioTreeChanged().

◆ SetLabelTruncation()

void CPhyloTreeScheme::SetLabelTruncation ( TLabelTruncation  lt)
inline

◆ SetLabelVisibility()

void CPhyloTreeScheme::SetLabelVisibility ( const TLabelsVisibility lv)
inline

◆ SetLayoutIdx()

void CPhyloTreeScheme::SetLayoutIdx ( int  lidx)
inline

Definition at line 219 of file phylo_tree_scheme.hpp.

References m_LastLayout.

Referenced by CPhyloTreeWidget::SetCurrRenderer().

◆ SetMargins()

void CPhyloTreeScheme::SetMargins ( const GLdouble &  left,
const GLdouble &  top,
const GLdouble &  right,
const GLdouble &  bottom 
)
inline

◆ SetMaxBranchDist()

void CPhyloTreeScheme::SetMaxBranchDist ( GLdouble  bd)
inline

Definition at line 217 of file phylo_tree_scheme.hpp.

References m_MaxBranchDist.

Referenced by CPhyloTreeDataSource::Relabel().

◆ SetMaxLabelLength()

void CPhyloTreeScheme::SetMaxLabelLength ( int  len)
inline

Definition at line 143 of file phylo_tree_scheme.hpp.

References len, and m_MaxLabelLength.

Referenced by CwxPhyloSettingsDlg::OnOkClick().

◆ SetMaxNumChildren()

void CPhyloTreeScheme::SetMaxNumChildren ( GLdouble  max_num_children)
inline

Definition at line 211 of file phylo_tree_scheme.hpp.

References m_MaxNumChildren.

Referenced by CPhyloTreeDataSource::Relabel().

◆ SetMinNumChildren()

void CPhyloTreeScheme::SetMinNumChildren ( GLdouble  min_num_children)
inline

Definition at line 210 of file phylo_tree_scheme.hpp.

References m_MinNumChildren.

◆ SetNonSelectedAlpha()

void CPhyloTreeScheme::SetNonSelectedAlpha ( float  a)
inline

Definition at line 165 of file phylo_tree_scheme.hpp.

References a, and m_NonSelectedAlpha.

Referenced by CwxPhyloSettingsDlg::OnOkClick().

◆ SetSelectionVisibility()

void CPhyloTreeScheme::SetSelectionVisibility ( const TSelectionVisibility  sv)
inline

Definition at line 156 of file phylo_tree_scheme.hpp.

References m_SelectionVisibility.

Referenced by CPhyloTreeWidget::SetHideUnselected().

◆ SetShowAllSelected()

void CPhyloTreeScheme::SetShowAllSelected ( bool  show_all)
inline

Definition at line 162 of file phylo_tree_scheme.hpp.

References m_ShowAllSelected.

Referenced by CPhyloTreeWidget::SetSelectAll().

◆ SetSize() [1/2]

GLdouble & CPhyloTreeScheme::SetSize ( TPhyloTreeSizes  obj)

◆ SetSize() [2/2]

GLdouble CPhyloTreeScheme::SetSize ( TPhyloTreeSizes  obj) const

◆ SetSolidColorLeaves()

void CPhyloTreeScheme::SetSolidColorLeaves ( bool  b)
inline

Definition at line 186 of file phylo_tree_scheme.hpp.

References b, and m_SolidColorLeaves.

◆ SetTooltipFormat()

string& CPhyloTreeScheme::SetTooltipFormat ( void  )
inline

◆ SetZoomBehavior()

void CPhyloTreeScheme::SetZoomBehavior ( const string renderer,
TZoomBehavior  zb 
)

◆ UpdateColorTable()

void CPhyloTreeScheme::UpdateColorTable ( CRgbaGradColorTable color_table)

◆ x_ColorToUserField()

void CPhyloTreeScheme::x_ColorToUserField ( CRegistryWriteView view,
const string key,
const CRgbaColor c 
) const
protected

◆ x_DefaultScheme()

void CPhyloTreeScheme::x_DefaultScheme ( void  )
protected

◆ x_GetColorMonoIdx()

short CPhyloTreeScheme::x_GetColorMonoIdx ( TPhyloTreeObject  obj,
TPhyloTreeColors  col 
)
protected

◆ x_GetReadView()

CRegistryReadView CPhyloTreeScheme::x_GetReadView ( CGuiRegistry gui_reg,
const string base_key,
const string curr_key,
const string def_key1 = "" 
) const
protected

Return a read view of the registry given a base and 2 subkeys.

Definition at line 493 of file phylo_tree_scheme.cpp.

References CGuiRegistry::GetReadView().

Referenced by LoadCurrentSettings().

◆ x_GetWriteView()

CRegistryWriteView CPhyloTreeScheme::x_GetWriteView ( CGuiRegistry gui_reg,
const string base_key,
const string curr_key,
const string def_key1 = "" 
) const
protected

Return a read-write view of the registry given a base and 2 subkeys.

Definition at line 509 of file phylo_tree_scheme.cpp.

References CGuiRegistry::GetWriteView().

Referenced by SaveCurrentSettings().

◆ x_SetColorMono()

CRgbaColor & CPhyloTreeScheme::x_SetColorMono ( TPhyloTreeObject  obj,
TPhyloTreeColors  col 
)
protected

◆ x_UpdateColorIndex()

void CPhyloTreeScheme::x_UpdateColorIndex ( CRgbaGradColorTable color_table,
const CRgbaColor current_color,
short &  current_index 
)
protected

Check if current color index corresponds to the correct color in the color table and, if not, add it.

Definition at line 395 of file phylo_tree_scheme.cpp.

References CRgbaGradColorTable::AddColor(), CRgbaGradColorTable::GetColor(), and CRgbaGradColorTable::GetSize().

Referenced by UpdateColorTable().

◆ x_UserFieldToColor()

bool CPhyloTreeScheme::x_UserFieldToColor ( const CRegistryReadView view,
const string key,
CRgbaColor c 
)
protected

Member Data Documentation

◆ m_AutoLabels

TAutoLabels CPhyloTreeScheme::m_AutoLabels
protected

auto-labeling

Definition at line 352 of file phylo_tree_scheme.hpp.

Referenced by GetAutoLabels(), SetAutoLabels(), and x_DefaultScheme().

◆ m_bBoaNodes

bool CPhyloTreeScheme::m_bBoaNodes
protected

boa - node size behavior

Definition at line 362 of file phylo_tree_scheme.hpp.

Referenced by GetBoaNodes(), LoadCurrentSettings(), SaveCurrentSettings(), SetBoaNodes(), and x_DefaultScheme().

◆ m_BgColor

CRgbaColor CPhyloTreeScheme::m_BgColor
protected

colors

Definition at line 259 of file phylo_tree_scheme.hpp.

Referenced by SetColor(), UpdateColorTable(), and x_DefaultScheme().

◆ m_BgColorIdx

short CPhyloTreeScheme::m_BgColorIdx
protected

Color indices in color table.

Definition at line 291 of file phylo_tree_scheme.hpp.

Referenced by GetColorIdx(), and UpdateColorTable().

◆ m_BgColorMono

CRgbaColor CPhyloTreeScheme::m_BgColorMono
protected

monochrome colors

Definition at line 275 of file phylo_tree_scheme.hpp.

Referenced by UpdateColorTable(), x_DefaultScheme(), and x_SetColorMono().

◆ m_BgColorMonoIdx

short CPhyloTreeScheme::m_BgColorMonoIdx
protected

Definition at line 306 of file phylo_tree_scheme.hpp.

Referenced by UpdateColorTable(), and x_GetColorMonoIdx().

◆ m_BottomMargin

GLdouble CPhyloTreeScheme::m_BottomMargin
protected

◆ m_Coloration

TColoration CPhyloTreeScheme::m_Coloration
protected

◆ m_CurrColorTheme

string CPhyloTreeScheme::m_CurrColorTheme
protected

Definition at line 236 of file phylo_tree_scheme.hpp.

Referenced by LoadCurrentSettings(), and SaveCurrentSettings().

◆ m_CurrGlobalTheme

string CPhyloTreeScheme::m_CurrGlobalTheme
protected

Definition at line 238 of file phylo_tree_scheme.hpp.

Referenced by LoadCurrentSettings(), and SaveCurrentSettings().

◆ m_CurrSizeTheme

string CPhyloTreeScheme::m_CurrSizeTheme
protected

Definition at line 237 of file phylo_tree_scheme.hpp.

Referenced by LoadCurrentSettings(), and SaveCurrentSettings().

◆ m_CurrTheme

string CPhyloTreeScheme::m_CurrTheme
protected

themes

Definition at line 233 of file phylo_tree_scheme.hpp.

Referenced by LoadCurrentSettings(), and SaveCurrentSettings().

◆ m_DefaultTheme

string CPhyloTreeScheme::m_DefaultTheme
protected

Definition at line 235 of file phylo_tree_scheme.hpp.

Referenced by LoadCurrentSettings(), and SaveCurrentSettings().

◆ m_Font

CGlTextureFont CPhyloTreeScheme::m_Font
protected

◆ m_LabelColor

CRgbaColor CPhyloTreeScheme::m_LabelColor
protected

◆ m_LabelColorIdx

short CPhyloTreeScheme::m_LabelColorIdx
protected

Definition at line 301 of file phylo_tree_scheme.hpp.

Referenced by GetColorIdx(), and UpdateColorTable().

◆ m_LabelColorMono

CRgbaColor CPhyloTreeScheme::m_LabelColorMono
protected

◆ m_LabelColorMonoIdx

short CPhyloTreeScheme::m_LabelColorMonoIdx
protected

Definition at line 316 of file phylo_tree_scheme.hpp.

Referenced by UpdateColorTable(), and x_GetColorMonoIdx().

◆ m_LabelFormat

string CPhyloTreeScheme::m_LabelFormat
protected

label format

Definition at line 322 of file phylo_tree_scheme.hpp.

Referenced by LoadCurrentSettings(), SaveCurrentSettings(), SetLabelFormat(), and x_DefaultScheme().

◆ m_LabelSelColor

CRgbaColor CPhyloTreeScheme::m_LabelSelColor
protected

◆ m_LabelSelColorIdx

short CPhyloTreeScheme::m_LabelSelColorIdx
protected

Definition at line 302 of file phylo_tree_scheme.hpp.

Referenced by GetColorIdx(), and UpdateColorTable().

◆ m_LabelSelColorMono

CRgbaColor CPhyloTreeScheme::m_LabelSelColorMono
protected

◆ m_LabelSelColorMonoIdx

short CPhyloTreeScheme::m_LabelSelColorMonoIdx
protected

Definition at line 317 of file phylo_tree_scheme.hpp.

Referenced by UpdateColorTable(), and x_GetColorMonoIdx().

◆ m_LabelSharedColor

CRgbaColor CPhyloTreeScheme::m_LabelSharedColor
protected

◆ m_LabelSharedColorIdx

short CPhyloTreeScheme::m_LabelSharedColorIdx
protected

Definition at line 304 of file phylo_tree_scheme.hpp.

Referenced by GetColorIdx(), and UpdateColorTable().

◆ m_LabelSharedColorMono

CRgbaColor CPhyloTreeScheme::m_LabelSharedColorMono
protected

◆ m_LabelSharedColorMonoIdx

short CPhyloTreeScheme::m_LabelSharedColorMonoIdx
protected

Definition at line 319 of file phylo_tree_scheme.hpp.

Referenced by UpdateColorTable(), and x_GetColorMonoIdx().

◆ m_LabelStyle

TLabelStyle CPhyloTreeScheme::m_LabelStyle
protected

labels style

Definition at line 349 of file phylo_tree_scheme.hpp.

Referenced by GetLabelStyle(), SetLabelStyle(), and x_DefaultScheme().

◆ m_LabelTraceColor

CRgbaColor CPhyloTreeScheme::m_LabelTraceColor
protected

◆ m_LabelTraceColorIdx

short CPhyloTreeScheme::m_LabelTraceColorIdx
protected

Definition at line 303 of file phylo_tree_scheme.hpp.

Referenced by GetColorIdx(), and UpdateColorTable().

◆ m_LabelTraceColorMono

CRgbaColor CPhyloTreeScheme::m_LabelTraceColorMono
protected

◆ m_LabelTraceColorMonoIdx

short CPhyloTreeScheme::m_LabelTraceColorMonoIdx
protected

Definition at line 318 of file phylo_tree_scheme.hpp.

Referenced by UpdateColorTable(), and x_GetColorMonoIdx().

◆ m_LabelTruncation

TLabelTruncation CPhyloTreeScheme::m_LabelTruncation
protected

Label truncation (how are labels clipped at edges)

Definition at line 346 of file phylo_tree_scheme.hpp.

Referenced by GetLabelTruncation(), SetLabelTruncation(), and x_DefaultScheme().

◆ m_LabelVisibility

TLabelsVisibility CPhyloTreeScheme::m_LabelVisibility
protected

label visibility

Definition at line 331 of file phylo_tree_scheme.hpp.

Referenced by GetLabelVisibility(), SetLabelVisibility(), and x_DefaultScheme().

◆ m_LastLayout

int CPhyloTreeScheme::m_LastLayout
protected

◆ m_LeafNodeSize

GLdouble CPhyloTreeScheme::m_LeafNodeSize
protected

◆ m_LeftMargin

GLdouble CPhyloTreeScheme::m_LeftMargin
protected

◆ m_LineColor

CRgbaColor CPhyloTreeScheme::m_LineColor
protected

◆ m_LineColorIdx

short CPhyloTreeScheme::m_LineColorIdx
protected

Definition at line 292 of file phylo_tree_scheme.hpp.

Referenced by GetColorIdx(), and UpdateColorTable().

◆ m_LineColorMono

CRgbaColor CPhyloTreeScheme::m_LineColorMono
protected

◆ m_LineColorMonoIdx

short CPhyloTreeScheme::m_LineColorMonoIdx
protected

Definition at line 307 of file phylo_tree_scheme.hpp.

Referenced by UpdateColorTable(), and x_GetColorMonoIdx().

◆ m_LineSelColor

CRgbaColor CPhyloTreeScheme::m_LineSelColor
protected

◆ m_LineSelColorIdx

short CPhyloTreeScheme::m_LineSelColorIdx
protected

Definition at line 293 of file phylo_tree_scheme.hpp.

Referenced by GetColorIdx(), and UpdateColorTable().

◆ m_LineSelColorMono

CRgbaColor CPhyloTreeScheme::m_LineSelColorMono
protected

◆ m_LineSelColorMonoIdx

short CPhyloTreeScheme::m_LineSelColorMonoIdx
protected

Definition at line 308 of file phylo_tree_scheme.hpp.

Referenced by UpdateColorTable(), and x_GetColorMonoIdx().

◆ m_LineSharedColor

CRgbaColor CPhyloTreeScheme::m_LineSharedColor
protected

◆ m_LineSharedColorIdx

short CPhyloTreeScheme::m_LineSharedColorIdx
protected

Definition at line 295 of file phylo_tree_scheme.hpp.

Referenced by GetColorIdx(), and UpdateColorTable().

◆ m_LineSharedColorMono

CRgbaColor CPhyloTreeScheme::m_LineSharedColorMono
protected

◆ m_LineSharedColorMonoIdx

short CPhyloTreeScheme::m_LineSharedColorMonoIdx
protected

Definition at line 310 of file phylo_tree_scheme.hpp.

Referenced by UpdateColorTable(), and x_GetColorMonoIdx().

◆ m_LineTraceColor

CRgbaColor CPhyloTreeScheme::m_LineTraceColor
protected

◆ m_LineTraceColorIdx

short CPhyloTreeScheme::m_LineTraceColorIdx
protected

Definition at line 294 of file phylo_tree_scheme.hpp.

Referenced by GetColorIdx(), and UpdateColorTable().

◆ m_LineTraceColorMono

CRgbaColor CPhyloTreeScheme::m_LineTraceColorMono
protected

◆ m_LineTraceColorMonoIdx

short CPhyloTreeScheme::m_LineTraceColorMonoIdx
protected

Definition at line 309 of file phylo_tree_scheme.hpp.

Referenced by UpdateColorTable(), and x_GetColorMonoIdx().

◆ m_LineWidth

GLdouble CPhyloTreeScheme::m_LineWidth
protected

◆ m_MaxBranchDist

GLdouble CPhyloTreeScheme::m_MaxBranchDist
protected

Definition at line 256 of file phylo_tree_scheme.hpp.

Referenced by GetMaxBranchDist(), SetMaxBranchDist(), and x_DefaultScheme().

◆ m_MaxLabelLength

int CPhyloTreeScheme::m_MaxLabelLength
protected

max label display length (characters). -1=>No max len

Definition at line 325 of file phylo_tree_scheme.hpp.

Referenced by GetMaxLabelLength(), LoadCurrentSettings(), SaveCurrentSettings(), SetMaxLabelLength(), and x_DefaultScheme().

◆ m_MaxNodeSize

GLdouble CPhyloTreeScheme::m_MaxNodeSize
protected

◆ m_MaxNumChildren

GLdouble CPhyloTreeScheme::m_MaxNumChildren
protected

◆ m_MinNodeSize

GLdouble CPhyloTreeScheme::m_MinNodeSize
protected

◆ m_MinNumChildren

GLdouble CPhyloTreeScheme::m_MinNumChildren
protected

◆ m_NodeColor

CRgbaColor CPhyloTreeScheme::m_NodeColor
protected

◆ m_NodeColorIdx

short CPhyloTreeScheme::m_NodeColorIdx
protected

Definition at line 296 of file phylo_tree_scheme.hpp.

Referenced by GetColorIdx(), and UpdateColorTable().

◆ m_NodeColorMono

CRgbaColor CPhyloTreeScheme::m_NodeColorMono
protected

◆ m_NodeColorMonoIdx

short CPhyloTreeScheme::m_NodeColorMonoIdx
protected

Definition at line 311 of file phylo_tree_scheme.hpp.

Referenced by UpdateColorTable(), and x_GetColorMonoIdx().

◆ m_NodeSelColor

CRgbaColor CPhyloTreeScheme::m_NodeSelColor
protected

◆ m_NodeSelColorIdx

short CPhyloTreeScheme::m_NodeSelColorIdx
protected

Definition at line 297 of file phylo_tree_scheme.hpp.

Referenced by GetColorIdx(), and UpdateColorTable().

◆ m_NodeSelColorMono

CRgbaColor CPhyloTreeScheme::m_NodeSelColorMono
protected

◆ m_NodeSelColorMonoIdx

short CPhyloTreeScheme::m_NodeSelColorMonoIdx
protected

Definition at line 312 of file phylo_tree_scheme.hpp.

Referenced by UpdateColorTable(), and x_GetColorMonoIdx().

◆ m_NodeSharedColor

CRgbaColor CPhyloTreeScheme::m_NodeSharedColor
protected

◆ m_NodeSharedColorIdx

short CPhyloTreeScheme::m_NodeSharedColorIdx
protected

Definition at line 299 of file phylo_tree_scheme.hpp.

Referenced by GetColorIdx(), and UpdateColorTable().

◆ m_NodeSharedColorMono

CRgbaColor CPhyloTreeScheme::m_NodeSharedColorMono
protected

◆ m_NodeSharedColorMonoIdx

short CPhyloTreeScheme::m_NodeSharedColorMonoIdx
protected

Definition at line 314 of file phylo_tree_scheme.hpp.

Referenced by UpdateColorTable(), and x_GetColorMonoIdx().

◆ m_NodeSize

GLdouble CPhyloTreeScheme::m_NodeSize
protected

◆ m_NodeTipSelColor

CRgbaColor CPhyloTreeScheme::m_NodeTipSelColor
protected

◆ m_NodeTipSelColorIdx

short CPhyloTreeScheme::m_NodeTipSelColorIdx
protected

Definition at line 300 of file phylo_tree_scheme.hpp.

Referenced by GetColorIdx(), and UpdateColorTable().

◆ m_NodeTipSelColorMono

CRgbaColor CPhyloTreeScheme::m_NodeTipSelColorMono
protected

◆ m_NodeTipSelColorMonoIdx

short CPhyloTreeScheme::m_NodeTipSelColorMonoIdx
protected

Definition at line 315 of file phylo_tree_scheme.hpp.

Referenced by UpdateColorTable(), and x_GetColorMonoIdx().

◆ m_NodeTraceColor

CRgbaColor CPhyloTreeScheme::m_NodeTraceColor
protected

◆ m_NodeTraceColorIdx

short CPhyloTreeScheme::m_NodeTraceColorIdx
protected

Definition at line 298 of file phylo_tree_scheme.hpp.

Referenced by GetColorIdx(), and UpdateColorTable().

◆ m_NodeTraceColorMono

CRgbaColor CPhyloTreeScheme::m_NodeTraceColorMono
protected

◆ m_NodeTraceColorMonoIdx

short CPhyloTreeScheme::m_NodeTraceColorMonoIdx
protected

Definition at line 313 of file phylo_tree_scheme.hpp.

Referenced by UpdateColorTable(), and x_GetColorMonoIdx().

◆ m_NonSelectedAlpha

float CPhyloTreeScheme::m_NonSelectedAlpha
protected

alpha value of non-selected glyphs when visibility is eHighlightSelection

Definition at line 343 of file phylo_tree_scheme.hpp.

Referenced by GetNonSelectedAlpha(), LoadCurrentSettings(), SaveCurrentSettings(), SetNonSelectedAlpha(), and x_DefaultScheme().

◆ m_RightMargin

GLdouble CPhyloTreeScheme::m_RightMargin
protected

◆ m_SelectionVisibility

TSelectionVisibility CPhyloTreeScheme::m_SelectionVisibility
protected

visibility of selected nodes vs. non selected nodes

Definition at line 334 of file phylo_tree_scheme.hpp.

Referenced by GetSelectionVisibility(), SetSelectionVisibility(), and x_DefaultScheme().

◆ m_ShowAllSelected

bool CPhyloTreeScheme::m_ShowAllSelected
protected

If true (the default) all selected nodes are shown as selected.

Otherwise only the current node (m_TreeModel->SetCurrentNode()) will show as selected (and only if the current node is selected- it doesn't have to be).

Definition at line 340 of file phylo_tree_scheme.hpp.

Referenced by GetShowAllSelected(), SetShowAllSelected(), and x_DefaultScheme().

◆ m_SolidColorLeaves

bool CPhyloTreeScheme::m_SolidColorLeaves
protected

Solid color leaf nodes (if true)

Definition at line 365 of file phylo_tree_scheme.hpp.

Referenced by GetSolidColorLeaves(), SetSolidColorLeaves(), and x_DefaultScheme().

◆ m_ThemeKey

string CPhyloTreeScheme::m_ThemeKey
protected

Definition at line 234 of file phylo_tree_scheme.hpp.

Referenced by LoadCurrentSettings(), and SaveCurrentSettings().

◆ m_TooltipFormat

string CPhyloTreeScheme::m_TooltipFormat
protected

tooltip format

Definition at line 328 of file phylo_tree_scheme.hpp.

Referenced by SetTooltipFormat(), and x_DefaultScheme().

◆ m_TopMargin

GLdouble CPhyloTreeScheme::m_TopMargin
protected

◆ m_ZoomBehavior

std::map<string,TZoomBehavior> CPhyloTreeScheme::m_ZoomBehavior
protected

zoom behavior by renderer (string is GetDescription() from renderer)

Definition at line 355 of file phylo_tree_scheme.hpp.

Referenced by GetZoomBehavior(), LoadCurrentSettings(), SaveCurrentSettings(), and SetZoomBehavior().


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