18 #include <itkMetaDataObject.h>
19 #include <itksys/SystemTools.hxx>
21 #include <vtkCleanPolyData.h>
25 #include <boost/property_tree/ptree.hpp>
26 #define RAPIDXML_NO_EXCEPTIONS
27 #include <boost/property_tree/xml_parser.hpp>
28 #include <boost/foreach.hpp>
29 #include <boost/lexical_cast.hpp>
53 std::vector<itk::SmartPointer<mitk::BaseData> > result;
56 const std::string& locale =
"C";
57 const std::string& currLocale = setlocale( LC_ALL, NULL );
58 setlocale(LC_ALL, locale.c_str());
60 std::string
filename = this->GetInputLocation();
62 std::string ext = itksys::SystemTools::GetFilenameLastExtension(filename);
63 ext = itksys::SystemTools::LowerCase(ext);
65 boost::property_tree::ptree tree;
66 boost::property_tree::xml_parser::read_xml(filename, tree);
67 int comptype = tree.get<
int>(
"comptype");
85 MITK_ERROR << filename <<
" contains no valid composition type!";
88 std::vector<itk::SmartPointer<mitk::BaseData> > result;
89 result.push_back(pfc.GetPointer());
91 setlocale(LC_ALL, currLocale.c_str());
DataCollection - Class to facilitate loading/accessing structured data.
us::ServiceRegistration< IFileReader > RegisterService(us::ModuleContext *context=us::GetModuleContext())
static const std::string filename
Base class for creating mitk::BaseData objects from files or streams.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.