abstractpipeline.cpp 1.16 KB
Newer Older
1
#include "abstractpipeline.h"
schultezub's avatar
schultezub committed
2
#include "tgt/exception.h"
3
4
5
6

namespace TUMVis {
    const std::string AbstractPipeline::loggerCat_ = "TUMVis.core.datastructures.AbstractPipeline";

7
    AbstractPipeline::AbstractPipeline() 
schultezub's avatar
   
schultezub committed
8
9
10
11
12
13
    {
    }

    AbstractPipeline::~AbstractPipeline() {
    }

14
15
    PropertyCollection& AbstractPipeline::getPropertyCollection() {
        return _properties;
16
17
    }

18
19
    void AbstractPipeline::init() {
        // initialize all processors:
schultezub's avatar
schultezub committed
20
21
22
23
24
25
26
27
         for (std::vector<AbstractProcessor*>::iterator it = _processors.begin(); it != _processors.end(); ++it) {
             try {
                 (*it)->init();
             }
             catch (tgt::Exception& e) {
                 LERROR("Caught Exception during initialization of processor: " << e.what());
             }
         }
28
    }
schultezub's avatar
schultezub committed
29

schultezub's avatar
schultezub committed
30
31
32
33
34
35
36
37
38
39
40
    void AbstractPipeline::onNotify(const ProcessorObserverArgs& poa) {
//         tbb::spin_mutex::scoped_lock lock(_localMutex);
//         _invalidationLevel.setLevel(InvalidationLevel::INVALID_RESULT);

        execute();
    }

    const DataContainer& AbstractPipeline::getDataContainer() const {
        return _data;
    }

41
}