50 virtual string GetType()
const {
return "Sequence ID"; }
73 CSeq_id::GetTypeInfo(),
81 gui_info->m_Object =
object.object;
82 gui_info->m_Scope =
object.scope;
84 const CSeq_id* seq_id_ptr =
dynamic_cast<const CSeq_id*
>(
object.object.GetPointer());
85 if (seq_id_ptr->
IsGi()) {
90 }
NCBI_CATCH(
"CGuiObjectInfoSeq_id::CreateObject");
100 if (
gen.GetDb() ==
"TRACE_ASSM") {
116 handle =
object.scope->GetBioseqHandle(*seq_id_ptr);
117 }
NCBI_CATCH(
"CGuiObjectInfoSeq_id::CreateObject");
127 gui_info->m_Subtype = subType;
148 return "symbol::sequence_id_dna";
150 return "symbol::sequence_id_protein";
152 return "symbol::sequence_id";
165 if(isGeneratedBySvc) {
166 *isGeneratedBySvc =
false;
CRef< objects::CScope > m_Scope
virtual void GetLinks(ITooltipFormatter &, bool) const
Get a set of links.
virtual string GetLabel() const
virtual void GetToolTip(ITooltipFormatter &tooltip, string &t_title, TSeqPos at_p=(TSeqPos) -1, bool *isGeneratedBySvc=NULL) const
Get tooltip.
virtual string GetType() const
CConstRef< CObject > m_Object
enum CGuiObjectInfoSeq_id::ESubtype m_Subtype
virtual string GetViewCategory() const
To share default view between different types.
static CGuiObjectInfoSeq_id * CreateObject(SConstScopedObject &object, ICreateParams *params)
virtual string GetSubtype() const
virtual string GetIcon() const
static void RegisterFactory(const string &interface_name, IInterfaceFactory *factory)
unsigned int TSeqPos
Type for sequence locations and lengths.
#define NCBI_CATCH(message)
Catch CExceptions as well This macro is deprecated - use *_X or *_XX variant instead of it.
static void GetLabel(const CObject &obj, string *label, ELabelType type=eDefault)
virtual void AddRow(const string &sContents="", unsigned colspan=2)=0
add a row with a cell, spanning across all columns
static EAccessionInfo IdentifyAccession(const CTempString &accession, TParseFlags flags=fParse_AnyRaw)
Deduces information from a bare accession a la WHICH_db_accession; may report false negatives on prop...
CConstRef< CSeq_id > GetSeqId(void) const
EAccessionInfo
For IdentifyAccession (below)
const CSeq_id & GetId(const CSeq_loc &loc, CScope *scope)
If all CSeq_ids embedded in CSeq_loc refer to the same CBioseq, returns the first CSeq_id found,...
@ eGetId_Best
return the "best" gi (uses FindBestScore(), with CSeq_id::CalculateScore() as the score function
bool IsNucleotide(void) const
bool IsProtein(void) const
TObjectType * Release(void)
Release a reference to the object and return a pointer to the object.
#define END_NCBI_SCOPE
End previously defined NCBI scope.
#define BEGIN_NCBI_SCOPE
Define ncbi namespace.
static const char label[]
const TGeneral & GetGeneral(void) const
Get the variant data.
bool IsGi(void) const
Check if variant Gi is selected.
void initCGuiObjectInfoSeq_id()