-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPythonMap.h
More file actions
26 lines (22 loc) · 838 Bytes
/
PythonMap.h
File metadata and controls
26 lines (22 loc) · 838 Bytes
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
#pragma once
class PythonMap
{
SINGLETON(PythonMap)
public:
void Init();
void Clear();
bool CreatePendingMapPng(float centerLat, float centerLong, float nowLat, float nowLong, int32 zoomLevel);
bool CreatePendingMapPng(float centerLat, float centerLong, float nowLat, float nowLong);
bool CreatePairingMapPng(float centerLat, float centerLong, float tifdLat, float tifdLong, float tirdLat, float tirdLong, int32 zoomLevel);
bool CreatePairingMapPng(float centerLat, float centerLong, float tifdLat, float tifdLong, float tirdLat, float tirdLong);
private:
USE_LOCK;
PyObject* _pFileName = nullptr;
PyObject* _pModule = nullptr;
PyObject* _pCreatePendingFunc = nullptr;
PyObject* _pCreatePairingFunc = nullptr;
PyObject* _pArgs = nullptr;
PyObject* _pValue = nullptr;
public:
PyThreadState* mainThreadState = nullptr;
};