00001 /*========================================================================= 00002 00003 Program: Medical Imaging & Interaction Toolkit 00004 Language: C++ 00005 Date: $Date$ 00006 Version: $Revision: 8426 $ 00007 00008 Copyright (c) German Cancer Research Center, Division of Medical and 00009 Biological Informatics. All rights reserved. 00010 See MITKCopyright.txt or https://www.mitk.org/copyright.html for details. 00011 00012 This software is distributed WITHOUT ANY WARRANTY; without even 00013 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00014 PURPOSE. See the above copyright notices for more information. 00015 00016 =========================================================================*/ 00017 #ifndef VtkUnstructuredGridReader_H_HEADER_INCLUDED 00018 #define VtkUnstructuredGridReader_H_HEADER_INCLUDED 00019 00020 #include "mitkCommon.h" 00021 #include "MitkExtExports.h" 00022 #include "mitkUnstructuredGridSource.h" 00023 00024 namespace mitk { 00025 //##Documentation 00026 //## @brief Reader to read unstructured grid files in vtk-format 00027 //## @ingroup IO 00028 class MitkExt_EXPORT VtkUnstructuredGridReader : public UnstructuredGridSource 00029 { 00030 public: 00031 mitkClassMacro(VtkUnstructuredGridReader, UnstructuredGridSource); 00032 00034 itkNewMacro(Self); 00035 00036 itkSetStringMacro(FileName); 00037 itkGetStringMacro(FileName); 00038 00039 itkSetStringMacro(FilePrefix); 00040 itkGetStringMacro(FilePrefix); 00041 00042 itkSetStringMacro(FilePattern); 00043 itkGetStringMacro(FilePattern); 00044 00045 static bool CanReadFile(const std::string filename, const std::string filePrefix, const std::string filePattern); 00046 00047 protected: 00048 virtual void GenerateData(); 00049 00050 VtkUnstructuredGridReader(); 00051 00052 ~VtkUnstructuredGridReader(); 00053 00054 std::string m_FileName, m_FilePrefix, m_FilePattern; 00055 00056 }; 00057 00058 } // namespace mitk 00059 00060 #endif /* VtkUnstructuredGridReader_H_HEADER_INCLUDED */