simpleraycaster.h 1.46 KB
Newer Older
schultezub's avatar
schultezub committed
1
2
3
#ifndef SIMPLERAYCASTER_H__
#define SIMPLERAYCASTER_H__

4
#include "core/pipeline/raycastingprocessor.h"
schultezub's avatar
schultezub committed
5
6
7
8
#include "core/properties/genericproperty.h"
#include "core/properties/numericproperty.h"
#include "core/properties/transferfunctionproperty.h"

schultezub's avatar
schultezub committed
9
10
#include <string>

schultezub's avatar
schultezub committed
11
12
13
14
15
16
17
18
19
20
namespace tgt {
    class Shader;
}

namespace TUMVis {
    /**
     * Performs a simple volume ray casting.
     * \todo    OpenGL supports up to 4 bound FBO. We can use them to generate multiple images
     *          in a single pass, e.g. first hit point, normals, MIP, DVR.
     */
21
    class SimpleRaycaster : public RaycastingProcessor {
schultezub's avatar
schultezub committed
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
    public:
        /**
         * Constructs a new SimpleRaycaster Processor
         **/
        SimpleRaycaster(GenericProperty<tgt::ivec2>& canvasSize);

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

        /// \see AbstractProcessor::getName()
        virtual const std::string getName() const { return "SimpleRaycaster"; };
        /// \see AbstractProcessor::getDescription()
        virtual const std::string getDescription() const { return "Performs a simple volume ray casting."; };

        GenericProperty<std::string> _targetImageID;    ///< image ID for output image

    protected:
41
42
        /// \see RaycastingProcessor::processImpl()
        virtual void processImpl(DataContainer& data);
schultezub's avatar
schultezub committed
43
44
45
46
47
48
49

        static const std::string loggerCat_;
    };

}

#endif // SIMPLERAYCASTER_H__