7 #ifndef IMPEM2D_PROJECTION_PARAMETERS_H
8 #define IMPEM2D_PROJECTION_PARAMETERS_H
10 #include "IMP/em2d/em2d_config.h"
21 IMPEM2D_BEGIN_NAMESPACE
55 for(
int i=0;i<6;++i) {
56 if(
get_particle()->get_is_optimized(get_keys()[i])==
false) {
71 set_translation_x(v[0]);
72 set_translation_y(v[1]);
75 algebra::Rotation3D get_rotation()
const {
83 return algebra::Rotation3D(unit[0],
89 void set_rotation(
const algebra::Rotation3D &R) {
90 set_quaternion_1(R.get_quaternion()[0]);
91 set_quaternion_2(R.get_quaternion()[1]);
92 set_quaternion_3(R.get_quaternion()[2]);
93 set_quaternion_4(R.get_quaternion()[3]);
98 for(
int i=0;i<6;++i) {
130 "ProjectionParametersScoreState%1%") {
133 virtual void do_before_evaluate() IMP_OVERRIDE;
146 IMPEM2D_END_NAMESPACE
Import IMP/kernel/Decorator.h in the namespace.
Class for adding derivatives from restraints to the model.
IMP::kernel::ScoreState ScoreState
Particle * get_particle() const
void set_parameters_optimized(bool tf) const
Set whether the parameters are optimized.
#define IMP_DECORATOR_METHODS(Name, Parent)
A smart pointer to a reference counted object.
ScoreStates maintian invariants in the Model.
static bool get_is_setup(Particle *p)
Return true if the particle can be cast to the decorator.
#define IMP_DECORATOR_SETUP_0(Name)
Import IMP/kernel/decorator_macros.h in the namespace.
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
Import IMP/kernel/ScoreState.h in the namespace.
Class to handle individual model particles.
Simple 3D rotation class.
Import IMP/kernel/score_state_macros.h in the namespace.
virtual ModelObjectsTemp do_get_inputs() const =0
double Float
Basic floating-point value (could be float, double...)
bool get_parameters_optimized() const
Get whether the parameters are optimized.
VectorD get_unit_vector() const
#define IMP_DECORATOR_GET_SET(name, AttributeKey, Type, ReturnType)
Define methods for getting and setting a particular simple field.
#define IMP_DECORATORS(Name, PluralName, Parent)
Define the types for storing sets of decorators.
virtual ModelObjectsTemp do_get_outputs() const =0
Class for storing model, its restraints, constraints, and particles.