mhdimagereader.h 1.37 KB
Newer Older
schultezub's avatar
schultezub committed
1
2
3
4
5
#ifndef MHDIMAGEREADER_H__
#define MHDIMAGEREADER_H__

#include <string>

6
#include "core/pipeline/abstractprocessor.h"
7
#include "core/properties/genericproperty.h"
schultezub's avatar
schultezub committed
8
9
10

namespace TUMVis {
    /**
11
     * Reads a MHD image file into the pipeline.
schultezub's avatar
schultezub committed
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
     *
     * \note    Full format specification at http://www.itk.org/Wiki/MetaIO/Documentation
     */
    class MhdImageReader : public AbstractProcessor {
    public:
        /**
         * Constructs a new MhdImageReader Processor
         **/
        MhdImageReader();

        /**
         * Destructor
         **/
        virtual ~MhdImageReader();


28
29
30
31
32
        /**
         * Reads the MHD file into an ImageDataDisk representation
         * \param data  DataContainer to work on
         */
        virtual void process(DataContainer& data);
schultezub's avatar
schultezub committed
33

34
35
        /// \see AbstractProcessor::getName()
        virtual const std::string getName() const { return "MhdImageReader"; };
36
37
        /// \see AbstractProcessor::getDescription()
        virtual const std::string getDescription() const { return "Reads an MHD image into the pipeline."; };
38

39
40
        GenericProperty<std::string> _url;              ///< URL for file to read
        GenericProperty<std::string> _targetImageID;    ///< image ID for read image
schultezub's avatar
schultezub committed
41

schultezub's avatar
schultezub committed
42
43
    protected:

schultezub's avatar
schultezub committed
44
45
46
47
48
49
        static const std::string loggerCat_;
    };

}

#endif // MHDIMAGEREADER_H__