abstractprocessor.cpp 973 Bytes
Newer Older
schultezub's avatar
schultezub committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "abstractprocessor.h"

namespace TUMVis {

    const std::string AbstractProcessor::loggerCat_ = "TUMVis.core.datastructures.Processor";


    AbstractProcessor::AbstractProcessor() {

    }

    AbstractProcessor::~AbstractProcessor() {

    }

schultezub's avatar
schultezub committed
16
    const InvalidationLevel& AbstractProcessor::getInvalidationLevel() const {
17
18
19
        return _invalidationLevel;
    }

20
21
    void AbstractProcessor::applyInvalidationLevel(InvalidationLevel il) {
        _invalidationLevel.setLevel(il);
schultezub's avatar
schultezub committed
22
23
24
25

        // If processor is no longer valid, notify observers
        if (! _invalidationLevel.isValid()) {
            notifyObservers(ProcessorObserverArgs(this, _invalidationLevel));
26
        }
schultezub's avatar
schultezub committed
27
28
    }

29
30
31
32
    void AbstractProcessor::onNotify(const PropertyObserverArgs& poa) {
        applyInvalidationLevel(poa._invalidationLevel);
    }

schultezub's avatar
schultezub committed
33
34
    PropertyCollection& AbstractProcessor::getPropertyCollection() {
        return _properties;
35
    }
36

schultezub's avatar
schultezub committed
37
}