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, kernel::
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, kernel::
Particle *) const
110 IMPEM2D_END_NAMESPACE
Import IMP/kernel/base_types.h in the namespace.
#define IMP_OBJECT_NO_WARNING(Name)
Only to work around a gcc bug.
void get_projection(em2d::Image *img, const kernel::ParticlesTemp &ps, const RegistrationResult ®, const ProjectingOptions &options, MasksManagerPtr masks=MasksManagerPtr(), String name="")
Generates a projection from particles.
IMP images for Electron Microscopy using openCV matrices Copyright 2007-2014 IMP Inventors. All rights reserved.
functionality for defining rigid bodies
Various important macros for implementing decorators.
Class to handle individual model particles.
Simple 3D rotation class.
ProjectionStates(const algebra::Vector3Ds &positions, const algebra::Rotation3Ds &orientations, const Images &projections, const String &name="ProjectionStates")
Import IMP/kernel/Particle.h in the namespace.
#define IMP_OBJECTS(Name, PluralName)
Define the types for storing sets of objects.
A nullptr-initialized pointer to an IMP Object.
GridStates(const algebra::Vector3Ds &positions, const algebra::Rotation3Ds &orientations, const String &name="GridStates")
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