NCBI C++ ToolKit
Classes | Functions | Variables
alignment_glyph.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/ncbistd.hpp>
#include <objmgr/util/sequence.hpp>
#include <algo/sequence/consensus_splice.hpp>
#include <objects/seq/MolInfo.hpp>
#include <objects/seqalign/Spliced_seg.hpp>
#include <objects/seqalign/Spliced_exon.hpp>
#include <objects/seqalign/Splice_site.hpp>
#include <objects/general/Object_id.hpp>
#include <objects/general/User_object.hpp>
#include <gui/widgets/seq_graphic/seqgraphic_utils.hpp>
#include <gui/widgets/seq_graphic/alignment_glyph.hpp>
#include <gui/widgets/seq_graphic/rendering_ctx.hpp>
#include <gui/objutils/obj_fingerprint.hpp>
#include <gui/widgets/seq_graphic/gui_object_info_seq_align.hpp>
#include <gui/objutils/tooltip.hpp>
#include <gui/objutils/utils.hpp>
#include <gui/opengl/irender.hpp>
#include <gui/opengl/glutils.hpp>
#include <gui/opengl/rasterizer.hpp>
#include <gui/opengl/gltexturefont.hpp>
#include <util/sequtil/sequtil_manip.hpp>
#include <gui/widgets/gl/attrib_menu.hpp>
#include <objects/seqfeat/Genetic_code.hpp>
#include <math.h>
+ Include dependency graph for alignment_glyph.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.

Classes

struct  SScPix
 represents a pixel with a score, if several intervals cover a pixel, the interval with the maximum coverage will "own" the pixel (i.e. More...
 
struct  SScPix2
 represents a pixel with two scores, one corresponds to a gap interval, another - to an aligned segment. More...
 

Functions

 USING_SCOPE (objects)
 
double CompressLength (double len)
 
static void FSetPixMaxCoverage (SScPix &dst, const SScPix &src, float fraction, bool)
 a pixel with the Max coverage (fraction) overrides all attributes More...
 
static void FSetPix2 (SScPix2 &dst, const SScPix2 &src, float fraction, bool long_seg)
 accumulate weighted scores More...
 

Variables

static const TModelUnit kPWAlignPackLevel = 0.333
 
static const TSeqPos kTailGlyphLen = 12
 
static const TSeqPos kCompactTailGlyphLen = 2
 
static const int kAlignRowSpace = 3
 
static const int kLabelSpace_v = 2
 
static const int kLabelSpace_h = 5
 
static const int kCompactLabelSpace_h = 1
 
static float kMinSegDistance = 1.5f
 

Function Documentation

◆ CompressLength()

double CompressLength ( double  len)
inline

Definition at line 237 of file alignment_glyph.cpp.

References len, log, and log10().

Referenced by CAlignGlyph::x_DrawInserts(), and CAlignGlyph::x_DrawMultiAlign().

◆ FSetPix2()

static void FSetPix2 ( SScPix2 dst,
const SScPix2 src,
float  fraction,
bool  long_seg 
)
static

◆ FSetPixMaxCoverage()

static void FSetPixMaxCoverage ( SScPix dst,
const SScPix src,
float  fraction,
bool   
)
static

a pixel with the Max coverage (fraction) overrides all attributes

Definition at line 2035 of file alignment_glyph.cpp.

References SScPix::m_Gap, SScPix::m_MaxCoverage, and SScPix::m_Score.

Referenced by CAlignGlyph::x_RenderNonAveragableScores().

◆ USING_SCOPE()

USING_SCOPE ( objects  )

Variable Documentation

◆ kAlignRowSpace

const int kAlignRowSpace = 3
static

◆ kCompactLabelSpace_h

const int kCompactLabelSpace_h = 1
static

◆ kCompactTailGlyphLen

const TSeqPos kCompactTailGlyphLen = 2
static

◆ kLabelSpace_h

const int kLabelSpace_h = 5
static

◆ kLabelSpace_v

const int kLabelSpace_v = 2
static

◆ kMinSegDistance

float kMinSegDistance = 1.5f
static

Definition at line 2384 of file alignment_glyph.cpp.

Referenced by CAlignGlyph::x_CalcIntervals().

◆ kPWAlignPackLevel

const TModelUnit kPWAlignPackLevel = 0.333
static

◆ kTailGlyphLen

const TSeqPos kTailGlyphLen = 12
static
Modified on Fri Sep 20 14:57:35 2024 by modify_doxy.py rev. 669887