Debian Codegraph @

pli/residue-circle.hh

raw symbols SCIP
1 #cxx . . $ `<file>/pli/residue-circle.hh`/ifndef COOT_PLI_RESIDUE_CIRCLE_HH
2 #define COOT_PLI_RESIDUE_CIRCLE_HHcxx . . $ `pli/residue-circle.hh:2:9`!
3
4 #include <string>
5 #include <vector>
6 #include <clipper/core/coords.h>
7
8 #include "lidia-core/svg-molecule.hh"cxx . . $ `<file>/lidia-core/svg-molecule.hh`/
9 #include "geometry/residue-and-atom-specs.hh"cxx . . $ `<file>/geometry/residue-and-atom-specs.hh`/
10 #include "bond-to-ligand.hh"cxx . . $ `<file>/pli/bond-to-ligand.hh`/
11
12 class residue_circle_tcxx . . $ residue_circle_t# {
13 bool se_diff_set_cxx . . $ residue_circle_t#se_diff_set_.;
14 double se_holocxx . . $ residue_circle_t#se_holo.;
15 double se_apocxx . . $ residue_circle_t#se_apo.;
16 int stacking_typecxx . . $ residue_circle_t#stacking_type.;
17 stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> ligand_ring_atom_namescxx . . $ residue_circle_t#ligand_ring_atom_names.;
18 stdcxx . . $ std/::stringcxx . . $ std/string# ligand_cation_atom_namecxx . . $ residue_circle_t#ligand_cation_atom_name.;
19 bool is_a_primary_residue_cxx . . $ residue_circle_t#is_a_primary_residue_.; // primary residues are stacking or
20 // bond and are placed first looking
21 // for non-overlaping
22 // interaction-bond lines.
23 public:
24 // CATION_PI_STACKING sets ligand_cationic_atom_name, not the
25 // ligand_ring_atom_names vector.
26 //
27 enumcxx . . $ residue_circle_t#$anonymous_type_0# { PI_PI_STACKINGcxx . . $ residue_circle_t#PI_PI_STACKING.,
28 PI_CATION_STACKINGcxx . . $ residue_circle_t#PI_CATION_STACKING., // for cations on the protein residues (ligand pi)
29 CATION_PI_STACKINGcxx . . $ residue_circle_t#CATION_PI_STACKING., // for cations on the ligand (protein TRY, PRO, TRP)
30 };
31
32 clippercxx . . $ clipper/::Coord_orthcxx . . $ clipper/Coord_orth# trans_rel_pos_3dcxx . . $ residue_circle_t#trans_rel_pos_3d.;
33 clippercxx . . $ clipper/::Coord_orthcxx . . $ clipper/Coord_orth# residue_centre_realcxx . . $ residue_circle_t#residue_centre_real.;
34
35 lig_buildcxx . . $ lig_build/::pos_tcxx . . $ lig_build/pos_t# poscxx . . $ residue_circle_t#pos.; // coordinate system of the ligand atoms
36 cootcxx . . $ coot/::residue_spec_tcxx . . $ coot/residue_spec_t# speccxx . . $ residue_circle_t#spec.;
37 stdcxx . . $ std/::stringcxx . . $ std/string# residue_typecxx . . $ residue_circle_t#residue_type.;
38 stdcxx . . $ std/::stringcxx . . $ std/string# residue_labelcxx . . $ residue_circle_t#residue_label.;
39 stdcxx . . $ std/::vectorcxx . . $ std/vector#<bond_to_ligand_tcxx . . $ bond_to_ligand_t#> bonds_to_ligandcxx . . $ residue_circle_t#bonds_to_ligand.;
40 double water_dist_to_proteincxx . . $ residue_circle_t#water_dist_to_protein.;
41 residue_circle_tcxx . . $ residue_circle_t#residue_circle_t(a0ccbfde962909e4).(const clippercxx . . $ clipper/::Coord_orthcxx . . $ clipper/Coord_orth# &pos_in,
42 const clippercxx . . $ clipper/::Coord_orthcxx . . $ clipper/Coord_orth# &click_pos_in,
43 cootcxx . . $ coot/::residue_spec_tcxx . . $ coot/residue_spec_t# spec_in,
44 const stdcxx . . $ std/::stringcxx . . $ std/string# &type_in,
45 const stdcxx . . $ std/::stringcxx . . $ std/string# &label_in) :
46 trans_rel_pos_3dcxx . . $ residue_circle_t#trans_rel_pos_3d.(pos_in),
47 residue_centre_realcxx . . $ residue_circle_t#residue_centre_real.(click_pos_in),
48 speccxx . . $ residue_circle_t#spec.(spec_in),
49 residue_typecxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5).(type_in),
50 residue_labelcxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5).(label_in) {
51 se_holocxx . . $ residue_circle_t#se_holo. = 0.0;
52 se_apocxx . . $ residue_circle_t#se_apo. = 0.0;
53 se_diff_set_cxx . . $ residue_circle_t#se_diff_set_. = 0;
54 stacking_typecxx . . $ residue_circle_t#stacking_type. = -1; // should have enumerated value
55 is_a_primary_residue_cxx . . $ residue_circle_t#is_a_primary_residue_. = 0;
56 water_dist_to_proteincxx . . $ residue_circle_t#water_dist_to_protein. = 100;
57 }
58 void set_canvas_poscxx . . $ residue_circle_t#set_canvas_pos(826589e6e9cd5d16).(const lig_buildcxx . . $ lig_build/::pos_tcxx . . $ lig_build/pos_t# &pos_in) {
59 poscxx . . $ residue_circle_t#pos. =cxx . . $ lig_build/pos_t#`operator=`(4d69279343263814). pos_in;
60 }
61 void add_bond_to_ligandcxx . . $ residue_circle_t#add_bond_to_ligand(901707fa5f794275).(const bond_to_ligand_tcxx . . $ bond_to_ligand_t# &bl) {
62 bonds_to_ligandcxx . . $ residue_circle_t#bonds_to_ligand..push_backcxx . . $ std/vector#push_back(77d9f17553126ecb).(bl);
63 is_a_primary_residue_cxx . . $ residue_circle_t#is_a_primary_residue_. = 1;
64 }
65 void set_solvent_exposure_diffcxx . . $ residue_circle_t#set_solvent_exposure_diff(bc12c9ec15586e6a).(double se_holo_in, double se_apo_in) {
66 se_holocxx . . $ residue_circle_t#se_holo. = se_holo_in;
67 se_apocxx . . $ residue_circle_t#se_apo. = se_apo_in;
68 se_diff_set_cxx . . $ residue_circle_t#se_diff_set_. = 1;
69 }
70 void set_stackingcxx . . $ residue_circle_t#set_stacking(b4ac7545c065266c).(const stdcxx . . $ std/::stringcxx . . $ std/string# &type_string,
71 const stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> &ligand_ring_atom_names_in,
72 const stdcxx . . $ std/::stringcxx . . $ std/string# &ligand_cation_atom_name_in) {
73 is_a_primary_residue_cxx . . $ residue_circle_t#is_a_primary_residue_. = 1;
74 if (type_string ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "pi-pi")
75 stacking_typecxx . . $ residue_circle_t#stacking_type. = PI_PI_STACKINGcxx . . $ residue_circle_t#PI_PI_STACKING.;
76 if (type_string ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "pi-cation")
77 stacking_typecxx . . $ residue_circle_t#stacking_type. = PI_CATION_STACKINGcxx . . $ residue_circle_t#PI_CATION_STACKING.;
78 if (type_string ==cxx . . $ std/`operator==`(4b17aa87c9f300c6). "cation-pi")
79 stacking_typecxx . . $ residue_circle_t#stacking_type. = CATION_PI_STACKINGcxx . . $ residue_circle_t#CATION_PI_STACKING.;
80 if (stacking_typecxx . . $ residue_circle_t#stacking_type. == PI_PI_STACKINGcxx . . $ residue_circle_t#PI_PI_STACKING.)
81 ligand_ring_atom_namescxx . . $ residue_circle_t#ligand_ring_atom_names. =cxx . . $ std/vector#`operator=`(e6b68e61becad66f). ligand_ring_atom_names_in;
82 if (stacking_typecxx . . $ residue_circle_t#stacking_type. == PI_CATION_STACKINGcxx . . $ residue_circle_t#PI_CATION_STACKING.)
83 ligand_ring_atom_namescxx . . $ residue_circle_t#ligand_ring_atom_names. =cxx . . $ std/vector#`operator=`(e6b68e61becad66f). ligand_ring_atom_names_in;
84 if (stacking_typecxx . . $ residue_circle_t#stacking_type. == CATION_PI_STACKINGcxx . . $ residue_circle_t#CATION_PI_STACKING.)
85 ligand_cation_atom_namecxx . . $ residue_circle_t#ligand_cation_atom_name. =cxx . . $ std/__cxx11/basic_string#`operator=`(c0b47be1fddc0e75). ligand_cation_atom_name_in;
86 }
87 int get_stacking_typecxx . . $ residue_circle_t#get_stacking_type(455f465bc33b4cdf).() const {
88 return stacking_typecxx . . $ residue_circle_t#stacking_type.;
89 }
90 stdcxx . . $ std/::stringcxx . . $ std/string# get_ligand_cation_atom_namecxx . . $ residue_circle_t#get_ligand_cation_atom_name(219584694fe2b248).() const {
91 return ligand_cation_atom_namecxx . . $ std/__cxx11/basic_string#basic_string(a47f53d4115f6ce5).;
92 }
93 bool se_diff_setcxx . . $ residue_circle_t#se_diff_set(50ce9a9e25b4a850).() const {
94 return se_diff_set_cxx . . $ residue_circle_t#se_diff_set_.;
95 }
96 stdcxx . . $ std/::paircxx . . $ std/pair#<double, double> solvent_exposurescxx . . $ residue_circle_t#solvent_exposures(1376e5766acc2ef2).() const {
97 return stdcxx . . $ std/::paircxx . . $ std/pair#<double, double> (se_holocxx . . $ residue_circle_t#se_holo., se_apocxx . . $ residue_circle_t#se_apo.);
98 }
99 void set_water_dist_to_proteincxx . . $ residue_circle_t#set_water_dist_to_protein(ba8836b59fb42830).(double d) {
100 water_dist_to_proteincxx . . $ residue_circle_t#water_dist_to_protein. = d;
101 }
102 stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::stringcxx . . $ std/string#> get_ligand_ring_atom_namescxx . . $ residue_circle_t#get_ligand_ring_atom_names(491c255a7e496038).() const {
103 return ligand_ring_atom_namescxx . . $ residue_circle_t#ligand_ring_atom_names.;
104 }
105 bool has_ring_stacking_interactioncxx . . $ residue_circle_t#has_ring_stacking_interaction(50ce9a9e25b4a850).() const {
106 return (ligand_ring_atom_namescxx . . $ residue_circle_t#ligand_ring_atom_names..sizecxx . . $ std/vector#size(c9b1e749b64d5edc).() > 0);
107 }
108 bool is_a_primary_residuecxx . . $ residue_circle_t#is_a_primary_residue(50ce9a9e25b4a850).() const {
109 return is_a_primary_residue_cxx . . $ residue_circle_t#is_a_primary_residue_.;
110 }
111
112 stdcxx . . $ std/::vectorcxx . . $ std/vector#<stdcxx . . $ std/::paircxx . . $ std/pair#<lig_buildcxx . . $ lig_build/::pos_tcxx . . $ lig_build/pos_t#, double> >
113 get_attachment_pointscxx . . $ residue_circle_t#get_attachment_points(3ac3e1f0f5dca024).(const svg_molecule_tcxx . . $ svg_molecule_t# &mol) const;
114
115 // friend std::ostream& operator<<(std::ostream &s, residue_circle_t r);
116 };
117 // std::ostream& operator<<(std::ostream &s, residue_circle_t r);
118
119
120 #endif // COOT_PLI_RESIDUE_CIRCLE_HH