19 #include <vtkImageData.h>
20 #include <vtkXMLImageDataReader.h>
35 vtkReader->SetFileName(m_FileName.c_str());
38 if (vtkReader->GetOutput() !=
nullptr)
41 output->Initialize(vtkReader->GetOutput());
42 output->SetVolume(vtkReader->GetOutput()->GetScalarPointer());
56 bool extensionFound =
false;
57 std::string::size_type VTIPos = filename.rfind(
".vti");
58 if ((VTIPos != std::string::npos) && (VTIPos == filename.length() - 4))
59 extensionFound =
true;
61 VTIPos = filename.rfind(
".VTI");
62 if ((VTIPos != std::string::npos) && (VTIPos == filename.length() - 4))
63 extensionFound =
true;
static bool CanReadFile(const std::string filename, const std::string filePrefix, const std::string filePattern)
static const std::string filename
virtual void GenerateData() override
A version of GenerateData() specific for image processing filters.
static itkEventMacro(BoundingShapeInteractionEvent, itk::AnyEvent) class MITKBOUNDINGSHAPE_EXPORT BoundingShapeInteractor Pointer New()
Basic interaction methods for mitk::GeometryData.