: m_Renderer(
TVPRect(0, 0, m_Width, m_Height))
137 if(it_acc ==
entries.end()) {
140 strings =
string(
"Accession: ") + it_acc->second;
144 if(it_start !=
entries.end() && it_start->second.size()) {
147 if(it_stop !=
entries.end() && it_stop->second.size()) {
165 if(it_anchor !=
entries.end() && it_anchor->second.size()) {
166 CSeq_idanchor_id(it_anchor->second);
171 for( TNumrow
row= 0;
row< n_rows && ! b_set;
row++ ) {
174 if(
id.Match(anchor_id)) {
182 "Anchor accession is invalid.");
191 if(m_Start < 0 || m_Start > aln_stop) {
193 "Visible start out of range.");
198 if(m_Stop < 0 || m_Stop > aln_stop) {
200 "Visible end out of range.");
215 size_th = (size_t) -rc_vis.
Height();
219 string msg=
"Cannot load Bioseq for accession \"";
220 msg+= it_acc->second;
256 int main(
intargc,
const char* argv[])
259 _TRACE(
"back to normal diags");
static const int kColorGradNumber
int main(int argc, const char *argv[])
CAlnMultiRenderer m_Renderer
CRef< IAlnMultiDataSource > m_DataSource
CRef< CObjectManager > m_ObjMgr
CAlnMultiDSBuilder m_Builder
CAlnMultiCGIApplication()
virtual void Render(CCgiContext &ctx)
CRowStyleCatalog m_StyleCatalog
virtual void x_PreProcess(CCgiContext &ctx)
number of gradient colors in alignment
virtual const char * GetErrCodeString(void) const
Get error code interpreted as text.
NCBI_EXCEPTION_DEFAULT(CAlnMultiCGIException, CException)
void Init(objects::CScope &scope, const objects::CSeq_align &align)
initial data set from which an alignment will be build
CRef< IAlnMultiDataSource > CreateDataSource()
class CAlnMultiModel - represents a visual model of an alignment.
virtual CWidgetDisplayStyle * GetDisplayStyle()
virtual void SetStyleCatalog(const CRowStyleCatalog *catalog)
virtual void SetDataSource(IAlnMultiDataSource *p_ds)
class CAlnMultiRenderer - renders multiple alignment represented by IAlnMultiRendererContext (the Mod...
virtual void Resize(const TVPRect &rc)
void SetContext(IAlnMultiRendererContext *pContext)
virtual void Render()
renders OpenGL graphics
static TRegisterLoaderInfo RegisterInObjectManager(CObjectManager &om, CReader *reader=0, CObjectManager::EIsDefault is_default=CObjectManager::eDefault, CObjectManager::TPriority priority=CObjectManager::kPriority_NotSet)
CRowDisplayStyle is a base class representing a display style for IAlignRow.
CRowStyleCatalog is a collection of CRowDisplayStyle-s assigned to rows in alignment.
void SetDefaultStyle(CRowDisplayStyle *style)
assumes ownership
void SetWidgetStyle(const CWidgetDisplayStyle *style)
virtual TSeqPos GetAlnStart(void) const =0
virtual bool CanGetId(TNumrow row) const =0
IAlnExplorer::TNumrow TNumrow
virtual TNumrow GetNumRows(void) const =0
number of rows in alignment
virtual TSeqPos GetAlnStop(void) const =0
virtual bool SetAnchor(TNumrow anchor)=0
virtual const objects::CSeq_id & GetSeqId(TNumrow row) const =0
container_type::const_iterator const_iterator
CNcbiEnvironment & SetEnvironment(void)
Get a non-const copy of the application's cached environment.
int AppMain(int argc, const char *const *argv, const char *const *envp=0, EAppDiagStream diag=eDS_Default, const char *conf=NcbiEmptyCStr, const string &name=NcbiEmptyString)
Main function (entry point) for the NCBI application.
const TCgiEntries & GetEntries(void) const
Get a set of entries(decoded) received from the client.
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
@ eDS_Default
Try standard log file (app.name + ".log") in /log/, use stderr on failure.
TErrCode GetErrCode(void) const
Get error code.
#define NCBI_THROW(exception_class, err_code, message)
Generic macro to throw an exception, given the exception class, error code and message string.
EErrCode
Error types that an application can generate.
virtual const char * GetErrCodeString(void) const
Get error code interpreted as text.
void SetViewport(const TVPRect &R)
CGlRect< TVPUnit > TVPRect
void ZoomAll(int options=fZoomXY)
TModelRect & GetModelLimitsRect(void)
void SetVisibleRect(const TModelRect &R)
TModelRect & GetVisibleRect(void)
void SetHorz(T left, T right)
static CRef< CObjectManager > GetInstance(void)
Return the existing object manager or create one.
CBioseq_Handle GetBioseqHandle(const CSeq_id &id)
Get bioseq handle by seq-id.
void AddDefaults(TPriority pri=kPriority_Default)
Add default data loaders from object manager.
TObjectType * GetPointer(void) THROWS_NONE
Get pointer,.
void Reset(void)
Reset reference object.
static int StringToInt(const CTempString str, TStringToNumFlags flags=0, int base=10)
Convert string to int.
Magic spell ;-) needed for some weird compilers... very empiric.
The NCBI C++/STL use hints.
static SLJIT_INLINE sljit_ins msg(sljit_gpr r, sljit_s32 d, sljit_gpr x, sljit_gpr b)
#define row(bind, expected)
static wxAcceleratorEntry entries[3]
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