Go to the documentation of this file.00001 #ifndef OPENTISSUE_DYNAMICS_MBD_UTIL_MBD_MEL_EULER_FILTER_STRING_H
00002 #define OPENTISSUE_DYNAMICS_MBD_UTIL_MBD_MEL_EULER_FILTER_STRING_H
00003
00004
00005
00006
00007
00008
00009
00010 #include <OpenTissue/configuration.h>
00011
00012 #include <string>
00013 #include <sstream>
00014
00015 namespace OpenTissue
00016 {
00017 namespace mbd
00018 {
00019 namespace mel
00020 {
00029 template< typename indirect_body_iterator>
00030 std::string euler_filter_string(indirect_body_iterator begin,indirect_body_iterator end)
00031 {
00032 std::stringstream stream;
00033 for(indirect_body_iterator body=begin;body!=end;++body)
00034 {
00035 if(body->is_active())
00036 {
00037 stream << std::endl;
00038 stream << "filterCurve body" << body->get_index() << ".rotateX body" << body->get_index() << ".rotateY body"<< body->get_index() <<".rotateZ;" << std::endl;
00039 stream << std::endl;
00040 }
00041 }
00042 return stream.str();
00043 }
00044
00045 }
00046
00047 }
00048
00049 }
00050
00051
00052 #endif