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/vcf__table__view_8cpp_source.html below:

NCBI C++ ToolKit: src/gui/packages/pkg_sequence/vcf_table_view.cpp Source File

63 #include <wx/msgdlg.h> 75  "Show tabular information about VCFs"

,

76  "The VCF Table View provides a tabular break-down of a loaded VCF file"

,

113  size_t

n_sel_variants(sel_variants.size());

114  for

(

size_t i

=0;

i

<

nRows

;

i

++) {

118  for

(

size_t

j=0; j<n_sel_variants; j++) {

119  if

(vcf_variant->

WeakMatch

(*sel_variants[j])) {

131  size_t

n_sel_rows(rows.size());

132  for

(

size_t i

=0;

i

<n_sel_rows;

i

++) {

242  object

=

objects

[0].object.GetPointer();

243

scope =

objects

[0].scope.GetPointer();

249  if

(seq_entry && seq_entry->

IsSeq

())

250

seq = &seq_entry->

GetSeq

();

258  static const

wxString strInitializing =

wxT

(

"Initializing..."

);

280  string str

(

"Failed to retrieve sequence: "

);

295  if

(!ws)

return false

;

300  const

objects::CProjectFolder& prj_folder(doc->GetData());

302  if

(!prj_folder.IsSetItems())

305

vector< CIRef<INonAsnTrackDataFactory> > data_factories;

308  if

(data_factories.empty())

313  for

(

const auto

& prj_item : prj_folder.GetItems()) {

315  if

(!prj_item->GetItem().IsOther())

318  for

(

auto

&factory : data_factories) {

320  if

(track_data.

IsNull

()) {

339

table_data->LoadData();

381  auto

nFirstRow(

grid

->SetSelection(evt));

382  grid

->ScrollToRow(

static_cast<int>

(nFirstRow));

392  grid

->GetSelectedObjects (sobjs);

396

objs.push_back(it->object);

410  const CSeq_loc

* loc =

dynamic_cast<const CSeq_loc

*

>

(it->object.GetPointer());

437  grid

->GetSelectedObjects (objs);

476  if

(!gridEvt)

return

;

485  if

(!queryEvt)

return

;

488

sb_srv->SetStatusMessage(queryEvt->

GetStatus

());

497  if

(!tableEvt)

return

;

508  if

(table_data->GetRowsCount() < 100) {

509

widget->

GetGrid

()->AutoSizeRows();

540  static string

sid(

"vcf_table_view_factory"

);

546  static string

slabel(

"VCF Table View Factory"

);

564

vector<CUICommand*> Commands;

588  bool

found_good =

false

;

589  bool

found_bad =

false

;

590  for

(

size_t i

= 0;

i

<

objects

.size();

i

++ ){

592  const

type_info&

type

=

typeid

(*obj);

595  if

(isThisGood && !found_good) {

598  if

(!isThisGood && !found_bad) {

std::invoke_result< _Fty, ICanceled & >::type GUI_AsyncExec(_Fty &&_Fnarg, const wxString &msg=wxT("Accessing network..."))

const CSeq_id * GetFirstId() const

CEvent - generic event implementation TODO TODO - Attachments.

CUndoManager & GetUndoManager()

CProjectService - a service providing API for operations with Workspaces and Projects.

virtual void x_ReportInvalidInputData(TConstScopedObjects &objects)

use this function to report incompatible data in InitView()

virtual void OnProjectChanged()

virtual void x_UpdateContentLabel()

virtual void x_AttachToProject(CGBDocument &doc)

ISelectionService * m_SelectionService

virtual bool x_HasProject() const

EEventSubtype GetSubtype() const

CProjectViewTypeDescriptor - holds description of a project view type.

virtual CUndoManager * x_GetUndoManager()

gets undo manager

void BroadcastVisibleRange(CVisibleRange::EBasicPolicy bp)

fire a non-recursive visible range changed event

const string & GetStatus() const

CSelectionEvent CSelectionEvent is used for broadcasting selection between views.

vector< CConstRef< objects::CVcfVariant > > TVcfVariants

const TVcfVariants & GetVcfVariants() const

bool AddObjectSelection(const CObject &obj)

namespace ncbi::objects::

CIRef< ITableData > GetTableData()

virtual void GetSelection(const ITableData &table, const vector< size_t > &rows, CSelectionEvent &evt) const

virtual void GetRows(const ITableData &table, const CSelectionEvent &evt, vector< size_t > &rows) const

virtual const CProjectViewTypeDescriptor & GetProjectViewTypeDescriptor() const

returns a Descriptor for the View Type supported by the Factory

virtual vector< CUICommand * > GetCommands()

returns a vector of commands (takes ownership over CUICommand pointers)

virtual int TestInputObjects(TConstScopedObjects &objects)

tests input objects (not using object conversion) and returns a combination of ETestResult flags bett...

virtual void RegisterIconAliases(wxFileArtProvider &provider)

called by the framework to give Factory a chance to register images used by view

virtual IView * CreateInstanceByFingerprint(const TFingerprint &fingerprint) const

if fingerprint is recognized - creates and returns a new instance

virtual string GetExtensionLabel() const

returns a displayable label for this extension ( please capitalize the key words - "My Extension" )

virtual IView * CreateInstance() const

creates a view instance

virtual string GetExtensionIdentifier() const

CVcfTableViewFactory.

virtual void x_OnSetSelection(CSelectionEvent &evt)

override in derived classes in order to handle selection broadcast

void x_OnUrlHover(CEvent *evt)

virtual void CreateViewWindow(wxWindow *parent)

create Window corresponding to the view

virtual void DestroyViewWindow()

destroy Window corresponding to the view

void x_QueryStatusChange(CEvent *evt)

virtual void GetVisibleRanges(CVisibleRange &vrange) const

populate a visible range event for broadcasting

void x_OnDataChanged(CEvent *evt)

virtual void SetRegistryPath(const string &reg_path)

virtual wxWindow * GetWindow()

returns a pointer to the wxWindow representing the client

virtual bool InitView(TConstScopedObjects &objects, const objects::CUser_object *params)

initialize view with data, inside this function the view must call CProjectService::AttachView to con...

virtual void OnWidgetSelChanged()

TConstScopedObjects m_OrigObjects

virtual void GetMainObject(TConstScopedObjects &objs) const

Adds the main data objects represented by the client to "objects".

virtual void SaveSettings() const

virtual void GetSelection(CSelectionEvent &evt) const

get selection for broadcasting

virtual wxEvtHandler * GetCommandHandler()

IWMClient implementation.

virtual const CViewTypeDescriptor & GetTypeDescriptor() const

return an object providing meta information about thei view type

CIRef< INonAsnTrackData > m_NonAsnTrackData

virtual void LoadSettings()

CViewTypeDescriptor - holds description of a view type.

void AddLocation(const objects::CSeq_loc &loc)

Interface for testing cancellation request in a long lasting operation.

virtual const CViewTypeDescriptor & GetViewTypeDescriptor() const

returns a Descriptor for the View Type supported by the Factory

IRegSettings An interface for objects that save / restore settings using CGuiRegistry.

virtual void SaveSettings() const =0

virtual void LoadSettings()=0

virtual void SetRegistryPath(const string &path)=0

virtual void OnSelectionChanged(ISelectionClient *source)=0

notifies Service and its observers about changes in selection

IView - represents a standard visual part of Workbench UI.

CFingerprint identifies an instance of IWMClient and is used for labeling layout positions.

virtual void RegisterFileAlias(const wxArtID &anId, const wxArtClient &aClient, const wxSize &aSize, const wxString &aName, long aType=wxBITMAP_TYPE_ANY, int anIndex=-1)

static const struct name_t names[]

static const char * str(char *buf, int n)

#define ITERATE(Type, Var, Cont)

ITERATE macro to sequence through container elements.

virtual void GetCompatibleToolBars(vector< string > &names)

returns the names of toolbars compatible with this class (toolbars that are relevant and useful in th...

virtual const CObject * x_GetOrigObject() const

const string & GetMsg(void) const

Get message string.

CIRef< T > GetServiceByType()

retrieves a typed reference to a service, the name of C++ type is used as the name of the service.

#define EXT_POINT__NONASN_TRACK_DATA_FACTORY

bool WeakMatch(const CVcfVariant &right) const

CRef< objects::CScope > scope

void GetExtensionAsInterface(const string &ext_point_id, vector< CIRef< I > > &interfaces)

GetExtensionAsInterface() is a helper function that extracts all extensions implementing the specifie...

vector< CConstRef< CObject > > TConstObjects

virtual const string & GetIconAlias() const

#define END_EVENT_MAP()

Ends definition of Command Map.

CConstRef< CObject > object

#define BEGIN_EVENT_MAP(thisClass, baseClass)

Begins definition of Command Map for CEventHandler-derived class.

virtual void AddListener(CEventHandler *listener, int pool_name=ePool_Default)

Add a listener.

vector< SConstScopedObject > TConstScopedObjects

const objects::CSeq_loc & GetLocation() const

void GetLabel(string *label, ELabelType type=eDefault, TLabelFlags flags=fLabel_Default) const

Append a label for this Seq-id to the supplied string.

CConstRef< CSeq_id > GetSeqId(void) const

TRange GetTotalRange(void) const

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

CBioseq_Handle GetBioseqHandle(const CSeq_id &id)

Get bioseq handle by seq-id.

const CSeq_id_Handle & GetSeq_id_Handle(void) const

Get handle of id used to obtain this bioseq handle.

TObjectType * GetPointer(void) const THROWS_NONE

Get pointer,.

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().

#define END_NCBI_SCOPE

End previously defined NCBI scope.

#define BEGIN_NCBI_SCOPE

Define ncbi namespace.

const TLocation & GetLocation(void) const

Get the Location member data.

bool IsLocal(void) const

Check if variant Local is selected.

const TSeq & GetSeq(void) const

Get the variant data.

bool IsSeq(void) const

Check if variant Seq is selected.

const TFtable & GetFtable(void) const

Get the variant data.

list< CRef< CSeq_feat > > TFtable

const TData & GetData(void) const

Get the Data member data.

<!DOCTYPE HTML >< html > n< header > n< title > PubSeq Gateway Help Page</title > n< style > n table

CProjectViewTypeDescriptor s_VcfViewTypeDescr("VCF Table View", "vcf_table_view", "Show tabular information about VCFs", "The VCF Table View provides a tabular break-down of a loaded VCF file", "VCF_TABLE_VIEW", "Sequence", false, "Seq-loc", eOneObjectAccepted)

CVcfTableView.

ON_EVENT(CVcfTableEvent, CVcfTableEvent::eDataChanged, &CVcfTableView::x_OnDataChanged) ON_EVENT(CGridWidgetEvent

void ReportIDError(const string &id_label, bool is_local, const string &title="Error message")

wxString ToWxString(const string &s)

string ToStdString(const wxString &s)


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