NCBI C++ ToolKit
|
Search Toolkit Book for CHistParams
File Description: More...
#include <gui/widgets/seq_graphic/histogram_conf.hpp>
Public Types | |
enum | EType { eSmearBar , eHistogram , eMergedBar , eLineGraph , eDefaultType = eHistogram } |
enum | EScale { eLinear , eLog10 , eLog2 , eLoge } |
typedef map< string, CRgbaColor > | TColorSet |
![]() | |
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 Member Functions | |
CHistParams () | |
void | SetDirty (bool f) |
bool | GetDirty () const |
![]() | |
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 |
Public Attributes | |
EType | m_Type = eHistogram |
EScale | m_Scale = eLinear |
requested scale More... | |
EScale | m_StoredScale = eLinear |
stored scale of the underlying data (e.g. as reported by TMS) More... | |
bool | m_NeedRuler = false |
bool | m_NeedRulerLabels = true |
bool | m_DrawBg = false |
bool | m_ClipOutliers = false |
int | m_SDeviationThreshold = 5 |
int | m_NumBins = 0 |
bool | m_RangeAutoscale = true |
bool | m_SmoothCurve = false |
int | m_FitStep = 4 |
CRange< float > | m_ValueRange |
Colors. | |
CRgbaColor | m_fgColor |
CRgbaColor | m_fgNegColor |
CRgbaColor | m_bgColor |
CRgbaColor | m_LabelColor |
CRgbaColor | m_SmearColorMin |
CRgbaColor | m_SmearColorMax |
CRgbaColor | m_RulerColor |
CRgbaColor | m_OutlierColor {"red"} |
TColorSet | m_Colors |
Sizes. | |
TModelUnit | m_Height = 10 |
Private Attributes | |
bool | m_Dirty = false |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
virtual void | DeleteThis (void) |
Virtual method "deleting" this object. More... | |
File Description:
CHistParams: the data structure holding feature rendering parameters.
Definition at line 49 of file histogram_conf.hpp.
typedef map<string, CRgbaColor> CHistParams::TColorSet |
Definition at line 52 of file histogram_conf.hpp.
enum CHistParams::EScale |
Enumerator | |
---|---|
eLinear | |
eLog10 | |
eLog2 | |
eLoge |
Definition at line 62 of file histogram_conf.hpp.
enum CHistParams::EType |
Enumerator | |
---|---|
eSmearBar | |
eHistogram | |
eMergedBar | |
eLineGraph | |
eDefaultType |
Definition at line 54 of file histogram_conf.hpp.
|
inline |
Definition at line 71 of file histogram_conf.hpp.
|
static |
Definition at line 370 of file histogram_conf.cpp.
References CTrackConfigUtils::CreateChoice(), CTrackConfigUtils::CreateChoiceItem(), eLinear, eLog10, eLog2, eLoge, ScaleValueToName(), and ScaleValueToStr().
Referenced by CAlnStatGlyph::GetHTMLActiveAreas().
|
inline |
Definition at line 98 of file histogram_conf.hpp.
References m_Dirty.
Referenced by CHistParamsManager::SaveSettings().
|
static |
Definition at line 100 of file histogram_conf.cpp.
References eLinear.
Referenced by CGraphOverlayFactory::GetSettings(), CGraphTrackFactory::GetSettings(), CHistParamsManager::LoadSettings(), CGraphOverlay::x_LoadSettings(), CGraphTrack::x_LoadSettings(), and CAlignmentTrack::x_LoadSettings().
converts values returned in TMS "stored_scale" attribute (e.g.
"log2 scaled") to values understood by ScaleStrToValue() and JS code (e.g. "log2")
Definition at line 132 of file histogram_conf.cpp.
|
static |
Definition at line 122 of file histogram_conf.cpp.
References kEmptyStr, and sm_ScaleNames.
Referenced by CreateScaleOptions(), s_GetLabel(), and CHistogramGlyph::x_GetLabel().
|
static |
Definition at line 112 of file histogram_conf.cpp.
References kEmptyStr.
Referenced by CreateScaleOptions(), CGraphOverlayFactory::GetSettings(), CGraphTrackFactory::GetSettings(), CHistParamsManager::SaveSettings(), and CGraphOverlay::x_SaveSettings().
|
inline |
Definition at line 97 of file histogram_conf.hpp.
Referenced by CHistParamsManager::AddSettings().
|
static |
Definition at line 62 of file histogram_conf.cpp.
References NCBI_THROW.
Referenced by CGraphTrack::GetLegend(), CGraphTrackFactory::GetSettings(), CHistParamsManager::LoadSettings(), CSGSeqGraphJob::x_LoadSeqTable(), and CGraphTrack::x_LoadSettings().
|
static |
Definition at line 71 of file histogram_conf.cpp.
References kEmptyStr.
Referenced by CGraphTrack::GetLegend(), CGraphTrackFactory::GetSettings(), CHistParamsManager::SaveSettings(), and CGraphOverlay::x_UpdateLegend().
CRgbaColor CHistParams::m_bgColor |
Definition at line 105 of file histogram_conf.hpp.
Referenced by CHistConfigDlg::CreateControls(), CHistogramGlyph::DrawGrid(), CHistParamsManager::LoadSettings(), CHistConfigDlg::OnBGColorChanged(), CHistConfigDlg::OnOpacityUpdated(), CHistParamsManager::SaveSettings(), CHistogramGlyph::x_Draw(), CGraphOverlay::x_LoadSettings(), CGraphTrack::x_LoadSettings(), and CGraphOverlay::x_SaveSettings().
Definition at line 128 of file histogram_conf.hpp.
Referenced by CHistConfigDlg::CreateControls(), CHistParamsManager::LoadSettings(), CHistConfigDlg::OnClipChkClick(), CHistConfigDlg::OnGraphScaleSelected(), CHistParamsManager::SaveSettings(), CHistogramGlyph::SetAxisRange(), CGraphTrack::x_LoadSettings(), CHistogramGlyph::x_MapValue(), and CGraphOverlay::x_OnLayoutChanged().
TColorSet CHistParams::m_Colors |
Definition at line 111 of file histogram_conf.hpp.
Referenced by CHistParamsManager::LoadSettings(), CHistParamsManager::SaveSettings(), and CEpigenomicsTrack::x_AddGraphs().
Definition at line 137 of file histogram_conf.hpp.
Referenced by GetDirty(), and SetDirty().
Definition at line 127 of file histogram_conf.hpp.
Referenced by CHistConfigDlg::CreateControls(), CHistogramGlyph::DrawGrid(), CHistParamsManager::LoadSettings(), CHistConfigDlg::OnDrawBackgroundClick(), CHistParamsManager::SaveSettings(), CHistogramGlyph::x_Draw(), CGraphOverlay::x_LoadSettings(), CGraphTrack::x_LoadSettings(), CGraphOverlay::x_SaveSettings(), and CGraphOverlay::x_UpdateTrackSettings().
CRgbaColor CHistParams::m_fgColor |
Definition at line 103 of file histogram_conf.hpp.
Referenced by CHistConfigDlg::CreateControls(), CGraphTrack::GetLegend(), CHistParamsManager::LoadSettings(), CHistConfigDlg::OnFGColorChanged(), CHistConfigDlg::OnGraphOpacityUpdated(), CHistParamsManager::SaveSettings(), CGraphOverlay::UpdateTrackParams(), CHistogramGlyph::x_Draw(), CAlignmentTrack::x_GetGraphParams(), CGraphTrack::x_LoadSettings(), and CAlignmentTrack::x_LoadSettings().
CRgbaColor CHistParams::m_fgNegColor |
Definition at line 104 of file histogram_conf.hpp.
Referenced by CHistConfigDlg::CreateControls(), CHistParamsManager::LoadSettings(), CHistConfigDlg::OnGraphOpacityUpdated(), CHistConfigDlg::OnNegColorChanged(), CHistParamsManager::SaveSettings(), CGraphOverlay::UpdateTrackParams(), CHistogramGlyph::x_Draw(), and CGraphTrack::x_LoadSettings().
int CHistParams::m_FitStep = 4 |
Definition at line 133 of file histogram_conf.hpp.
Referenced by CHistogramGlyph::x_DrawGraph(), CGraphOverlay::x_LoadSettings(), and CGraphTrack::x_LoadSettings().
TModelUnit CHistParams::m_Height = 10 |
Definition at line 116 of file histogram_conf.hpp.
Referenced by CHistConfigDlg::CreateControls(), CHistParamsManager::LoadSettings(), CHistConfigDlg::OnHeightUpdated(), CAlnStatGlyph::OnLeftDblClick(), CHistParamsManager::SaveSettings(), CAlnStatGlyph::x_DrawBarGraph(), CGraphOverlay::x_LoadSettings(), CGraphTrack::x_LoadSettings(), CAlignmentTrack::x_LoadSettings(), CGraphOverlay::x_SaveSettings(), CAlnStatGlyph::x_UpdateBoundingBox(), and CHistogramGlyph::x_UpdateBoundingBox().
CRgbaColor CHistParams::m_LabelColor |
Definition at line 106 of file histogram_conf.hpp.
Referenced by CHistConfigDlg::CreateControls(), CHistParamsManager::LoadSettings(), CHistParamsManager::SaveSettings(), CAlnStatGlyph::x_DrawBarGraph(), CHistogramGlyph::x_DrawLinearRuler(), CHistogramGlyph::x_DrawLogRuler(), CGraphOverlay::x_LoadSettings(), CGraphOverlay::x_SaveSettings(), and CHistogramGlyph::x_UpdateLegend().
Definition at line 125 of file histogram_conf.hpp.
Referenced by CHistConfigDlg::CreateControls(), CHistogramGlyph::DrawGrid(), CHistParamsManager::LoadSettings(), CHistConfigDlg::OnShowRulerClick(), CHistParamsManager::SaveSettings(), CGraphOverlay::x_LoadSettings(), CGraphOverlay::x_SaveSettings(), and CGraphOverlay::x_UpdateTrackSettings().
Definition at line 126 of file histogram_conf.hpp.
Referenced by CHistogramGlyph::x_DrawLinearRuler(), CHistogramGlyph::x_DrawLogRuler(), and CAlignmentTrack::x_GetGraphParams().
int CHistParams::m_NumBins = 0 |
Definition at line 130 of file histogram_conf.hpp.
Referenced by CHistogramGlyph::SetAxisRange(), and CGraphTrack::x_LoadSettings().
CRgbaColor CHistParams::m_OutlierColor {"red"} |
Definition at line 110 of file histogram_conf.hpp.
Referenced by CHistConfigDlg::CreateControls(), CHistParamsManager::LoadSettings(), CHistParamsManager::SaveSettings(), CHistogramGlyph::x_DrawDataPoints(), CHistogramGlyph::x_DrawGraph(), and CGraphTrack::x_LoadSettings().
Definition at line 131 of file histogram_conf.hpp.
Referenced by CHistogramGlyph::SetAxisRange(), CGraphOverlay::x_LoadSettings(), CGraphTrack::x_LoadSettings(), and CGraphOverlay::x_OnLayoutChanged().
CRgbaColor CHistParams::m_RulerColor |
Definition at line 109 of file histogram_conf.hpp.
Referenced by CHistConfigDlg::CreateControls(), CHistParamsManager::LoadSettings(), CHistParamsManager::SaveSettings(), CAlnStatGlyph::x_DrawBarGraph(), CHistogramGlyph::x_DrawLinearRuler(), CHistogramGlyph::x_DrawLogRuler(), CGraphOverlay::x_LoadSettings(), and CGraphOverlay::x_SaveSettings().
requested scale
Definition at line 121 of file histogram_conf.hpp.
Referenced by CHistConfigDlg::CreateControls(), CHistogramGlyph::DrawGrid(), CAlnStatGlyph::GetHTMLActiveAreas(), CHistogramGlyph::GetHTMLActiveAreas(), CHistogramGlyph::GetTooltip(), CHistParamsManager::LoadSettings(), CHistConfigDlg::OnGraphScaleSelected(), CHistParamsManager::SaveSettings(), CHistogramGlyph::SetAxisRange(), CAlnStatGlyph::x_DrawBarGraph(), CHistogramGlyph::x_DrawDataPoints(), CHistogramGlyph::x_DrawGraph(), CHistogramGlyph::x_DrawLogRuler(), CHistogramGlyph::x_DrawSmoothCurve(), CGlyphContainer::x_GetHistMsg(), CHistogramGlyph::x_GetLabel(), CGraphOverlay::x_LoadSettings(), CGraphTrack::x_LoadSettings(), CAlignmentTrack::x_LoadSettings(), CHistogramGlyph::x_MapValue(), CGraphOverlay::x_OnLayoutChanged(), CHistogramGlyph::x_PointToWorld(), and CGraphOverlay::x_SaveSettings().
int CHistParams::m_SDeviationThreshold = 5 |
Definition at line 129 of file histogram_conf.hpp.
Referenced by CHistConfigDlg::CreateControls(), CHistParamsManager::LoadSettings(), CHistConfigDlg::OnSpinctrlUpdated(), CHistParamsManager::SaveSettings(), CHistogramGlyph::SetAxisRange(), CHistogramGlyph::x_Draw(), and CGraphTrack::x_LoadSettings().
CRgbaColor CHistParams::m_SmearColorMax |
Definition at line 108 of file histogram_conf.hpp.
Referenced by CHistConfigDlg::CreateControls(), CHistogramGlyph::GetLegend(), CHistParamsManager::LoadSettings(), CHistConfigDlg::OnColorMaxChanged(), CHistConfigDlg::OnGraphOpacityUpdated(), CHistParamsManager::SaveSettings(), CGraphOverlay::UpdateTrackParams(), CGraphTrack::x_LoadSettings(), and CHistogramGlyph::x_UpdateLegend().
CRgbaColor CHistParams::m_SmearColorMin |
Definition at line 107 of file histogram_conf.hpp.
Referenced by CHistConfigDlg::CreateControls(), CHistogramGlyph::GetLegend(), CHistParamsManager::LoadSettings(), CHistConfigDlg::OnColorMinChanged(), CHistConfigDlg::OnGraphOpacityUpdated(), CHistParamsManager::SaveSettings(), CGraphOverlay::UpdateTrackParams(), CGraphTrack::x_LoadSettings(), and CHistogramGlyph::x_UpdateLegend().
Definition at line 132 of file histogram_conf.hpp.
Referenced by CHistogramGlyph::x_DrawDataPoints(), CHistogramGlyph::x_DrawGraph(), CGraphOverlay::x_LoadSettings(), and CGraphTrack::x_LoadSettings().
stored scale of the underlying data (e.g. as reported by TMS)
Definition at line 124 of file histogram_conf.hpp.
Referenced by CHistogramGlyph::SetAxisRange(), CGraphOverlay::x_LoadSettings(), CGraphTrack::x_LoadSettings(), CHistogramGlyph::x_MapValue(), and CGraphOverlay::x_SaveSettings().
EType CHistParams::m_Type = eHistogram |
Definition at line 119 of file histogram_conf.hpp.
Referenced by CHistConfigDlg::CreateControls(), CHistogramGlyph::DrawGrid(), CHistogramGlyph::GetHTMLActiveAreas(), CHistParamsManager::LoadSettings(), CHistConfigDlg::OnRenderStyleSelected(), CHistParamsManager::SaveSettings(), CHistogramGlyph::SetAxisRange(), CGraphOverlay::UpdateTrackParams(), CHistogramGlyph::x_Draw(), CHistogramGlyph::x_DrawDataPoints(), CHistogramGlyph::x_DrawGraph(), CHistogramGlyph::x_DrawSmoothCurve(), CSGSeqGraphJob::x_LoadSeqTable(), CGraphTrack::x_LoadSettings(), and CGraphOverlay::x_UpdateLegend().
CRange<float> CHistParams::m_ValueRange |
Definition at line 134 of file histogram_conf.hpp.
Referenced by CHistogramGlyph::SetAxisRange(), CGraphOverlay::x_LoadSettings(), CGraphTrack::x_LoadSettings(), and CGraphOverlay::x_OnLayoutChanged().