Object.h
Go to the documentation of this file.
1 
18 #pragma once
19 
20 #include "ObjectPoint.h"
21 #include <iostream>
22 #include <fstream>
23 #include <vector>
24 #include <algorithm>
25 #include <boost/lexical_cast.hpp>
26 #include <math.h>
27 
28 typedef std::shared_ptr<ObjectPoint> ObjectPointSharedPointer;
29 
30 class Object {
31 private:
32  std::string ObjectName;
33  std::string ObservedId;
37  double PosVar;
42  double rankValue;
43  double Alpha;
44  double Beta;
45  double Gamma;
46  std::vector<ObjectPointSharedPointer> PointList;
47 
48 public:
49  Object(); //default constructor
50  Object(std::string objectName, std::string observedId,int rankingMethodEntry, double alphaEntry, double betaEntry, double gammaEntry);
51  virtual ~Object();
52 
53  //getter
55  double getPosVar() const {return this->PosVar;}
56  ObjectPointSharedPointer getPoint(int i) const {return this->PointList[i];}
57  int getObjetsCount() const {return this->ObjectsCount;}
58  std::string getObjectName() const {return this->ObjectName;}
59  std::string getObservedId() const {return this->ObservedId;}
61  double getRankValue() const {return this->rankValue;}
62  double getNormalizedPosVar() {return this->NormalizedPosVar;}
64 
65  //setter
66  void setPresenceInScene(double presence){this->PresenceInScene = presence;}
67  void setNormalizedPosVar(double value){this->NormalizedPosVar = value;}
68  void setNormalizedAverageDistanceToOtherObjects(double value){ this->NormalizedAverageDistanceToOtherObjects = value;}
69 
70  void CalcAveragePos();
71  void CalcPosVar();
72  void AddPoint(ObjectPointSharedPointer p) {this->PointList.push_back(p); ObjectsCount++;}
73  void AddDistance(double d){ this->AverageDistanceToOtherObjects += d;}
74  void AverageDistance(){ this->AverageDistanceToOtherObjects = this->AverageDistanceToOtherObjects/ObjectsCount;}
75  void DisplayStats();
76  void rank();
77  void publishLogs(std::string filePath);
78 };
79 
double NormalizedPosVar
Definition: Object.h:40
Definition: Object.h:30
double AverageDistanceToOtherObjects
Definition: Object.h:38
void setPresenceInScene(double presence)
Definition: Object.h:66
std::string getObservedId() const
Definition: Object.h:59
void publishLogs(std::string filePath)
Definition: Object.cpp:121
void rank()
Definition: Object.cpp:95
double Beta
Definition: Object.h:44
void CalcAveragePos()
Definition: Object.cpp:55
void CalcPosVar()
Definition: Object.cpp:72
void AddDistance(double d)
Definition: Object.h:73
std::string ObservedId
Definition: Object.h:33
int ObjectsCount
Definition: Object.h:35
double rankValue
Definition: Object.h:42
void DisplayStats()
Definition: Object.cpp:108
double getRankValue() const
Definition: Object.h:61
int RankingMethod
Definition: Object.h:36
double getNormalizedPosVar()
Definition: Object.h:62
double PresenceInScene
Definition: Object.h:39
std::string getObjectName() const
Definition: Object.h:58
void AverageDistance()
Definition: Object.h:74
void setNormalizedPosVar(double value)
Definition: Object.h:67
double Gamma
Definition: Object.h:45
std::string ObjectName
Definition: Object.h:32
double getAverageDistanceToOtherObjects() const
Definition: Object.h:60
double PosVar
Definition: Object.h:37
void AddPoint(ObjectPointSharedPointer p)
Definition: Object.h:72
Object()
Definition: Object.cpp:21
std::shared_ptr< ObjectPoint > ObjectPointSharedPointer
Definition: Object.h:28
virtual ~Object()
Definition: Object.cpp:50
double Alpha
Definition: Object.h:43
double getPosVar() const
Definition: Object.h:55
ObjectPointSharedPointer getPoint(int i) const
Definition: Object.h:56
ObjectPointSharedPointer Average
Definition: Object.h:34
std::vector< ObjectPointSharedPointer > PointList
Definition: Object.h:46
void setNormalizedAverageDistanceToOtherObjects(double value)
Definition: Object.h:68
double getNormalizedAverageDistanceToOtherObjects()
Definition: Object.h:63
ObjectPointSharedPointer getAverage() const
Definition: Object.h:54
double NormalizedAverageDistanceToOtherObjects
Definition: Object.h:41
int getObjetsCount() const
Definition: Object.h:57


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