abstractprocessor.cpp 1.12 KB
Newer Older
schultezub's avatar
schultezub committed
1
2
3
4
5
6
7
#include "abstractprocessor.h"

namespace TUMVis {

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


8
9
10
    AbstractProcessor::AbstractProcessor()
        : HasPropertyCollection()
    {
schultezub's avatar
schultezub committed
11
12
13
14
15
16
    }

    AbstractProcessor::~AbstractProcessor() {

    }

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

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

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

schultezub's avatar
schultezub committed
30
    void AbstractProcessor::init() {
31
    }
schultezub's avatar
schultezub committed
32

33
    void AbstractProcessor::deinit() {
schultezub's avatar
schultezub committed
34
35
    }

36

37
    void AbstractProcessor::lockProperties() {
schultezub's avatar
schultezub committed
38
        lockAllProperties();
39
40
41
    }

    void AbstractProcessor::unlockProperties() {
schultezub's avatar
schultezub committed
42
        unlockAllProperties();
43
44
    }

schultezub's avatar
schultezub committed
45
46
47
    void AbstractProcessor::onPropertyChanged(const AbstractProperty* prop) {
        applyInvalidationLevel(prop->getInvalidationLevel());
    }
48

schultezub's avatar
schultezub committed
49
}