65 if (iter != sm_TypeMap.end()) {
74 for (iter = sm_TypeMap.begin(); iter != sm_TypeMap.end(); ++iter) {
75 if (iter->second ==
type) {
103 if (iter != sm_ScaleMap.end()) {
115 for (iter = sm_ScaleMap.begin(); iter != sm_ScaleMap.end(); ++iter) {
116 if (iter->second == scale) {
125 if (iter->first == scale) {
137 if(sScaleTMS ==
"log2 scaled") {
139 }
else if(sScaleTMS ==
"linear scaled") {
141 }
else if(sScaleTMS ==
"loge scaled") {
143 }
else if(sScaleTMS ==
"log10 scaled") {
156 const string& curr_size)
194 "." + curr_color +
".ColorSet";
195 sub_view =
registry.GetReadView(sub_key);
215 const string& curr_size)
const
221 if ( !params->
GetDirty() )
continue;
246 curr_color +
"." +
"ColorSet";
275 vector<string>::reverse_iterator riter(feat_hierarchy.end());
276 vector<string>::reverse_iterator rend(feat_hierarchy.begin());
278 for ( ; riter != rend; ++riter) {
344 if ( !feat_hierarchy.empty() &&
363 if (iter != settings.
end()) {
364 *iter->second = *hist_params;
366 settings[new_name] = hist_params;
373 (option_name,
"Linear/Log Scale",
375 "Scale for graph data");
380 "Shown at linear scale",
381 "Graph data is shown at linear scale"));
386 "Shown at log base 10 scale",
387 "Graph data is shown at logarithmic (base 10) scale"));
392 "Shown at natural logarithm (base e) scale",
393 "Graph data is shown at natural logrithm (base e) scale"));
398 "Shown at log base 2 scale",
399 "Graph data is shown at logarithmic (base 2) scale"));
CConfigurableItems - a static list of items that can be configured.
vector< string > GetStoragekeys(int subtype) const
Get hierarchy of keys above this subtype, starting with "Master" example, eSubtype_gene,...
static CGuiRegistry & GetInstance()
access the application-wide singleton
void LoadSettings(const string &curr_color, const string &curr_size)
CHistParamsManager implementation.
THistParams m_HistSettings
cached histogram rendering parameters.
bool HasSettings(const string &name) const
Check if there is settings for a given name.
void SaveSettings(const string &curr_color, const string &curr_size) const
bool IsTempSettings(const string &name) const
Check if there is settings for a given name.
THistParams m_TempHistSettings
temporary histogram settings.
CRef< CHistParams > GetDefHistParams() const
CRef< CHistParams > GetHistParams(TFeatSubtype subtype) const
Get histogram settings using feature subtype.
void x_AddSettings(const string &name, CRef< CHistParams > hist_params, THistParams &settings)
static CRef< objects::CChoice > CreateScaleOptions(const string &option_name, CHistParams::EScale option_value)
CRgbaColor m_SmearColorMin
static EType TypeStrToValue(const string &type)
int m_SDeviationThreshold
CRgbaColor m_OutlierColor
static EScale ScaleStrToValue(const string &scale)
static const string & TypeValueToStr(CHistParams::EType type)
static const string & ScaleValueToStr(CHistParams::EScale scale)
static string ScaleTMSToStr(const string &sScaleTMS)
converts values returned in TMS "stored_scale" attribute (e.g.
EScale m_Scale
requested scale
static const string & ScaleValueToName(CHistParams::EScale scale)
CRgbaColor m_SmearColorMax
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.
string GetString(const string &key, const string &default_val=kEmptyStr) const
void GetKeys(TKeys &keys) const
Retrieve information about all keys in this view.
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.
static CRegistryReadView GetSizeReadView(const CGuiRegistry ®, const string &base_key, const string §, const string &key, const string &def_sect="")
static CRegistryReadView GetColorReadView(const CGuiRegistry ®, const string &base_key, const string §, const string &key, const string &def_sect="")
Create a read view specifically for 'Color' section.
static CRegistryReadView GetReadView(const CGuiRegistry ®, const string &base_key, const string &curr_key, const string &def_key1="", const string &def_key2="", const string &def_key3="")
read/readwrite view creation helper methods.
static CRegistryWriteView GetWriteView(CGuiRegistry ®, const string &base_key, const string &curr_key, const string &def_key1="", const string &def_key2="", const string &def_key3="")
static const string & ColorKey()
static CRegistryWriteView GetColorRWView(CGuiRegistry ®, const string &base_key, const string §, const string &key, const string &def_sect="")
static CRegistryWriteView GetSizeRWView(CGuiRegistry ®, const string &base_key, const string §, const string &key, const string &def_sect="")
static void SetColor(CRegistryWriteView &view, const string &key, const CRgbaColor &color)
static void GetColor(const CRegistryReadView &view, const string &key, CRgbaColor &color)
static const CFeatList * GetFeatList()
class CStaticArrayMap<> provides access to a static array in much the same way as CStaticArraySet<>,...
TBase::const_iterator const_iterator
static CRef< objects::CChoice > CreateChoice(const string &name, const string &disp_name, const string &curr_val, const string &help, bool optional=false)
static CRef< objects::CChoiceItem > CreateChoiceItem(const string &name, const string &disp_name, const string &help, const string &legend_txt, bool optional=false)
container_type::const_iterator const_iterator
container_type::iterator iterator
const_iterator end() const
const_iterator find(const key_type &key) const
#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.
static const string & GetUnnamedAnnot()
Get the commonly used symbol representing a unnnamed annotation.
static CRgbaColor RotateColor(const CRgbaColor &c, float degrees)
Rotate the hue of the color by degrees.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static string & Replace(const string &src, const string &search, const string &replace, string &dst, SIZE_TYPE start_pos=0, SIZE_TYPE max_replace=0, SIZE_TYPE *num_replace=0)
Replace occurrences of a substring within a string.
static const string kHistParamsKey("GBPlugins.SeqGraphicHistogram")
static const TScaleStr s_ScaleStrs[]
DEFINE_STATIC_ARRAY_MAP(TTypeMap, sm_TypeMap, s_TypeStrs)
static const string kDefHistKey("Default")
static const TTypeStr s_TypeStrs[]
SStaticPair< const char *, CHistParams::EType > TTypeStr
CHistParams.
static const map< CHistParams::EScale, string > sm_ScaleNames
SStaticPair< const char *, CHistParams::EScale > TScaleStr
CStaticArrayMap< string, CHistParams::EType > TTypeMap
CStaticArrayMap< string, CHistParams::EScale > TScaleMap
const struct ncbi::grid::netcache::search::fields::KEY key
Template structure SStaticPair is simlified replacement of STL pair<> Main reason of introducing this...