-
Notifications
You must be signed in to change notification settings - Fork 1
/
MapViewer.h
46 lines (38 loc) · 896 Bytes
/
MapViewer.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
// -*- c++ -*-
// Copyright 2008 Isis Innovation Limited
//
// MapViewer.h
//
// Defines the MapViewer class
//
// This defines a simple map viewer widget, which can draw the
// current map and the camera/keyframe poses within it.
//
#ifndef __MAP_VIEWER_H
#define __MAP_VIEWER_H
#include "Map.h"
#include <TooN/TooN.h>
using namespace TooN;
#include <TooN/se3.h>
#include <sstream>
#include "GLWindow2.h"
class Map;
class MapViewer
{
public:
MapViewer(Map &map, GLWindow2 &glw);
void DrawMap(SE3<> se3CamFromWorld);
std::string GetMessageForUser();
protected:
Map &mMap;
GLWindow2 &mGLWindow;
void DrawGrid();
void DrawMapDots();
void DrawCamera(SE3<> se3, bool bSmall=false);
void SetupFrustum();
void SetupModelView(SE3<> se3WorldFromCurrent = SE3<>());
Vector<3> mv3MassCenter;
SE3<> mse3ViewerFromWorld;
std::ostringstream mMessageForUser;
};
#endif