MachineIntelligenceCore:Visualization
OpenGLApplication.hpp
Go to the documentation of this file.
1 
23 #ifndef SRC_APPLICATIONS_CONSOLEOPENGLAPPLICATION_HPP_
24 #define SRC_APPLICATIONS_CONSOLEOPENGLAPPLICATION_HPP_
25 
26 #include <application/Application.hpp>
28 
29 namespace mic {
30 namespace opengl {
31 
37 namespace application {
38 
44 class OpenGLApplication: public mic::application::Application {
45 public:
46 
51  OpenGLApplication(std::string node_name_);
52 
56  virtual ~OpenGLApplication() { };
57 
64  virtual void initialize(int argc, char* argv[]) = 0;
65 
69  virtual void run();
70 
71 protected:
72 
77  virtual void processingThread(void);
78 
83  virtual void performInitialStep(void) { };
84 
89  virtual void performFinalStep(void) { };
90 
91 };
92 
93 } /* namespace application */
94 } /* namespace opengl */
95 } /* namespace mic */
96 
97 #endif /* SRC_APPLICATIONS_CONSOLEOPENGLAPPLICATION_HPP_ */
An abstract class implementing basic functions for two-threaded, OpenGL-based applications. Introduces the execution phases that are typical for all learning/classification applications, imposes fine code granulation.
virtual void performFinalStep(void)
The initial step - empty, to be overridden.
virtual void initialize(int argc, char *argv[])=0
virtual void processingThread(void)
Function realizing the processing thread. Implements basic quit/pause/single step functionality...
virtual void performInitialStep(void)
The initial step - empty, to be overridden.
Declaration of WindowManager class along with a bunch of helpful types and macros.