⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 alnvec_multi_model.hpp

📁 ncbi源码
💻 HPP
字号:
/* * =========================================================================== * PRODUCTION $Log: alnvec_multi_model.hpp,v $ * PRODUCTION Revision 1000.0  2004/04/12 18:23:19  gouriano * PRODUCTION PRODUCTION: IMPORTED [CATCHUP_003] Dev-tree R1.4 * PRODUCTION * =========================================================================== */#ifndef GUI_WIDGETS_ALNMULTI___ALNVEC_MULTI_MODEL__HPP#define GUI_WIDGETS_ALNMULTI___ALNVEC_MULTI_MODEL__HPP/*  $Id: alnvec_multi_model.hpp,v 1000.0 2004/04/12 18:23:19 gouriano Exp $ * =========================================================================== * *                            PUBLIC DOMAIN NOTICE *               National Center for Biotechnology Information * *  This software/database is a "United States Government Work" under the *  terms of the United States Copyright Act.  It was written as part of *  the author's official duties as a United States Government employee and *  thus cannot be copyrighted.  This software/database is freely available *  to the public for use. The National Library of Medicine and the U.S. *  Government have not placed any restriction on its use or reproduction. * *  Although all reasonable efforts have been taken to ensure the accuracy *  and reliability of the software and data, the NLM and the U.S. *  Government do not and cannot warrant the performance or results that *  may be obtained by using this software or data. The NLM and the U.S. *  Government disclaim all warranties, express or implied, including *  warranties of performance, merchantability or fitness for any particular *  purpose. * *  Please cite the author in any work or product based on this material. * * =========================================================================== * * Authors:  Andrey Yazhuk * * File Description: *   */#include <corelib/ncbistl.hpp>#include <corelib/ncbistd.hpp>#include <corelib/ncbiobj.hpp>#include <gui/widgets/aln_multiple/alnmulti_model.hpp>#include <gui/widgets/aln_multiple/align_row.hpp>#include <gui/widgets/aln_multiple/aln_scoring.hpp>#include <gui/widgets/aln_multiple/alnvec_multi_ds.hpp>BEGIN_NCBI_SCOPE/////////////////////////////////////////////////////////////////////////////////// CAlnVecMultiModel - extension of CAlnMultiModel. Represents alignment model /// for CAlnVec-based alignments and supports sequence-based scoring.class NCBI_GUIWIDGETS_ALNMULTIPLE_EXPORT CAlnVecMultiModel : public CAlnMultiModel{public:    CAlnVecMultiModel();    ~CAlnVecMultiModel();    virtual void SetDataSource(IAlnMultiDataSource* p_ds);        virtual void    SetMasterRow(TNumrow new_row);        /// @name Scoring Methods management functions    /// @{    typedef list<IScoringMethod*>    TMethods;        //call this method before SetDataSource    void    EnableScoring(bool b_en);    bool    AddScoringMethod(IScoringMethod* method);    const   TMethods&        GetMethods();    bool    SetCurrentMethod(const string& name);    const IScoringMethod*    GetCurrentMethod() const;    /// @}    CAlnVecRow*     SetAlnVecRow(TNumrow row)    {        return dynamic_cast<CAlnVecRow*>(GetRow(row));    }protected:        inline CAlnVecMultiDataSource*  x_GetAlnVecDS()    {        return dynamic_cast<CAlnVecMultiDataSource*>(m_pDataSource);    }    // factory method for creation IAlignRow instances    virtual IAlignRow*  x_CreateRow(TNumrow row);        virtual void    x_UpdateOnDataChanged();     virtual void    x_UpdateOnCoordsChanged();    protected:    bool    m_bEnableScoring;    TMethods        m_Methods;  /// registered scoring methods    CScoreCache     m_ScoreCache;    };END_NCBI_SCOPE#endif  // GUI_WIDGETS_ALNMULTI___ALNVEC_MULTI_MODEL__HPP/* * =========================================================================== * $Log: alnvec_multi_model.hpp,v $ * Revision 1000.0  2004/04/12 18:23:19  gouriano * PRODUCTION: IMPORTED [CATCHUP_003] Dev-tree R1.4 * * Revision 1.4  2004/04/02 16:26:41  yazhuk * Replaced UpdateOnCoordsChanged() with x_UpdateOnCoordsChanged(); added * SetMasterRow(TNumrow) * * Revision 1.3  2004/03/24 19:18:06  yazhuk * Introduced scoring enabling/disabling * * Revision 1.2  2004/03/18 17:05:58  yazhuk * Redesigned Scoring Methods API * * Revision 1.1  2004/03/17 17:20:52  yazhuk * Initial revision; factored out from CAlnVecMultiWidget * * =========================================================================== */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -