00001
00002
00003
00004
00005
00006
00007 #ifndef IMPDOMINO_TRANSFORMATION_DISCRETE_SET_H
00008 #define IMPDOMINO_TRANSFORMATION_DISCRETE_SET_H
00009
00010 #include "IMP/Particle.h"
00011 #include <map>
00012 #include <sstream>
00013 #include "IMP/base_types.h"
00014 #include "domino_config.h"
00015 #include <IMP/algebra/Transformation3D.h>
00016 #include "DiscreteSet.h"
00017
00018 IMPDOMINO_BEGIN_NAMESPACE
00019
00020
00021 class IMPDOMINOEXPORT TransformationDiscreteSet : public DiscreteSet
00022 {
00023 public:
00024 TransformationDiscreteSet();
00025 void add_transformation(const algebra::Transformation3D &t);
00026 algebra::Transformation3D get_transformation(long state_ind) const;
00027 long get_number_of_transformations() const{return trans_.size();};
00028
00029 void show(std::ostream& out=std::cout) const;
00030 void set_model(Model *m) {m_=m;}
00031 protected:
00032 Model *m_;
00033 Particles states_;
00034 std::vector<FloatKey> atts_;
00035 std::vector<algebra::Transformation3D> trans_;
00036 };
00037
00038 IMPDOMINO_END_NAMESPACE
00039
00040 #endif