svvitch
digital signage player
D:/vs_workspace/switch_sf/src/svvitch/Scene.cpp
Go to the documentation of this file.
00001 #include "Scene.h"
00002 
00003 
00004 Scene::Scene(Renderer& renderer): _log(Poco::Logger::get("")), _renderer(renderer), _visible(true)
00005 {
00006 }
00007 
00008 Scene::‾Scene() {
00009 }
00010 
00011 Renderer& Scene::renderer() {
00012     return _renderer;
00013 }
00014 
00015 bool Scene::initialize() {
00016     return false;
00017 }
00018 
00019 void Scene::setVisible(const bool visible) {
00020     _visible = visible;
00021 }
00022 
00023 void Scene::notifyKey(const int keycode, const bool shift, const bool ctrl) {
00024     _keycode = keycode;
00025     _shift = shift;
00026     _ctrl = ctrl;
00027 }
00028 
00029 void Scene::setStatus(const string& key, const string& value) {
00030     _status[key] = value;
00031 }
00032 
00033 const map<string, string>& Scene::getStatus() {
00034     return _status;
00035 }
00036 
00037 const string Scene::getStatus(const string& key) {
00038     map<string, string>::const_iterator it = _status.find(key);
00039     if (it != _status.end()) {
00040         return it->second;
00041     }
00042     return string("");
00043 }
00044 
00045 void Scene::removeStatus(const string& key) {
00046     map<string, string>::const_iterator it = _status.find(key);
00047     if (it != _status.end()) _status.erase(it);
00048 }
00049 
00050 void Scene::process() {
00051 }
00052 
00053 void Scene::processAlways() {
00054 }
00055 
00056 void Scene::draw1() {
00057 }
00058 
00059 void Scene::draw2() {
00060 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines