coord_set.hpp
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:4k
- /*
- * ===========================================================================
- * PRODUCTION $Log: coord_set.hpp,v $
- * PRODUCTION Revision 1000.1 2004/04/12 17:32:17 gouriano
- * PRODUCTION PRODUCTION: UPGRADED [CATCHUP_003] Dev-tree R1.12
- * PRODUCTION
- * ===========================================================================
- */
- /* $Id: coord_set.hpp,v 1000.1 2004/04/12 17:32:17 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: Paul Thiessen
- *
- * File Description:
- * Classes to hold sets of coordinates for atoms and features
- *
- * ===========================================================================
- */
- #ifndef CN3D_COORDSET__HPP
- #define CN3D_COORDSET__HPP
- #include <corelib/ncbistl.hpp>
- #include <map>
- #include <objects/mmdb2/Biostruc_model.hpp>
- #include "structure_base.hpp"
- BEGIN_SCOPE(Cn3D)
- class AtomSet;
- class Object3D;
- // a CoordSet contains one set of atomic coordinates, plus any accompanying
- // feature (helix, strand, ...) coordinates - basically the contents of
- // an ASN1 Biostruc-model
- class CoordSet : public StructureBase
- {
- public:
- CoordSet(StructureBase *parent,
- const ncbi::objects::CBiostruc_model::TModel_coordinates& modelCoords);
- // atom coordinates
- AtomSet *atomSet;
- // map of moleculeID -> objects
- typedef std::list < const Object3D * > Object3DList;
- typedef std::map < int, Object3DList > Object3DMap;
- Object3DMap objectMap;
- // public methods
- bool Draw(const AtomSet *atomSet) const { return false; } // don't draw these directly
- private:
- };
- END_SCOPE(Cn3D)
- #endif // CN3D_COORDSET__HPP
- /*
- * ---------------------------------------------------------------------------
- * $Log: coord_set.hpp,v $
- * Revision 1000.1 2004/04/12 17:32:17 gouriano
- * PRODUCTION: UPGRADED [CATCHUP_003] Dev-tree R1.12
- *
- * Revision 1.12 2004/02/19 17:04:55 thiessen
- * remove cn3d/ from include paths; add pragma to disable annoying msvc warning
- *
- * Revision 1.11 2003/02/03 19:20:03 thiessen
- * format changes: move CVS Log to bottom of file, remove std:: from .cpp files, and use new diagnostic macros
- *
- * Revision 1.10 2001/05/31 18:46:26 thiessen
- * add preliminary style dialog; remove LIST_TYPE; add thread single and delete all; misc tweaks
- *
- * Revision 1.9 2000/11/30 15:49:08 thiessen
- * add show/hide rows; unpack sec. struc. and domain features
- *
- * Revision 1.8 2000/10/04 17:40:45 thiessen
- * rearrange STL #includes
- *
- * Revision 1.7 2000/08/27 18:50:55 thiessen
- * extract sequence information
- *
- * Revision 1.6 2000/08/16 14:18:20 thiessen
- * map 3-d objects to molecules
- *
- * Revision 1.5 2000/08/11 12:59:13 thiessen
- * added worm; get 3d-object coords from asn1
- *
- * Revision 1.4 2000/08/03 15:12:29 thiessen
- * add skeleton of style and show/hide managers
- *
- * Revision 1.3 2000/07/27 13:30:10 thiessen
- * remove 'using namespace ...' from all headers
- *
- * Revision 1.2 2000/07/16 23:18:34 thiessen
- * redo of drawing system
- *
- * Revision 1.1 2000/07/11 13:49:28 thiessen
- * add modules to parse chemical graph; many improvements
- *
- */