Scene.h
Go to the documentation of this file.
1 
18 #pragma once
19 
20 #include <iostream>
21 #include <sqlite3.h>
22 #include <vector>
23 #include <unordered_map>
24 #include <algorithm>
25 #include <functional>
26 #include <boost/lexical_cast.hpp>
27 #include <math.h>
28 #include <sstream>
29 #include "Object.h"
30 
31 typedef std::shared_ptr<Object> ObjectSharedPointer;
32 
33 class Scene {
34 private:
35  std::unordered_map<std::string,ObjectSharedPointer> ObjectMap;
36  std::string DbName;
37  std::string SceneName;
40  double Alpha;
41  double Beta;
42  double Gamma;
43 public:
44  Scene();
45  Scene(std::string dbName, std::string sceneName, int rankingMethodEntry, double alphaEntry, double betaEntry, double gammaEntry);
46  virtual ~Scene();
47 
48  //Getter
49  std::string const getSceneName(){return this->SceneName;}
50  std::string const getDbName(){return this->DbName;}
51  std::unordered_map<std::string,ObjectSharedPointer> const getObjectMap(){return this->ObjectMap;}
52  void getObjectFromDb();
53  void getNumberSet();
54 
58  void displayStats();
59  void normalize();
60  void rank();
61  void publishLogs(std::string filePath);
62 };
double Beta
Definition: Scene.h:41
void rank()
Definition: Scene.cpp:263
std::unordered_map< std::string, ObjectSharedPointer > const getObjectMap()
Definition: Scene.h:51
virtual ~Scene()
Definition: Scene.cpp:37
std::string SceneName
Definition: Scene.h:37
void getNumberSet()
Definition: Scene.cpp:107
void getObjectAverageDistance()
Definition: Scene.cpp:152
void getObjectFromDb()
Definition: Scene.cpp:41
void displayStats()
Definition: Scene.cpp:201
Scene()
Definition: Scene.cpp:20
void calcAveragePositionForEachObject()
Definition: Scene.cpp:143
void calcPresenceInSceneForEachObject()
Definition: Scene.cpp:184
int SceneObjectsCount
Definition: Scene.h:38
std::shared_ptr< Object > ObjectSharedPointer
Definition: Scene.h:31
int RankingMethod
Definition: Scene.h:39
Definition: Scene.h:33
double Alpha
Definition: Scene.h:40
std::unordered_map< std::string, ObjectSharedPointer > ObjectMap
Definition: Scene.h:35
std::string const getDbName()
Definition: Scene.h:50
double Gamma
Definition: Scene.h:42
void normalize()
Definition: Scene.cpp:211
std::string const getSceneName()
Definition: Scene.h:49
void publishLogs(std::string filePath)
Definition: Scene.cpp:271
std::string DbName
Definition: Scene.h:36


asr_intermediate_object_generator
Author(s): Borella Jocelyn, Meißner Pascal
autogenerated on Thu Nov 21 2019 03:53:41