Debian Codegraph @

ccp4mg-utils/mmut/mmut_lipids.h

raw symbols SCIP
1 /*
2 mmut/mmut_lipids.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_LIPIDS_H_
21 #define _CCP4_MMUT_LIPIDS_H_
22 #include <vector>
23 #include <utility>
24 #include <mman_manager.h>
25 #include "atom_util.h"
26 #include <mgtree.h>
27
28 class MMUTLipid{
29 /* We have vector of heads here, but currently MMUTLipidCalculate can only cope with 1 head */
30 int main_selhnd;
31 std::vector<std::vector<Cartesian> > sorted_tail_carts;
32 std::vector<std::vector<Cartesian> > head_carts;
33 std::vector<std::vector<int> > head_serNums;
34 std::vector<std::vector<int> > sorted_tail_serNums;
35 std::vector<std::vector<int> > h_tail_serNums;
36 public:
37 MMUTLipid(){};
38 void AddTailCartesians(const std::vector<Cartesian> &carts){sorted_tail_carts.push_back(carts);};
39 void AddTailSerNums(const std::vector<int> &carts){sorted_tail_serNums.push_back(carts);};
40 void AddTailHSerNums(const std::vector<int> &carts){h_tail_serNums.push_back(carts);};
41 void SetHeadCartesians(const std::vector<std::vector<Cartesian> > &head_carts_in){head_carts = head_carts_in;};
42 void SetHeadSerNums(const std::vector<std::vector<int> > &head_serNums_in){head_serNums= head_serNums_in;};
43 std::vector<std::vector<Cartesian> > GetTailCartesians() const {return sorted_tail_carts;};
44 std::vector<std::vector<Cartesian> > GetHeadCartesians() const {return head_carts;};
45 std::vector<Cartesian> GetTailCartesian(const int i) const {return sorted_tail_carts[i];};
46 std::vector<Cartesian> GetHeadCartesian(const int i) const {return head_carts[i];};
47 std::vector<std::vector<int> > GetHeadSerNums() const {return head_serNums;};
48 std::vector<int> GetHeadSerNums(const int i) const {return head_serNums[i];};
49 std::vector<std::vector<int> > GetTailSerNums() const {return sorted_tail_serNums;};
50 std::vector<int> GetTailSerNums(const int i) const {return sorted_tail_serNums[i];};
51 std::vector<std::vector<int> > GetTailHSerNums() const {return h_tail_serNums;};
52 std::vector<int> GetTailHSerNums(const int i) const {return h_tail_serNums[i];};
53 int GetMainSelectionHandle() const {return main_selhnd;};
54 void SetMainSelectionHandle(const int i) {main_selhnd=i;};
55 };
56
57 std::vector<MMUTLipid> MMUTLipidCalculate(CMMANManager *molHnd, int selHnd, int minimum_chain_length=8);
58 int MMUTLipidAnalyse(CMMANManager *molHnd, int selHnd, int minimum_chain_length=8);
59
60 #endif //_CCP4_MMUT_LIPIDS_H_