Rosetta 3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
SolvationMetaGrid.hh
Go to the documentation of this file.
1 // -*- mode:c++;tab-width:2;indent-tabs-mode:t;show-trailing-whitespace:t;rm-trailing-spaces:t -*-
2 // vi: set ts=2 noet:
3 //
4 // (c) Copyright Rosetta Commons Member Institutions.
5 // (c) This file is part of the Rosetta software suite and is made available under license.
6 // (c) The Rosetta software is developed by the contributing members of the Rosetta Commons.
7 // (c) For more information, see http://www.rosettacommons.org. Questions about this can be
8 // (c) addressed to University of Washington UW TechTransfer, email: license@u.washington.edu.
9 
10 /// @file src/protocols/ligand_docking/scoring_grid/SolvationMetaGrid.hh
11 /// @author Sam DeLuca
12 
13 
14 #ifndef INCLUDED_protocols_qsar_scoring_grid_SolvationMetaGrid_hh
15 #define INCLUDED_protocols_qsar_scoring_grid_SolvationMetaGrid_hh
16 
18 
21 
22 #include <map>
23 
24 namespace protocols {
25 namespace qsar {
26 namespace scoring_grid {
27 
29 {
30 public:
32  virtual ~SolvationMetaGrid();
33  /// @brief initialize a grid of zeros with a given centerpoint, width and resolution (in angstroms).
34  virtual void initialize(core::Vector const & center, core::Real width, core::Real resolution);
35  /// @brief populate the grid with values based on a passed pose
36  virtual void refresh(core::pose::Pose const & pose, core::Vector const & center, core::Size const & ligand_chain_id_to_exclude);
37  /// @brief populate the grid with values based on a passed pose
38  virtual void refresh(core::pose::Pose const & pose, core::Vector const & center,utility::vector1<core::Size> ligand_chain_ids_to_exclude);
39  /// @brief populate the grid with values based on a passed pose
40  virtual void refresh(core::pose::Pose const & pose, core::Vector const & center);
41  /// @setup a grid based on RosettaScripts input
42  virtual void parse_my_tag(utility::tag::TagPtr const tag);
43  /// @brief return the current score of a residue using the current grid
44  virtual core::Real score(core::conformation::Residue const & residue, core::Real const max_score, qsarMapOP qsar_map);
45  /// @brief return the current score of an atom using the current grid
46  virtual core::Real atom_score(core::conformation::Residue const & residue, core::Size atomno, qsarMapOP qsar_map);
47  /// @brief get the type of the grid
48  virtual std::string get_type();
49  /// @brief set the chain the grid applies to
50  virtual void set_chain(char chain);
51  /// @brief output a BRIX formatted grid. This really does not work well but is being left for legacy purposes
52  virtual void dump_BRIX(std::string const & prefix);
53  /// @brief Serialize the GridBase object into a json_spirit Value
54  virtual utility::json_spirit::Value serialize();
55  /// @brief deserialize a json spirit Value into a GridBase object
56  virtual void deserialize(utility::json_spirit::mObject data);
57  /// @brief determine if all residue atoms are in a grid
58  virtual bool is_in_grid(core::conformation::Residue const & residue);
59 private:
61  std::map<core::ShortSize,SingleGridOP> grid_map_;
62 };
63 
64 }
65 }
66 }
67 
68 
69 #endif /* SOLVATIONMETAGRID_HH_ */