| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
#ifndef BALL_DOCKING_COMMON_GRIDANALYSIS_H |
| 6 |
#define BALL_DOCKING_COMMON_GRIDANALYSIS_H |
| 7 |
|
| 8 |
#ifndef BALL_SCORING_COMMON_SCORINGFUNCTION_H |
| 9 |
#include <BALL/SCORING/COMMON/scoringFunction.h> |
| 10 |
#endif |
| 11 |
|
| 12 |
#ifndef BALL_DATATYPE_REGULARDATA3D_H |
| 13 |
#include <BALL/DATATYPE/regularData3D.h> |
| 14 |
#endif |
| 15 |
|
| 16 |
#include <map> |
| 17 |
|
| 18 |
namespace BALL |
| 19 |
{ |
| 20 |
class BALL_EXPORT GridAnalysis |
| 21 |
{ |
| 22 |
public: |
| 23 |
GridAnalysis(ScoringFunction* sf, AtomContainer* probe_group); |
| 24 |
|
| 25 |
void setResolution(const double& resolution); |
| 26 |
|
| 27 |
void enableSavingBestPoses(Size number_best_poses); |
| 28 |
|
| 29 |
RegularData3D* calculate(); |
| 30 |
|
| 31 |
std::list<AtomContainer*> getBestPoses(); |
| 32 |
|
| 33 |
protected: |
| 34 |
typedef std::multimap<double, std::pair<Vector3, Vector3> > PoseList; |
| 35 |
|
| 36 |
|
| 37 |
void moveProbeGroup_(const Vector3& destination); |
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
void rotateProbeGroup_(int axis, int degree); |
| 42 |
|
| 43 |
ScoringFunction* scoring_function_; |
| 44 |
|
| 45 |
AtomContainer probe_group_; |
| 46 |
|
| 47 |
double resolution_; |
| 48 |
|
| 49 |
Vector3 origin_; |
| 50 |
|
| 51 |
|
| 52 |
Vector3 center_; |
| 53 |
|
| 54 |
Size no_best_poses_; |
| 55 |
|
| 56 |
|
| 57 |
PoseList best_poses_; |
| 58 |
|
| 59 |
Size border_; |
| 60 |
|
| 61 |
}; |
| 62 |
} |
| 63 |
|
| 64 |
#endif |