NCBI C++ ToolKit
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | Private Types | Private Member Functions | Private Attributes | Static Private Attributes | Friends | List of all members
CFeaturePanel Class Reference

Search Toolkit Book for CFeaturePanel

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

+ Inheritance diagram for CFeaturePanel:
+ Collaboration diagram for CFeaturePanel:

Public Types

typedef map< string, stringTTrackSettings
 key-value pair for track settings More...
 
typedef list< TTrackSettingsTTrackSettingsSet
 
typedef list< CWeakRef< CSeqGlyph > > TSelectedGlyphs
 
typedef CSeqGraphicImageInfo TImageInfo
 
- Public Types inherited from CTrackContainer
typedef CTempTrackProxy::TTrackProxies TTrackProxies
 
typedef ILayoutTrackFactory::TTrackMap TTrackMap
 
typedef ILayoutTrackFactory::TAnnotMetaDataList TAnnotMetaDataList
 
typedef list< stringTUsedAnnots
 explicitly named annots used by a track. More...
 
typedef map< string, CIRef< ILayoutTrackFactory > > TFactoryMap
 
typedef vector< stringTNAAs
 
- Public Types inherited from CGlyphContainer
typedef vector< CRef< CCommentGlyph > > TComments
 
typedef set< stringTHighlights
 
typedef map< string, THighlightsTKeyHighlights
 
- Public Types inherited from CLayoutTrack
enum  FTrackAttr {
  fMovable = 1 << 0 , fCollapsible = 1 << 1 , fFrameVisible = 1 << 2 , fShowTitle = 1 << 3 ,
  fShowAlways = 1 << 4 , fFullTrack = 1 << 5 , fNavigable = 1 << 6 , fShowIcons = 1 << 7 ,
  fDefaultAttr
}
 
typedef vector< CConstRef< CSeqGlyph > > TLayObjVector
 
typedef unsigned TTrackAttrFlags
 
typedef list< CRef< CLayoutTrack > > TLayoutTracks
 
typedef map< string, stringTKeyValuePairs
 
- Public Types inherited from CSeqGlyph
enum  ENeighbours { eNghbrs_None = 0x0 , eNghbrs_Left = 0x1 , eNghbrs_Right = 0x2 , eNghbrs_Both = 0x3 }
 
typedef vector< CHTMLActiveAreaTAreaVector
 
typedef list< CRef< CSeqGlyph > > TObjects
 
typedef list< CConstRef< CSeqGlyph > > TConstObjects
 
- Public Types inherited from CObject
enum  EAllocFillMode { eAllocFillNone = 1 , eAllocFillZero , eAllocFillPattern }
 Control filling of newly allocated memory. More...
 
typedef CObjectCounterLocker TLockerType
 Default locker type for CRef. More...
 
typedef atomic< Uint8TCounter
 Counter type is CAtomiCounter. More...
 
typedef Uint8 TCount
 Alias for value type of counter. More...
 
- Public Types inherited from CEventHandler
enum  EDispatch { eDispatch_SelfOnly , eDispatch_AllHandlers , eDispatch_FirstHandler , eDispatch_Default = eDispatch_AllHandlers }
 enum controlling dispatching strategies More...
 
enum  EPoolName {
  ePool_Default = 0 , ePool_Parent , ePool_Child , ePool_Sibling ,
  ePool_NextAvailable
}
 Identifiers for standard pools. More...
 
typedef vector< CEventHandler * > TListeners
 
typedef map< int, TListenersTPools
 
typedef list< AutoPtr< SPostRequest > > TPostRequests
 
typedef std::map< CEventHandler *, intTHandlerToCount
 
typedef void(* FOnPostCallback) ()
 

Public Member Functions

 CFeaturePanel (CRenderingContext *r_cntx, bool cgi_mode)
 
virtual ~CFeaturePanel ()
 
void SetDSContext (ISGDataSourceContext *ds_ctx)
 
void SetInputObject (SConstScopedObject &obj)
 
void SetNonAsnInput (const INonAsnTrackData &data)
 
void ConfigureTracks ()
 
void OnDataChanging ()
 
void OnDataChanged ()
 
void SetSelectedFeats (const TSelectedGlyphs &feats)
 
void SetSelectedCDSFeats (const TSelectedGlyphs &cds_feats)
 
void SetExternalGlyphs (const CSeqGlyph::TObjects &objs)
 
void UpdateGridStep (int step)
 
void SetAssembly (const string &assembly)
 
void ShowConfigureTracksDlg (const string &category)
 
CMappedFeatOrObject FindText (const string &text, bool match_case)
 
virtual void ResetSearch ()
 
void SetServiceLocator (IServiceLocator *s)
 
void SetImageInfo (TImageInfo *info)
 Optional image info structure to return data to (cgi) caller. More...
 
void LoadDefaultTracks ()
 Reset tracks to the original default track list. More...
 
void SaveTrackConfig ()
 
void SetConfigKey (const string &config_key)
 
void SetDiscoverTracks (bool value=true)
 
set< stringGetAnnotNames ()
 
void SetDefaultAssembly (const string &defaultAssembly)
 
bool AssemblyLoaded () const
 
const vector< CRef< objects::CGC_Assembly > > & GetAssemblies () const
 
string GetCurrentAssembly () const
 
CSeqGlyph virtual method.
virtual void Update (bool layout_only)
 Update content and layout including the bounding box. More...
 
virtual CRef< CSeqGlyphHitTest (const TModelPoint &p)
 Hit testing. More...
 
virtual bool HitTestHor (TSeqPos x, const CObject *obj)
 
cgi mode-related methods

Reset the track configuration with input settings.

void SetTrackConfig (const TTrackSettingsSet &settings_set)
 
void SetTrackConfig (const TTrackProxies &track_settings)
 
void SkipGenuineCheck ()
 skip track existence verification. More...
 
void ShowTrack (const string &track_key)
 Turn on an existing track. More...
 
CLayoutTrack public methods.
virtual const CTrackTypeInfoGetTypeInfo () const
 
ITrackInitObserver interface implementation.
virtual void OnTrackInitFinished (const CLayoutTrack *sender)
 
- Public Member Functions inherited from CTrackContainer
 CTrackContainer (CRenderingContext *r_cntx, CFeaturePanelDS *ds=NULL)
 
virtual ~CTrackContainer ()
 
virtual void GetHTMLActiveAreas (TAreaVector *p_areas) const
 Get html active areas. More...
 
virtual void DeleteAllJobs ()
 
virtual bool AllJobsFinished () const
 
bool AllTracksCreated () const
 
void AddTrackProxy (CTempTrackProxy *proxy, bool upgateMsg=true)
 Add a track proxy. More...
 
CTrackProxyAddNewTrack (const string &track_key, const CTrackProxy::TAnnots &annots, const string &disp_name, const string &name="", const string &filter="", const string &sub_key="")
 Add a new empty track proxy. More...
 
void AddNewTrack (CTrackProxy *proxy)
 
void AddTracks (CTempTrackProxy *t_proxy, TTrackMap &tracks)
 add sub tracks after tracks get created. More...
 
void SaveTrackStates (int order)
 Save track states to it proxy. More...
 
void ClearTracks ()
 Remove all tracks. More...
 
string GetUniqueTrackName (const string &name) const
 
CTrackContainerGetChildContainerTrack (const string &name)
 Get a child track container track. More...
 
CFeaturePanelDSGetDS ()
 
void ExpandAll (bool expand)
 expand or collapse this track and its subtracks recursively. More...
 
void ShowAll (bool shown, bool recursive=true)
 turn on/off all children tracks (recursively). More...
 
void SortChildTracksByOrder ()
 
void RemoveEmptyTracks ()
 remove the empty tracks recursively from bottom to top. More...
 
const TTrackProxiesGetSubtrackProxies () const
 CTrackContainer inline methods. More...
 
TTrackProxiesGetSubtrackProxies ()
 
void SetSubtrackProxies (const TTrackProxies &proxies)
 
void SetConfigMgr (CTrackConfigManager *cfg_mgr)
 
CTrackConfigManagerGetConfigMgr ()
 
const CTrackConfigManagerGetConfigMgr () const
 
void SetTrackInitDone (bool f)
 
bool IsTrackInitDone () const
 
void SetAnnotLevel (int level)
 
int GetAnnotLevel () const
 
void SetAdaptive (bool flag)
 
bool GetAdaptive () const
 
void SetSkipGenuineCheck (bool flag)
 
bool GetSkipGenuineCheck () const
 
virtual bool IsOverlay () const
 
void ToggleTracks (vector< string > &naAccessions)
 
void LoadNATracks (CTempTrackProxy *t_proxy, const vector< string > &accessions)
 
void LoadNATracks (CDataTrack *child, const vector< string > &naAccessions)
 
void OnMenuToggleTrack (int index)
 
void OnMenuTrackSettings (int index)
 
virtual void ReinitNASubtracks (TAnnotMetaDataList &, bool)
 
void InitNATracks (const TAnnotMetaDataList &annots, bool makeContainersVisible)
 
template<typename Tr >
void Traverse (Tr &&tr, bool visible)
 
void SyncSettings (TTrackProxies &dst_proxies, int level) const
 synchronize and merge track settings. More...
 
virtual void SetTrack (CLayoutTrack *track, int order, bool shown=true)
 Replace the track by the given track order. More...
 
virtual void CloneTrack (int order, const string &track_tile)
 Duplicate an existing track. More...
 
virtual void RenameChildTrack (int order, const string &new_name)
 Rename a child track. More...
 
virtual void RemoveTrack (int order, bool immediately=true)
 completely remove a track from the hierachical tree. More...
 
virtual void CloseTrack (int order)
 Close a track. More...
 
virtual void MoveUp (int order)
 move a track up by 1. More...
 
virtual void MoveDown (int order)
 move a track down by 1. More...
 
virtual void MoveTrackToTop (int order)
 move a track up by 1. More...
 
virtual void MoveTrackToBottom (int order)
 move a track down by 1. More...
 
void MoveTrack (int from, int to)
 
virtual bool HasSubtracks () const
 Has any real subtracks. More...
 
virtual bool NoSubtrackEver () const
 Will have no subtrack for ever. More...
 
void OnSelectAll ()
 
void OnDeselectAll ()
 
void OnRevertSelection ()
 
void OnMore ()
 
virtual void OnToggleTrack (int order)
 
virtual void OnTrackSettings (int order)
 
virtual CRef< CSGGenBankDSGetDataSource ()
 Method for accessing the data source. More...
 
virtual CConstRef< CSGGenBankDSGetDataSource () const
 
- Public Member Functions inherited from CDataTrack
 CDataTrack (CRenderingContext *r_cntx)
 
virtual ~CDataTrack ()
 
void OnAJNotification (CEvent *evt)
 event handlers for job notification event. More...
 
void OnAJProgress (CEvent *evt)
 
void SetVisRange (const TSeqRange &range)
 
- Public Member Functions inherited from CGlyphContainer
 CGlyphContainer (CRenderingContext *r_cntx)
 
virtual ~CGlyphContainer ()
 
void Add (CSeqGlyph *obj)
 Append a layout object to the end. More...
 
void SetObjects (const CLayoutGroup::TObjectList &objs)
 
virtual void SetComments (const string &comment_str)
 set comments. More...
 
virtual void SetHighlights (const string &hl_str)
 set a list of 'object' need to be highlighted. More...
 
void SetCommentGlyphs (const CSeqGlyph::TObjects &objs, CRef< CCommentConfig > config)
 
void ResetCommentGlyph ()
 
void SetLabelGlyphs (const CSeqGlyph::TObjects &objs, CRef< CCommentConfig > config)
 
void ResetLabelGlyph ()
 
const THighlightsGetHighlights () const
 
const TKeyHighlightsGetHighlightsByKey () const
 
CLayoutGroupSetGroup ()
 
const CLayoutGroupGetGroup () const
 
CLayoutGroup::TObjectListSetChildren ()
 
const CLayoutGroup::TObjectListGetChildren () const
 
bool Empty () const
 
void SetLayoutPolicy (ILayoutPolicy *policy)
 Set policy on how to deploy the layout of its children. More...
 
virtual bool Intersects (const TModelRect &rect, TConstObjects &objs) const
 Intersect testing. More...
 
virtual bool Accept (IGlyphVisitor *visitor)
 Interface for accepting an IGlyphVisitor. More...
 
- Public Member Functions inherited from CLayoutTrack
 CLayoutTrack (CRenderingContext *r_cntx)
 
virtual ~CLayoutTrack ()
 
void LoadProfile (const string &profile_str)
 set track profile and load settings. More...
 
void SaveProfile ()
 
void SetProfile (const string &preset_style)
 CLayoutTrack inline method implmentation. More...
 
const stringGetProfile () const
 
virtual string GetFullTitle () const
 get a more meaningful title. More...
 
string GetTitle () const
 get the track title. More...
 
const TTrackErrorStatusGetErrorStatus () const
 
void SetErrorStatus (const TTrackErrorStatus &ErrorStatus)
 
bool isInErrorStatus () const
 
bool isRmtBased () const
 
bool isRemotePath () const
 
virtual CHTMLActiveAreaInitHTMLActiveArea (TAreaVector *p_areas) const
 Initialize the HTML active area for a track. More...
 
void MouseOut ()
 
bool OnMotion (const TModelPoint &pt)
 
bool GetShowTitle () const
 
void SetShowTitle (bool flag)
 
void SetConfig (CRef< CSeqGraphicConfig > conf)
 
int GetIndent () const
 
void SetIndent (int indent)
 
void SetMsg (const string &msg)
 
void SetParentTrack (CLayoutTrack *parent)
 
CLayoutTrackGetParentTrack ()
 
const CLayoutTrackGetParentTrack () const
 
bool IsOn () const
 
bool IsExpanded () const
 
bool IsMovable () const
 
bool IsCollapsible () const
 
void SetShow (bool shown)
 set the flag only. More...
 
void SetExpanded (bool f)
 
void SetShowFrame (bool show)
 
void MoveTo (TModelUnit y)
 
void SetTrackAttr (TTrackAttrFlags flags)
 
void SetTitle (const string &label, const string &default_title=NcbiEmptyString)
 
void SetIsBlast (bool isBlast)
 
void SetHost (ILayoutTrackHost *host)
 
void SetOrder (int order)
 
int GetOrder () const
 
void SetId (const string &id)
 
const stringGetId () const
 
void CloseMe ()
 close this track. More...
 
void ShowMe ()
 
void Expand (bool expand)
 Collapse or expand the track. More...
 
virtual bool OnLeftDown (const TModelPoint &p)
 
virtual bool OnLeftDblClick (const TModelPoint &p)
 
virtual bool NeedTooltip (const TModelPoint &p, ITooltipFormatter &tt, string &t_title) const
 Check if need to show tooltip. More...
 
virtual void GetTooltip (const TModelPoint &p, ITooltipFormatter &tt, string &t_title) const
 Get the tooltip if available. More...
 
- Public Member Functions inherited from CSeqGlyph
 CSeqGlyph ()
 
virtual ~CSeqGlyph ()
 
virtual TSeqRange GetRange (void) const
 get the total range of this object. More...
 
virtual bool SetSelected (bool flag)
 Select or deselect this glyph. More...
 
virtual void SetHideLabel (bool)
 Force to hide label. More...
 
virtual bool HasSideLabel () const
 Query if there is label and label is on the side. More...
 
virtual bool IsClickable () const
 Query if this glyph is clickable. More...
 
virtual bool LessBySeqPos (const CSeqGlyph &obj) const
 compare this object to another based on glyph sequence position. More...
 
bool LessByPos (const CSeqGlyph &obj) const
 compare this object to another, based on glyph geometry position. More...
 
bool LessBySeqSize (const CSeqGlyph &obj) const
 compare this object to another, based on sequence size. More...
 
bool LessBySize (const CSeqGlyph &obj) const
 compare this object to another, based on geometry size. More...
 
void Draw () const
 render the layout. More...
 
TModelRect GetModelRect () const
 get the bounding box. More...
 
bool IsIn (const TModelPoint &p) const
 Hit test for points in PARENT COORD. More...
 
bool IsIn (TModelUnit x, TModelUnit y) const
 
bool IsInHor (TModelUnit x) const
 
void SetRender (IGlyphRenderer *renderer)
 set customized renderer for this layout objects. More...
 
void SetRenderingContext (CRenderingContext *context)
 Set the rendering context. More...
 
const CRenderingContextGetRenderingContext () const
 Get the rendering context. More...
 
void SetTearline (size_t Tearline)
 tearline factor – used to limit a list of glyphs More...
 
size_t GetTearline () const
 
void SetTearlineText (const string &sTearlineText)
 tearline text – if set, is appended to the glyph name (does not naffect processing otherwise) More...
 
string GetTearlineText () const
 
void SetRowNum (size_t cur_row)
 
size_t GetRowNum () const
 
void SetVisible (size_t v)
 
size_t GetVisible () const
 
int GetLevel () const
 
void SetLevel (int Level)
 
virtual string GetPName () const
 persistent name of the glyph should not depend on the instance of the glyph, but should uniquely reflect its contents so two glyphs having the same contents will have the same name currently used to track isDrawn() status for expandable glyphs default implementation returns an empty string implementations exist for CFeatGlyph (name of the contained feature) and CLayoutGroup (concatenation of all sorted children names) More...
 
float GetFadeFactor () const
 
virtual bool OnLeftUp (const TModelPoint &)
 
virtual bool OnContextMenu (wxContextMenuEvent &event)
 
bool IsSelected () const
 
bool IsHighlighted () const
 
CRgbaColorGetHighlightsColor () const
 
virtual TModelUnit GetHeight () const
 
virtual TModelUnit GetWidth () const
 
virtual TModelUnit GetLeft () const
 
virtual TModelUnit GetTop () const
 
virtual TModelUnit GetRight () const
 
virtual TModelUnit GetBottom () const
 
const TModelPointGetPos () const
 
void GetPosInWorld (TModelPoint &pos) const
 Get top left position in world coordinate. More...
 
const CSeqGlyphGetParent (void) const
 
CSeqGlyphGetParent (void)
 
ENeighbours GetNeighbours () const
 
void SetHighlighted (bool flag)
 
void SetHighlightsColor (const CRgbaColor &hl_color)
 
void SetHighlightsColor (const string &hl_color_str)
 
virtual void SetWidth (TModelUnit w)
 
virtual void SetHeight (TModelUnit h)
 
virtual void SetLeft (TModelUnit l)
 
virtual void SetTop (TModelUnit b)
 
virtual void SetPos (const TModelPoint &upper_left)
 
void SetParent (CSeqGlyph *p)
 
CSeqGlyphSetParent (void)
 
void SetNeighbours (ENeighbours neighbours)
 
- Public Member Functions inherited from CObjectEx
 CObjectEx (void)
 
virtual ~CObjectEx (void)
 
- Public Member Functions inherited from CObject
 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...
 
- Public Member Functions inherited from CDebugDumpable
 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
 
- Public Member Functions inherited from CWeakObject
 CWeakObject (void)
 
virtual ~CWeakObject (void)
 
CPtrToObjectProxyGetPtrProxy (void) const
 Get pointer to proxy object containing pointer to this object. More...
 
- Public Member Functions inherited from CEventHandler
 CEventHandler ()
 CEventHandler. More...
 
virtual ~CEventHandler ()
 
virtual void AddListener (CEventHandler *listener, int pool_name=ePool_Default)
 Add a listener. More...
 
virtual void RemoveListener (CEventHandler *listener)
 Remove a listener. More...
 
virtual void RemoveAllListeners (void)
 
virtual bool HasListener (CEventHandler *listener, int pool_name=ePool_Default) const
 returns "true" if the given listener belongs to the specified pool More...
 
virtual const TListenersGetListeners (int pool_name=ePool_Default) const
 returns a set of listeners fro the specified pool More...
 
virtual bool OnEvent (CEvent *evt)
 Processes en event. Returns "true" if event has been processed. More...
 
virtual bool Dispatch (CEvent *evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default)
 Dispatches an event to the listeners (but does not handle it). More...
 
virtual bool Send (CEvent *evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default)
 Sends an event synchronously. More...
 
virtual bool Send (CEvent *evt, int pool_name)
 
void Post (CRef< CEvent > evt, EDispatch disp_how=eDispatch_Default, int pool_name=ePool_Default)
 Handles an event asynchronously (process and/or dispatch). More...
 
- Public Member Functions inherited from ITrackContainer
virtual ~ITrackContainer ()
 
- Public Member Functions inherited from ITrackInitObserver
virtual ~ITrackInitObserver ()
 

Protected Member Functions

virtual void x_Draw () const
 The default renderer for this layout object. More...
 
void x_InitNATracks (bool makeContainersVisible)
 
data track pure virtual methods.
virtual bool x_IsJobNeeded (CAppJobDispatcher::TJobID id) const
 
virtual void x_OnJobCompleted (CAppJobNotification &notify)
 
CLayoutTrack virtual methods

make sure we never collapse feature panel

virtual void x_Expand (bool)
 Collapse or expand the track. More...
 
virtual void x_LoadSettings (const string &preset_style, const TKeyValuePairs &settings)
 load the track settings. More...
 
virtual void x_SaveSettings (const string &preset_style)
 save the track settings to a profile string. More...
 
virtual bool x_Empty () const
 
virtual void x_GetTBRect (TModelRect &rect) const
 Get title bar rectange exclude top margin. More...
 
virtual void x_RenderTitleBar () const
 Method for rendering the track title bar. More...
 
virtual void x_OnIconClicked (TIconID id)
 override method in CLayoutTrack to handle speical cases. More...
 
- Protected Member Functions inherited from CTrackContainer
template<typename Tr >
void x_Traverse (Tr &&tr, bool visible)
 
CRef< CTempTrackProxyx_GetMenuTrack (int index)
 
void x_CreateTracksMenu (wxMenu &menu, TIconID id)
 
virtual void x_OnAllJobsFinished ()
 actions to take on all job finished. More...
 
virtual void x_ReinitSubtracks ()
 reinitialize all subtracks if necessary. More...
 
void x_ReinitTrack (CTrackProxy *t_proxy)
 reinitialize a given subtrack More...
 
void x_UpdateMsg ()
 udpate message in track title bar. More...
 
CTrackContainerx_ConvertToContainer (CTempTrackProxy *proxy)
 
virtual bool x_ShowTitle () const
 Need to preserve title space and show the title. More...
 
void x_ReinitNATrack (CTempTrackProxy *t_proxy, TAnnotMetaDataList &annots, bool makeContainersVisible)
 
void x_MakeTopLevelTracks (CGlyphContainer *featurePanel, TTrackProxies &dst_proxies, int &order, const string &base_name, int indent)
 Make all the tracks at different levels as top-level tracks. More...
 
virtual void x_UpdateData ()
 update track content. More...
 
- Protected Member Functions inherited from CDataTrack
 DECLARE_EVENT_MAP ()
 
void x_UpdateLayout ()
 
const TSeqRangex_GetVisRange () const
 
virtual void x_OnJobFailed (CAppJobNotification &notify)
 
- Protected Member Functions inherited from CGlyphContainer
virtual void x_UpdateBoundingBox ()
 Update the bounding box assuming children's sizes are fixed if any. More...
 
virtual string x_GetHistMsg () const
 Histogram configuration (linear, log, etc) is also on the title bar but multiple track types can have histograms, so we use virtual functinons. More...
 
virtual void x_RenderContent () const
 The content rendering must be implemented in the derived layout tracks. More...
 
virtual void x_ClearContent ()
 
- Protected Member Functions inherited from CLayoutTrack
TModelUnit x_GetTBHeight () const
 Get title bar height including margin. More...
 
CConstRef< CSeqGraphicConfigx_GetGlobalConfig () const
 Method for getting global configuration from rendering context. More...
 
void x_OnLayoutChanged ()
 update the layout. More...
 
virtual void x_RenderProgressBar () const
 Method for rendering the job loading or layout generating progress. More...
 
virtual void x_RenderIcon (TIconID id, bool highlighted, bool lite_version=false) const
 Render track icons. More...
 
virtual int x_GetIconState (TIconID id) const
 Get current status for a given button. More...
 
void x_RegisterIcon (const SIconInfo &icon)
 register track icons. More...
 
void x_DeregisterIcon (TIconID id)
 deregister an icon if already registered. More...
 
void x_EnableIcon (TIconID id, bool enabled)
 Enable/disable an existing icon. More...
 
void x_ShowIcon (TIconID id, bool shown)
 Show/hide an existing icon. More...
 
int x_HitIconTest (const TModelPoint &p) const
 hit any icon?. More...
 
bool x_HitTitleBar (const TModelPoint &p) const
 hit the title bar?. More...
 
void x_SetStatus (const string &msg, int progress)
 
void x_SetStartStatus ()
 
void x_SetFinishStatus ()
 
bool x_IsNCBITrack () const
 Indicates whether the track is NCBI track. More...
 
- Protected Member Functions inherited from CSeqGlyph
virtual void x_DrawHighlight () const
 
void x_DrawInnerLabelColumns (TModelUnit base, const string &label, const CRgbaColor &color, const CGlTextureFont &font, bool side_label_visible) const
 
void x_DrawInnerLabels (TModelUnit base, const string &label, const CRgbaColor &color, const CGlTextureFont &font, bool side_label_visible, bool inside_only, vector< TModelRange > *labels_ranges=nullptr, TSeqRange *interval=nullptr, bool XOR_mode=false) const
 
void x_DrawTruncatedLabel (const string &label, const CGlTextureFont &font, TModelUnit width, TModelUnit x, TModelUnit y, vector< TModelRange > *labels_ranges=nullptr) const
 
void x_DrawException () const
 Draw a shading background to indicate exception. More...
 
void x_Parent2Local (TModelPoint &pnt) const
 Transform the coordiante from parent coord. to local coord. More...
 
void x_Parent2Local (TModelUnit &, TModelUnit &y) const
 Transform the coordiante from parent coord. to local coord. More...
 
void x_Parent2Local (TModelRect &rect) const
 Transform the coordiante from parent coord. to local coord. More...
 
void x_World2Local (TModelPoint &p) const
 Transform the coordiante from world coord. to local coord. More...
 
void x_World2Local (TModelUnit &x, TModelUnit &y) const
 
void x_Local2World (TModelPoint &p) const
 Transform the coordiantes from local coord. to world coord. More...
 
void x_Local2World (TModelUnit &x, TModelUnit &y) const
 
void x_InitHTMLActiveArea (CHTMLActiveArea &area) const
 initialize the basic information for a given active area. More...
 
bool x_Visible_V () const
 is this glyph visible in vertical direction? More...
 
template<class T >
bool x_IntersectVisible (const CRange< T > &SeqRange, T &from, T &to) const
 
- Protected Member Functions inherited from CObject
virtual void DeleteThis (void)
 Virtual method "deleting" this object. More...
 
- Protected Member Functions inherited from CWeakObject
void CleanWeakRefs (void) const
 Method cleaning all CWeakRefs referencing at this moment to the object After calling to this method all existing CWeakRefs referencing to the object will return NULL, so it effectively will be equal to deleting the object. More...
 
- Protected Member Functions inherited from CEventHandler
virtual const SEvtMapGetEventMap () const
 
void x_DeclareDead ()
 Removes itself unavailable for async event delivery. More...
 
void x_AddListenerToPool (CEventHandler *listener, int pool_name)
 

Protected Attributes

CIRef< ISGDataSourceContextm_DSContext
 
SConstScopedObject m_InputObj
 
- Protected Attributes inherited from CTrackContainer
CRef< CFeaturePanelDSm_DS
 
TTrackProxies m_TrackProxies
 all the tracks including on and off. More...
 
- Protected Attributes inherited from CGlyphContainer
CLayoutGroup m_Group
 
CRef< CSimpleLayoutm_Simple
 
CRef< CInlineLayoutm_Inline
 
CRef< CLayeredLayoutm_Layered
 
- Protected Attributes inherited from CLayoutTrack
int m_Order
 track order number More...
 
string m_Id
 track identifier More...
 
bool m_On
 is this track shown More...
 
bool m_ShowFrame
 need to draw frame, not title More...
 
bool m_Expanded
 is this track in expanded state More...
 
TIcons m_Icons
 registered icon info More...
 
int m_HighlightedIcon
 the highlighted icon index More...
 
TTrackAttrFlags m_Attrs
 various track attributes More...
 
ILayoutTrackHostm_LTHost
 Top level host owning the tracks. More...
 
string m_Title
 track title More...
 
bool m_isBlast {false}
 true if the track is known to be generated and uploaded by BLAST More...
 
string m_DefaultTitle
 Default track title. More...
 
string m_Msg
 special message need to show on title bar More...
 
int m_Progress
 any job progress index (0 - 100) More...
 
int m_IndentLevel
 track hierachy indentation level. More...
 
TTrackErrorStatus m_ErrorStatus
 
CRef< CSeqGraphicConfigm_gConfig
 global configuration. More...
 
string m_Profile = "Default"
 track setting profile More...
 
- Protected Attributes inherited from CSeqGlyph
CSeqGlyphm_Parent
 parent/child relationships for this feature More...
 
CRenderingContextm_Context
 the rendering context More...
 
unique_ptr< CRgbaColorm_HighlightsColor
 Highlight color. More...
 
ENeighbours m_Neighbours
 Indicates whether the glyph has neighbours. More...
 
- Protected Attributes inherited from CEventHandler
TPools m_Pools
 

Private Types

enum  EFeatPanelIconID { eIcon_Color = eIcon_MaxTrackIconID + 1 , eIcon_Size , eIcon_Decoration , eIcon_Label }
 
typedef int TLevel
 
typedef vector< TLevelTDisplayLevels
 

Private Member Functions

void x_OnLayoutIconClicked ()
 
void x_OnColorIconClicked ()
 
void x_OnSizeIconClicked ()
 
void x_OnDecorationIconClicked ()
 
void x_OnLabelIconClicked ()
 
void x_ConfigureTracks (bool makeContainersVisible=false)
 reset the track status to be ready for reconfiguring layout tracks. More...
 
void x_ConfigureSubtracks_Recursive (CTrackContainer *parent, const TTrackProxies &proxies, int level)
 Create all the exsiting layout tracks. More...
 
CTrackContainerx_ConfigureSubtracks (CTrackContainer *parent, const CTrackProxy *param, int level, const set< string > &usedFeatureSubkeys)
 
void x_LoadSettings ()
 Load settings for feature panel. More...
 
void x_SaveSettings ()
 Save settings for feature panel. More...
 
void x_InitTrackIcons ()
 
void x_RenderHairLineSelections () const
 
bool x_DrawHairLine (int opt, size_t total, const multiset< TSeqPos > &all_pos, TSeqPos pos, TModelUnit line_y) const
 
void x_RenderFeatureGrid () const
 
double x_CalcGridStep (double base_step, double min_step, double max_step) const
 
bool x_GetShowDisplayLevel (TLevel level) const
 Only meaningful if Multilevel is true. More...
 
void x_SetShowDisplayLevel (TLevel level, bool show)
 
CRef< CTrackContainerx_CreateLevelTrack (int level, int id, const string &track_name, bool shown)
 create track container for a given annotation level. More...
 
bool x_NeedSpecialGrid () const
 need show special grid for the selected cds features. More...
 
void x_StartAssemblyJob ()
 
void x_OnAssemblyLoaded (const list< CRef< objects::CGC_Assembly > > &assemblies)
 

Private Attributes

CRef< CExternalLayoutTrackm_ExtLayoutTrack
 
TTrackProxies m_TrackSettings
 initial track layout settings. More...
 
const TSelectedGlyphsm_SelFeatures
 
const TSelectedGlyphsm_SelCDSFeatures
 
CRegularGridGen m_Gen
 graphical grid. More...
 
CRegularGridRenderer m_Grid
 
bool m_IsMultiLevel
 
TDisplayLevels m_DisplayLevels
 
bool m_IconTexInitialized
 flag indicating whether icon textures have been created. More...
 
bool m_CgiMode
 special flag indicating if it is in cgi mode. More...
 
TImageInfom_ImageInfo
 Information about image that can be returned to client. More...
 
string m_ConfigKey
 Base regitry key for panel setting and tracks default "GBPlugins.SeqGraphicFeatPanel" is for SV MSA sets its own "GBPlugins.MSAFeatPanel" to separate MSA and SV tracks. More...
 
bool m_DiscoverTracks = true
 
TAnnotMetaDataList m_NAData
 
bool m_AssemblyLoaded
 
vector< CRef< objects::CGC_Assembly > > m_Assemblies
 
string m_DefaultAssembly
 
string m_search_text
 
bool m_search_match_case = false
 
size_t m_next_result = 0
 
vector< CMappedFeatOrObjectm_search_results
 
IServiceLocatorm_ServiceLocator = 0
 

Static Private Attributes

static CTrackTypeInfo m_TypeInfo
 

Friends

class CConfigureTracksDlg
 

Additional Inherited Members

- Static Public Member Functions inherited from CLayoutTrack
static void RegisterIconImage (const TIconAlias &key, const string &img_file)
 register the image for an icon. More...
 
- Static Public Member Functions inherited from CSeqGlyph
static bool PointInRect (const TModelPoint &p, const TModelRect &rc)
 
static bool PointInRect (TModelUnit x, TModelUnit y, const TModelRect &rc)
 
- Static Public Member Functions inherited from CObject
static NCBI_XNCBI_EXPORT void ThrowNullPointerException (void)
 Define method to throw null pointer exception. More...
 
static NCBI_XNCBI_EXPORT void ThrowNullPointerException (const type_info &type)
 
static EAllocFillMode GetAllocFillMode (void)
 
static void SetAllocFillMode (EAllocFillMode mode)
 
static void SetAllocFillMode (const string &value)
 Set mode from configuration parameter value. More...
 
- Static Public Member Functions inherited from CDebugDumpable
static void EnableDebugDump (bool on)
 
- Static Public Member Functions inherited from CEventHandler
static bool HandlePostRequest ()
 
static void ClearPostQueue ()
 erases all events from the queue More...
 
static void DestroyPostQueue ()
 
- Static Public Attributes inherited from CObject
static const TCount eCounterBitsCanBeDeleted = 1 << 0
 Define possible object states. More...
 
static const TCount eCounterBitsInPlainHeap = 1 << 1
 Heap signature was found. More...
 
static const TCount eCounterBitsPlaceMask
 Mask for 'in heap' state flags. More...
 
static const int eCounterStep = 1 << 2
 Skip over the "in heap" bits. More...
 
static const TCount eCounterValid = TCount(1) << (sizeof(TCount) * 8 - 2)
 Minimal value for valid objects (reference counter is zero) Must be a single bit value. More...
 
static const TCount eCounterStateMask
 Valid object, and object in heap. More...
 
- Protected Types inherited from CLayoutTrack
enum  EIconID {
  eIcon_Close = 0 , eIcon_Expand , eIcon_Content , eIcon_Layout ,
  eIcon_Settings , eIcon_Help , eIcon_MaxTrackIconID = 100
}
 Icon id used in layout track. More...
 
typedef int TIconID
 use int as TIconID instead of EIconID. More...
 
typedef string TIconAlias
 the icon alias used as a key More...
 
typedef vector< SIconInfoTIcons
 
- Static Protected Member Functions inherited from CLayoutTrack
static void RegisterCommonIconImages ()
 register images for the common icons. More...
 
static bool InitIconTextures ()
 initialize OpenGL ttexture objects for icons. More...
 
- Static Protected Attributes inherited from CEventHandler
static const SEvtMap sm_EvtMap
 

Detailed Description

Definition at line 64 of file feature_panel.hpp.

Member Typedef Documentation

◆ TDisplayLevels

typedef vector<TLevel> CFeaturePanel::TDisplayLevels
private

Definition at line 215 of file feature_panel.hpp.

◆ TImageInfo

Definition at line 75 of file feature_panel.hpp.

◆ TLevel

typedef int CFeaturePanel::TLevel
private

Definition at line 214 of file feature_panel.hpp.

◆ TSelectedGlyphs

Definition at line 74 of file feature_panel.hpp.

◆ TTrackSettings

key-value pair for track settings

Definition at line 72 of file feature_panel.hpp.

◆ TTrackSettingsSet

Definition at line 73 of file feature_panel.hpp.

Member Enumeration Documentation

◆ EFeatPanelIconID

Enumerator
eIcon_Color 

color theme

eIcon_Size 

size level

eIcon_Decoration 

feature decoration

eIcon_Label 

feature label position

Definition at line 168 of file feature_panel.hpp.

Constructor & Destructor Documentation

◆ CFeaturePanel()

CFeaturePanel::CFeaturePanel ( CRenderingContext r_cntx,
bool  cgi_mode 
)

◆ ~CFeaturePanel()

CFeaturePanel::~CFeaturePanel ( )
virtual

Member Function Documentation

◆ AssemblyLoaded()

bool CFeaturePanel::AssemblyLoaded ( ) const
inline

Definition at line 283 of file feature_panel.hpp.

References m_AssemblyLoaded.

◆ ConfigureTracks()

void CFeaturePanel::ConfigureTracks ( )

◆ FindText()

CMappedFeatOrObject CFeaturePanel::FindText ( const string text,
bool  match_case 
)

◆ GetAnnotNames()

set< string > CFeaturePanel::GetAnnotNames ( )

◆ GetAssemblies()

const vector<CRef<objects::CGC_Assembly> >& CFeaturePanel::GetAssemblies ( void  ) const
inline

Definition at line 284 of file feature_panel.hpp.

References m_Assemblies.

◆ GetCurrentAssembly()

string CFeaturePanel::GetCurrentAssembly ( ) const

Definition at line 319 of file feature_panel.cpp.

References CFeaturePanelDS::GetAssembly(), and CTrackContainer::m_DS.

◆ GetTypeInfo()

const CTrackTypeInfo & CFeaturePanel::GetTypeInfo ( void  ) const
virtual

Reimplemented from CTrackContainer.

Definition at line 632 of file feature_panel.cpp.

References m_TypeInfo.

◆ HitTest()

CRef< CSeqGlyph > CFeaturePanel::HitTest ( const TModelPoint p)
virtual

Hit testing.

Test whether a given point in PARENT's COORD. SYSTEM falls inside this layout object. Recursive hit testing may happen if this layout object is a container of other layout objects.

Returns
the object that gets hit.

Reimplemented from CGlyphContainer.

Definition at line 266 of file feature_panel.cpp.

References CGlyphContainer::HitTest(), CRef< C, Locker >::Reset(), and CLayoutTrack::x_HitTitleBar().

Referenced by CSeqGraphicRenderer::HitTest(), and CAlnVecRow::x_HitTest().

◆ HitTestHor()

bool CFeaturePanel::HitTestHor ( TSeqPos  x,
const CObject obj 
)
virtual

Reimplemented from CGlyphContainer.

Definition at line 278 of file feature_panel.cpp.

References CGlyphContainer::HitTestHor().

◆ LoadDefaultTracks()

void CFeaturePanel::LoadDefaultTracks ( )

◆ OnDataChanged()

void CFeaturePanel::OnDataChanged ( )

◆ OnDataChanging()

void CFeaturePanel::OnDataChanging ( )

◆ OnTrackInitFinished()

void CFeaturePanel::OnTrackInitFinished ( const CLayoutTrack sender)
virtual

◆ ResetSearch()

void CFeaturePanel::ResetSearch ( )
virtual

◆ SaveTrackConfig()

void CFeaturePanel::SaveTrackConfig ( )

◆ SetAssembly()

void CFeaturePanel::SetAssembly ( const string assembly)

◆ SetConfigKey()

void CFeaturePanel::SetConfigKey ( const string config_key)
inline

Definition at line 320 of file feature_panel.hpp.

References _ASSERT, and m_ConfigKey.

Referenced by CAlnVecRow::x_CreateTrackPanel().

◆ SetDefaultAssembly()

void CFeaturePanel::SetDefaultAssembly ( const string defaultAssembly)
inline

Definition at line 282 of file feature_panel.hpp.

References m_DefaultAssembly.

◆ SetDiscoverTracks()

void CFeaturePanel::SetDiscoverTracks ( bool  value = true)
inline

Definition at line 333 of file feature_panel.hpp.

References m_DiscoverTracks, and rapidjson::value.

◆ SetDSContext()

void CFeaturePanel::SetDSContext ( ISGDataSourceContext ds_ctx)
inline

◆ SetExternalGlyphs()

void CFeaturePanel::SetExternalGlyphs ( const CSeqGlyph::TObjects objs)

◆ SetImageInfo()

void CFeaturePanel::SetImageInfo ( TImageInfo info)
inline

Optional image info structure to return data to (cgi) caller.

Definition at line 106 of file feature_panel.hpp.

References info, and m_ImageInfo.

Referenced by CSeqGraphicRenderer::x_Draw(), and CSeqGraphicRenderer::x_DrawVectorGraphics().

◆ SetInputObject()

void CFeaturePanel::SetInputObject ( SConstScopedObject obj)

◆ SetNonAsnInput()

void CFeaturePanel::SetNonAsnInput ( const INonAsnTrackData data)

◆ SetSelectedCDSFeats()

void CFeaturePanel::SetSelectedCDSFeats ( const TSelectedGlyphs cds_feats)
inline

Definition at line 304 of file feature_panel.hpp.

References m_SelCDSFeatures.

Referenced by CSeqGraphicRenderer::CSeqGraphicRenderer().

◆ SetSelectedFeats()

void CFeaturePanel::SetSelectedFeats ( const TSelectedGlyphs feats)
inline

Definition at line 300 of file feature_panel.hpp.

References m_SelFeatures.

Referenced by CSeqGraphicRenderer::CSeqGraphicRenderer().

◆ SetServiceLocator()

void CFeaturePanel::SetServiceLocator ( IServiceLocator s)
inline

Definition at line 103 of file feature_panel.hpp.

References m_ServiceLocator.

◆ SetTrackConfig() [1/2]

void CFeaturePanel::SetTrackConfig ( const TTrackProxies track_settings)
inline

Definition at line 327 of file feature_panel.hpp.

References m_TrackSettings.

◆ SetTrackConfig() [2/2]

void CFeaturePanel::SetTrackConfig ( const TTrackSettingsSet settings_set)

◆ ShowConfigureTracksDlg()

void CFeaturePanel::ShowConfigureTracksDlg ( const string category)

◆ ShowTrack()

void CFeaturePanel::ShowTrack ( const string track_key)

Turn on an existing track.

Definition at line 620 of file feature_panel.cpp.

References CTempTrackProxy::GetKey(), m_TrackSettings, and CTempTrackProxy::SetShown().

Referenced by CSeqGraphicRenderer::ShowTrack().

◆ SkipGenuineCheck()

void CFeaturePanel::SkipGenuineCheck ( )
inline

skip track existence verification.

Assume tracks exist.

Definition at line 312 of file feature_panel.hpp.

References CTrackContainer::SetSkipGenuineCheck().

Referenced by CSeqGraphicRenderer::SkipGenuineCheck().

◆ Update()

void CFeaturePanel::Update ( bool  )
virtual

◆ UpdateGridStep()

void CFeaturePanel::UpdateGridStep ( int  step)
inline

◆ x_CalcGridStep()

double CFeaturePanel::x_CalcGridStep ( double  base_step,
double  min_step,
double  max_step 
) const
private

Definition at line 1777 of file feature_panel.cpp.

References kSteps, log10(), M, and P.

Referenced by x_RenderFeatureGrid().

◆ x_ConfigureSubtracks()

CTrackContainer * CFeaturePanel::x_ConfigureSubtracks ( CTrackContainer parent,
const CTrackProxy param,
int  level,
const set< string > &  usedFeatureSubkeys 
)
private

◆ x_ConfigureSubtracks_Recursive()

void CFeaturePanel::x_ConfigureSubtracks_Recursive ( CTrackContainer parent,
const TTrackProxies proxies,
int  level 
)
private

Create all the exsiting layout tracks.

Parameters
groupthe container into which the created tracks will be added.
levelthe feature retrieving level used for annotation selector. There are twofold meanings here. If level >=0, then those tracks with concept of level will be initialized with that exact level, all other tracks without level concept won't be initialized. If level == -1, all registered tracks will be initialized. For those tracks with level concept will use adpative annotation selector. if level == -2, only those tracks without level concept will be initialized.

Definition at line 1237 of file feature_panel.cpp.

References CTempTrackProxy::GetChildren(), CTrackConfigManager::GetUsedFeatureKeys(), ITERATE, m_TrackSettings, and x_ConfigureSubtracks().

Referenced by x_ConfigureTracks().

◆ x_ConfigureTracks()

void CFeaturePanel::x_ConfigureTracks ( bool  makeContainersVisible = false)
private

◆ x_CreateLevelTrack()

CRef< CTrackContainer > CFeaturePanel::x_CreateLevelTrack ( int  level,
int  id,
const string track_name,
bool  shown 
)
private

◆ x_Draw()

void CFeaturePanel::x_Draw ( ) const
protectedvirtual

◆ x_DrawHairLine()

bool CFeaturePanel::x_DrawHairLine ( int  opt,
size_t  total,
const multiset< TSeqPos > &  all_pos,
TSeqPos  pos,
TModelUnit  line_y 
) const
private

◆ x_Empty()

bool CFeaturePanel::x_Empty ( ) const
protectedvirtual

Reimplemented from CTrackContainer.

Definition at line 805 of file feature_panel.cpp.

References CGlyphContainer::GetChildren().

◆ x_Expand()

virtual void CFeaturePanel::x_Expand ( bool  expand)
inlineprotectedvirtual

Collapse or expand the track.

Parameters
expandtrue to expand the track, false to collapse it.

Reimplemented from CDataTrack.

Definition at line 157 of file feature_panel.hpp.

◆ x_GetShowDisplayLevel()

bool CFeaturePanel::x_GetShowDisplayLevel ( TLevel  level) const
private

Only meaningful if Multilevel is true.

Definition at line 1827 of file feature_panel.cpp.

References m_DisplayLevels.

◆ x_GetTBRect()

void CFeaturePanel::x_GetTBRect ( TModelRect rc) const
protectedvirtual

◆ x_InitNATracks()

void CFeaturePanel::x_InitNATracks ( bool  makeContainersVisible)
protected

◆ x_InitTrackIcons()

void CFeaturePanel::x_InitTrackIcons ( )
private

◆ x_IsJobNeeded()

bool CFeaturePanel::x_IsJobNeeded ( CAppJobDispatcher::TJobID  id) const
protectedvirtual

◆ x_LoadSettings() [1/2]

void CFeaturePanel::x_LoadSettings ( )
private

Load settings for feature panel.

Definition at line 1359 of file feature_panel.cpp.

References CSGConfigUtils::DefLayout(), CSGConfigUtils::DefTrackProfile(), CUser_field_Base::C_Data::e_Ints, CUser_field_Base::C_Data::e_Str, eIcon_Color, CLayoutTrack::eIcon_Content, eIcon_Decoration, CLayoutTrack::eIcon_Help, eIcon_Label, CLayoutTrack::eIcon_Layout, eIcon_Size, set< Key, Compare >::empty(), Error(), f, NStr::fSplit_Tokenize, CRegistryReadView::GetBool(), CRegistryReadView::GetField(), CSeqGraphicConfig::GetHorizontalGridColor(), CGuiRegistry::GetInstance(), CSeqGraphicConfig::GetLayout(), CException::GetMsg(), CLayoutTrack::GetProfile(), CSGConfigUtils::GetReadView(), CSeqGraphicConfig::GetShowHorzGrid(), CRegistryReadView::GetString(), CSeqGraphicConfig::GetVerticalGridColor(), info, set< Key, Compare >::insert(), ITERATE, k_display_level, k_multi_level, CGuiRegistry::kDecimalDot, CSGConfigUtils::LayoutKey(), CTempTrackProxy::LoadFromRegistry(), LOG_POST, m_ConfigKey, m_DisplayLevels, m_Grid, CLayoutTrack::m_Icons, m_IsMultiLevel, m_TrackSettings, registry, remove_if(), s_StabilizeBaseContainers(), CRegularGridRenderer::SetHorzColor(), CRegularGridRenderer::SetShowHorzGrid(), CRegularGridRenderer::SetShowVertGrid(), CRegularGridRenderer::SetVertColor(), NStr::Split(), NStr::StartsWith(), str(), NStr::StringToInt(), NStr::ToLower(), CSGConfigUtils::TrackProfileKey(), NStr::TruncateSpacesInPlace(), CSGConfigUtils::UserSettingPrefix(), CLayoutTrack::x_GetGlobalConfig(), and x_SetShowDisplayLevel().

Referenced by ConfigureTracks(), LoadDefaultTracks(), and x_LoadSettings().

◆ x_LoadSettings() [2/2]

void CFeaturePanel::x_LoadSettings ( const string preset_style,
const TKeyValuePairs settings 
)
protectedvirtual

load the track settings.

By default, it does nothing.

Parameters
preset_stylea preset setting style name
settingsa list of track-specific setting in a form of key-value pair.

Reimplemented from CLayoutTrack.

Definition at line 811 of file feature_panel.cpp.

References CSGConfigUtils::DefTrackProfile(), CLayoutTrack::SetProfile(), and x_LoadSettings().

◆ x_NeedSpecialGrid()

bool CFeaturePanel::x_NeedSpecialGrid ( ) const
inlineprivate

need show special grid for the selected cds features.

Definition at line 316 of file feature_panel.hpp.

References m_SelCDSFeatures.

Referenced by x_Draw(), and x_RenderFeatureGrid().

◆ x_OnAssemblyLoaded()

void CFeaturePanel::x_OnAssemblyLoaded ( const list< CRef< objects::CGC_Assembly > > &  assemblies)
private

◆ x_OnColorIconClicked()

void CFeaturePanel::x_OnColorIconClicked ( )
private

◆ x_OnDecorationIconClicked()

void CFeaturePanel::x_OnDecorationIconClicked ( )
private

◆ x_OnIconClicked()

void CFeaturePanel::x_OnIconClicked ( TIconID  id)
protectedvirtual

◆ x_OnJobCompleted()

void CFeaturePanel::x_OnJobCompleted ( CAppJobNotification notify)
protectedvirtual

◆ x_OnLabelIconClicked()

void CFeaturePanel::x_OnLabelIconClicked ( )
private

◆ x_OnLayoutIconClicked()

void CFeaturePanel::x_OnLayoutIconClicked ( )
private

◆ x_OnSizeIconClicked()

void CFeaturePanel::x_OnSizeIconClicked ( )
private

◆ x_RenderFeatureGrid()

void CFeaturePanel::x_RenderFeatureGrid ( ) const
private

◆ x_RenderHairLineSelections()

void CFeaturePanel::x_RenderHairLineSelections ( ) const
private

◆ x_RenderTitleBar()

void CFeaturePanel::x_RenderTitleBar ( ) const
protectedvirtual

◆ x_SaveSettings() [1/2]

void CFeaturePanel::x_SaveSettings ( )
private

◆ x_SaveSettings() [2/2]

void CFeaturePanel::x_SaveSettings ( const string preset_style)
protectedvirtual

save the track settings to a profile string.

Reimplemented from CLayoutTrack.

Definition at line 823 of file feature_panel.cpp.

References x_SaveSettings().

◆ x_SetShowDisplayLevel()

void CFeaturePanel::x_SetShowDisplayLevel ( TLevel  level,
bool  show 
)
private

Definition at line 1834 of file feature_panel.cpp.

References m_DisplayLevels.

Referenced by x_LoadSettings().

◆ x_StartAssemblyJob()

void CFeaturePanel::x_StartAssemblyJob ( )
private

Friends And Related Function Documentation

◆ CConfigureTracksDlg

friend class CConfigureTracksDlg
friend

Definition at line 68 of file feature_panel.hpp.

Member Data Documentation

◆ m_Assemblies

vector<CRef<objects::CGC_Assembly> > CFeaturePanel::m_Assemblies
private

Definition at line 275 of file feature_panel.hpp.

Referenced by GetAssemblies(), and x_OnAssemblyLoaded().

◆ m_AssemblyLoaded

bool CFeaturePanel::m_AssemblyLoaded
private

Definition at line 274 of file feature_panel.hpp.

Referenced by AssemblyLoaded(), and x_OnAssemblyLoaded().

◆ m_CgiMode

bool CFeaturePanel::m_CgiMode
private

special flag indicating if it is in cgi mode.

we need this to avoid rendering some glyphs (like texture/icons)

Definition at line 256 of file feature_panel.hpp.

Referenced by ConfigureTracks(), Update(), x_ConfigureSubtracks(), x_Draw(), x_InitTrackIcons(), x_RenderTitleBar(), and ~CFeaturePanel().

◆ m_ConfigKey

string CFeaturePanel::m_ConfigKey
private

Base regitry key for panel setting and tracks default "GBPlugins.SeqGraphicFeatPanel" is for SV MSA sets its own "GBPlugins.MSAFeatPanel" to separate MSA and SV tracks.

Definition at line 266 of file feature_panel.hpp.

Referenced by LoadDefaultTracks(), SetConfigKey(), x_LoadSettings(), and x_SaveSettings().

◆ m_DefaultAssembly

string CFeaturePanel::m_DefaultAssembly
private

Definition at line 276 of file feature_panel.hpp.

Referenced by SetDefaultAssembly(), and x_OnAssemblyLoaded().

◆ m_DiscoverTracks

bool CFeaturePanel::m_DiscoverTracks = true
private

Definition at line 270 of file feature_panel.hpp.

Referenced by ConfigureTracks(), and SetDiscoverTracks().

◆ m_DisplayLevels

TDisplayLevels CFeaturePanel::m_DisplayLevels
private

◆ m_DSContext

CIRef<ISGDataSourceContext> CFeaturePanel::m_DSContext
protected

◆ m_ExtLayoutTrack

CRef<CExternalLayoutTrack> CFeaturePanel::m_ExtLayoutTrack
private

Definition at line 236 of file feature_panel.hpp.

Referenced by SetExternalGlyphs().

◆ m_Gen

CRegularGridGen CFeaturePanel::m_Gen
private

graphical grid.

Definition at line 245 of file feature_panel.hpp.

Referenced by CFeaturePanel(), UpdateGridStep(), and x_Draw().

◆ m_Grid

CRegularGridRenderer CFeaturePanel::m_Grid
private

Definition at line 246 of file feature_panel.hpp.

Referenced by CFeaturePanel(), x_Draw(), and x_LoadSettings().

◆ m_IconTexInitialized

bool CFeaturePanel::m_IconTexInitialized
mutableprivate

flag indicating whether icon textures have been created.

Definition at line 252 of file feature_panel.hpp.

Referenced by x_Draw().

◆ m_ImageInfo

TImageInfo* CFeaturePanel::m_ImageInfo
private

Information about image that can be returned to client.

Definition at line 261 of file feature_panel.hpp.

Referenced by SetImageInfo(), and x_DrawHairLine().

◆ m_InputObj

SConstScopedObject CFeaturePanel::m_InputObj
protected

◆ m_IsMultiLevel

bool CFeaturePanel::m_IsMultiLevel
private

◆ m_NAData

TAnnotMetaDataList CFeaturePanel::m_NAData
private

◆ m_next_result

size_t CFeaturePanel::m_next_result = 0
private

Definition at line 290 of file feature_panel.hpp.

Referenced by FindText(), and ResetSearch().

◆ m_search_match_case

bool CFeaturePanel::m_search_match_case = false
private

Definition at line 289 of file feature_panel.hpp.

Referenced by FindText().

◆ m_search_results

vector<CMappedFeatOrObject> CFeaturePanel::m_search_results
private

Definition at line 291 of file feature_panel.hpp.

Referenced by FindText(), and ResetSearch().

◆ m_search_text

string CFeaturePanel::m_search_text
private

Definition at line 288 of file feature_panel.hpp.

Referenced by FindText(), and ResetSearch().

◆ m_SelCDSFeatures

const TSelectedGlyphs* CFeaturePanel::m_SelCDSFeatures
private

Definition at line 242 of file feature_panel.hpp.

Referenced by SetSelectedCDSFeats(), x_NeedSpecialGrid(), and x_RenderFeatureGrid().

◆ m_SelFeatures

const TSelectedGlyphs* CFeaturePanel::m_SelFeatures
private

Definition at line 241 of file feature_panel.hpp.

Referenced by SetSelectedFeats(), and x_RenderHairLineSelections().

◆ m_ServiceLocator

IServiceLocator* CFeaturePanel::m_ServiceLocator = 0
private

Definition at line 292 of file feature_panel.hpp.

Referenced by FindText(), ResetSearch(), and SetServiceLocator().

◆ m_TrackSettings

TTrackProxies CFeaturePanel::m_TrackSettings
private

◆ m_TypeInfo

CTrackTypeInfo CFeaturePanel::m_TypeInfo
staticprivate

Definition at line 258 of file feature_panel.hpp.

Referenced by CFeaturePanel(), and GetTypeInfo().


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:57:25 2024 by modify_doxy.py rev. 669887