MachineIntelligenceCore:Visualization
|
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. More...
#include <OpenGLApplication.hpp>
Public Member Functions | |
OpenGLApplication (std::string node_name_) | |
virtual | ~OpenGLApplication () |
virtual void | initialize (int argc, char *argv[])=0 |
virtual void | run () |
Protected Member Functions | |
virtual void | processingThread (void) |
Function realizing the processing thread. Implements basic quit/pause/single step functionality. In each step it calls the performSingleStep() method. Can be overridden by derived classes. More... | |
virtual void | performInitialStep (void) |
The initial step - empty, to be overridden. More... | |
virtual void | performFinalStep (void) |
The initial step - empty, to be overridden. More... | |
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.
Definition at line 44 of file OpenGLApplication.hpp.
mic::opengl::application::OpenGLApplication::OpenGLApplication | ( | std::string | node_name_ | ) |
Default Constructor. Sets the application/node name.
node_name_ | Name of the application/node (in configuration file). |
Definition at line 35 of file OpenGLApplication.cpp.
|
inlinevirtual |
Virtual destructor. Empty for now.
Definition at line 56 of file OpenGLApplication.hpp.
|
pure virtual |
Initializes application. Abstract method. By default it should: initialize GLUT and all required OpenGL windows. (Note: all OpenGL windows - they must be created in the main application thread :])
argc | Number of application parameters. |
argv | Array of application parameters. |
|
inlineprotectedvirtual |
The initial step - empty, to be overridden.
Definition at line 89 of file OpenGLApplication.hpp.
Referenced by processingThread().
|
inlineprotectedvirtual |
The initial step - empty, to be overridden.
Definition at line 83 of file OpenGLApplication.hpp.
Referenced by processingThread().
|
protectedvirtual |
Function realizing the processing thread. Implements basic quit/pause/single step functionality. In each step it calls the performSingleStep() method. Can be overridden by derived classes.
Reimplemented in mic::opengl::application::OpenGLEpisodicApplication.
Definition at line 53 of file OpenGLApplication.cpp.
References performFinalStep(), and performInitialStep().
Referenced by run().
|
virtual |
Runs the application - the processing in an external thread and OpenGL in the main thread.
Definition at line 39 of file OpenGLApplication.cpp.
References processingThread(), and VGL_MANAGER.