7 #ifndef IMPEM2D_REGISTRATION_RESULT_H
8 #define IMPEM2D_REGISTRATION_RESULT_H
10 #include "IMP/em2d/internal/rotation_helper.h"
11 #include "IMP/em2d/em2d_config.h"
21 IMPEM2D_BEGIN_NAMESPACE
42 int projection_index=0,
48 int projection_index=0,
53 inline double get_phi()
const {
return phi_;}
54 inline double get_theta()
const {
return theta_;}
55 inline double get_psi()
const {
return psi_;}
66 inline void set_projection_index(
int index) {projection_index_=index;}
79 inline double get_ccc()
const {
return ccc_;}
81 inline void set_ccc(
double ccc) {
83 is_optimized_result_ =
false;
90 void set_score(
double Score) {
92 is_optimized_result_ =
true;
98 phi_=phi; theta_=theta; psi_=psi;
109 inline void set_name(
String name) {name_=name;}
118 void write(std::ostream& out = std::cout)
const;
121 void write_comment_line(std::ostream& out = std::cout)
const;
124 void read(
const String &s);
127 void set_random_registration(
unsigned int index,
double maximum_shift);
140 bool get_is_optimized_result()
const {
return is_optimized_result_; }
142 ~RegistrationResult();
154 int projection_index_;
161 bool angles_defined_,is_optimized_result_;
180 (
unsigned int n,
double maximum_shift=5.0);
192 inline double get_random_between_zero_and_one() {
193 return (static_cast<double>(rand()) /(static_cast<double>(RAND_MAX)+1));
196 IMPEM2D_END_NAMESPACE