18 #include <itkMetaDataObject.h>
19 #include <vtkPolyData.h>
20 #include <vtkDataReader.h>
21 #include <vtkPolyDataReader.h>
22 #include <vtkMatrix4x4.h>
23 #include <vtkPolyLine.h>
24 #include <vtkCellArray.h>
25 #include <vtkDataArray.h>
26 #include <vtkFloatArray.h>
27 #include <vtkCellData.h>
28 #include <vtkPointData.h>
29 #include <itksys/SystemTools.hxx>
31 #include <vtkCleanPolyData.h>
56 std::vector<itk::SmartPointer<mitk::BaseData> > result;
59 const std::string& locale =
"C";
60 const std::string& currLocale = setlocale( LC_ALL, NULL );
61 setlocale(LC_ALL, locale.c_str());
63 std::string
filename = this->GetInputLocation();
65 std::string ext = itksys::SystemTools::GetFilenameLastExtension(filename);
66 ext = itksys::SystemTools::LowerCase(ext);
72 reader.
open(this->GetInputLocation().c_str());
73 reader.
read(image.GetPointer());
74 result.push_back(image.GetPointer());
78 setlocale(LC_ALL, currLocale.c_str());
short open(string m_Filename)
DataCollection - Class to facilitate loading/accessing structured data.
us::ServiceRegistration< IFileReader > RegisterService(us::ModuleContext *context=us::GetModuleContext())
FiberBundleTrackVisReader()
static const std::string filename
virtual std::vector< itk::SmartPointer< BaseData > > Read() override
Reads a path or stream and creates a list of BaseData objects.
short read(mitk::FiberBundle *fib)
Base class for creating mitk::BaseData objects from files or streams.
virtual FiberBundleTrackVisReader * Clone() const override
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.