Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/classCGraphTrack.html below:
NCBI C++ ToolKit: CGraphTrack Class Reference
Search Toolkit Book for CGraphTrack
CGraphTrack –. More...
#include <gui/widgets/seq_graphic/graph_track.hpp>
enum ELayout { eLayout_Layered , eLayout_Overlay , eLayout_Overlayed } typedef vector< CRef< CCommentGlyph > > TComments typedef set< string > THighlights typedef map< string, THighlights > TKeyHighlights 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, string > TKeyValuePairs enum ENeighbours { eNghbrs_None = 0x0 , eNghbrs_Left = 0x1 , eNghbrs_Right = 0x2 , eNghbrs_Both = 0x3 } typedef vector< CHTMLActiveArea > TAreaVector typedef list< CRef< CSeqGlyph > > TObjects typedef list< CConstRef< CSeqGlyph > > TConstObjects enum EAllocFillMode { eAllocFillNone = 1 , eAllocFillZero , eAllocFillPattern } Control filling of newly allocated memory. More...
typedef CObjectCounterLocker TLockerType Default locker type for CRef. More...
typedef atomic< Uint8 > TCounter 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, TListeners > TPools typedef list< AutoPtr< SPostRequest > > TPostRequests typedef std::map< CEventHandler *, int > THandlerToCount typedef void(* FOnPostCallback) () CGraphTrack (CSGGraphDS *ds, CRenderingContext *r_cntx) virtual ~CGraphTrack () virtual CRef< CSGGenBankDS > GetDataSource () Method for accessing the data source. More...
virtual CConstRef< CSGGenBankDS > GetDataSource () const virtual void GetHTMLActiveAreas (TAreaVector *p_areas) const Get html active areas. More...
virtual CHTMLActiveArea * InitHTMLActiveArea (TAreaVector *p_areas) const Initialize the HTML active area for a track. More...
void SetAnnot (const string &annot) const string & GetAnnot () const void SetLayout (ELayout layout) virtual const CTrackTypeInfo & GetTypeInfo () const virtual void GetLegend (const CTempTrackProxy *track_proxy, objects::CTrackConfig::TLegend &legend) const virtual bool CanDrop (CRef< CLayoutTrack > &track) virtual bool Drop (CRef< CLayoutTrack > &track) CDataTrack (CRenderingContext *r_cntx) virtual ~CDataTrack () virtual void DeleteAllJobs () virtual bool AllJobsFinished () const void OnAJNotification (CEvent *evt) event handlers for job notification event. More...
void OnAJProgress (CEvent *evt) void SetVisRange (const TSeqRange &range) virtual void Update (bool layout_only) Update content and layout including the bounding box. More...
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 THighlights & GetHighlights () const const TKeyHighlights & GetHighlightsByKey () const CLayoutGroup & SetGroup () const CLayoutGroup & GetGroup () const CLayoutGroup::TObjectList & SetChildren () const CLayoutGroup::TObjectList & GetChildren () const bool Empty () const void SetLayoutPolicy (ILayoutPolicy *policy) Set policy on how to deploy the layout of its children. More...
virtual CRef< CSeqGlyph > HitTest (const TModelPoint &p) Hit testing. More...
virtual bool HitTestHor (TSeqPos x, const CObject *obj) virtual bool Intersects (const TModelRect &rect, TConstObjects &objs) const Intersect testing. More...
virtual bool Accept (IGlyphVisitor *visitor) Interface for accepting an IGlyphVisitor. More...
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 string & GetProfile () const virtual string GetFullTitle () const get a more meaningful title. More...
string GetTitle () const get the track title. More...
const TTrackErrorStatus & GetErrorStatus () const void SetErrorStatus (const TTrackErrorStatus &ErrorStatus) bool isInErrorStatus () const bool isRmtBased () const bool isRemotePath () const 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) CLayoutTrack * GetParentTrack () const CLayoutTrack * GetParentTrack () 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 string & GetId () 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...
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 CRenderingContext * GetRenderingContext () 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 CRgbaColor * GetHighlightsColor () 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 TModelPoint & GetPos () const void GetPosInWorld (TModelPoint &pos) const Get top left position in world coordinate. More...
const CSeqGlyph * GetParent (void) const CSeqGlyph * GetParent (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) CSeqGlyph * SetParent (void) void SetNeighbours (ENeighbours neighbours) CObjectEx (void) virtual ~CObjectEx (void) CObject (void) Constructor. More...
CObject (const CObject &src) Copy constructor. More...
virtual ~CObject (void) Destructor. More...
CObject & operator= (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...
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 CWeakObject (void) virtual ~CWeakObject (void) CPtrToObjectProxy * GetPtrProxy (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 TListeners * GetListeners (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...
virtual ~ILegendProvider () virtual ~IDroppable () objects::SAnnotSelector & x_GetAnnotSelector () CSGGraphDS & x_GetGraphDS () bool CreateOverlay (vector< CRef< CGraphTrack >> &tracks) 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 part of settings to a profile string. More...
virtual void x_OnIconClicked (TIconID id) Mouse left-click event handler on an icon. More...
virtual void x_OnLayoutChanged () update the layout. More...
virtual void x_UpdateData () update track content. More...
virtual void x_OnJobCompleted (CAppJobNotification ¬ify) virtual void x_UpdateBoundingBox () Update the bounding box assuming children's sizes are fixed if any. More...
virtual void x_RenderContent () const The content rendering must be implemented in the derived layout tracks. More...
DECLARE_EVENT_MAP () virtual void x_Expand (bool expand) Collapse or expand the track. More...
void x_UpdateLayout () const TSeqRange & x_GetVisRange () const virtual bool x_IsJobNeeded (CAppJobDispatcher::TJobID id) const virtual void x_OnJobFailed (CAppJobNotification ¬ify) virtual void x_OnAllJobsFinished () 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 bool x_Empty () const virtual void x_ClearContent () virtual void x_Draw () const The default renderer for this layout object. More...
virtual bool x_ShowTitle () const Need to preserve title space and show the title. More...
TModelUnit x_GetTBHeight () const Get title bar height including margin. More...
CConstRef< CSeqGraphicConfig > x_GetGlobalConfig () const Method for getting global configuration from rendering context. More...
void x_OnLayoutChanged () update the layout. More...
virtual void x_GetTBRect (TModelRect &rc) const Get title bar rectange exclude top margin. More...
virtual void x_RenderProgressBar () const Method for rendering the job loading or layout generating progress. More...
virtual void x_RenderTitleBar () const Method for rendering the track title bar. 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...
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 virtual void DeleteThis (void) Virtual method "deleting" this object. More...
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 SEvtMap * GetEventMap () const void x_DeclareDead () Removes itself unavailable for async event delivery. More...
void x_AddListenerToPool (CEventHandler *listener, int pool_name) static void RegisterIconImage (const TIconAlias &key, const string &img_file) register the image for an icon. More...
static bool PointInRect (const TModelPoint &p, const TModelRect &rc) static bool PointInRect (TModelUnit x, TModelUnit y, const TModelRect &rc) 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 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 () 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< SIconInfo > TIcons CLayoutGroup m_Group CRef< CSimpleLayout > m_Simple CRef< CInlineLayout > m_Inline CRef< CLayeredLayout > m_Layered 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...
ILayoutTrackHost * m_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< CSeqGraphicConfig > m_gConfig global configuration. More...
string m_Profile = "Default" track setting profile More...
CSeqGlyph * m_Parent parent/child relationships for this feature More...
CRenderingContext * m_Context the rendering context More...
unique_ptr< CRgbaColor > m_HighlightsColor Highlight color. More...
ENeighbours m_Neighbours Indicates whether the glyph has neighbours. More...
Protected Attributes inherited from CEventHandler TPools m_Pools Static Protected Attributes inherited from CEventHandler static const SEvtMap sm_EvtMap
CGraphTrack –.
Definition at line 51 of file graph_track.hpp.
◆ ELayout Enumerator eLayout_Layered eLayout_Overlay eLayout_Overlayed
Definition at line 59 of file graph_track.hpp.
◆ CGraphTrack() [1/2]
Definition at line 101 of file graph_track.cpp.
References CSeq_annot_Base::C_Data::e_Graph, CSeq_annot_Base::C_Data::e_Seq_table, CLayoutTrack::eIcon_Settings, CSeqUtils::GetAnnotSelector(), CSGGraphDS::IsSeqTable(), m_DS, m_Sel, CGlyphContainer::m_Simple, m_YLimits, CSGAnnotJob::TAxisLimits::max, max(), CSGAnnotJob::TAxisLimits::min, min(), CSGGenBankDS::SetJobListener(), CGlyphContainer::SetLayoutPolicy(), and CLayoutTrack::x_RegisterIcon().
◆ ~CGraphTrack() CGraphTrack::~CGraphTrack ( ) virtual ◆ CGraphTrack() [2/2] ◆ CanDrop() ◆ CreateOverlay()
Definition at line 744 of file graph_track.cpp.
References _ASSERT, CTrackContainer::AddNewTrack(), CTrackProxy::Clone(), copy(), CTempTrackProxy::GetAnnots(), CTempTrackProxy::GetChildren(), CHistParamsManager::GetHistParams(), CSeqGraphicConfig::GetHistParamsManager(), CTempTrackProxy::GetId(), CTempTrackProxy::GetKey(), CLayoutTrack::GetOrder(), CTempTrackProxy::GetOrder(), CLayoutTrack::GetParentTrack(), CTempTrackProxy::GetSubTracks(), gt, ITERATE, NStr::Join(), m_AnnotName, CLayoutTrack::m_gConfig, NcbiEmptyString, NON_CONST_ITERATE, CTrackContainer::RemoveTrack(), s_FindTrackProxy(), CTempTrackProxy::SetAnnots(), CTempTrackProxy::SetOrder(), and CTempTrackProxy::SetSubTracks().
Referenced by Drop().
◆ Drop() ◆ GetAnnot() ◆ GetDataSource() [1/2] ◆ GetDataSource() [2/2] ◆ GetHTMLActiveAreas() void CGraphTrack::GetHTMLActiveAreas ( TAreaVector * ) const virtual ◆ GetLegend() void CGraphTrack::GetLegend ( const CTempTrackProxy * track_proxy, objects::CTrackConfig::TLegend & legend ) const virtual
Implements ILegendProvider.
Definition at line 1159 of file graph_track.cpp.
References _ASSERT, CHistParamsManager::AddSettings(), color, CHistParams::eHistogram, NStr::EqualNocase(), ERR_POST, Error(), NStr::fConvErr_NoThrow, CRgbaColor::FromString(), CHistParamsManager::GetDefHistParams(), CHistParamsManager::GetHistParams(), CSeqGraphicConfig::GetHistParamsManager(), CTempTrackProxy::GetSource(), CTempTrackProxy::GetTrackProfile(), CHistParamsManager::HasSettings(), ITERATE, label, LOG_POST, m_AnnotName, CHistParams::m_fgColor, CLayoutTrack::m_gConfig, min(), CSGConfigUtils::ParseProfileString(), CRef< C, Locker >::Reset(), CRgbaColor::SetAlpha(), NStr::StringToInt(), CRgbaColor::ToString(), CHistParams::TypeStrToValue(), and CHistParams::TypeValueToStr().
◆ GetTypeInfo() ◆ InitHTMLActiveArea()
Initialize the HTML active area for a track.
-
Returns
-
retrun the newly added HTML active area for this track if further initializatin is required.
Reimplemented from CLayoutTrack.
Definition at line 157 of file graph_track.cpp.
References bound(), ctll::empty(), CHTMLActiveArea::fNoNavigation, CHTMLActiveArea::fTrack, CGlyphContainer::GetChildren(), CLayoutTrack::GetId(), CLayoutTrack::InitHTMLActiveArea(), CSeqUtils::isRmtAnnotName(), m_AnnotName, CHTMLActiveArea::m_Bounds, CHTMLActiveArea::m_Descr, CHTMLActiveArea::m_Flags, CLayoutTrack::m_Title, ncbi::grid::netcache::search::fields::size, CLayoutTrack::x_GetTBHeight(), and CSeqGlyph::x_InitHTMLActiveArea().
◆ operator=() ◆ s_GetICacheInstance() ◆ s_InitICache() ◆ SetAnnot() ◆ SetLayout() void CGraphTrack::SetLayout ( ELayout layout )
Definition at line 1309 of file graph_track.cpp.
References eLayout_Layered, eLayout_Overlay, eLayout_Overlayed, CHistogramGlyph::eMode_Single, g(), CLayoutGroup::GetChildren(), CGlyphContainer::GetGroup(), CRef< C, Locker >::GetPointer(), CHistogramGlyph::GetTitle(), kOverlayed, label, lg(), m_AnnotName, CSeqGlyph::m_Context, CGlyphContainer::m_Layered, m_Layout, CGlyphContainer::m_Simple, NON_CONST_ITERATE, Ref(), CHistogramGlyph::SetAnnotName(), CGlyphContainer::SetChildren(), CLayoutGroup::SetChildren(), CGlyphContainer::SetGroup(), CGlyphContainer::SetLayoutPolicy(), CSeqGlyph::SetParent(), CHistogramGlyph::SetRenderingMode(), CDataTrack::Update(), and CSeqGlyph::Update().
◆ x_CollectAllGraphs() ◆ x_GetAnnotSelector() objects::SAnnotSelector & CGraphTrack::x_GetAnnotSelector ( ) inlineprotected ◆ x_GetGraphDS() ◆ x_InitGrid() void CGraphTrack::x_InitGrid ( ) private ◆ x_LayoutStrToValue() ◆ x_LayoutValueToStr() ◆ x_LoadSettings()
load the track settings.
By default, it does nothing.
-
Parameters
-
preset_style a preset setting style name settings a list of track-specific setting in a form of key-value pair.
Reimplemented from CLayoutTrack.
Definition at line 265 of file graph_track.cpp.
References _ASSERT, CHistParamsManager::AddSettings(), color, CTrackConfigUtils::DecodeValueRange(), NStr::EqualNocase(), ERR_POST, Error(), eSerial_AsnBinary, CHistParams::eSmearBar, NStr::fConvErr_NoThrow, CRWStreambuf::fOwnReader, CRgbaColor::FromString(), CSeqGraphicConfig::GetCgiMode(), CUser_field_Base::GetData(), CHistParamsManager::GetDefHistParams(), COpenRange< Position >::GetEmptyFrom(), COpenRange< Position >::GetEmptyTo(), CUser_object::GetField(), CRange_Base::GetFrom(), CHistParamsManager::GetHistParams(), CSeqGraphicConfig::GetHistParamsManager(), CNetICacheClient::GetReadStream(), CUser_field_Base::C_Data::GetReal(), CRange_Base::GetTo(), CNetICacheClient::HasBlobs(), CUser_object::HasField(), CHistParamsManager::HasSettings(), ITERATE, ncbi::grid::netcache::search::fields::key, kNegColor, kNumBins, kOutlierColor, kScale, kSDeviationThreshold, kStoredScale, kValueRange, CRgbaColor::Lighten(), LOG_POST, m_AnnotName, CHistParams::m_bgColor, CHistParams::m_ClipOutliers, SCustomizedHistSettings::m_Color, CHistParams::m_DrawBg, CHistParams::m_fgColor, CHistParams::m_fgNegColor, CHistParams::m_FitStep, m_FixedScale, CLayoutTrack::m_gConfig, CHistParams::m_Height, SCustomizedHistSettings::m_Height, m_Layout, CHistParams::m_NumBins, CHistParams::m_OutlierColor, CHistParams::m_RangeAutoscale, CHistParams::m_Scale, CHistParams::m_SDeviationThreshold, CHistParams::m_SmearColorMax, CHistParams::m_SmearColorMin, CHistParams::m_SmoothCurve, CHistParams::m_StoredScale, CHistParams::m_Type, SCustomizedHistSettings::m_Type, CHistParams::m_ValueRange, m_YLimits, CSGAnnotJob::TAxisLimits::max, max(), CSGAnnotJob::TAxisLimits::min, min(), NcbiEmptyString, CObjectIStream::Open(), Ref(), CRef< C, Locker >::Reset(), s_GetCacheKey(), s_GetICacheInstance(), CHistParams::ScaleStrToValue(), COpenRange< Position >::Set(), CRgbaColor::SetAlpha(), CRange_Base::SetFrom(), CRange_Base::SetTo(), NStr::StringToBool(), NStr::StringToInt(), NStr::StringToNonNegativeInt(), CHistParams::TypeStrToValue(), and x_LayoutStrToValue().
◆ x_OnIconClicked() void CGraphTrack::x_OnIconClicked ( TIconID id ) protectedvirtual ◆ x_OnJobCompleted()
Implements CDataTrack.
Definition at line 507 of file graph_track.cpp.
References _ASSERT, CGlyphContainer::Add(), CUser_object::AddField(), CLayoutGroup::Clear(), CSGGenBankDS::ClearJobID(), count, eLayout_Overlay, eLayout_Overlayed, CHistogramGlyph::eMode_Overlay, CHistogramGlyph::eMode_Single, ERR_POST, Error(), eSerial_AsnBinary, CRWStreambuf::fOwnWriter, CHistogramGlyph::GetAnnotName(), CHistogramGlyph::GetAxisMax(), CHistogramGlyph::GetAxisMin(), CSeqGraphicConfig::GetCgiMode(), CAppJobNotification::GetJobID(), CRef< C, Locker >::GetPointer(), CAppJobNotification::GetResult(), CHistogramGlyph::GetTitle(), CNetICacheClient::GetWriteStream(), i, ncbi::grid::netcache::search::fields::key, kOverlayed, label, m_AnnotName, m_DS, CLayoutTrack::m_gConfig, CGlyphContainer::m_Layered, m_Layout, CGlyphContainer::m_Simple, CLayoutTrack::m_Title, m_YLimits, CSGAnnotJob::TAxisLimits::max, max(), CSGAnnotJob::TAxisLimits::min, min(), msg(), NcbiEmptyString, NON_CONST_ITERATE, CObjectOStream::Open(), Ref(), result, s_GetCacheKey(), s_GetICacheInstance(), CHistogramGlyph::SetAnnotName(), CHistogramGlyph::SetConfig(), CHistogramGlyph::SetDesc(), CGlyphContainer::SetGroup(), CGlyphContainer::SetLayoutPolicy(), CLayoutTrack::SetMsg(), CGlyphContainer::SetObjects(), CHistogramGlyph::SetRenderingMode(), CUser_object_Base::SetType(), NStr::SizetToString(), NStr::StartsWith(), CLayoutTrack::x_GetGlobalConfig(), and CDataTrack::x_UpdateLayout().
◆ x_OnLayoutChanged() void CGraphTrack::x_OnLayoutChanged ( ) protectedvirtual
update the layout.
Reimplemented from CSeqGlyph.
Definition at line 1225 of file graph_track.cpp.
References eLayout_Overlay, eLayout_Overlayed, CHistogramGlyph::eMode_Overlay, CGlyphContainer::GetChildren(), CGlyphContainer::GetGroup(), CHistogramGlyph::GetMax(), CHistogramGlyph::GetMin(), kOverlayed, m_AnnotName, m_Grid, m_Layout, max(), min(), NON_CONST_ITERATE, CHistogramGlyph::SetAnnotName(), CHistogramGlyph::SetAxisMax(), CHistogramGlyph::SetAxisMin(), CHistogramGlyph::SetAxisRange(), CGlyphContainer::SetChildren(), CHistogramGlyph::SetFixedScale(), CGlyphContainer::SetGroup(), CHistogramGlyph::SetRenderingMode(), ncbi::grid::netcache::search::fields::size, x_InitGrid(), and CLayoutTrack::x_OnLayoutChanged().
◆ x_OnSettingsIconClicked() void CGraphTrack::x_OnSettingsIconClicked ( ) private
Definition at line 639 of file graph_track.cpp.
References _ASSERT, CTrackContainer::AddTrackProxy(), eLayout_Layered, ERASE_ITERATE, CGlyphContainer::GetChildren(), CTempTrackProxy::GetChildren(), CLayoutTrack::GetOrder(), CLayoutTrack::GetParentTrack(), CRef< C, Locker >::GetPointer(), CTrackContainer::GetSubtrackProxies(), CTempTrackProxy::GetTrack(), gt, i, ITERATE, ILayoutTrackHost::LTH_PopupMenu(), m_FixedScale, CLayoutTrack::m_LTHost, CTrackContainer::MoveTrack(), NON_CONST_ITERATE, CTrackContainer::RemoveTrack(), CRef< C, Locker >::Reset(), s_FindTrackProxy(), ToWxString(), CDataTrack::Update(), UseDefaultMarginWidth(), VECTOR_ERASE, wxT, x_CollectAllGraphs(), and x_UpdateData().
Referenced by x_OnIconClicked().
◆ x_RenderContent() void CGraphTrack::x_RenderContent ( ) const protectedvirtual ◆ x_SaveSettings() void CGraphTrack::x_SaveSettings ( const string & preset_style ) protectedvirtual ◆ x_UpdateBoundingBox() void CGraphTrack::x_UpdateBoundingBox ( ) protectedvirtual
Update the bounding box assuming children's sizes are fixed if any.
Reimplemented from CGlyphContainer.
Definition at line 1267 of file graph_track.cpp.
References _ASSERT, eLayout_Overlay, COpenRange< Position >::Empty(), CLayoutGroup::GetChildren(), CSeqGlyph::GetHeight(), CSeqGlyph::GetLeft(), CSeqGlyph::GetTop(), CSeqGlyph::GetWidth(), CRenderingContext::IntersectVisible(), CSeqGlyph::m_Context, CLayoutTrack::m_Expanded, CLayoutTrack::m_gConfig, m_Grid, CGlyphContainer::m_Group, m_Layout, CLayoutTrack::m_On, NON_CONST_ITERATE, CGlyphContainer::SetChildren(), CHistogramGlyph::SetConfig(), CGlyphContainer::SetGroup(), CSeqGlyph::SetHeight(), CSeqGlyph::SetLeft(), CSeqGlyph::SetTop(), CSeqGlyph::SetWidth(), x_InitGrid(), and CGlyphContainer::x_UpdateBoundingBox().
◆ x_UpdateData() void CGraphTrack::x_UpdateData ( ) protectedvirtual ◆ CGraphTrackFactory ◆ kOverlayed ◆ m_AnnotName string CGraphTrack::m_AnnotName private ◆ m_DS ◆ m_FixedScale bool CGraphTrack::m_FixedScale private ◆ m_Grid ◆ m_Layout ◆ m_Sel objects::SAnnotSelector CGraphTrack::m_Sel private ◆ m_TypeInfo ◆ m_YLimits
The documentation for this class was generated from the following files:
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