0028316: Coding Rules - Elimilate confusing aliases of Standard_Real type in V3d_View
[occt.git] / samples / mfc / standard / Common / Resource2D / RectangularGrid.h
1 // RectangularGrid.h : header file
2 //
3
4 #if !defined(AFX_RECTANGULARGRID_H__8FB85997_50FE_11D1_A4A8_00C04FB15CA3__INCLUDED_)
5 #define AFX_RECTANGULARGRID_H__8FB85997_50FE_11D1_A4A8_00C04FB15CA3__INCLUDED_
6
7 #if _MSC_VER >= 1000
8 #pragma once
9 #endif // _MSC_VER >= 1000
10
11 #include <res\\OCC_Resource.h>
12 #include <Standard_Macro.hxx>
13
14 /////////////////////////////////////////////////////////////////////////////
15 // CRectangularGrid dialog
16
17 class Standard_EXPORT CRectangularGrid : public CDialog
18 {
19 // Construction
20 public:
21         CRectangularGrid(CWnd* pParent = NULL);   // standard constructor
22     void SetViewer(Handle(V3d_Viewer) aViewer) { myViewer = aViewer; } ;
23         void UpdateValues();
24
25 // Dialog Data
26         //{{AFX_DATA(CRectangularGrid)
27         enum { IDD = IDD_GrilleRectangulaire };
28         double  m_XOrigin;
29         double  m_YOrigin;
30         double  m_XStep;
31         double  m_YStep;
32         double  m_RotationAngle;
33         //}}AFX_DATA
34
35
36 // Overrides
37         // ClassWizard generated virtual function overrides
38         //{{AFX_VIRTUAL(CRectangularGrid)
39         protected:
40         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
41         //}}AFX_VIRTUAL
42
43 // Implementation
44 protected:
45
46         // Generated message map functions
47         //{{AFX_MSG(CRectangularGrid)
48         afx_msg void OnUpdateRectGridRotationangle();
49         afx_msg void OnUpdateRectGridXOrigin();
50         afx_msg void OnUpdateRectGridXStep();
51         afx_msg void OnUpdateRectGridYorigin();
52         afx_msg void OnUpdateRectGridYStep();
53         virtual void OnCancel();
54         //}}AFX_MSG
55         DECLARE_MESSAGE_MAP()
56     void UpdateDialogData();
57
58 private :
59   Handle(V3d_Viewer) myViewer;
60
61   Standard_Real SavedXOrigin, SavedYOrigin, SavedXStep, SavedYStep;
62   Standard_Real SavedRotationAngle;
63 };
64
65 //{{AFX_INSERT_LOCATION}}
66 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
67
68 #endif // !defined(AFX_RECTANGULARGRID_H__8FB85997_50FE_11D1_A4A8_00C04FB15CA3__INCLUDED_)