7 #include "dataReg/parser/TransformationMatrix3D.hpp" 9 #include <fwData/TransformationMatrix3D.hpp> 11 #include <fwServices/macros.hpp> 25 SLM_FATAL(
"This method is deprecated, and thus shouldn't be used.");
30 void TransformationMatrix3D::createConfig( ::fwTools::Object::sptr _obj )
32 ::fwData::TransformationMatrix3D::sptr matrix = ::fwData::TransformationMatrix3D::dynamicCast( _obj );
35 for( ::fwRuntime::ConfigurationElement::csptr elem : m_cfg->getElements() )
37 if ( elem->getName() ==
"matrix" )
39 std::string input = elem->getValue();
40 std::istringstream inputString( input );
43 for (
unsigned int k = 0; k < 16; k++)
46 matrix->getCoefficients()[k] = coef;
The namespace dataReg (data registration) contains classes which allow to parse the xml configuration...
#define SLM_FATAL(message)
#define SLM_ASSERT(message, cond)
work like 'assert' from 'cassert', with in addition a message logged by spylog (with FATAL loglevel) ...
Service type for the construction of an object and associated services from an XML-based description...