A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://www.ncbi.nlm.nih.gov/IEB/ToolBox/CPP_DOC/doxyhtml/blast__hitmatrix_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/app/blastfmt/blast_hitmatrix.cpp Source File

91  const string

& font_path)

219  CNetCacheAPI

nc_client(

"NC_HitMatrix"

,

"blast_hitmatrix"

);

230  bool

success =

false

;

251  catch

(exception& e) {

266

GLEWContext glew_context;

267

GLenum err = glewContextInit(&glew_context);

268  if

(GLEW_OK != err) {

270  _TRACE

(

"Error creating glew context"

);

272

CGLGlewContext::GetInstance().SetGlewContext(&glew_context);

274  if

(GLEW_OK != err) {

277  _TRACE

(

"Error loading opengl extensions"

);

281

GLenum err = glewInit();

284  _TRACE

(

"Error initializing glew: "

<< glewGetErrorString(err));

300  string

(

"no CGlRender object not available"

));

308  m_ErrorMessage

=

"Error during rendering initialization: unknown error"

;

Declares class to display hitmatrix image view for blast 2 seq.

static TRegisterLoaderInfo RegisterInObjectManager(CObjectManager &om, CReader *reader=0, CObjectManager::EIsDefault is_default=CObjectManager::eDefault, CObjectManager::TPriority priority=CObjectManager::kPriority_NotSet)

const CImage & GetBuffer(void) const

CIRef< IHitMatrixDataSource > CreateDataSource()

void Init(objects::CScope &scope, const objects::CSeq_align &align)

initial data set from which an alignment will be build

CHitMatrixRenderer - renders Hit Matrix Graph, Rulers, axes, grid, sequence and features graphs.

static bool WriteImage(const CImage &image, CNcbiOstream &ostr, EType type, ECompress compress=eCompress_Default)

static void FlipY(CImage &image)

const unsigned char * GetData(void) const

void SetDepth(size_t depth, bool update_image=true)

Client API for NetCache server.

class CRgbaColor provides a simple abstraction for managing colors.

std::ofstream out("events_result.xml")

main entry point for tests

#define ITERATE(Type, Var, Cont)

ITERATE macro to sequence through container elements.

CRef< CScope > m_Scope

Current scope.

CRef< CGlOsContext > m_Context

CGlOsContext context.

void x_InitPort()

Initializes CGlPane.

int m_Height

Image height.

bool IsFileOut(void)

Checks if image is to be written to the file.

bool Display(CNcbiOstream &out)

Outputs the image into CNcbiOstream.

bool WriteToFile(void)

Outputs the image into the file (m_FileOut=true) or netcache.

bool x_RenderImage(void)

Renders a pairwise alignments between the first two Seq-id in the alignment.

string m_SubjectID

Subject label id.

vector< CConstRef< CSeq_align > > m_Aligns

Vector of seqaligns.

CImageIO::EType m_Format

Image format (png,bmp etc)

CRef< CObjectManager > m_ObjMgr

Object manager.

bool m_FileOut

true if output to the file

void x_InitGraphics(const string &font_path="")

Initialize rendering environment.

unique_ptr< CHitMatrixRenderer > m_Renderer

Renderer setup Parameter.

CIRef< IHitMatrixDataSource > m_DataSource

Renderer setup Parameter.

string m_ImageKey

netcacheID

CBlastHitMatrix(const list< CRef< CSeq_align > > &seqAligns, int height=600, int width=800, CImageIO::EType format=CImageIO::ePng, const string &font_path="")

Constructor.

string m_QueryID

Query label id.

CGlPane m_Port

Renderer setup Parameter.

string m_ErrorMessage

Error message.

void x_InitObjectManager()

Initializes Object Manager.

void x_PreProcess(void)

Performs pre-processing for image rendering.

void x_GetLabels(void)

Creates Query and subject labels info.

void x_Render(void)

Inits renderer display options and text labels.

#define ERR_POST(message)

Error posting with file, line number information but without error codes.

void Error(CExceptionArgs_Base &args)

#define NCBI_THROW(exception_class, err_code, message)

Generic macro to throw an exception, given the exception class, error code and message string.

const string & GetMsg(void) const

Get message string.

virtual const char * what(void) const noexcept

Standard report (includes full backlog).

virtual void Clear()=0

Clear/delete any graphics/OpenGL memory.

void SetModelLimitsRect(const TModelRect &R)

static CGlResMgr & Instance()

void SetViewport(const TVPRect &R)

void SetDeviceResolution(unsigned int res)

Get/set device resolution in pixels per inch (defaults to 72) You can get this value from wxWidgets v...

IRender & GetGl()

convenience function for getting current render manager

void SetFontPath(const string &p)

This path will be prepended to filename when calling GetFont It should be set to "ToStdString(CSysPat...

CGlRect< TVPUnit > TVPRect

void ZoomAll(int options=fZoomXY)

static CFtglFontManager & Instance()

Get an instance of the manager so you can retrieve fonts.

void SetVert(T bottom, T top)

void Clear()

Delete all current fonts.

void SetHorz(T left, T right)

static void GetLabel(const CObject &obj, string *label, ELabelType type=eDefault)

string PutData(const void *buf, size_t size, const CNamedParameterList *optional=NULL)

Put BLOB to server.

static CRef< CObjectManager > GetInstance(void)

Return the existing object manager or create one.

void AddDefaults(TPriority pri=kPriority_Default)

Add default data loaders from object manager.

TSeqPos GetBioseqLength(void) const

TObjectType * GetPointer(void) THROWS_NONE

Get pointer,.

void Reset(void)

Reset reference object.

bool IsNull(void) const THROWS_NONE

Check if pointer is null – same effect as Empty().

position_type GetToOpen(void) const

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

IO_PREFIX::ostream CNcbiOstream

Portable alias for ostream.

TFrom GetFrom(void) const

Get the From member data.

bool IsLocal(void) const

Check if variant Local is selected.

list< CRef< CSeq_align > > TAlign

The blob sat and sat key Both must be positive integers</td > n< td > Non empty string The interpretation of the blob id depends on a processor Cassandra n processor expects the following format

The NCBI C++/STL use hints.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4