-
Notifications
You must be signed in to change notification settings - Fork 0
/
View.h
52 lines (32 loc) · 822 Bytes
/
View.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
52
//
// Created by Admin on 6/18/2021.
//
#ifndef UNTITLED2_VIEW_H
#define UNTITLED2_VIEW_Hs
#include "Geometry.h"
#define MAX_MAP_SIZE 30
#define MIN_MAP_SIZE 7
#define DEFAULT_SIZE 25
#define DEFAULT_ORIGIN Point(0,0)
#define DEFAULT_ZOOM 1
class View {
int _displaySize;
int _scale;
Point _origin;
public:
View();
View(int currentSize, const Point &origin,int scale);
void size(int currentSize);
void pan(const Point &origin);
void show();
void zoom(int zoom);
int getDisplaySize() const;
const Point &getOrigin() const;
int getScale() const;
void setScale(int scale);
void setDisplaySize(int displaySize);
void setOrigin(const Point &origin);
void defaultSettings();
};
std::string isThereAnObjectAt(Point a);
#endif //UNTITLED2_VIEW_H