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.
#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 NCBI C++/STL use hints.