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

Search Toolkit Book for CSegmentGlyph

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

+ Inheritance diagram for CSegmentGlyph:
+ Collaboration diagram for CSegmentGlyph:

Public Types

typedef vector< CRef< CSegmentGlyph > > TSeqMapList
 
- 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 Types inherited from IObjectBasedGlyph
typedef vector< TSeqRangeTIntervals
 

Public Member Functions

CConstRef< objects::CSeq_id > GetSeqID (void) const
 CSegmentGlyph inline methods. More...
 
TSeqPos GetComponentLength () const
 
const set< TSeqRange > & GetComponentRanges () const
 
const set< TSeqRange > & GetMappedRanges () const
 
void SetComponentRanges (const set< TSeqRange > &range)
 
void SetMappedRanges (const set< TSeqRange > &range)
 
CSegmentConfig::TSegMapQuality GetSeqQuality () const
 
void SetSeqQuality (CSegmentConfig::TSegMapQuality quality)
 
void SetConfig (CRef< CSegmentConfig > config)
 
void GetLabel (string &label, CLabel::ELabelType type) const
 
ctors
 CSegmentGlyph (const objects::CSeq_id_Handle &component_id, const TSeqRange &range, const objects::CSeq_id_Handle &mapped_id, const TSeqRange &mapped_range, bool component_negative_strand, TSeqPos length=0)
 
CSeqGlyph virtual methods.
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...
 
virtual void GetHTMLActiveAreas (TAreaVector *p_areas) const
 Get html active areas. More...
 
virtual TSeqRange GetRange (void) const
 get the total range of this object. More...
 
virtual void SetHideLabel (bool b)
 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...
 
IObjectBasedGlyph interface implement

Access the remapped location.

const objects::CSeq_loc & GetLocation (void) const
 access the position of this object. More...
 
virtual CConstRef< CObjectGetObject (TSeqPos pos) const
 Access the data as a CObject. More...
 
virtual void GetObjects (vector< CConstRef< CObject > > &objs) const
 retrieve CObjects corresponding to this CSeqGlyph. More...
 
virtual bool HasObject (CConstRef< CObject > obj) const
 check if the wrapped object(s) is the one. More...
 
virtual string GetSignature () const
 return signature for this glyph. More...
 
virtual const TIntervalsGetIntervals (void) const
 access sub-intervals (if any). 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 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 OnLeftDblClick (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...
 
- Public Member Functions inherited from IObjectBasedGlyph
virtual ~IObjectBasedGlyph ()
 

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

CRef< objects::CSeq_loc > m_Location
 our mapped location More...
 
objects::CSeq_id_Handle m_IdHandle
 the seq-id we cover. this is the component seq-id More...
 
TSeqRange m_ComponentRange
 range on component sequence More...
 
objects::CSeq_id_Handle m_MappedIdHandle
 the seq-id we cover. this is the master seq-id More...
 
TSeqRange m_MappedRange
 range on master (mapped) sequence More...
 
bool m_CompNegative
 
TSeqPos m_Length
 length of the component sequence, independent of the chunk we use More...
 
set< TSeqRangem_SeqRanges
 the range on the component we represent More...
 
set< TSeqRangem_MappedSeqRanges
 the range on the main sequence we represent More...
 
CSegmentConfig::TSegMapQuality m_SegMapQuality
 
TIntervals m_Intervals
 intervals (like for features or alignments). More...
 
CConstRef< CSegmentConfigm_Config
 rendering configuration for a segment. More...
 
bool m_HideLabel
 Force to hide label. More...
 
- 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...
 

Private Member Functions

bool x_ShowLabel () const
 

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 49 of file segment_glyph.hpp.

Member Typedef Documentation

◆ TSeqMapList

Definition at line 54 of file segment_glyph.hpp.

Constructor & Destructor Documentation

◆ CSegmentGlyph()

CSegmentGlyph::CSegmentGlyph ( const objects::CSeq_id_Handle &  component_id,
const TSeqRange range,
const objects::CSeq_id_Handle &  mapped_id,
const TSeqRange mapped_range,
bool  component_negative_strand,
TSeqPos  length = 0 
)

Member Function Documentation

◆ GetComponentLength()

TSeqPos CSegmentGlyph::GetComponentLength ( ) const
inline

Definition at line 162 of file segment_glyph.hpp.

References m_Length.

◆ GetComponentRanges()

const set< TSeqRange > & CSegmentGlyph::GetComponentRanges ( ) const
inline

Definition at line 168 of file segment_glyph.hpp.

References m_SeqRanges.

◆ GetHTMLActiveAreas()

void CSegmentGlyph::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 153 of file segment_glyph.cpp.

References CSeq_id::eContent, eNa_strand_minus, GetLocation(), GetSeqID(), GetSignature(), GetStrand(), CHTMLActiveArea::m_DB_ID, CHTMLActiveArea::m_DB_Name, CHTMLActiveArea::m_PositiveStrand, CHTMLActiveArea::m_Signature, and CSeqGlyph::x_InitHTMLActiveArea().

◆ GetIntervals()

const CSegmentGlyph::TIntervals & CSegmentGlyph::GetIntervals ( void  ) const
virtual

access sub-intervals (if any).

Implements IObjectBasedGlyph.

Definition at line 232 of file segment_glyph.cpp.

References m_Intervals.

◆ GetLabel()

void CSegmentGlyph::GetLabel ( string label,
CLabel::ELabelType  type 
) const

◆ GetLocation()

const objects::CSeq_loc & CSegmentGlyph::GetLocation ( void  ) const
virtual

access the position of this object.

Implements IObjectBasedGlyph.

Definition at line 238 of file segment_glyph.cpp.

References m_Location.

Referenced by GetHTMLActiveAreas(), x_Draw(), CSGSegmentsSeqIDJob::x_Execute(), and x_UpdateBoundingBox().

◆ GetMappedRanges()

const set< TSeqRange > & CSegmentGlyph::GetMappedRanges ( ) const
inline

Definition at line 174 of file segment_glyph.hpp.

References m_MappedSeqRanges.

Referenced by x_Draw().

◆ GetObject()

CConstRef< CObject > CSegmentGlyph::GetObject ( TSeqPos  pos) const
virtual

Access the data as a CObject.

Implements IObjectBasedGlyph.

Definition at line 191 of file segment_glyph.cpp.

References m_IdHandle.

◆ GetObjects()

void CSegmentGlyph::GetObjects ( vector< CConstRef< CObject > > &  objs) const
virtual

retrieve CObjects corresponding to this CSeqGlyph.

Implements IObjectBasedGlyph.

Definition at line 197 of file segment_glyph.cpp.

References m_IdHandle.

◆ GetRange()

TSeqRange CSegmentGlyph::GetRange ( void  ) const
virtual

get the total range of this object.

CSeqGlyph inline methods.

Reimplemented from CSeqGlyph.

Definition at line 165 of file segment_glyph.cpp.

References m_Location.

Referenced by x_Draw(), x_ShowLabel(), and x_UpdateBoundingBox().

◆ GetSeqID()

CConstRef< objects::CSeq_id > CSegmentGlyph::GetSeqID ( void  ) const
inline

CSegmentGlyph inline methods.

Definition at line 156 of file segment_glyph.hpp.

References m_IdHandle.

Referenced by GetHTMLActiveAreas(), and GetLabel().

◆ GetSeqQuality()

CSegmentConfig::TSegMapQuality CSegmentGlyph::GetSeqQuality ( ) const
inline

Definition at line 192 of file segment_glyph.hpp.

References m_SegMapQuality.

Referenced by x_Draw(), and CSegmentMapTrack::x_OnJobCompleted().

◆ GetSignature()

string CSegmentGlyph::GetSignature ( ) const
virtual

◆ GetTooltip()

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

Get the tooltip if available.

The x and y are in 'world' coord system which is the coord. system for the uppermost layout object.

Reimplemented from CSeqGlyph.

Definition at line 136 of file segment_glyph.cpp.

References CGuiObjectInfoComponent::CreateObject(), CRenderingContext::GetScope(), CSeqGlyph::m_Context, m_Location, and NULL.

◆ HasObject()

bool CSegmentGlyph::HasObject ( CConstRef< CObject obj) const
virtual

check if the wrapped object(s) is the one.

Implements IObjectBasedGlyph.

Definition at line 203 of file segment_glyph.cpp.

References CConstRef< C, Locker >::GetPointer(), and m_IdHandle.

◆ HasSideLabel()

bool CSegmentGlyph::HasSideLabel ( ) const
virtual

Query if there is label and label is on the side.

This method may not be applicable to all different types of glyphs. It is up to the concrete glyph to implement. By default, it returns false. Putting this in this base class is just for the sake of inline layout policy to determine if special actions need to take if there is sided label.

Reimplemented from CSeqGlyph.

Definition at line 177 of file segment_glyph.cpp.

References CSegmentConfig::ePos_Side, m_Config, m_HideLabel, and CSegmentConfig::m_LabelPos.

◆ IsClickable()

bool CSegmentGlyph::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 184 of file segment_glyph.cpp.

◆ NeedTooltip()

bool CSegmentGlyph::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 130 of file segment_glyph.cpp.

◆ SetComponentRanges()

void CSegmentGlyph::SetComponentRanges ( const set< TSeqRange > &  range)
inline

Definition at line 180 of file segment_glyph.hpp.

References m_SeqRanges, and compile_time_bits::range().

◆ SetConfig()

void CSegmentGlyph::SetConfig ( CRef< CSegmentConfig config)
inline

Definition at line 204 of file segment_glyph.hpp.

References m_Config.

Referenced by CSegmentMapTrack::x_AddSegmentMapLayout().

◆ SetHideLabel()

void CSegmentGlyph::SetHideLabel ( bool  )
virtual

Force to hide label.

This method may not be applicable to all different types of glyphs. It is up to the concrete glyph to implement. By default, it does nothing. Putting this in the base class is just for the sake of inline layout policy to make sure not overlaping between glyph's label and other glyphs or lables.

Reimplemented from CSeqGlyph.

Definition at line 171 of file segment_glyph.cpp.

References b, and m_HideLabel.

Referenced by CSegmentMapTrack::x_AddSegmentMapLayout().

◆ SetMappedRanges()

void CSegmentGlyph::SetMappedRanges ( const set< TSeqRange > &  range)
inline

Definition at line 186 of file segment_glyph.hpp.

References m_MappedSeqRanges, and compile_time_bits::range().

◆ SetSeqQuality()

void CSegmentGlyph::SetSeqQuality ( CSegmentConfig::TSegMapQuality  quality)
inline

Definition at line 198 of file segment_glyph.hpp.

References m_SegMapQuality.

Referenced by CSGSegmentsSeqIDJob::x_Execute().

◆ x_Draw()

void CSegmentGlyph::x_Draw ( ) const
protectedvirtual

The default renderer for this layout object.

Implements CSeqGlyph.

Definition at line 250 of file segment_glyph.cpp.

References IRender::ColorC(), CRgbaColor::ContrastingColor(), CRenderingContext::Draw3DQuad(), CRenderingContext::DrawBackground(), CRenderingContext::DrawSelection(), CLabel::eContent, CSegmentConfig::eDraft, CSegmentConfig::eFinished, eNa_strand_minus, CSegmentConfig::ePos_Above, CSegmentConfig::ePos_Inside, CSegmentConfig::ePos_Side, CSegmentConfig::eWgs, CSeqGlyph::GetBottom(), CRange_Base::GetFrom(), GetGl(), GetLabel(), CSeqGlyph::GetLeft(), COpenRange< Position >::GetLength(), GetLocation(), GetMappedRanges(), CRenderingContext::GetMaxLabelWidth(), CSeqGlyph::GetModelRect(), GetRange(), CSeqGlyph::GetRight(), GetSeqQuality(), GetStrand(), CRange_Base::GetTo(), CSeqGlyph::GetTop(), CRenderingContext::IntersectVisible(), CRenderingContext::IsFlippedStrand(), CSeqGlyph::IsSelected(), ITERATE, kVertLabelSpace, label, CSegmentConfig::m_BarHeight, CSegmentConfig::m_BG, m_Config, CSeqGlyph::m_Context, CSegmentConfig::m_FGExc, CSegmentConfig::m_FGInc_D, CSegmentConfig::m_FGInc_F, CSegmentConfig::m_FGInc_U, CSegmentConfig::m_FGInc_W, m_HideLabel, CSegmentConfig::m_Label, CSegmentConfig::m_LabelFont, CSegmentConfig::m_LabelPos, CSegmentConfig::m_SelLabel, compile_time_bits::range(), CRenderingContext::ScreenToSeq(), CRenderingContext::SeqToScreen(), IRender::TextHeight(), CRenderingContext::TextOut(), IRender::TextWidth(), CGlRect< T >::Top(), CGlTextureFont::Truncate(), CRenderingContext::WillLabelFit(), and x_ShowLabel().

◆ x_ShowLabel()

bool CSegmentGlyph::x_ShowLabel ( ) const
private

◆ x_UpdateBoundingBox()

void CSegmentGlyph::x_UpdateBoundingBox ( )
protectedvirtual

Member Data Documentation

◆ m_CompNegative

bool CSegmentGlyph::m_CompNegative
protected

Definition at line 124 of file segment_glyph.hpp.

Referenced by GetSignature().

◆ m_ComponentRange

TSeqRange CSegmentGlyph::m_ComponentRange
protected

range on component sequence

Definition at line 119 of file segment_glyph.hpp.

Referenced by GetSignature().

◆ m_Config

CConstRef<CSegmentConfig> CSegmentGlyph::m_Config
protected

rendering configuration for a segment.

Definition at line 143 of file segment_glyph.hpp.

Referenced by HasSideLabel(), SetConfig(), x_Draw(), x_ShowLabel(), and x_UpdateBoundingBox().

◆ m_HideLabel

bool CSegmentGlyph::m_HideLabel
protected

Force to hide label.

Flag to force hiding the label regardless of the settings from CSegmentConfig

Definition at line 148 of file segment_glyph.hpp.

Referenced by HasSideLabel(), SetHideLabel(), x_Draw(), and x_ShowLabel().

◆ m_IdHandle

objects::CSeq_id_Handle CSegmentGlyph::m_IdHandle
protected

the seq-id we cover. this is the component seq-id

Definition at line 117 of file segment_glyph.hpp.

Referenced by GetObject(), GetObjects(), GetSeqID(), GetSignature(), and HasObject().

◆ m_Intervals

TIntervals CSegmentGlyph::m_Intervals
protected

intervals (like for features or alignments).

Definition at line 140 of file segment_glyph.hpp.

Referenced by CSegmentGlyph(), and GetIntervals().

◆ m_Length

TSeqPos CSegmentGlyph::m_Length
protected

length of the component sequence, independent of the chunk we use

Definition at line 127 of file segment_glyph.hpp.

Referenced by CSegmentGlyph(), and GetComponentLength().

◆ m_Location

CRef<objects::CSeq_loc> CSegmentGlyph::m_Location
protected

our mapped location

Definition at line 114 of file segment_glyph.hpp.

Referenced by CSegmentGlyph(), GetLocation(), GetRange(), and GetTooltip().

◆ m_MappedIdHandle

objects::CSeq_id_Handle CSegmentGlyph::m_MappedIdHandle
protected

the seq-id we cover. this is the master seq-id

Definition at line 121 of file segment_glyph.hpp.

Referenced by GetSignature().

◆ m_MappedRange

TSeqRange CSegmentGlyph::m_MappedRange
protected

range on master (mapped) sequence

Definition at line 123 of file segment_glyph.hpp.

Referenced by CSegmentGlyph(), and GetSignature().

◆ m_MappedSeqRanges

set<TSeqRange> CSegmentGlyph::m_MappedSeqRanges
protected

the range on the main sequence we represent

Definition at line 135 of file segment_glyph.hpp.

Referenced by CSegmentGlyph(), GetMappedRanges(), and SetMappedRanges().

◆ m_SegMapQuality

CSegmentConfig::TSegMapQuality CSegmentGlyph::m_SegMapQuality
protected

Definition at line 137 of file segment_glyph.hpp.

Referenced by GetSeqQuality(), and SetSeqQuality().

◆ m_SeqRanges

set<TSeqRange> CSegmentGlyph::m_SeqRanges
protected

the range on the component we represent

Definition at line 132 of file segment_glyph.hpp.

Referenced by CSegmentGlyph(), GetComponentRanges(), and SetComponentRanges().


The documentation for this class was generated from the following files:
Modified on Sat May 25 14:17:37 2024 by modify_doxy.py rev. 669887