/** * \file XYZ.cpp \brief Transformation decorator. * * Copyright 2007-2010 IMP Inventors. All rights reserved. * */ #include #include #include IMPDOMINO_BEGIN_NAMESPACE void Transformation::show(std::ostream &out) const { algebra::VectorD<8> v; Particle *p=get_particle(); v[0]=p->get_value(get_rotation_key(0)); v[1]=p->get_value(get_rotation_key(1)); v[2]=p->get_value(get_rotation_key(2)); v[3]=p->get_value(get_rotation_key(3)); v[4]=p->get_value(get_translation_key(0)); v[5]=p->get_value(get_translation_key(1)); v[6]=p->get_value(get_translation_key(2)); v[7]=p->get_value(get_transformation_index_key()); out << "(" <get_value(get_rotation_key(0)), p->get_value(get_rotation_key(1)), p->get_value(get_rotation_key(2)), p->get_value(get_rotation_key(3))), algebra::VectorD<3>(p->get_value(get_translation_key(0)), p->get_value(get_translation_key(1)), p->get_value(get_translation_key(2)))); } IMPDOMINO_END_NAMESPACE