-
Notifications
You must be signed in to change notification settings - Fork 1
/
InfoSheet.h
52 lines (43 loc) · 1.01 KB
/
InfoSheet.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
/*
* File: InfoSheet.h
* Author: zoizoi
*
* Created on 14 February 2011, 07:17
*/
#ifndef INFOSHEET_H
#define INFOSHEET_H
#include "arraytools.h"
#include <iostream>
#include <fstream>
#include <string>
#include <assert.h>
#include <stdio.h>
#include "GeoSphere.h"
#include "OVASControl.h"
using namespace std;
class InfoSheet {
public:
//InfoSheet();
InfoSheet(const InfoSheet& orig);
virtual ~InfoSheet();
InfoSheet(OVASControl* o);
bool validTransition(GeoPoint* fromView,GeoPoint* toView,GeoPoint* prevV);
void loadInfo(const char* filename);
void outputInfoData(const char* filename);
void printInfo();
void calcMaxInfo();
void addTimeInfo(float* timeInfo);
int lookupNeighbourIndex(int,int);
int getNeighbour(int,int);
int* findPath();
int* returnBestViews();
private:
const static int numRegions=36;
int currentInfoTs;
float** info;
float*** maxInfo;
float*** nextViewIndex;
int* path;
OVASControl* oc;
};
#endif /* INFOSHEET_H */