1 #ifndef GUI_WIDGET_SEQ_GRAPHICS___FEATURE_PANEL__HPP
2 #define GUI_WIDGET_SEQ_GRAPHICS___FEATURE_PANEL__HPP
49 void SetMappedFeat(
const objects::CMappedFeat& mapped_feat) { m_MappedFeat = mapped_feat; m_isMappedFeatSet =
true; }
55 const objects::CMappedFeat&
GetMappedFeat()
const {
return m_MappedFeat; }
57 bool m_isMappedFeatSet{
false};
82 virtual void Update(
bool layout_only);
90 void ConfigureTracks();
91 void OnDataChanging();
96 void UpdateGridStep(
int step);
98 void SetAssembly(
const string& assembly);
99 void ShowConfigureTracksDlg(
const string& category);
102 virtual void ResetSearch();
111 void LoadDefaultTracks();
116 void SetTrackConfig(
const TTrackSettingsSet& settings_set);
117 void SetTrackConfig(
const TTrackProxies& track_settings);
121 void SkipGenuineCheck();
124 void ShowTrack(
const string& track_key);
127 void SaveTrackConfig();
136 virtual void OnTrackInitFinished(
const CLayoutTrack* sender);
139 void SetConfigKey(
const string& config_key);
141 void SetDiscoverTracks(
bool value =
true);
146 virtual void x_Draw()
const;
159 const TKeyValuePairs& settings);
161 virtual bool x_Empty()
const;
162 virtual void x_GetTBRect(
TModelRect& rect)
const;
163 virtual void x_RenderTitleBar()
const;
164 virtual void x_OnIconClicked(TIconID
id);
169 eIcon_Color = eIcon_MaxTrackIconID + 1,
175 void x_OnLayoutIconClicked();
176 void x_OnColorIconClicked();
177 void x_OnSizeIconClicked();
178 void x_OnDecorationIconClicked();
179 void x_OnLabelIconClicked();
182 void x_ConfigureTracks(
bool makeContainersVisible =
false);
194 const TTrackProxies& proxies,
int level);
205 void x_InitTrackIcons();
207 void x_RenderHairLineSelections()
const;
211 void x_RenderFeatureGrid()
const;
212 double x_CalcGridStep(
double base_step,
double min_step,
double max_step)
const;
218 bool x_GetShowDisplayLevel(
TLevel level)
const;
219 void x_SetShowDisplayLevel(
TLevel level,
bool show);
224 const string& track_name,
bool shown);
227 bool x_NeedSpecialGrid()
const;
233 void x_InitNATracks(
bool makeContainersVisible);
270 bool m_DiscoverTracks =
true;
278 void x_StartAssemblyJob();
284 const vector<CRef<objects::CGC_Assembly> >&
GetAssemblies()
const {
return m_Assemblies; }
285 string GetCurrentAssembly()
const;
289 bool m_search_match_case =
false;
290 size_t m_next_result = 0;
CAppJobNotification Notification send by CAppJobEventTranslator.
CRegularGridGen m_Gen
graphical grid.
CIRef< ISGDataSourceContext > m_DSContext
void SetImageInfo(TImageInfo *info)
Optional image info structure to return data to (cgi) caller.
void SetSelectedFeats(const TSelectedGlyphs &feats)
const TSelectedGlyphs * m_SelCDSFeatures
map< string, string > TTrackSettings
key-value pair for track settings
vector< TLevel > TDisplayLevels
bool m_CgiMode
special flag indicating if it is in cgi mode.
const TSelectedGlyphs * m_SelFeatures
SConstScopedObject m_InputObj
bool x_NeedSpecialGrid() const
need show special grid for the selected cds features.
vector< CRef< objects::CGC_Assembly > > m_Assemblies
void SetConfigKey(const string &config_key)
CRegularGridRenderer m_Grid
TAnnotMetaDataList m_NAData
vector< CMappedFeatOrObject > m_search_results
static CTrackTypeInfo m_TypeInfo
bool m_IconTexInitialized
flag indicating whether icon textures have been created.
void UpdateGridStep(int step)
TImageInfo * m_ImageInfo
Information about image that can be returned to client.
CRef< CExternalLayoutTrack > m_ExtLayoutTrack
void SetTrackConfig(const TTrackSettingsSet &settings_set)
@ eIcon_Decoration
feature decoration
void SetDSContext(ISGDataSourceContext *ds_ctx)
string m_ConfigKey
Base regitry key for panel setting and tracks default "GBPlugins.SeqGraphicFeatPanel" is for SV MSA s...
void SetSelectedCDSFeats(const TSelectedGlyphs &cds_feats)
void SkipGenuineCheck()
skip track existence verification.
void SetDiscoverTracks(bool value=true)
TDisplayLevels m_DisplayLevels
bool AssemblyLoaded() const
CSeqGraphicImageInfo TImageInfo
void SetDefaultAssembly(const string &defaultAssembly)
list< TTrackSettings > TTrackSettingsSet
TTrackProxies m_TrackSettings
initial track layout settings.
list< CWeakRef< CSeqGlyph > > TSelectedGlyphs
void SetServiceLocator(IServiceLocator *s)
virtual void x_Expand(bool)
Collapse or expand the track.
const vector< CRef< objects::CGC_Assembly > > & GetAssemblies() const
bool HasMappedFeat() const
const objects::CMappedFeat & GetMappedFeat() const
void SetMappedFeat(const objects::CMappedFeat &mapped_feat)
void SetRange(const TSeqRange &range)
void SetObject(const CObject *object)
objects::CMappedFeat m_MappedFeat
TSeqRange GetRange() const
const CObject * GetObject()
CConstRef< CObject > m_Object
CRenderingContext offers the basic context and utility methods for rendering layout objects in featur...
list< CRef< CSeqGlyph > > TObjects
CTrackContainer - a track container in the form of layout track.
void SetSkipGenuineCheck(bool flag)
CTempTrackProxy::TTrackProxies TTrackProxies
CTrackProxy data structure contains information about the position of a track in its parent scope,...
CTrackTypeInfo - holds description of a layout track type.
ISGDSManager is seqgraphic data source manage that serves as an data source context.
IServiceLocator - an abstract mechanism for locating services.
ITrackInitObserver: interface class work as an observer of a track that is responsible of intializing...
unsigned int TSeqPos
Type for sequence locations and lengths.
void SetStep(double step)
allow adjusting step externally.
void Reset(void)
Reset reference object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
#define NCBI_GUIWIDGETS_SEQGRAPHIC_EXPORT
static void text(MDB_val *v)
range(_Ty, _Ty) -> range< _Ty >
const GenericPointer< typename T::ValueType > T2 value