zoom_int = (
int)zoom;
53 while(curr_iter != end_it && *curr_iter <= zoom_int) {
58 if(pre_iter != end_it)
74 if(max_search_segs > 0) {
100 LOG_POST(
Error<<
"CGraphUtils::CalcGraphLevels: loading annotation failed: "<< err);
105 LOG_POST(
Error<<
"CGraphUtils::CalcGraphLevels: loading annotation failed: "<< err);
108 if(levels.
empty()) {
123 inthighest_zoom = *levels.rbegin();
const TAnnotNames & GetAnnotNames(void) const
CSeq_annot_Handle GetAnnot(void) const
CDataLoader * GetDataLoader(void) const
static int GetNearestLevel(const set< int > &levels, double zoom)
static void CalcGraphLevels(const string &annotName, objects::CScope &scope, const objects::CSeq_loc &loc, set< int > &levels)
class CRegistryReadView provides a nested hierarchical view at a particular key.
const CTSE_Info & x_GetTSE_Info(void) const
CDataSource & GetDataSource(void) const
iterator_bool insert(const value_type &val)
const_iterator begin() const
const_iterator end() const
#define ITERATE(Type, Var, Cont)
ITERATE macro to sequence through container elements.
#define LOG_POST(message)
This macro is deprecated and it's strongly recomended to move in all projects (except tests) to macro...
#define NCBI_USER_THROW(message)
Throw a quick-and-dirty runtime exception of type 'CException' with the given error message and error...
void Error(CExceptionArgs_Base &args)
TErrCode GetErrCode(void) const
Get error code.
static int GetMaxSearchTime(const CRegistryReadView &view)
static int GetMaxSearchSegments(const CRegistryReadView &view)
static CRegistryReadView GetSelectorRegistry()
helper functions to read selector-related tune-up info (mostly segment limits) from registry:
static CRef< CObjectManager > GetInstance(void)
Return the existing object manager or create one.
const CTSE_Handle & GetTSE_Handle(void) const
SAnnotSelector & SetResolveAll(void)
SetResolveAll() is equivalent to SetResolveMethod(eResolve_All).
SAnnotSelector & SetMaxSearchSegmentsAction(EMaxSearchSegmentsAction action)
SAnnotSelector & SetAdaptiveDepth(bool value=true)
SetAdaptiveDepth() requests to restrict subsegment resolution depending on annotations found on lower...
string CombineWithZoomLevel(const string &acc, int zoom_level)
Combine accession string and zoom level into a string with separator.
SAnnotSelector & IncludeNamedAnnotAccession(const string &acc, int zoom_level=0)
SAnnotSelector & SetCollectNames(bool value=true)
Collect available annot names rather than annots.
unsigned TMaxSearchSegments
SAnnotSelector & SetMaxSearchTime(TMaxSearchTime max_time)
Set maximum time (in seconds) to search before giving up.
SAnnotSelector & SetMaxSize(TMaxSize max_size)
Set maximum number of annotations to find.
SAnnotSelector & AddNamedAnnots(const CAnnotName &name)
Add named annot to set of annots names to look for.
bool ExtractZoomLevel(const string &full_name, string *acc_ptr, int *zoom_level_ptr)
Extract optional zoom level suffix from named annotation string.
SAnnotSelector & ExcludeUnnamedAnnots(void)
Add unnamed annots to set of annots names to exclude.
SAnnotSelector & SetMaxSearchSegments(TMaxSearchSegments max_segments)
Set maximum number of empty segments to search before giving up.
@ eMaxSearchSegmentsThrow
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
unsigned int
A callback function used to compare two keys in a database.
CRef< objects::CObjectManager > om
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