dmprendercontext.h
1.6 KB
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
53
/**************************************************************************
* file: dmprendercontext.h
* Author: wanzhongping
* Date: 2021-07-03 12:22:59
* Email: zhongpingw@chinadci.com
* copyright: 广州城市信息研究所有限公司
***************************************************************************/
#ifndef __dmprendercontext_h__
#define __dmprendercontext_h__
#include "dmap_core.h"
#include "dmprectangle.h"
#include "dmppainter.h"
class CORE_EXPORT DmpRenderContext
{
public:
DmpRenderContext();
DmpRenderContext(const DmpRenderContext &rh);
// DmpRenderContext &operator=(const DmpRenderContext &rh);
private:
int currentMaskId_ = -1;
bool isGuiPreview_ = false;
/*
*渲染贴图层时,调用此方法将返回“剪裁”层的范围(在层的CRS中)。
*这是一种“最坏情况”的情况,保证涵盖整个项目渲染到贴图时图层的可见部分。它通常更大而不是该层的实际可见部分。某些图层的警告,具体取决于可见范围和坐标
*如果涉及到变换,此范围将代表整个地球。这种方法不应用于确定贴图渲染的实际可见范围。
*/
DmpRectangle extent_;
//DmpRectangle originalMapExtent_;
//画图区域
// DmpPainter dmpPainter_;
//宽度
int width_;
//高度
int height_;
//渲染是否停止
bool renderingStopped_ = false;
double scaleFactor_ = 1.0;
//渲染比例
double mRendererScale_ = 1.0;
};
#endif //__dmprendercontext_h__