mid-commit wrong architecture...

AAArrrgghh...
NOTE - code not work
This commit is contained in:
dviid
2012-02-15 07:58:10 +01:00
parent 060dee771a
commit dc99776508
6 changed files with 143 additions and 73 deletions
+6
View File
@@ -34,7 +34,13 @@
#include "RefractiveIndex.h"
void AbstractAnalysis::do_synthesize() {
// acquire images + pattern on display
pattern_acquire();
// acquire notify obeservers
ofNotifyEvent(_acquire_cb, _name);
// analysis and synthesis of acquired images
synthesize();
// synthesize notify obeservers
ofNotifyEvent(_synthesize_cb, _name);
}
+10 -6
View File
@@ -28,16 +28,20 @@ public:
protected:
virtual void create_dir();
// creates working directory
virtual void create_dir();
// acquire images from camera and display patters on screen
virtual void pattern_acquire() = 0;
// the runnable function in the thread
virtual void synthesize() = 0;
// this means that this function needs to be overwritten by children that inherit this class
// analyses and sythesizes images acquired
virtual void synthesize() = 0;
public:
string _name;
// event
// event notification / callbacks
ofEvent<string> _acquire_cb;
ofEvent<string> _synthesize_cb;
protected:
+3 -1
View File
@@ -31,8 +31,10 @@ public:
_worker.join();
}
protected:
public:
AbstractAnalysis* _analysis;
protected:
Thread _worker; //
RunnableAdapter<AbstractAnalysis>* _runnable;
};