NCBI C++ ToolKit
Classes | Public Types | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
CHistogramGlyph Class Reference

Search Toolkit Book for CHistogramGlyph

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

+ Inheritance diagram for CHistogramGlyph:
+ Collaboration diagram for CHistogramGlyph:

Classes

struct  max_func
 

Public Types

enum  ERenderingMode { eMode_Single , eMode_Overlay , eMode_Aggregate }
 
typedef float TDataType
 
typedef CHistogramData TMap
 
typedef map< string, TMapTMaps
 
- 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 Member Functions

virtual bool IsCoverageGraph () const
 
const TMapGetDensityMap (void) const
 Access the first density map. More...
 
const TMapsGetDensityMaps (void) const
 Access all the maps. More...
 
const int GetMapNum () const
 Access the number of maps. More...
 
virtual TSeqRange GetRange (void) const
 get the total range of this object. More...
 
objects::CSeqFeatData::E_Choice GetFeatType () const
 
objects::CSeqFeatData::ESubtype GetFeatSubtype () const
 
const stringGetTitle () const
 
void SetAnnotName (const string &name)
 
const stringGetAnnotName () const
 
void SetSubtype (objects::CSeqFeatData::ESubtype subtype)
 
void SetDesc (const string &desc)
 
const stringGetDesc () const
 
void SetConfig (const CSeqGraphicConfig &config)
 
TDataType GetMax () const
 Get the actually density max/min values. More...
 
TDataType GetMin () const
 
TDataType GetAxisMax () const
 Get the axis limits (max/min). More...
 
TDataType GetAxisMin () const
 
void SetAxisRange ()
 
void SetAxisMax (TDataType max)
 
void SetAxisMin (TDataType min)
 
void SetAxisMaxFixed (TDataType max)
 
void SetAxisMinFixed (TDataType min)
 
void SetFixedScale (bool value)
 
void SetShowTitle (bool f)
 
void SetDialogHost (IGlyphDialogHost *host)
 
CRef< CHistParamsGetHistParams () const
 
void DrawGrid (bool include_background) const
 
void SetRenderingMode (ERenderingMode mode)
 
void RunSettingsDialog ()
 
void GetLegend (objects::CTrackConfig::TLegend &legend) const
 
bool isRmtBased () const
 
ctors
 CHistogramGlyph (const TMap &map, objects::CSeqFeatData::ESubtype subtype, const string &title="")
 
 CHistogramGlyph (const TMap &map, const string &title)
 
 CHistogramGlyph (const TMaps &maps, objects::CSeqFeatData::ESubtype subtype)
 
 CHistogramGlyph (const TMaps &maps, const string &name)
 
 ~CHistogramGlyph ()
 
CSeqGlyph virtual methods.
virtual bool OnLeftDblClick (const TModelPoint &)
 
virtual bool NeedTooltip (const TModelPoint &p, ITooltipFormatter &tt, string &t_title) const
 Check if need to show tooltip. More...
 
virtual void GetTooltip (const TModelPoint &, ITooltipFormatter &tt, string &t_title) const
 Get the tooltip if available. More...
 
virtual void GetHTMLActiveAreas (TAreaVector *p_areas) const
 Get html active areas. More...
 
virtual bool IsClickable () const
 Query if this glyph is clickable. More...
 
- Public Member Functions inherited from CSeqGlyph
 CSeqGlyph ()
 
virtual ~CSeqGlyph ()
 
virtual CRef< CSeqGlyphHitTest (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 void Update (bool)
 Update content and layout including the bounding box. More...
 
virtual bool Accept (IGlyphVisitor *visitor)
 Interface for accepting an IGlyphVisitor. 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 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 OnLeftDown (const TModelPoint &)
 
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...
 

Protected Types

using SOutlier = struct { TSeqRange range
 

Protected Member Functions

virtual void x_Draw () const
 The default renderer for this layout object. More...
 
virtual void x_UpdateBoundingBox ()
 Update the bounding box assuming children's sizes are fixed if any. More...
 
TDataType x_ComputeDeviation (const TMap &densityMap, TDataType &mean) const
 
TDataType x_HighestValueBelowMax (const TMap &densityMap) const
 
TDataType x_LowesetValueBelowMin (const TMap &densityMap) const
 
void x_DrawLogRuler (bool negative) const
 
void x_DrawLinearRuler (bool negative) const
 
TDataType x_MapValue (TDataType val, CRgbaColor **color=0, bool *outlier=0) const
 
void x_DrawGraph (TMaps::const_iterator &map_iter) const
 
void x_DrawDataPoints (const TMap &densityMap) const
 
void x_DrawHeatMap (TMaps::const_iterator &map_iter, const CHistParams &config) const
 
void x_DrawGraphMap (TMaps::const_iterator &map_iter, const CHistParams &config) const
 
void x_DrawSmoothCurve (vector< TModelPoint > &points) const
 
void x_UpdateLegend ()
 
bool x_HasLegend () const
 
TModelPoint x_PointToWorld (TModelPoint p) const
 
void x_GetLabel (string &label) const
 
- 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...
 
virtual void x_OnLayoutChanged ()
 update the layout. 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 Attributes

IGlyphDialogHostm_DlgHost
 
TMaps m_Maps
 
TDataType m_AxisMax
 
TDataType m_AxisMin
 
bool m_FixedScale
 
string m_AnnotName
 Key for accessing histogram settings. More...
 
string m_RmtAnnotName
 
string m_Desc
 
CConstRef< CSeqGraphicConfigm_gConfig
 
objects::CSeqFeatData::ESubtype m_Subtype
 
bool m_ShowTitle
 
ERenderingMode m_Mode
 
CRgbaColor m_fgColor
 
CRgbaColor m_negColor
 
CRef< CLayoutGroupm_Legend
 
int m_NumBins = 0
 
int m_BinSize = 0
 
TModelUnit y
 
TModelUnit value
 
vector< SOutlierm_Outliers
 
- 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...
 

Additional Inherited Members

- 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 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...
 

Detailed Description

Definition at line 106 of file histogram_glyph.hpp.

Member Typedef Documentation

◆ SOutlier

using CHistogramGlyph::SOutlier = struct { TSeqRange range
protected

Definition at line 276 of file histogram_glyph.hpp.

◆ TDataType

Definition at line 109 of file histogram_glyph.hpp.

◆ TMap

Definition at line 110 of file histogram_glyph.hpp.

◆ TMaps

Definition at line 111 of file histogram_glyph.hpp.

Member Enumeration Documentation

◆ ERenderingMode

Enumerator
eMode_Single 
eMode_Overlay 
eMode_Aggregate 

Definition at line 113 of file histogram_glyph.hpp.

Constructor & Destructor Documentation

◆ CHistogramGlyph() [1/4]

CHistogramGlyph::CHistogramGlyph ( const TMap map,
objects::CSeqFeatData::ESubtype  subtype,
const string title = "" 
)

◆ CHistogramGlyph() [2/4]

CHistogramGlyph::CHistogramGlyph ( const TMap map,
const string title 
)

◆ CHistogramGlyph() [3/4]

CHistogramGlyph::CHistogramGlyph ( const TMaps maps,
objects::CSeqFeatData::ESubtype  subtype 
)

◆ CHistogramGlyph() [4/4]

CHistogramGlyph::CHistogramGlyph ( const TMaps maps,
const string name 
)

Definition at line 307 of file histogram_glyph.cpp.

References m_Maps, SetAnnotName(), and SetAxisRange().

◆ ~CHistogramGlyph()

CHistogramGlyph::~CHistogramGlyph ( )

Definition at line 433 of file histogram_glyph.cpp.

Member Function Documentation

◆ DrawGrid()

void CHistogramGlyph::DrawGrid ( bool  include_background) const

◆ GetAnnotName()

const string & CHistogramGlyph::GetAnnotName ( ) const
inline

◆ GetAxisMax()

CHistogramGlyph::TDataType CHistogramGlyph::GetAxisMax ( ) const
inline

Get the axis limits (max/min).

Definition at line 370 of file histogram_glyph.hpp.

References m_AxisMax.

Referenced by x_DrawDataPoints(), x_DrawGraph(), x_DrawGraphMap(), x_DrawSmoothCurve(), CGraphTrack::x_OnJobCompleted(), and x_PointToWorld().

◆ GetAxisMin()

CHistogramGlyph::TDataType CHistogramGlyph::GetAxisMin ( ) const
inline

◆ GetDensityMap()

const CHistogramGlyph::TMap & CHistogramGlyph::GetDensityMap ( void  ) const
inline

Access the first density map.

CHistogramGlyph inline method implementation.

Definition at line 291 of file histogram_glyph.hpp.

References map_checker< Container >::begin(), and m_Maps.

◆ GetDensityMaps()

const CHistogramGlyph::TMaps & CHistogramGlyph::GetDensityMaps ( void  ) const
inline

Access all the maps.

Definition at line 304 of file histogram_glyph.hpp.

References m_Maps.

◆ GetDesc()

const string & CHistogramGlyph::GetDesc ( void  ) const
inline

Definition at line 346 of file histogram_glyph.hpp.

References m_Desc.

Referenced by GetHTMLActiveAreas(), and GetTooltip().

◆ GetFeatSubtype()

objects::CSeqFeatData::ESubtype CHistogramGlyph::GetFeatSubtype ( ) const
inline

Definition at line 326 of file histogram_glyph.hpp.

References m_Subtype.

Referenced by GetHTMLActiveAreas(), GetTooltip(), IsClickable(), and RunSettingsDialog().

◆ GetFeatType()

objects::CSeqFeatData::E_Choice CHistogramGlyph::GetFeatType ( ) const

Definition at line 851 of file histogram_glyph.cpp.

References m_Subtype.

Referenced by GetHTMLActiveAreas(), and GetTooltip().

◆ GetHistParams()

CRef< CHistParams > CHistogramGlyph::GetHistParams ( ) const
inline

◆ GetHTMLActiveAreas()

void CHistogramGlyph::GetHTMLActiveAreas ( TAreaVector ) const
virtual

Get html active areas.

This function is for CGI mode only. By default, it does nothing.

Reimplemented from CSeqGlyph.

Definition at line 637 of file histogram_glyph.cpp.

References _ASSERT, map_checker< Container >::begin(), ITooltipFormatter::CreateTooltipFormatter(), NStr::DoubleToString(), CObjFingerprint::eFeature, CGlTextureFont::eFontFace_Courier, CObjFingerprint::eGraph, CHistParams::eLinear, CHistParams::eMergedBar, eMode_Overlay, CHistParams::eSmearBar, CSeqFeatData::eSubtype_any, ITooltipFormatter::eTooltipFormatter_CSSTable, CObjFingerprint::eUnknown, CHTMLActiveArea::fComment, CHTMLActiveArea::fNoHighlight, CHTMLActiveArea::fNoPin, CHTMLActiveArea::fNoSelection, CHTMLActiveArea::fNoTooltip, CHTMLActiveArea::fTooltipEmbedded, CHTMLActiveArea::fZoomOnDblClick, GetAnnotName(), CSGSequenceDS::GetBioseqHandle(), CHistogramData::GetDataPoint(), CHistogramData::GetDataPoints(), GetDesc(), CFeatList::GetDescription(), CSeqFeatData::GetFeatList(), GetFeatSubtype(), GetFeatType(), GetGl(), CSeqGlyph::GetHeight(), CObjFingerprint::GetHistogramSignature(), GetHistParams(), CLayoutGroup::GetHTMLActiveAreas(), COpenRange< Position >::GetLength(), CRenderingContext::GetScope(), CRenderingContext::GetSeqDS(), CSGSequenceDS::GetSequenceLength(), GetTitle(), GetTooltip(), CRenderingContext::GetViewWidth(), CGlRect< T >::Init(), CRenderingContext::IntersectVisible(), IsCoverageGraph(), IsOutlierTooltips(), isRmtBased(), ITERATE, kDataPointRadius, label, m_AxisMax, m_AxisMin, CHTMLActiveArea::m_Bounds, CSeqGlyph::m_Context, CHTMLActiveArea::m_Descr, CHTMLActiveArea::m_Flags, CHTMLActiveArea::m_ID, m_Legend, m_Maps, m_Mode, m_Outliers, CHTMLActiveArea::m_PositiveStrand, m_RmtAnnotName, CHistParams::m_Scale, CHTMLActiveArea::m_SeqRange, CHTMLActiveArea::m_Signature, CHistParams::m_Type, SLogScaleData::MapValue(), NStr::Replace(), CRenderingContext::SeqToScreen(), CRenderingContext::SeqToScreenX(), CGlRect< T >::SetBottom(), CRange_Base::SetFrom(), CSeq_interval_Base::SetFrom(), CSeq_interval_Base::SetId(), CSeq_loc::SetInt(), CGlRect< T >::SetLeft(), CGlRect< T >::SetRight(), CRange_Base::SetTo(), CSeq_interval_Base::SetTo(), CGlRect< T >::SetTop(), ncbi::grid::netcache::search::fields::size, text(), IRender::TextHeight(), IRender::TextWidth(), toupper(), CGlPoint< T >::X(), x_GetLabel(), CSeqGlyph::x_InitHTMLActiveArea(), CSeqGlyph::x_Local2World(), x_MapValue(), x_PointToWorld(), CGlPoint< T >::Y(), and y.

Referenced by CGraphOverlay::GetHTMLActiveAreas().

◆ GetLegend()

void CHistogramGlyph::GetLegend ( objects::CTrackConfig::TLegend &  legend) const

◆ GetMapNum()

const int CHistogramGlyph::GetMapNum ( ) const
inline

Access the number of maps.

Definition at line 310 of file histogram_glyph.hpp.

References m_Maps, and map_checker< Container >::size().

◆ GetMax()

CHistogramGlyph::TDataType CHistogramGlyph::GetMax ( void  ) const
inline

Get the actually density max/min values.

Definition at line 350 of file histogram_glyph.hpp.

References ITERATE, m_Maps, and max().

Referenced by SetAxisRange(), CGraphOverlay::x_OnLayoutChanged(), and CGraphTrack::x_OnLayoutChanged().

◆ GetMin()

CHistogramGlyph::TDataType CHistogramGlyph::GetMin ( void  ) const
inline

◆ GetRange()

TSeqRange CHistogramGlyph::GetRange ( void  ) const
inlinevirtual

get the total range of this object.

CSeqGlyph inline methods.

Reimplemented from CSeqGlyph.

Definition at line 316 of file histogram_glyph.hpp.

References ITERATE, m_Maps, and compile_time_bits::range().

Referenced by x_Draw(), and x_UpdateBoundingBox().

◆ GetTitle()

const string & CHistogramGlyph::GetTitle ( void  ) const
inline

◆ GetTooltip()

void CHistogramGlyph::GetTooltip ( const TModelPoint ,
ITooltipFormatter tt,
string t_title 
) const
virtual

◆ IsClickable()

bool CHistogramGlyph::IsClickable ( ) const
virtual

Query if this glyph is clickable.

Mainly for chaging mouse cursor for clickable glyph. By default, it returns false. If a glyph is clickable, but there is no need to change mouse cursor due to any other reason, such as there is already other visual hint, then don't need to override this function.

Reimplemented from CSeqGlyph.

Definition at line 824 of file histogram_glyph.cpp.

References _ASSERT, CSeqFeatData::eSubtype_any, GetAnnotName(), CSeqFeatData::GetFeatList(), GetFeatSubtype(), CSeqGraphicConfig::GetHistParamsManager(), CFeatList::GetStoragekey(), CHistParamsManager::IsTempSettings(), and m_gConfig.

◆ IsCoverageGraph()

bool CHistogramGlyph::IsCoverageGraph ( ) const
virtual

Definition at line 845 of file histogram_glyph.cpp.

References CSeqUtils::IsCoverageAnnotName(), and m_AnnotName.

Referenced by GetHTMLActiveAreas(), x_Draw(), and x_GetLabel().

◆ isRmtBased()

bool CHistogramGlyph::isRmtBased ( ) const
inline

Definition at line 298 of file histogram_glyph.hpp.

References CSeqUtils::isRmtAnnotName(), and m_RmtAnnotName.

Referenced by GetHTMLActiveAreas().

◆ NeedTooltip()

bool CHistogramGlyph::NeedTooltip ( const TModelPoint ,
ITooltipFormatter ,
string t_title 
) const
virtual

Check if need to show tooltip.

If the tooltip retrieval is trivial, the derived glyph may decide to fill out the tooltip (info object) in this call.

Reimplemented from CSeqGlyph.

Definition at line 493 of file histogram_glyph.cpp.

References eMode_Single, GetTooltip(), and m_Mode.

◆ OnLeftDblClick()

bool CHistogramGlyph::OnLeftDblClick ( const TModelPoint )
virtual

Reimplemented from CSeqGlyph.

Definition at line 447 of file histogram_glyph.cpp.

References eMode_Single, m_Mode, and RunSettingsDialog().

◆ RunSettingsDialog()

void CHistogramGlyph::RunSettingsDialog ( )

◆ SetAnnotName()

void CHistogramGlyph::SetAnnotName ( const string name)

◆ SetAxisMax()

void CHistogramGlyph::SetAxisMax ( TDataType  max)
inline

Definition at line 390 of file histogram_glyph.hpp.

References m_AxisMax.

Referenced by CGraphOverlay::x_OnLayoutChanged(), and CGraphTrack::x_OnLayoutChanged().

◆ SetAxisMaxFixed()

void CHistogramGlyph::SetAxisMaxFixed ( TDataType  max)
inline

◆ SetAxisMin()

void CHistogramGlyph::SetAxisMin ( TDataType  min)
inline

Definition at line 396 of file histogram_glyph.hpp.

References m_AxisMin.

Referenced by CGraphOverlay::x_OnLayoutChanged(), and CGraphTrack::x_OnLayoutChanged().

◆ SetAxisMinFixed()

void CHistogramGlyph::SetAxisMinFixed ( TDataType  min)
inline

Definition at line 384 of file histogram_glyph.hpp.

References m_AxisMin, and min().

Referenced by CSGAnnotJob::x_CreateHistFromGraph(), and CSGSeqGraphJob::x_LoadSeqTable().

◆ SetAxisRange()

void CHistogramGlyph::SetAxisRange ( )

◆ SetConfig()

void CHistogramGlyph::SetConfig ( const CSeqGraphicConfig config)

◆ SetDesc()

void CHistogramGlyph::SetDesc ( const string desc)
inline

◆ SetDialogHost()

void CHistogramGlyph::SetDialogHost ( IGlyphDialogHost host)
inline

◆ SetFixedScale()

void CHistogramGlyph::SetFixedScale ( bool  value)
inline

◆ SetRenderingMode()

void CHistogramGlyph::SetRenderingMode ( ERenderingMode  mode)
inline

◆ SetShowTitle()

void CHistogramGlyph::SetShowTitle ( bool  f)
inline

Definition at line 403 of file histogram_glyph.hpp.

References f(), and m_ShowTitle.

Referenced by CGraphTrack::x_InitGrid().

◆ SetSubtype()

void CHistogramGlyph::SetSubtype ( objects::CSeqFeatData::ESubtype  subtype)
inline

Definition at line 338 of file histogram_glyph.hpp.

References m_Subtype.

Referenced by CFeatureTrack::x_AddHistogram().

◆ x_ComputeDeviation()

CHistogramGlyph::TDataType CHistogramGlyph::x_ComputeDeviation ( const TMap densityMap,
TDataType mean 
) const
protected

◆ x_Draw()

void CHistogramGlyph::x_Draw ( ) const
protectedvirtual

◆ x_DrawDataPoints()

void CHistogramGlyph::x_DrawDataPoints ( const TMap densityMap) const
protected

◆ x_DrawGraph()

void CHistogramGlyph::x_DrawGraph ( TMaps::const_iterator map_iter) const
protected

◆ x_DrawGraphMap()

void CHistogramGlyph::x_DrawGraphMap ( TMaps::const_iterator map_iter,
const CHistParams config 
) const
protected

◆ x_DrawHeatMap()

void CHistogramGlyph::x_DrawHeatMap ( TMaps::const_iterator map_iter,
const CHistParams config 
) const
protected

◆ x_DrawLinearRuler()

void CHistogramGlyph::x_DrawLinearRuler ( bool  negative) const
protected

◆ x_DrawLogRuler()

void CHistogramGlyph::x_DrawLogRuler ( bool  negative) const
protected

◆ x_DrawSmoothCurve()

void CHistogramGlyph::x_DrawSmoothCurve ( vector< TModelPoint > &  points) const
protected

◆ x_GetLabel()

void CHistogramGlyph::x_GetLabel ( string label) const
protected

◆ x_HasLegend()

bool CHistogramGlyph::x_HasLegend ( ) const
protected

Definition at line 2303 of file histogram_glyph.cpp.

References m_NumBins.

Referenced by GetLegend(), and x_UpdateLegend().

◆ x_HighestValueBelowMax()

CHistogramGlyph::TDataType CHistogramGlyph::x_HighestValueBelowMax ( const TMap densityMap) const
protected

◆ x_LowesetValueBelowMin()

CHistogramGlyph::TDataType CHistogramGlyph::x_LowesetValueBelowMin ( const TMap densityMap) const
protected

◆ x_MapValue()

CHistogramGlyph::TDataType CHistogramGlyph::x_MapValue ( TDataType  val,
CRgbaColor **  color = 0,
bool outlier = 0 
) const
protected

◆ x_PointToWorld()

TModelPoint CHistogramGlyph::x_PointToWorld ( TModelPoint  p) const
protected

◆ x_UpdateBoundingBox()

void CHistogramGlyph::x_UpdateBoundingBox ( )
protectedvirtual

Update the bounding box assuming children's sizes are fixed if any.

Implements CSeqGlyph.

Definition at line 2158 of file histogram_glyph.cpp.

References GetHistParams(), GetRange(), CHistParams::m_Height, compile_time_bits::range(), CSeqGlyph::SetHeight(), CSeqGlyph::SetLeft(), CSeqGlyph::SetWidth(), and x_UpdateLegend().

◆ x_UpdateLegend()

void CHistogramGlyph::x_UpdateLegend ( )
protected

Member Data Documentation

◆ m_AnnotName

string CHistogramGlyph::m_AnnotName
protected

Key for accessing histogram settings.

It is used only when m_Subtype is eSubtype_any.

Definition at line 260 of file histogram_glyph.hpp.

Referenced by GetAnnotName(), IsCoverageGraph(), SetAnnotName(), and x_UpdateLegend().

◆ m_AxisMax

TDataType CHistogramGlyph::m_AxisMax
protected

◆ m_AxisMin

TDataType CHistogramGlyph::m_AxisMin
protected

◆ m_BinSize

int CHistogramGlyph::m_BinSize = 0
mutableprotected

Definition at line 274 of file histogram_glyph.hpp.

Referenced by GetLegend(), SetAxisRange(), x_DrawHeatMap(), and x_UpdateLegend().

◆ m_Desc

string CHistogramGlyph::m_Desc
protected

Definition at line 264 of file histogram_glyph.hpp.

Referenced by GetDesc(), RunSettingsDialog(), and SetDesc().

◆ m_DlgHost

IGlyphDialogHost* CHistogramGlyph::m_DlgHost
protected

Definition at line 242 of file histogram_glyph.hpp.

Referenced by RunSettingsDialog(), and SetDialogHost().

◆ m_fgColor

CRgbaColor CHistogramGlyph::m_fgColor
mutableprotected

◆ m_FixedScale

bool CHistogramGlyph::m_FixedScale
protected

Definition at line 257 of file histogram_glyph.hpp.

Referenced by SetAxisRange(), and SetFixedScale().

◆ m_gConfig

CConstRef<CSeqGraphicConfig> CHistogramGlyph::m_gConfig
protected

◆ m_Legend

CRef<CLayoutGroup> CHistogramGlyph::m_Legend
protected

Definition at line 272 of file histogram_glyph.hpp.

Referenced by GetHTMLActiveAreas(), x_DrawHeatMap(), and x_UpdateLegend().

◆ m_Maps

TMaps CHistogramGlyph::m_Maps
protected

◆ m_Mode

ERenderingMode CHistogramGlyph::m_Mode
protected

◆ m_negColor

CRgbaColor CHistogramGlyph::m_negColor
mutableprotected

◆ m_NumBins

int CHistogramGlyph::m_NumBins = 0
mutableprotected

◆ m_Outliers

vector<SOutlier> CHistogramGlyph::m_Outliers
mutableprotected

Definition at line 282 of file histogram_glyph.hpp.

Referenced by GetHTMLActiveAreas(), and x_DrawGraph().

◆ m_RmtAnnotName

string CHistogramGlyph::m_RmtAnnotName
protected

Definition at line 263 of file histogram_glyph.hpp.

Referenced by CHistogramGlyph(), GetHTMLActiveAreas(), isRmtBased(), and SetAnnotName().

◆ m_ShowTitle

bool CHistogramGlyph::m_ShowTitle
protected

Definition at line 267 of file histogram_glyph.hpp.

Referenced by SetShowTitle().

◆ m_Subtype

objects::CSeqFeatData::ESubtype CHistogramGlyph::m_Subtype
protected

Definition at line 266 of file histogram_glyph.hpp.

Referenced by GetFeatSubtype(), GetFeatType(), GetHistParams(), and SetSubtype().

◆ value

TModelUnit CHistogramGlyph::value
protected

◆ y

TModelUnit CHistogramGlyph::y
protected

The documentation for this class was generated from the following files:
Modified on Tue May 28 05:54:11 2024 by modify_doxy.py rev. 669887