/** * \file TransformationDiscreteSet.cpp * \brief Holds a discrete sampling space of transformations. * * Copyright 2007-2010 IMP Inventors. All rights reserved. */ #include IMPDOMINO_BEGIN_NAMESPACE TransformationDiscreteSet::TransformationDiscreteSet(){ atts_.push_back(FloatKey("x")); atts_.push_back(FloatKey("y")); atts_.push_back(FloatKey("z")); atts_.push_back(FloatKey("a")); atts_.push_back(FloatKey("b")); atts_.push_back(FloatKey("c")); atts_.push_back(FloatKey("d")); IMP_LOG(VERBOSE,"Cosntruct a TransformationDiscreteSet with " << atts_.size() << " attributes " << std::endl); m_=NULL; } algebra::Transformation3D TransformationDiscreteSet::get_transformation(long state_ind) const { IMP_INTERNAL_CHECK(static_cast(state_ind)add_attribute(atts_[i],t.get_translation()[i],false); } for(int i=0;i<4;i++){ p->add_attribute(atts_[i+3],t.get_rotation().get_quaternion()[i],false); } add_state(p); } void TransformationDiscreteSet::show(std::ostream& out) const { //TODO - add } IMPDOMINO_END_NAMESPACE