7 #ifndef IMPEM2D_PROJECTION_PARAMETERS_H
8 #define IMPEM2D_PROJECTION_PARAMETERS_H
10 #include "IMP/em2d/em2d_config.h"
18 IMPEM2D_BEGIN_NAMESPACE
38 void set_proper_ranges_for_keys(
49 for (
int i = 0; i < 6; ++i) {
50 if (
get_particle()->get_is_optimized(get_keys()[i]) ==
false) {
62 set_translation_x(v[0]);
63 set_translation_y(v[1]);
66 algebra::Rotation3D get_rotation()
const {
68 get_quaternion_3(), get_quaternion_4());
72 return algebra::Rotation3D(unit[0], unit[1], unit[2], unit[3]);
75 void set_rotation(
const algebra::Rotation3D &R) {
76 set_quaternion_1(R.get_quaternion()[0]);
77 set_quaternion_2(R.get_quaternion()[1]);
78 set_quaternion_3(R.get_quaternion()[2]);
79 set_quaternion_4(R.get_quaternion()[3]);
84 for (
int i = 0; i < 6; ++i) {
110 :
ScoreState(p->get_model(),
"ProjectionParametersScoreState%1%") {
124 IMPEM2D_END_NAMESPACE
The base class for decorators.
#define IMP_DECORATOR_GET_SET(name, AttributeKey, Type, ReturnType)
Define methods for getting and setting a particular simple field.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
void set_parameters_optimized(bool tf) const
Set whether the parameters are optimized.
A smart pointer to a reference counted object.
Class for storing model, its restraints, constraints, and particles.
ScoreStates maintain invariants in the Model.
Various general useful macros for IMP.
#define IMP_DECORATOR_SETUP_0(Name)
Simple 3D rotation class.
Particle * get_particle() const
Returns the particle decorated by this decorator.
virtual ModelObjectsTemp do_get_outputs() const =0
#define IMP_DECORATOR_METHODS(Name, Parent)
double Float
Basic floating-point value (could be float, double...)
Class to handle individual model particles.
bool get_parameters_optimized() const
Get whether the parameters are optimized.
#define IMP_DECORATORS(Name, PluralName, Parent)
Define the types for storing sets of decorators.
virtual ModelObjectsTemp do_get_inputs() const =0
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
Class for adding derivatives from restraints to the model.