NCBI C++ ToolKit
|
Search Toolkit Book for CBlastHitMatrix
This class displays the image of the hitmatrix view for blast 2 seq results. More...
#include "blast_hitmatrix.hpp"
(Private to src/gui/app/blastfmt
.)
Public Member Functions | |
CBlastHitMatrix (const list< CRef< CSeq_align > > &seqAligns, int height=600, int width=800, CImageIO::EType format=CImageIO::ePng, const string &font_path="") | |
Constructor. More... | |
~CBlastHitMatrix () | |
Destructor. More... | |
void | SetFileName (string fileName) |
Inits file name if image is written to the file. More... | |
void | SetThumbnail (bool set) |
Indicates that thumbmail should be shown. More... | |
bool | IsFileOut (void) |
Checks if image is to be written to the file. More... | |
string | GetNetcacheID (void) |
Get netcache ID for the image stored in netcache. More... | |
string | GetErrorMessage (void) |
Get error message. More... | |
bool | Display (CNcbiOstream &out) |
Outputs the image into CNcbiOstream. More... | |
bool | WriteToFile (void) |
Outputs the image into the file (m_FileOut=true) or netcache. More... | |
Protected Member Functions | |
void | x_InitObjectManager () |
Initializes Object Manager. More... | |
void | x_InitPort () |
Initializes CGlPane. More... | |
void | x_GetLabels (void) |
Creates Query and subject labels info. More... | |
bool | x_RenderImage (void) |
Renders a pairwise alignments between the first two Seq-id in the alignment. More... | |
void | x_PreProcess (void) |
Performs pre-processing for image rendering. More... | |
void | x_Render (void) |
Inits renderer display options and text labels. More... | |
void | x_InitGraphics (const string &font_path="") |
Initialize rendering environment. More... | |
Private Attributes | |
CRef< CObjectManager > | m_ObjMgr |
Object manager. More... | |
CRef< CScope > | m_Scope |
Current scope. More... | |
vector< CConstRef< CSeq_align > > | m_Aligns |
Vector of seqaligns. More... | |
string | m_QueryID |
Query label id. More... | |
string | m_SubjectID |
Subject label id. More... | |
string | m_File |
File name. More... | |
bool | m_FileOut |
true if output to the file More... | |
bool | m_Thumbnail |
int | m_Height |
Image height. More... | |
int | m_Width |
Image width. More... | |
CImageIO::EType | m_Format |
Image format (png,bmp etc) More... | |
string | m_ImageKey |
netcacheID More... | |
string | m_ErrorMessage |
Error message. More... | |
CIRef< IHitMatrixDataSource > | m_DataSource |
Renderer setup Parameter. More... | |
CGlPane | m_Port |
Renderer setup Parameter. More... | |
unique_ptr< CHitMatrixRenderer > | m_Renderer |
Renderer setup Parameter. More... | |
CRef< CGlOsContext > | m_Context |
CGlOsContext context. More... | |
This class displays the image of the hitmatrix view for blast 2 seq results.
Usage: blastHitMatrix = new CBlastHitMatrix(...); If displasy on the screen blastHitMatrix->Dispaly(out) If write to the file: blastHitMatrix->SetFileName(<filename>) blastHitMatrix->WriteToFile()
This class displays the defline for BLAST result.
Example:
Definition at line 83 of file blast_hitmatrix.hpp.