19 #include <vtkDataReader.h>
20 #include <vtkStructuredPoints.h>
21 #include <vtkStructuredPointsReader.h>
35 MITK_INFO <<
"Loading " << m_FileName <<
" as vtk" << std::endl;
39 chooser->SetFileName(m_FileName.c_str());
41 if (chooser->IsFileStructuredPoints())
44 MITK_INFO <<
"StructuredPoints" << std::endl;
46 reader->SetFileName(m_FileName.c_str());
49 if (reader->GetOutput() !=
nullptr)
52 output->Initialize(reader->GetOutput());
53 output->SetVolume(reader->GetOutput()->GetScalarPointer());
59 MITK_ERROR <<
" ... sorry, this .vtk format is not supported yet." << std::endl;
73 bool extensionFound =
false;
74 std::string::size_type PVTKPos = filename.rfind(
".pvtk");
75 if ((PVTKPos != std::string::npos) && (PVTKPos == filename.length() - 5))
77 extensionFound =
true;
80 PVTKPos = filename.rfind(
".PVTK");
81 if ((PVTKPos != std::string::npos) && (PVTKPos == filename.length() - 5))
83 extensionFound =
true;
89 chooser->SetFileName(filename.c_str());
90 if (!chooser->IsFileStructuredPoints())
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.