Debian Codegraph @

ccp4mg-utils/mmut/mmut_basepairs.h

raw symbols SCIP
1 /*
2 mmut/mmut_basepairs.h: CCP4MG Molecular Graphics Program
3 Copyright (C) 2001-2008 University of York, CCLRC
4
5 This library is free software: you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public License
7 version 3, modified in accordance with the provisions of the
8 license to address the requirements of UK law.
9
10 You should have received a copy of the modified GNU Lesser General
11 Public License along with this library. If not, copies may be
12 downloaded from http://www.ccp4.ac.uk/ccp4license.php
13
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU Lesser General Public License for more details.
18 */
19
20 #ifndef _CCP4_MMUT_BASE_PAIRS_H_
21 #define _CCP4_MMUT_BASE_PAIRS_H_
22 #include <vector>
23 #include <utility>
24 #include <mman_manager.h>
25 #include "atom_util.h"
26
27 class CNABasePairs{
28 std::vector<std::pair<mmdb::PResidue,mmdb::PResidue> > base_pairs;
29 std::vector<std::pair<double*,double*> > colours;
30 public:
31 CNABasePairs(){};
32 void Calculate(CMMANManager *molHnd, int selHnd, mmdb::PPAtom selAtoms, int nSelAtoms, AtomColourVector *atom_colour_vector);
33 CNABasePairs(CMMANManager *molHnd, int selHnd, mmdb::PPAtom selAtoms, int nSelAtoms, AtomColourVector *atom_colour_vector);
34 mmdb::PResidue GetPairedResidue(const mmdb::PResidue res_in) const ;
35 int GetPairedResidueIndex(const int i) const ;
36 std::vector<std::pair<mmdb::PResidue,mmdb::PResidue> > GetPairs() const {return base_pairs;};
37 std::vector<std::pair<double*,double*> > GetColours() const {return colours;};
38 };
39 #endif //_CCP4_MMUT_BASE_PAIRS_H_