-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstereomatching.cpp
43 lines (34 loc) · 942 Bytes
/
stereomatching.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#include "stereomatching.hpp"
StereoMatching::StereoMatching(char * theName): name(theName){
everyFrameGet = 1; // it means - every frame
propertiesChanged = false;
}
StereoMatching::~StereoMatching(){
Property * element;
while(properties.size() > 0){
element = properties.back();
properties.pop_back();
delete element;
}
}
// ustawienie flagi, ze zmienily sie parametry
// przy kolejnym wywolaniu exec zostana one wziete pod uwage
void StereoMatching::setPropertiesWereChanged(){
propertiesChanged = true;
}
void StereoMatching::changeProperties(){
// change values in all properties
for(int i = 0; i < properties.size(); ++i)
properties[i]->changeValue();
}
// setters
void StereoMatching::setEveryFrameGet(int value){
everyFrameGet = value;
}
// getters
int StereoMatching::getEveryFrameGet(){
return everyFrameGet;
}
char * StereoMatching::getName(){
return name;
}