);
70, m_IconLayout(eIcon_Layout,
"Layout",
true,
"track_layout")
125 bound.SetBottom(
bound.Top() + (
TVPUnit)tb_height + (tb_height > 0.0 ? 2 : 0));
139p_areas->push_back(area);
140 return&(p_areas->back());
149 boolbIsLayoutOnlyChange =
true;
160wxMenuItemList& item_list = menu.GetMenuItems();
161 ITERATE(wxMenuItemList, iter, item_list) {
163 if((*iter)->IsChecked() &&
id!=
m_eLayout) {
169bIsLayoutOnlyChange =
false;
181 Update(bIsLayoutOnlyChange);
197 static doublekNPP_Cutoff= 50;
220 ERR_POST(
"CBinsTrack::x_OnJobCompleted() notification for job \ 221 does not contain results.");
267 if(
typeid(*glyph) ==
typeid(
CBinsGlyph)) {
279 if(objs.size()==1) {
282}
else if(gene_marker) {
315 if( !src_annots.
empty() ) {
328seq_ds->
SetName(iter->first);
331 if( !iter->second.empty() ) {
332track->SetTitle(iter->second);
335track->SetAnnot(iter->first);
373 config->SetLegend_text(
"anchor_4.3");
CAppJobNotification Notification send by CAppJobEventTranslator.
void SetName(const string &)
static void GetTrackNames(SConstScopedObject &object, TAnnotNameTitleMap &names, const TSeqRange &range, const ILayoutTrackFactory::SExtraParams &)
void LoadData(const TSeqRange &range, TModelUnit scale, bool isSeqView)
static string GenerateBinSignature(const string &title, const string &annot_name, TGi gi, TSeqRange range, objects::NSnpBins::TBinType BinType)
objects::NSnpBins::TBinType GetType() const
const string & GetTitle() const
virtual string GetExtensionIdentifier() const
returns the unique human-readable identifier for the extension the id should use lowercase letters se...
virtual TTrackMap CreateTracks(SConstScopedObject &object, ISGDataSourceContext *ds_context, CRenderingContext *r_cntx, const SExtraParams ¶ms=SExtraParams(), const TAnnotMetaDataList &src_annots=TAnnotMetaDataList()) const
CBinsTrackFactory.
CRef< objects::CTrackConfigSet > GetSettings(const string &profile, const TKeyValuePairs &settings, const CTempTrackProxy *track_proxy) const
virtual string GetExtensionLabel() const
returns a displayable label for this extension ( please capitalize the key words - "My Extension" )
virtual void GetMatchedAnnots(const TAnnotMetaDataList &src_annots, const ILayoutTrackFactory::SExtraParams ¶ms, TAnnotNameTitleMap &out_annots) const
virtual const CTrackTypeInfo & GetThisTypeInfo() const
void x_ProcessBinsJobResult(const SBinsJobResult &result)
objects::SAnnotSelector m_FeatSel
virtual void x_OnIconClicked(TIconID id)
Mouse left-click event handler on an icon.
@ eLayout_Labels
Show labels and cascade features (CLayeredLayoutPolicy)
static CTrackTypeInfo m_TypeInfo
CBinsTrack.
virtual string GetFullTitle() const
get a more meaningful title.
void SetAnnot(const string &name)
virtual void x_UpdateData()
update track content.
virtual void x_OnJobCompleted(CAppJobNotification ¬ify)
CBinsTrack(CBinsDS *ds, CRenderingContext *r_cntx)
bool x_IsOverviewMode() const
virtual void x_LoadSettings(const string &preset_style, const TKeyValuePairs &settings)
load the track settings.
virtual void GetHTMLActiveAreas(TAreaVector *p_areas) const
Get html active areas.
virtual const CTrackTypeInfo & GetTypeInfo() const
virtual CHTMLActiveArea * InitHTMLActiveArea(TAreaVector *p_areas) const
Initialize the HTML active area for a track.
objects::NSnpBins::TBinType m_BinType
CDataTrack - a abstract base class for layout tracks which need to deal with background data retrieva...
virtual void Update(bool layout_only)
Update content and layout including the bounding box.
const string & GetTitle() const
virtual void GetHTMLActiveAreas(TAreaVector *p_areas) const
Get html active areas.
void Add(CSeqGlyph *obj)
Append a layout object to the end.
const CLayoutGroup::TObjectList & GetChildren() const
CRef< CLayeredLayout > m_Layered
@ fNoNavigation
track title won't show navigation controls
@ fNoPin
tooltip is not pinnable
@ fNoSelection
the object can't be selected
int m_Flags
area flags, will need to replace m_Type
const string & GetTitle() const
void SetConfig(const CSeqGraphicConfig &config)
void x_DeregisterIcon(TIconID id)
deregister an icon if already registered.
@ eIcon_Layout
icon id for setting layout style
ILayoutTrackHost * m_LTHost
Top level host owning the tracks.
string GetTitle() const
get the track title.
void x_OnLayoutChanged()
update the layout.
TTrackAttrFlags m_Attrs
various track attributes
virtual void x_OnIconClicked(TIconID id)
Mouse left-click event handler on an icon.
@ fNavigable
Track has navigation controls.
TModelUnit x_GetTBHeight() const
Get title bar height including margin.
void SetMsg(const string &msg)
CConstRef< CSeqGraphicConfig > x_GetGlobalConfig() const
Method for getting global configuration from rendering context.
CRef< CSeqGraphicConfig > m_gConfig
global configuration.
int TIconID
use int as TIconID instead of EIconID.
virtual CHTMLActiveArea * InitHTMLActiveArea(TAreaVector *p_areas) const
Initialize the HTML active area for a track.
void x_RegisterIcon(const SIconInfo &icon)
register track icons.
CRenderingContext offers the basic context and utility methods for rendering layout objects in featur...
const TSeqRange & GetVisSeqRange() const
const TModelUnit & GetScale() const
bool WillSeqLetterFit() const
is it enougth space to sequence letters.
virtual bool AllJobsFinished() const
void SetJobListener(CEventHandler *listener)
Set JobDispatcher listener.
objects::CBioseq_Handle & GetBioseqHandle(void)
Get the underlying bioseq handle.
virtual void ClearJobID(TJobID job_id)
void SetDepth(int depth)
Set the annotation selector resolving depth.
virtual void DeleteAllJobs()
Remove waiting jobs from queue or cancel the unfinished jobs.
void SetAdaptive(bool flag)
class CSeqGlyph defines an interface that wraps a rectilinear abstract object.
void x_InitHTMLActiveArea(CHTMLActiveArea &area) const
initialize the basic information for a given active area.
CRenderingContext * m_Context
the rendering context
vector< CHTMLActiveArea > TAreaVector
list< CRef< CSeqGlyph > > TObjects
int GetObjectSpace() const
CTrackTypeInfo - holds description of a layout track type.
const string & GetDescr() const
const string & GetId() const
static void GetMatchedAnnots(const TAnnotMetaDataList &src_annots, const vector< string > &target_annots, const string &annot_type, const string &track_type, TAnnotNameTitleMap &out_annots)
Help function to find matched annotations.
virtual void LTH_PopupMenu(wxMenu *menu)=0
show track-specific context menu.
ISGDSManager is seqgraphic data source manage that serves as an data source context.
virtual CIRef< ISGDataSource > GetDS(const string &type, SConstScopedObject &object)=0
Get a seqgraphic data source instance of the specified type.
objects and functions for dealing with variation (historically called SNP) bins
@ eGAP
dbGaP analysis files
@ eGCAT
NHGRI GWAS Catalog Track (AKA Association Results)
iterator_bool insert(const value_type &val)
container_type::value_type value_type
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define ERR_POST(message)
Error posting with file, line number information but without error codes.
static objects::SAnnotSelector GetAnnotSelector(TAnnotFlags flags=0)
request an annotation selector for a given type
CRef< CObject > GetResult() const
returns non-null pointer only if Completed or Running and has temporary results available
const CSeq_id & GetId(const CSeq_loc &loc, CScope *scope)
If all CSeq_ids embedded in CSeq_loc refer to the same CBioseq, returns the first CSeq_id found,...
TGi GetGiForId(const objects::CSeq_id &id, CScope &scope, EGetIdType flags=0)
Given a Seq-id retrieve the corresponding GI.
@ eGetId_ForceGi
return only a gi-based seq-id
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
Tdata & Set(void)
Assign a value to data member.
const struct ncbi::grid::netcache::search::fields::SIZE size
T bound(T x_, T xlo_, T xhi_)
TIconID m_Id
must be unique within the context
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