10 #ifndef IMPEM2D_DOMINO_PARTICLE_STATES_H
11 #define IMPEM2D_DOMINO_PARTICLE_STATES_H
23 IMPEM2D_BEGIN_NAMESPACE
34 unsigned int number_of_states_;
48 const String &name =
"GridStates")
49 : domino::ParticleStates(name),
50 positions_(positions),
51 orientations_(orientations) {
52 number_of_states_ = positions_.size() * orientations_.size();
61 virtual unsigned int get_number_of_particle_states() const
IMP_OVERRIDE;
62 virtual
void load_particle_state(
unsigned int,
Particle *) const
94 const String &name =
"ProjectionStates")
95 : GridStates(positions, orientations, name), projections_(projections) {
96 number_of_states_ = positions_.size() * orientations_.size();
102 virtual unsigned int get_number_of_particle_states() const IMP_OVERRIDE;
103 virtual
void load_particle_state(
unsigned int,
Particle *) const
110 IMPEM2D_END_NAMESPACE
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
IMP images for Electron Microscopy using openCV matrices Copyright 2007-2019 IMP Inventors. All rights reserved.
functionality for defining rigid bodies
Various important macros for implementing decorators.
Simple 3D rotation class.
ProjectionStates(const algebra::Vector3Ds &positions, const algebra::Rotation3Ds &orientations, const Images &projections, const String &name="ProjectionStates")
Classes to handle individual model particles. (Note that implementation of inline functions is in int...
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing lists of object pointers.
A nullptr-initialized pointer to an IMP Object.
GridStates(const algebra::Vector3Ds &positions, const algebra::Rotation3Ds &orientations, const String &name="GridStates")
Class to handle individual particles of a Model object.
A Bayesian inference-based sampler.
std::string String
Basic string value.
#define IMP_OVERRIDE
Cause a compile error if this method does not override a parent method.
2D Electron Microscopy images in IMP
void get_projection(em2d::Image *img, const ParticlesTemp &ps, const RegistrationResult ®, const ProjectingOptions &options, MasksManagerPtr masks=MasksManagerPtr(), String name="")
Generates a projection from particles.