A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classCTrackConfigManager.html below:

NCBI C++ ToolKit: CTrackConfigManager Class Reference

Search Toolkit Book for CTrackConfigManager

CTrackConfigManager a help class to manage layout track configuration. More...

#include <gui/widgets/seq_graphic/track_config_manager.hpp>

class   CTrackIndex   helper class to faciliatet subtrack processing build pseudo compound track index and provides find method More...
    CTrackConfigManager ()   virtual  ~CTrackConfigManager ()   const ILayoutTrackFactoryGetTrackFactory (const string &key) const   const TFactoryMapGetTrackFactories () const   CTrackConfigManager inline methods. More...
  list< stringGetTrackTypes () const   CConstRef< objects::CDisplayOptionsBundle >  GetTrackDisplayOptions (const list< string > &keys) const   const TAnnotMetaDataListGetKnownAnnots (int level) const   Get known annotation based on level number. More...
  void  SetKnownAnnots (const TAnnotMetaDataList &annots, int level)   bool  OnShownList (const CTempTrackProxy *p_proxy, const CTempTrackProxy *t_proxy, const string &track_name) const     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...
    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  

Align the existing track configuration to the input settings set.

Update all the settings in the original tracks to the ones in the input track list. This is very close to completely replacing the the original track settings. The differences include: If a track presents only in the original track list, it won't be removed from the track configuration, but it will be turned off regardless of its oringal on/off state. The potential updated settings include annotation list, track on/off state, track order, and track-specific settings. Track name will not be updated since it is considered as part of the track identity along with the track key and subkey.

TFactoryMap  m_Factories   TKnownAnnotMap  m_KnownAnnots   Complete list of known annotations with meta-data. More...
  void  AlignTrackConfig (TTrackProxies &t_settings, const TTrackSettingsSet &in_settings)   void  UpdateTrackConfig (TTrackProxies &t_settings, const TTrackSettingsSet &in_settings)   Update the existing track configuration. More...
  void  MergeTrackConfig (TTrackProxies &t_settings, const TTrackSettingsSet &settings_set, EAnnotMerge merge)   Merge with the existing track configuration. More...
  CRef< objects::CTrackConfig >  CreateTrackConfig (CTempTrackProxy *temp_proxy, CSeqGraphicConfig &g_config, const string &title_base) const   Create configuration for a give track proxy. More...
  void  CreateDisplayName (const CAnnotMetaData *meta_data, const CTempTrackProxy &temp_proxy, string &display_name) const   static void  SetTrackConfig (TTrackProxies &t_settings, const TTrackSettingsSet &in_settings, int order_offset=0)   Reset the track configuration with input settings. More...
  static void  GetUsedFeatureKeys (set< string > &subkeys, const TTrackProxies &proxies)   static bool  ValidFeatureTrack (const objects::CFeatListItem &item)   void  x_InitTrackManager ()   void  x_AppendKeyDisplayOptions (const string &key, objects::CDisplayOptionsBundle &bundle) const  

CTrackConfigManager a help class to manage layout track configuration.

The specific tasks include registering basic tracks, initializing track factory list, loading/saving track settings, merging/aligning/ updating any existing track settings based on other track settings.

Definition at line 61 of file track_config_manager.hpp.

◆ TAnnotMetaDataList ◆ TFactoryMap ◆ TKeyValuePairs ◆ TKnownAnnotMap ◆ TNAAs ◆ TTrackProxies ◆ TTrackSettings ◆ TTrackSettingsSet ◆ EAnnotMerge ◆ CTrackConfigManager() CTrackConfigManager::CTrackConfigManager ( ) ◆ ~CTrackConfigManager() ◆ AdjustTrackOrder()

Definition at line 443 of file track_config_manager.cpp.

References CSeqUtils::eAnnot_Other, CSeqUtils::eAnnot_Unnamed, CTempTrackProxy::GetAnnots(), CTrackContainer::GetSubtrackProxies(), CTempTrackProxy::GetTrack(), CSeqUtils::GetUnnamedAnnot(), CSeqUtils::IsUnnamed(), ITERATE, CSeqUtils::NameTypeStrToValue(), NON_CONST_ITERATE, NStr::ReplaceInPlace(), CTrackProxy::STPSorterByOrder::s_CompareCRefs(), and CTrackContainer::SortChildTracksByOrder().

Referenced by CTrackContainer::AddTracks().

◆ AlignTrackConfig()

Definition at line 1026 of file track_config_manager.cpp.

References _ASSERT, CTempTrackProxy::GetOrder(), CRef< C, Locker >::GetPointer(), CTempTrackProxy::GetShown(), ITERATE, NON_CONST_ITERATE, STrackSettings::ParseSettings(), CRef< C, Locker >::Reset(), CTrackProxy::STPSorterByOrder::s_CompareCRefs(), s_FindMatchedTrack(), s_InitTrackFromSettings(), and s_ResolveSubTracks().

◆ CreateDisplayName()

Definition at line 1232 of file track_config_manager.cpp.

References map_checker< Container >::end(), NStr::eNocase, map_checker< Container >::find(), CTempTrackProxy::GetAnnots(), CTempTrackProxy::GetDisplayName(), CUrl::GetHost(), CTempTrackProxy::GetId(), GetKnownAnnots(), CTempTrackProxy::GetSource(), CSeqUtils::IsUnnamed(), CTempTrackProxy::kAnonTrackName, CAnnotMetaData::m_Title, NStr::StartsWith(), and NStr::ToLower().

Referenced by CreateTrackConfig().

◆ CreateTrackConfig()

Create configuration for a give track proxy.

Parameters
title_base is recommended title base name. It may be ignored.

Definition at line 1336 of file track_config_manager.cpp.

References _ASSERT, CTrackConfigUtils::CreateCategory(), CTrackConfigUtils::CreateComment(), CreateDisplayName(), map_checker< Container >::empty(), map_checker< Container >::end(), map_checker< Container >::find(), CTrackConfigSet_Base::Get(), CTempTrackProxy::GetBatch(), CTempTrackProxy::GetBigDataIndex(), CTempTrackProxy::GetCategory(), CCategoryConfig::GetCategory(), CSeqGraphicConfig::GetCategoryConfig(), CTempTrackProxy::GetComments(), CTrackProxy::GetDataKey(), CTrackProxy::GetDB(), CTrackTypeInfo::GetDescr(), CTempTrackProxy::GetExtraInfo(), CSeqFeatData::GetFeatList(), CFeatureTrack::GetFeatSubtype(), CTempTrackProxy::GetFilter(), CTempTrackProxy::GetHelp(), CTempTrackProxy::GetHighlights(), CTempTrackProxy::GetHighlightsColor(), CTempTrackProxy::GetHubId(), CTrackTypeInfo::GetId(), CTempTrackProxy::GetId(), GetId(), CTempTrackProxy::GetIsPrivate(), GetKnownAnnots(), CTempTrackProxy::GetName(), CTempTrackProxy::GetOrder(), CRef< C, Locker >::GetPointer(), CTempTrackProxy::GetRemoteData(), CTempTrackProxy::GetRemoteId(), CTempTrackProxy::GetSeqDataKey(), CTempTrackProxy::GetSettingGroup(), ITrackConfigurable::GetSettings(), CTempTrackProxy::GetShown(), CTempTrackProxy::GetShowTitle(), CTempTrackProxy::GetSortBy(), CTempTrackProxy::GetSource(), CFeatList::GetStoragekey(), CTempTrackProxy::GetStoredScale(), CTempTrackProxy::GetSubcategory(), CCategoryConfig::GetSubcategory(), CTempTrackProxy::GetSubkey(), CTempTrackProxy::GetSubTracks(), ILayoutTrackFactory::GetThisTypeInfo(), CTempTrackProxy::GetTrack(), GetTrackFactory(), CTempTrackProxy::GetTrackProfile(), CAlignmentTrackFactory::GetTypeInfo(), CFeatureTrackFactory::GetTypeInfo(), CGeneModelFactory::GetTypeInfo(), CGraphTrackFactory::GetTypeInfo(), CLayoutTrack::GetTypeInfo(), CTempTrackProxy::GetUId(), ITERATE, ncbi::grid::netcache::search::fields::key, label, CAnnotMetaData::m_Descr, CAnnotMetaData::m_xClass, NULL, CSGConfigUtils::ParseProfileString(), NStr::Replace(), s_ProcessOptionalSettings(), CTrackConfigSet_Base::Set(), CTempTrackProxy::SetTrack(), ncbi::grid::netcache::search::fields::subkey, CTrackUtils::TokenizeWithEscape(), and NStr::TruncateSpaces().

◆ GetKnownAnnots() ◆ GetTrackDisplayOptions() ◆ GetTrackFactories() ◆ GetTrackFactory()

Definition at line 160 of file track_config_manager.cpp.

References map_checker< Container >::end(), map_checker< Container >::find(), ncbi::grid::netcache::search::fields::key, m_Factories, and NULL.

Referenced by CTrackContainer::CloneTrack(), CreateTrackConfig(), CTrackContainer::LoadNATracks(), CFeaturePanel::x_ConfigureSubtracks(), CFeaturePanel::x_CreateLevelTrack(), CAllOtherFeaturesTrack::x_ReinitFeatureTrack(), CTrackContainer::x_ReinitNATrack(), and CTrackContainer::x_ReinitTrack().

◆ GetTrackTypes() list< string > CTrackConfigManager::GetTrackTypes ( ) const ◆ GetUsedFeatureKeys() ◆ MergeTrackConfig()

Merge with the existing track configuration.

If a track presents in the input settings_set, but not in the existing track list, that track will be added. When merging settings on the tracks presented in both the input track list and original tracks, the settings in the input track list will be honored. The potential merged settings include track on/off state, annots, and track-specific settigns. Track order in the original track list won't be affected.

Parameters
merge_annots indicate if annots in the input settings_set will be merged with the ones in the original track settings.

Definition at line 1120 of file track_config_manager.cpp.

References copy(), eAnnot_Merge, eAnnot_Replace, CRef< C, Locker >::GetPointer(), ITERATE, STrackSettings::ParseSettings(), CRef< C, Locker >::Reset(), CTrackProxy::STPSorterByOrder::s_CompareCRefs(), s_FindMatchedTrack(), s_InitTrackFromSettings(), and s_ResolveSubTracks().

◆ OnShownList() ◆ RegisterSGTracks() void CTrackConfigManager::RegisterSGTracks ( ) static ◆ SetKnownAnnots() ◆ SetTrackConfig()

Reset the track configuration with input settings.

Definition at line 1171 of file track_config_manager.cpp.

References CRef< C, Locker >::GetPointer(), ITERATE, NON_CONST_ITERATE, STrackSettings::ParseSettings(), CRef< C, Locker >::Reset(), CTrackProxy::STPSorterByOrder::s_CompareCRefs(), s_FindMatchedTrack(), s_InitTrackFromSettings(), and s_ResolveSubTracks().

Referenced by CFeaturePanel::SetTrackConfig().

◆ UpdateTrackConfig()

Update the existing track configuration.

The input settings will be applied on the existing tracks. The settings for the tracks that only present in the input settings_set will be ginored. The potential updated settings include track annotation list and track-specific settings. Track on/off state, track name and track order will not be updated.

Parameters
align_annot indicate if annots in the input settings_set, if any will be used.
◆ ValidFeatureTrack() bool CTrackConfigManager::ValidFeatureTrack ( const objects::CFeatListItem &  item ) static ◆ x_AppendKeyDisplayOptions() void CTrackConfigManager::x_AppendKeyDisplayOptions ( const stringkey, objects::CDisplayOptionsBundle &  bundle  ) const private

Definition at line 193 of file track_config_manager.cpp.

References map_checker< Container >::end(), NStr::EndsWith(), NStr::eNocase, map_checker< Container >::find(), CTrackConfigSet_Base::Get(), CCheckBox_Base::GetConditions(), CChoice_Base::GetConditions(), CTextBox_Base::GetConditions(), CChoice_Base::GetCurr_value(), CCheckBox_Base::GetDisplay_name(), CChoice_Base::GetDisplay_name(), CChoiceItem_Base::GetDisplay_name(), CTextBox_Base::GetDisplay_name(), CCheckBox_Base::GetHelp(), CChoice_Base::GetHelp(), CChoiceItem_Base::GetHelp(), CTextBox_Base::GetHelp(), CChoiceItem_Base::GetLegend_text(), CCheckBox_Base::GetName(), CChoice_Base::GetName(), CChoiceItem_Base::GetName(), CHiddenSetting_Base::GetName(), CTextBox_Base::GetName(), CCheckBox_Base::GetOptional(), CChoice_Base::GetOptional(), CChoiceItem_Base::GetOptional(), CTextBox_Base::GetOptional(), ITrackConfigurable::GetSettings(), CCheckBox_Base::GetValue(), CHiddenSetting_Base::GetValue(), CTextBox_Base::GetValue(), CChoice_Base::GetValues(), CCheckBox_Base::IsSetConditions(), CChoice_Base::IsSetConditions(), CTextBox_Base::IsSetConditions(), CCheckBox_Base::IsSetDisplay_name(), CChoice_Base::IsSetDisplay_name(), CChoiceItem_Base::IsSetDisplay_name(), CTextBox_Base::IsSetDisplay_name(), CCheckBox_Base::IsSetHelp(), CChoice_Base::IsSetHelp(), CChoiceItem_Base::IsSetHelp(), CTextBox_Base::IsSetHelp(), CChoiceItem_Base::IsSetLegend_text(), CCheckBox_Base::IsSetOptional(), CChoice_Base::IsSetOptional(), CChoiceItem_Base::IsSetOptional(), CTextBox_Base::IsSetOptional(), ITERATE, ncbi::grid::netcache::search::fields::key, m_Factories, option, Ref(), CDisplayOptionsBundle_Base::SetOptions(), CDisplayOptionsBundle_Base::SetTracks(), and rapidjson::value.

Referenced by GetTrackDisplayOptions().

◆ x_InitTrackManager() void CTrackConfigManager::x_InitTrackManager ( ) private ◆ m_Factories ◆ m_KnownAnnots

Complete list of known annotations with meta-data.

Different annotations may annotated at different levels for a given sequence, e.g. Chromosome, Scaffold, and Component. So each level will have a separate list. The level number is a relative number. level = 0 means current sequence level. level = 1 means one level down from the current sequence level. Currently, only named annotations (NAAs) from seq-annot database are covered which live at level 0. The NAA meta-data are retrieved using eutils instead of object manager to avoid performance and memory consumption issues.

Definition at line 197 of file track_config_manager.hpp.

Referenced by CTrackConfigManager(), GetKnownAnnots(), and SetKnownAnnots().

The documentation for this class was generated from the following files:


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