65 "Graphical View LD Block Track");
70 , m_IconFilter(eIcon_Settings,
"Filters",
true,
"track_settings")
89 static double kNPP_Cutoff= 50;
102 bool bIsLayoutOnlyChange =
true;
108 lenExp = (lenExp<1) ? 0 : (
int)
log10((
float)lenExp);
118 if (dlg.ShowModal() == wxID_OK) {
124 bIsLayoutOnlyChange =
false;
131 Update(bIsLayoutOnlyChange);
162 ERR_POST(
"CLDBlockTrack::x_OnJobCompleted() notification for job \
163 does not contain results.");
232 if ( !src_annots.
empty() ) {
247 if ( !iter->second.empty() ) {
248 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< CInlineLayout > m_Inline
CRef< CSimpleLayout > m_Simple
void SetLayoutPolicy(ILayoutPolicy *policy)
Set policy on how to deploy the layout of its children.
void SetConfig(const CSeqGraphicConfig &config)
void SetName(const string &)
void LoadData(const SParams ¶m)
static void GetTrackNames(SConstScopedObject &object, TAnnotNameTitleMap &names, const TSeqRange &range, const ILayoutTrackFactory::SExtraParams ¶ms)
virtual TTrackMap CreateTracks(SConstScopedObject &object, ISGDataSourceContext *ds_context, CRenderingContext *r_cntx, const SExtraParams ¶ms=SExtraParams(), const TAnnotMetaDataList &src_annots=TAnnotMetaDataList()) const
CLDBlockTrackFactory.
virtual void GetMatchedAnnots(const TAnnotMetaDataList &src_annots, const ILayoutTrackFactory::SExtraParams ¶ms, TAnnotNameTitleMap &out_annots) const
virtual string GetExtensionIdentifier() const
returns the unique human-readable identifier for the extension the id should use lowercase letters se...
virtual string GetExtensionLabel() const
returns a displayable label for this extension ( please capitalize the key words - "My Extension" )
CLDBlockDS::SParams m_Params
bool x_IsOverviewMode() const
@ eLayout_Labels
Show labels and cascade features (CLayeredLayoutPolicy)
virtual void x_UpdateData()
update track content.
virtual void x_OnJobCompleted(CAppJobNotification ¬ify)
virtual void x_OnIconClicked(TIconID id)
Mouse left-click event handler on an icon.
static CTrackTypeInfo m_TypeInfo
CLDBlockTrack.
virtual const CTrackTypeInfo & GetTypeInfo() const
CLDBlockTrack(CLDBlockDS *ds, CRenderingContext *r_cntx)
void x_CreateLayout(const CSGJobResult &result)
CLDFilterParams & GetData()
Data access.
void SetData(const CLDFilterParams &data)
void SetLengthExp(int value)
void SetTrackAttr(TTrackAttrFlags flags)
@ eIcon_Settings
icon id for track settings
void x_OnLayoutChanged()
update the layout.
void SetConfig(CRef< CSeqGraphicConfig > conf)
virtual void x_OnIconClicked(TIconID id)
Mouse left-click event handler on an icon.
@ fFullTrack
track occupying the full horizontal screen.
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.
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)
CSGJobResult – the data structure holding the seqgraphic job results.
class CSeqGlyph defines an interface that wraps a rectilinear abstract object.
CRenderingContext * m_Context
the rendering context
const CRenderingContext * GetRenderingContext() const
Get the rendering context.
list< CRef< CSeqGlyph > > TObjects
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.
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.
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.
unsigned int
A callback function used to compare two keys in a database.
CRenderingContext * r_cntx