-
Notifications
You must be signed in to change notification settings - Fork 0
/
SketcherDoc.h
68 lines (54 loc) · 1.57 KB
/
SketcherDoc.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
// SketcherDoc.h : interface of the CSketcherDoc class
//
#pragma once
#include "SketcherEngine.h"
#include "AntColony.h"
#include "AntColonyConfiguration.h"
class CSketcherDoc : public CDocument
{
protected: // create from serialization only
CSketcherDoc();
DECLARE_DYNCREATE(CSketcherDoc)
// Attributes
public:
// Operations
public:
// Overrides
public:
virtual BOOL OnNewDocument();
virtual void Serialize(CArchive& ar);
// Implementation
public:
virtual ~CSketcherDoc();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
protected:
// Generated message map functions
protected:
DECLARE_MESSAGE_MAP()
SketcherEngine m_sketcher;
AntColony m_colony;
AntColonyConfiguration m_configuration;
BOOL m_bRedrawCanvas;
public:
bool Load(LPCTSTR pFileName);
void Display(CDC* pDC, const CRect& rect);
void OnImageDisplaysource();
afx_msg void OnSketcherSaveimage();
afx_msg void OnUpdateSketcherSaveimage(CCmdUI *pCmdUI);
afx_msg void OnUpdateImageDisplaysource(CCmdUI *pCmdUI);
void OnImageDisplaygradientmap(void);
afx_msg void OnUpdateImageDisplaygradientmap(CCmdUI *pCmdUI);
void OnImageDisplayluminancemap(void);
afx_msg void OnUpdateImageDisplayluminancemap(CCmdUI *pCmdUI);
void OnImageDisplaycanvas(void);
afx_msg void OnUpdateImageDisplaycanvas(CCmdUI *pCmdUI);
void OnSketcherSketch(void);
afx_msg void OnUpdateSketcherSketch(CCmdUI *pCmdUI);
afx_msg void OnSketcherOptions();
afx_msg void OnSketcherClearcanvas();
afx_msg void OnSketcherBatchrun();
afx_msg void OnUpdateSketcherBatchrun(CCmdUI *pCmdUI);
};