NCBI C++ ToolKit
|
Search Toolkit Book for CSGTraceData
#include <gui/widgets/seq_graphic/trace_graph_ds.hpp>
Public Types | |
enum | EChannel { eA , eC , eT , eG } |
typedef float | TConfidence |
typedef double | TFloatSeqPos |
typedef float | TSignalValue |
typedef vector< TFloatSeqPos > | TPositions |
typedef vector< TSignalValue > | TValues |
![]() | |
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 | |
CSGTraceData () | |
void | Init (TSignedSeqPos from, TSignedSeqPos to, int samples) |
CSGTraceData. More... | |
TSignedSeqPos | GetSeqFrom () const |
Sequence related information. More... | |
TSignedSeqPos | GetSeqTo () const |
TSignedSeqPos | GetSeqLength () const |
bool | IsNegative () const |
TConfidence | GetConfidence (TSignedSeqPos pos) const |
void | SetConfidence (TSignedSeqPos pos, TConfidence conf) |
int | GetSamplesCount () const |
TPositions & | GetPositions () |
TValues & | GetA () |
TValues & | GetC () |
TValues & | GetT () |
TValues & | GetG () |
TValues & | GetValues (EChannel signal) |
const TPositions & | GetPositions () const |
const TValues & | GetA () const |
const TValues & | GetC () const |
const TValues & | GetT () const |
const TValues & | GetG () const |
const TValues & | GetValues (EChannel signal) const |
void | CalculateMax () |
TConfidence | GetMaxConfidence () const |
TSignalValue | GetMax (EChannel signal) const |
void | SetTitle (const string &title) |
const string & | GetTitle () 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 |
Protected Attributes | |
TSignedSeqPos | m_From |
TSignedSeqPos | m_To |
bool | m_bNegative |
vector< TConfidence > | m_Confs |
TPositions | m_Positions |
TValues | m_ASig |
TValues | m_CSig |
TValues | m_TSig |
TValues | m_GSig |
TConfidence | m_MaxConfidence |
TSignalValue | m_MaxA |
TSignalValue | m_MaxC |
TSignalValue | m_MaxT |
TSignalValue | m_MaxG |
string | m_Title = "Trace chromatograms" |
Additional Inherited Members | |
![]() | |
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 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... | |
Definition at line 93 of file trace_graph_ds.hpp.
typedef float CSGTraceData::TConfidence |
Definition at line 96 of file trace_graph_ds.hpp.
typedef double CSGTraceData::TFloatSeqPos |
Definition at line 97 of file trace_graph_ds.hpp.
typedef vector<TFloatSeqPos> CSGTraceData::TPositions |
Definition at line 100 of file trace_graph_ds.hpp.
typedef float CSGTraceData::TSignalValue |
Definition at line 98 of file trace_graph_ds.hpp.
typedef vector<TSignalValue> CSGTraceData::TValues |
Definition at line 101 of file trace_graph_ds.hpp.
Enumerator | |
---|---|
eA | |
eC | |
eT | |
eG |
Definition at line 103 of file trace_graph_ds.hpp.
|
inline |
Definition at line 111 of file trace_graph_ds.hpp.
void CSGTraceData::CalculateMax | ( | ) |
Definition at line 305 of file trace_graph_ds.cpp.
References m_ASig, m_Confs, m_CSig, m_GSig, m_MaxA, m_MaxC, m_MaxConfidence, m_MaxG, m_MaxT, and m_TSig.
Referenced by CTraceGlyph::CTraceGlyph().
|
inline |
Definition at line 231 of file trace_graph_ds.hpp.
References m_ASig.
|
inline |
Definition at line 261 of file trace_graph_ds.hpp.
References m_ASig.
|
inline |
Definition at line 237 of file trace_graph_ds.hpp.
References m_CSig.
|
inline |
Definition at line 267 of file trace_graph_ds.hpp.
References m_CSig.
|
inline |
Definition at line 205 of file trace_graph_ds.hpp.
References m_Confs, and m_From.
Referenced by CTraceGlyph::x_RenderConfGraph().
|
inline |
Definition at line 249 of file trace_graph_ds.hpp.
References m_GSig.
|
inline |
Definition at line 279 of file trace_graph_ds.hpp.
References m_GSig.
CSGTraceData::TSignalValue CSGTraceData::GetMax | ( | EChannel | signal | ) | const |
Definition at line 327 of file trace_graph_ds.cpp.
References _ASSERT, eA, eC, eG, eT, eUnknown, m_MaxA, m_MaxC, m_MaxG, m_MaxT, and NCBI_THROW.
Referenced by CTraceGlyph::x_RenderIntensityGraphs(), and CTraceGlyph::x_RenderSignalGraph().
CSGTraceData::TConfidence CSGTraceData::GetMaxConfidence | ( | ) | const |
Definition at line 322 of file trace_graph_ds.cpp.
References m_MaxConfidence.
Referenced by CTraceGlyph::x_RenderConfGraph().
|
inline |
Definition at line 225 of file trace_graph_ds.hpp.
References m_Positions.
Referenced by CSGTraceGraphDS::LoadData(), CTraceGlyph::x_FindSampleToLeft(), CTraceGlyph::x_FindSampleToRight(), CTraceGlyph::x_RenderIntensityGraphs(), and CTraceGlyph::x_RenderSignalGraph().
|
inline |
Definition at line 255 of file trace_graph_ds.hpp.
References m_Positions.
|
inline |
Definition at line 219 of file trace_graph_ds.hpp.
References m_Positions.
Referenced by CTraceGlyph::CTraceGlyph(), CTraceGlyph::x_FindSampleToLeft(), CTraceGlyph::x_FindSampleToRight(), CTraceGlyph::x_RenderCurveSegment(), and CTraceGlyph::x_RenderIntensityGraphs().
|
inline |
Sequence related information.
Definition at line 182 of file trace_graph_ds.hpp.
References m_From.
Referenced by CTraceGlyph::x_FindSampleToLeft(), CTraceGlyph::x_FindSampleToRight(), CTraceGlyph::x_RenderConfGraph(), CTraceGlyph::x_RenderCurveSegment(), and CTraceGlyph::x_RenderIntensityGraphs().
|
inline |
Definition at line 194 of file trace_graph_ds.hpp.
Referenced by Init(), CTraceGlyph::x_FindSampleToLeft(), and CTraceGlyph::x_FindSampleToRight().
|
inline |
Definition at line 188 of file trace_graph_ds.hpp.
References m_To.
Referenced by CTraceGlyph::x_FindSampleToLeft(), CTraceGlyph::x_FindSampleToRight(), CTraceGlyph::x_RenderConfGraph(), CTraceGlyph::x_RenderCurveSegment(), and CTraceGlyph::x_RenderIntensityGraphs().
|
inline |
Definition at line 243 of file trace_graph_ds.hpp.
References m_TSig.
|
inline |
Definition at line 273 of file trace_graph_ds.hpp.
References m_TSig.
Definition at line 291 of file trace_graph_ds.hpp.
References m_Title.
Referenced by CTraceGraphTrack::x_UpdateData().
CSGTraceData::TValues & CSGTraceData::GetValues | ( | EChannel | signal | ) |
Definition at line 293 of file trace_graph_ds.cpp.
References _ASSERT, eA, eC, eG, eT, eUnknown, m_ASig, m_CSig, m_GSig, m_TSig, and NCBI_THROW.
Referenced by CSGTraceGraphDS::LoadData(), CTraceGlyph::x_RenderIntensityGraphs(), and CTraceGlyph::x_RenderSignalGraph().
const CSGTraceData::TValues & CSGTraceData::GetValues | ( | EChannel | signal | ) | const |
void CSGTraceData::Init | ( | TSignedSeqPos | from, |
TSignedSeqPos | to, | ||
int | samples | ||
) |
Definition at line 265 of file trace_graph_ds.cpp.
References _ASSERT, GetSeqLength(), m_ASig, m_bNegative, m_Confs, m_CSig, m_From, m_GSig, m_Positions, m_To, and m_TSig.
Referenced by CSGTraceGraphDS::LoadData().
|
inline |
Definition at line 199 of file trace_graph_ds.hpp.
References m_bNegative.
|
inline |
Definition at line 211 of file trace_graph_ds.hpp.
References m_Confs, and m_From.
Referenced by CSGTraceGraphDS::LoadData().
Definition at line 285 of file trace_graph_ds.hpp.
References m_Title.
Referenced by CSGTraceGraphDS::LoadData().
|
protected |
Definition at line 158 of file trace_graph_ds.hpp.
Referenced by CalculateMax(), GetA(), GetValues(), and Init().
|
protected |
Definition at line 154 of file trace_graph_ds.hpp.
Referenced by Init(), and IsNegative().
|
protected |
Definition at line 156 of file trace_graph_ds.hpp.
Referenced by CalculateMax(), GetConfidence(), Init(), and SetConfidence().
|
protected |
Definition at line 159 of file trace_graph_ds.hpp.
Referenced by CalculateMax(), GetC(), GetValues(), and Init().
|
protected |
Definition at line 152 of file trace_graph_ds.hpp.
Referenced by GetConfidence(), GetSeqFrom(), GetSeqLength(), Init(), and SetConfidence().
|
protected |
Definition at line 161 of file trace_graph_ds.hpp.
Referenced by CalculateMax(), GetG(), GetValues(), and Init().
|
protected |
Definition at line 164 of file trace_graph_ds.hpp.
Referenced by CalculateMax(), and GetMax().
|
protected |
Definition at line 165 of file trace_graph_ds.hpp.
Referenced by CalculateMax(), and GetMax().
|
protected |
Definition at line 163 of file trace_graph_ds.hpp.
Referenced by CalculateMax(), and GetMaxConfidence().
|
protected |
Definition at line 167 of file trace_graph_ds.hpp.
Referenced by CalculateMax(), and GetMax().
|
protected |
Definition at line 166 of file trace_graph_ds.hpp.
Referenced by CalculateMax(), and GetMax().
|
protected |
Definition at line 157 of file trace_graph_ds.hpp.
Referenced by GetPositions(), GetSamplesCount(), and Init().
|
protected |
Definition at line 169 of file trace_graph_ds.hpp.
Referenced by GetTitle(), and SetTitle().
|
protected |
Definition at line 153 of file trace_graph_ds.hpp.
Referenced by GetSeqLength(), GetSeqTo(), and Init().
|
protected |
Definition at line 160 of file trace_graph_ds.hpp.
Referenced by CalculateMax(), GetT(), GetValues(), and Init().