, m_ThemeKey(
"Theme")
51, m_DefaultTheme(
"Default")
54, m_LineSelColorIdx(-1)
55, m_LineTraceColorIdx(-1)
56, m_LineSharedColorIdx(-1)
58, m_NodeSelColorIdx(-1)
59, m_NodeTraceColorIdx(-1)
60, m_NodeSharedColorIdx(-1)
61, m_NodeTipSelColorIdx(-1)
63, m_LabelSelColorIdx(-1)
64, m_LabelTraceColorIdx(-1)
65, m_LabelSharedColorIdx(-1)
66, m_BgColorMonoIdx(-1)
67, m_LineColorMonoIdx(-1)
68, m_LineSelColorMonoIdx(-1)
69, m_LineTraceColorMonoIdx(-1)
70, m_LineSharedColorMonoIdx(-1)
71, m_NodeColorMonoIdx(-1)
72, m_NodeSelColorMonoIdx(-1)
73, m_NodeTraceColorMonoIdx(-1)
74, m_NodeSharedColorMonoIdx(-1)
75, m_NodeTipSelColorMonoIdx(-1)
76, m_LabelColorMonoIdx(-1)
77, m_LabelSelColorMonoIdx(-1)
78, m_LabelTraceColorMonoIdx(-1)
79, m_LabelSharedColorMonoIdx(-1)
227 "Unable to get/set specified value");
284 "Unable to get/set specified value");
338 "Unable to get/set specified value");
392 "Unable to get/set specified value");
397 short& current_index)
401 if(current_index < 0 || current_index >= (
short)color_table->
GetSize()) {
403current_index = (short)color_table->
AddColor(current_color);
409 if(!(table_color == current_color)) {
410current_index = (short)color_table->
AddColor(current_color);
467 "Unable to get/set specified value");
489 "Unable to get/set specified value");
494 const string& base_key,
495 const string& curr_key,
496 const string& def_key1)
const 498vector <string> keys;
499 if( !def_key1.empty()) {
500keys.push_back(def_key1);
502 if(curr_key != def_key1) {
503keys.push_back(curr_key);
510 const string& base_key,
511 const string& curr_key,
512 const string& def_key1)
const 514vector <string> keys;
515 if( !def_key1.empty()) {
516keys.push_back(def_key1);
518 if(curr_key != def_key1) {
519keys.push_back(curr_key);
533 constobjects::CUser_field&
f= *ref;
535 switch(
f.GetData().Which()) {
536 caseobjects::CUser_field::TData::e_Ints:
538vector<int> cvi =
f.GetData().GetInts();
539 if(cvi.size() > 2 ) {
540vector<int>::const_iterator cv_it = cvi.begin();
541c.
SetRed(
static_cast<unsigned char>(*cv_it++));
542c.
SetGreen(
static_cast<unsigned char>(*cv_it++));
543c.
SetBlue(
static_cast<unsigned char>(*cv_it++));
544 if(cv_it != cvi.end()) {
545c.
SetAlpha(
static_cast<unsigned char>(*cv_it));
552 caseobjects::CUser_field::TData::e_Reals: {{
553vector<double> cvd =
f.GetData().GetReals();
554 if(cvd.size() > 2 ) {
555vector<double>::const_iterator cv_it = cvd.begin();
556c.
SetRed(
static_cast<float>(*cv_it++));
557c.
SetGreen(
static_cast<float>(*cv_it++));
558c.
SetBlue(
static_cast<float>(*cv_it++));
559 if(cv_it != cvd.end()) {
560c.
SetAlpha(
static_cast<float>(*cv_it));
567 caseobjects::CUser_field::TData::e_Str: {{
568 stringcs =
f.GetData().GetStr();
593 f.SetData().SetInts() =
val;
651view.
GetString(
"LabelFontFace",
"Helvetica"));
652 intfont_size = view.
GetInt(
"LabelFontSize", 10);
667 inttc = view.
GetInt(
"Coloration", -1);
715 intzoombehavior = view.
GetInt((*iter).key);
716 if(zoombehavior >= 0 && zoombehavior <=
int(
eZoomY))
721 catch(std::exception&)
767view.
Set(
"LabelFontFace",
817std::map<string,TZoomBehavior>::const_iterator iter;
819view.
Set((*iter).first,
int((*iter).second));
822 catch(std::exception&)
834wxprops.Add(
wxT(
"seq-id"));
835wxprops.Add(
wxT(
"fullasm_id"));
836wxprops.Add(
wxT(
"asm_accession"));
837wxprops.Add(
wxT(
"tax-id"));
838wxprops.Add(
wxT(
"taxid"));
839wxprops.Add(
wxT(
"label"));
CRegistryWriteView GetWriteView(const string §ion)
get a read-write view at a particular level.
static CGuiRegistry & GetInstance()
access the application-wide singleton
CRegistryReadView GetReadView(const string §ion) const
get a read-only view at a particular level.
virtual bool LoadCurrentSettings()
short m_NodeTipSelColorMonoIdx
TLabelStyle m_LabelStyle
labels style
bool m_SolidColorLeaves
Solid color leaf nodes (if true)
void GetDefaultBroadcastProperties(wxArrayString &wxprops)
string m_TooltipFormat
tooltip format
CRgbaColor m_NodeTipSelColorMono
CRgbaColor m_LabelSharedColorMono
short m_LabelColorMonoIdx
GLdouble & SetSize(TPhyloTreeSizes obj)
short x_GetColorMonoIdx(TPhyloTreeObject obj, TPhyloTreeColors col)
short m_NodeSelColorMonoIdx
CRgbaColor m_LineSharedColor
short m_BgColorIdx
Color indices in color table.
short m_LineSelColorMonoIdx
CRgbaColor m_LineColorMono
short m_NodeTipSelColorIdx
CRgbaColor m_NodeSelColor
short m_LabelSelColorMonoIdx
GLdouble m_MaxNumChildren
void SetColoration(const TColoration &col)
CRgbaColor m_LabelTraceColor
short m_NodeTraceColorIdx
void x_ColorToUserField(CRegistryWriteView &view, const string &key, const CRgbaColor &c) const
short m_NodeSharedColorMonoIdx
CRgbaColor & x_SetColorMono(TPhyloTreeObject obj, TPhyloTreeColors col)
CRgbaColor m_LineTraceColor
CRgbaColor m_BgColorMono
monochrome colors
void x_DefaultScheme(void)
CRgbaColor m_LabelColorMono
short m_LineTraceColorMonoIdx
CRgbaColor m_NodeColorMono
short GetColorIdx(TPhyloTreeObject obj, TPhyloTreeColors col)
TZoomBehavior GetZoomBehavior(const string &renderer)
CRgbaColor & SetColor(TPhyloTreeObject obj, TPhyloTreeColors col)
CRgbaColor m_NodeSharedColor
bool m_ShowAllSelected
If true (the default) all selected nodes are shown as selected.
CRgbaColor m_BgColor
colors
CRgbaColor m_NodeTraceColor
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.
GLdouble m_MinNumChildren
TSelectionVisibility m_SelectionVisibility
visibility of selected nodes vs. non selected nodes
short m_LabelSharedColorMonoIdx
short m_LineSharedColorMonoIdx
CRgbaColor m_LabelSharedColor
void SetZoomBehavior(const string &renderer, TZoomBehavior zb)
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.
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
short m_LineTraceColorIdx
CRgbaColor m_NodeSelColorMono
short m_NodeSharedColorIdx
CRgbaColor m_NodeSharedColorMono
bool x_UserFieldToColor(const CRegistryReadView &view, const string &key, CRgbaColor &c)
Load a color from the registry.
GLdouble m_LineWidth
sizes
short m_LabelTraceColorIdx
CRgbaColor m_LineSharedColorMono
short m_LabelTraceColorMonoIdx
int m_MaxLabelLength
max label display length (characters). -1=>No max len
std::map< string, TZoomBehavior > m_ZoomBehavior
zoom behavior by renderer (string is GetDescription() from renderer)
short m_LineSharedColorIdx
short m_NodeTraceColorMonoIdx
CRgbaColor m_LabelSelColorMono
CRgbaColor m_LabelTraceColorMono
virtual bool SaveCurrentSettings() const
bool m_bBoaNodes
boa - node size behavior
void x_UpdateColorIndex(CRgbaGradColorTable *color_table, const CRgbaColor ¤t_color, short ¤t_index)
Check if current color index corresponds to the correct color in the color table and,...
string m_LabelFormat
label format
TLabelsVisibility m_LabelVisibility
label visibility
string m_CurrTheme
themes
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.
CRgbaColor m_NodeTraceColorMono
class CRegistryReadView provides a nested hierarchical view at a particular key.
int GetInt(const string &key, int default_val=0) const
access a named key at this level, with no recursion
double GetReal(const string &key, double default_val=0) const
bool GetBool(const string &key, bool default_val=false) const
list< SKeyInfo > TKeys
retrieve information about all keys in the registry
void GetTopKeys(TKeys &keys) const
Retrieve information about the top level keys in this view.
bool HasField(const string &key) const
Does a field with this section and key exist in this view?
string GetString(const string &key, const string &default_val=kEmptyStr) const
CConstRef< objects::CUser_field > GetField(const string &key) const
provide raw field access
CRef< objects::CUser_field > SetField(const string &key)
provide raw field access
void Set(const string &key, int val)
access a named key at this level, with no recursion
class CRgbaColor provides a simple abstraction for managing colors.
CRgbaGradColorTable Provides a storage for colors (to eliminate color creation overhead) and Function...
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
size_t AddColor(const CRgbaColor &c)
Add a single color to the table.
static string FaceToString(EFontFace face)
funtions below provide conversion of font parameters to strings and back.
void SetFontFace(EFontFace face, bool use_bitmap_overrides=true)
EFontFace GetFontFace() const
EFontFace
Set of pre-defined fonts for which we know we have valid font files.
void SetFontSize(unsigned int size)
Set/get font size in points.
static EFontFace FaceFromString(const string &str)
Selects a font face given a string or eFontFace_LastFont on failure.
unsigned int GetFontSize() const
CRgbaColor & GetColor(size_t i)
unsigned char GetRedUC(void) const
Get specific channels in unsigned char values.
void Set(float r, float g, float b)
set the color from an Fl_Color
unsigned char GetGreenUC(void) const
unsigned char GetAlphaUC(void) const
void FromString(const string &str)
Assign color values encoded in a string.
unsigned char GetBlueUC(void) const
void SetRed(float r)
Set specific channels from floating point values.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
const struct ncbi::grid::netcache::search::fields::KEY key
static const string kPhyloBaseKey("GBPlugins.PhyloTreeView")
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4