62 "A haplotype map of the human genome \
63 which describes the common patterns of human DNA sequence variation.");
68 , m_IconLayout(eIcon_Layout,
"Layout",
true,
"track_layout")
87 static double kNPP_Cutoff= 50;
100 bool bIsLayoutOnlyChange =
true;
112 wxMenuItemList& item_list = menu.GetMenuItems();
113 ITERATE (wxMenuItemList, iter, item_list) {
115 if ((*iter)->IsChecked() &&
id !=
m_eLayout) {
121 bIsLayoutOnlyChange =
false;
133 Update(bIsLayoutOnlyChange);
167 ERR_POST(
"CHapmapTrack::x_OnJobCompleted() notification for job \
168 does not contain results.");
248 if ( !src_annots.
empty() ) {
264 if ( !iter->second.empty() ) {
265 track->SetTitle(iter->second);
CAppJobNotification Notification send by CAppJobEventTranslator.
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.
void Add(CSeqGlyph *obj)
Append a layout object to the end.
CRef< CLayeredLayout > m_Layered
virtual string GetExtensionLabel() const
returns a displayable label for this extension ( please capitalize the key words - "My Extension" )
CRef< objects::CTrackConfigSet > GetSettings(const string &profile, const TKeyValuePairs &settings, const CTempTrackProxy *track_proxy) const
virtual string GetExtensionIdentifier() const
returns the unique human-readable identifier for the extension the id should use lowercase letters se...
virtual const CTrackTypeInfo & GetThisTypeInfo() const
virtual void GetMatchedAnnots(const TAnnotMetaDataList &src_annots, const ILayoutTrackFactory::SExtraParams ¶ms, TAnnotNameTitleMap &out_annots) const
virtual TTrackMap CreateTracks(SConstScopedObject &object, ISGDataSourceContext *ds_context, CRenderingContext *r_cntx, const SExtraParams ¶ms=SExtraParams(), const TAnnotMetaDataList &src_annots=TAnnotMetaDataList()) const
CHapmapTrackFactory.
virtual void x_LoadSettings(const string &preset_style, const TKeyValuePairs &settings)
load the track settings.
virtual void x_UpdateData()
update track content.
objects::SAnnotSelector m_FeatSel
@ eLayout_Labels
Show labels and cascade features (CLayeredLayoutPolicy)
virtual const CTrackTypeInfo & GetTypeInfo() const
bool x_IsOverviewMode() const
static CTrackTypeInfo m_TypeInfo
CHapmapTrack.
void x_CreateLayout(const SHapmapJobResult &result)
virtual void x_OnIconClicked(TIconID id)
Mouse left-click event handler on an icon.
CHapmapTrack(CSGHapmapDS *ds, CRenderingContext *r_cntx)
virtual void x_OnJobCompleted(CAppJobNotification ¬ify)
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 m_Msg
special message need to show on title bar
void x_OnLayoutChanged()
update the layout.
virtual void x_OnIconClicked(TIconID id)
Mouse left-click event handler on an icon.
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.
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
virtual bool AllJobsFinished() const
void SetJobListener(CEventHandler *listener)
Set JobDispatcher listener.
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)
void LoadData(const TSeqRange &range, TModelUnit scale, bool preferFeats, bool isOverview)
void SetName(const string &)
static void GetTrackNames(SConstScopedObject &object, TAnnotNameTitleMap &names, const TSeqRange &range, const ILayoutTrackFactory::SExtraParams ¶ms)
class CSeqGlyph defines an interface that wraps a rectilinear abstract object.
CRenderingContext * m_Context
the rendering context
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.
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
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.
TIconID m_Id
must be unique within the context