Move Transform from MapData to Map

Pass current state to MapContext where needed. Remove mutex from
Transform.
This commit is contained in:
John Firebaugh
2015-06-25 13:58:34 -07:00
parent e87a36444f
commit 07a6d2ef64
10 changed files with 77 additions and 131 deletions

View File

@@ -23,6 +23,7 @@ class View;
class MapData;
class MapContext;
class StillImage;
class Transform;
namespace util {
template <class T> class Thread;
@@ -153,6 +154,7 @@ public:
bool isFullyLoaded() const;
private:
const std::unique_ptr<Transform> transform;
const std::unique_ptr<MapData> data;
const std::unique_ptr<util::Thread<MapContext>> context;
bool paused = false;