-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathNNView.h
111 lines (92 loc) · 2.8 KB
/
NNView.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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
// NNView.h : interface of the CNNView class
//
/////////////////////////////////////////////////////////////////////////////
#if !defined(AFX_NNVIEW_H__26A63D2E_6CBB_11D4_9E62_EF8715B56461__INCLUDED_)
#define AFX_NNVIEW_H__26A63D2E_6CBB_11D4_9E62_EF8715B56461__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "NeuralNet.h"
class CNNView : public CView
{
protected: // create from serialization only
CNNView();
DECLARE_DYNCREATE(CNNView)
// Attributes
public:
CNNDoc* GetDocument();
private:
void DrawScene(CNNDoc* pDoc);
void ReshapeFunc(int Wx, int Wy);
HGLRC m_hrc;
CPalette m_Pal;
GLdouble m_ViewMat[16];
CPoint m_MouseMoveStart;
GLdouble *GenRotMatrix();
GLdouble m_RotX;
GLdouble m_RotY;
GLdouble m_RotAngle;
GLdouble m_MouseRotSensativity;
GLdouble m_MouseTransSensativity;
GLdouble m_MouseZoomSensativity;
GLdouble m_Zoom;
GLdouble m_TransX;
GLdouble m_TransY;
public:
GLdouble m_MinX, m_MinY, m_MinZ, m_MaxX, m_MaxY, m_MaxZ;
// Operations
public:
// Overrides
// ClassWizard generated virtual function overrides
//{{AFX_VIRTUAL(CNNView)
public:
virtual void OnDraw(CDC* pDC); // overridden to draw this view
virtual BOOL PreCreateWindow(CREATESTRUCT& cs);
protected:
virtual BOOL OnPreparePrinting(CPrintInfo* pInfo);
virtual void OnBeginPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnEndPrinting(CDC* pDC, CPrintInfo* pInfo);
virtual void OnUpdate(CView* pSender, LPARAM lHint, CObject* pHint);
//}}AFX_VIRTUAL
// Implementation
public:
RealType m_PointSize;
RealType m_NeuronSize;
RealType m_NormalSize;
BOOL m_DrawAxes;
BOOL m_DrawPoints;
BOOL m_DrawNeurons;
BOOL m_DrawEdges;
BOOL m_DrawFaces;
BOOL m_LightingTwoSides;
virtual ~CNNView();
#ifdef _DEBUG
virtual void AssertValid() const;
virtual void Dump(CDumpContext& dc) const;
#endif
private:
CPoint MouseMoveStart;
protected:
// Generated message map functions
protected:
//{{AFX_MSG(CNNView)
afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg BOOL OnEraseBkgnd(CDC* pDC);
afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
afx_msg void OnButtonViewParam();
afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
afx_msg void OnRButtonDblClk(UINT nFlags, CPoint point);
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
};
#ifndef _DEBUG // debug version in NNView.cpp
inline CNNDoc* CNNView::GetDocument()
{ return (CNNDoc*)m_pDocument; }
#endif
/////////////////////////////////////////////////////////////////////////////
//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.
#endif // !defined(AFX_NNVIEW_H__26A63D2E_6CBB_11D4_9E62_EF8715B56461__INCLUDED_)