1 #ifndef GUI_WIDGETS_PHYLO_TREE___PHYLO_TREE_SCHEME__HPP
2 #define GUI_WIDGETS_PHYLO_TREE___PHYLO_TREE_SCHEME__HPP
113 } TSelectionVisibility;
115 typedef enum {eZoomXY, eZoomX, eZoomY} TZoomBehavior;
123 const GLdouble & right,
const GLdouble & bottom)
126 m_BottomMargin = bottom;
128 m_RightMargin = right;
132 GLdouble & right, GLdouble & bottom)
const
135 bottom = m_BottomMargin;
137 right = m_RightMargin;
147 return m_LabelVisibility;
150 m_LabelVisibility = lv;
154 return m_SelectionVisibility;
157 m_SelectionVisibility = sv;
189 void SetZoomBehavior(
const string& renderer, TZoomBehavior zb);
190 TZoomBehavior GetZoomBehavior(
const string& renderer);
192 CRgbaColor & SetColor(TPhyloTreeObject obj, TPhyloTreeColors col);
193 short GetColorIdx(TPhyloTreeObject obj, TPhyloTreeColors col);
195 GLdouble& SetSize(TPhyloTreeSizes obj);
196 GLdouble SetSize(TPhyloTreeSizes obj)
const;
226 virtual bool LoadCurrentSettings();
227 virtual bool SaveCurrentSettings()
const;
229 void GetDefaultBroadcastProperties(wxArrayString& wxprops);
370 void x_DefaultScheme(
void);
376 const string& base_key,
377 const string& curr_key,
378 const string& def_key1=
"")
const;
381 const string& base_key,
382 const string& curr_key,
383 const string& def_key1=
"")
const;
396 short& current_index);
GLdouble GetMaxNumChildren() const
short m_NodeTipSelColorMonoIdx
TLabelStyle m_LabelStyle
labels style
bool m_SolidColorLeaves
Solid color leaf nodes (if true)
void SetMaxBranchDist(GLdouble bd)
string m_TooltipFormat
tooltip format
CRgbaColor m_NodeTipSelColorMono
CRgbaColor m_LabelSharedColorMono
string & SetTooltipFormat(void)
void SetShowAllSelected(bool show_all)
short m_LabelColorMonoIdx
GLdouble GetMaxNodeSize() const
size range for variable-sized collapsed nodes (so min node size here may be greater than node size)
const TLabelsVisibility & GetLabelVisibility(void) const
GLdouble GetMaxBranchDist() const
And we scale the length of the collapsed node marker based on the max.
void SetBoaNodes(bool x_bnodes)
GLdouble GetLeafNodeSize() const
short m_NodeSelColorMonoIdx
CRgbaColor m_LineSharedColor
short m_BgColorIdx
Color indices in color table.
short m_LineSelColorMonoIdx
void SetFont(const CGlTextureFont &font)
CRgbaColor m_LineColorMono
TLabelTruncation & GetLabelTruncation()
short m_NodeTipSelColorIdx
void SetLabelStyle(const TLabelStyle &ls)
CRgbaColor m_NodeSelColor
GLdouble GetLineWidth() const
short m_LabelSelColorMonoIdx
bool GetSolidColorLeaves() const
GLdouble m_MaxNumChildren
void SetColoration(const TColoration &col)
CRgbaColor m_LabelTraceColor
string & SetLabelFormat(void)
short m_NodeTraceColorIdx
void GetMargins(GLdouble &left, GLdouble &top, GLdouble &right, GLdouble &bottom) const
short m_NodeSharedColorMonoIdx
TSelectionVisibility GetSelectionVisibility() const
CRgbaColor m_LineTraceColor
float GetNonSelectedAlpha() const
CRgbaColor m_BgColorMono
monochrome colors
bool GetShowAllSelected() const
void SetAutoLabels(const TAutoLabels &al)
void SetMaxLabelLength(int len)
CRgbaColor m_LabelColorMono
short m_LineTraceColorMonoIdx
CRgbaColor m_NodeColorMono
void SetSolidColorLeaves(bool b)
const TLabelStyle & GetLabelStyle(void) const
void SetMaxNumChildren(GLdouble max_num_children)
GLdouble GetMinNumChildren() const
collapsed node sizes are scaled from min to max values based on number of children so we need to have...
CRgbaColor m_NodeSharedColor
virtual ~CPhyloTreeScheme(void)
bool m_ShowAllSelected
If true (the default) all selected nodes are shown as selected.
CRgbaColor m_BgColor
colors
CRgbaColor m_NodeTraceColor
void SetLabelVisibility(const TLabelsVisibility &lv)
GLdouble m_MinNumChildren
TSelectionVisibility m_SelectionVisibility
visibility of selected nodes vs. non selected nodes
void SetMargins(const GLdouble &left, const GLdouble &top, const GLdouble &right, const GLdouble &bottom)
short m_LabelSharedColorMonoIdx
short m_LineSharedColorMonoIdx
CRgbaColor m_LabelSharedColor
int GetMaxLabelLength() const
short m_LabelSharedColorIdx
TLabelTruncation m_LabelTruncation
Label truncation (how are labels clipped at edges)
const TColoration & GetColoration(void) const
CRgbaColor m_LabelSelColor
CRgbaColor m_LineSelColor
CRgbaColor m_NodeTipSelColor
GLdouble m_TopMargin
margins
TAutoLabels m_AutoLabels
auto-labeling
CRgbaColor m_LineSelColorMono
float m_NonSelectedAlpha
alpha value of non-selected glyphs when visibility is eHighlightSelection
CRgbaColor m_LineTraceColorMono
void SetMinNumChildren(GLdouble min_num_children)
short m_LineTraceColorIdx
const CGlTextureFont & GetFont(void) const
CRgbaColor m_NodeSelColorMono
short m_NodeSharedColorIdx
CRgbaColor m_NodeSharedColorMono
GLdouble m_LineWidth
sizes
short m_LabelTraceColorIdx
CRgbaColor m_LineSharedColorMono
short m_LabelTraceColorMonoIdx
void SetLayoutIdx(int lidx)
int m_MaxLabelLength
max label display length (characters). -1=>No max len
const TAutoLabels & GetAutoLabels(void) const
std::map< string, TZoomBehavior > m_ZoomBehavior
zoom behavior by renderer (string is GetDescription() from renderer)
GLdouble GetMinNodeSize() const
short m_LineSharedColorIdx
short m_NodeTraceColorMonoIdx
CRgbaColor m_LabelSelColorMono
GLdouble GetNodeSize() const
CRgbaColor m_LabelTraceColorMono
void SetSelectionVisibility(const TSelectionVisibility sv)
bool m_bBoaNodes
boa - node size behavior
string m_LabelFormat
label format
TLabelsVisibility m_LabelVisibility
label visibility
void SetNonSelectedAlpha(float a)
void SetLabelTruncation(TLabelTruncation lt)
CRgbaColor m_NodeTraceColorMono
class CRegistryReadView provides a nested hierarchical view at a particular key.
class CRgbaColor provides a simple abstraction for managing colors.
CRgbaGradColorTable Provides a storage for colors (to eliminate color creation overhead) and Function...
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIWIDGETS_PHYLO_TREE_EXPORT
const struct ncbi::grid::netcache::search::fields::KEY key
static const string kPhyloBaseKey("GBPlugins.PhyloTreeView")