efcfadfbe51dc9a47e2fb7bef5ac2d3d465929f2
[occt.git] / samples / mfc / standard / Common / Resource2D / CircularGrid.h
1 // CircularGrid.h : header file
2 //
3
4 #if !defined(AFX_CIRCULARGRID_H__338883C5_510A_11D1_A4A8_00C04FB15CA3__INCLUDED_)
5 #define AFX_CIRCULARGRID_H__338883C5_510A_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 // CCircularGrid dialog
16
17 class Standard_EXPORT CCircularGrid : public CDialog
18 {
19 // Construction
20 public:
21         CCircularGrid(CWnd* pParent = NULL);   // standard constructor
22     void SetViewer(Handle(V3d_Viewer) aViewer) { myViewer = aViewer; } ;
23         void UpdateValues();
24 // Dialog Data
25         //{{AFX_DATA(CCircularGrid)
26         enum { IDD = IDD_GrilleCirculaire };
27         double  m_RotationAngle;
28         double  m_XOrigin;
29         double  m_YOrigin;
30         double  m_RadiusStep;
31         int     m_DivisionNumber;
32         //}}AFX_DATA
33
34
35 // Overrides
36         // ClassWizard generated virtual function overrides
37         //{{AFX_VIRTUAL(CCircularGrid)
38         protected:
39         virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
40         //}}AFX_VIRTUAL
41
42 // Implementation
43 protected:
44
45         // Generated message map functions
46         //{{AFX_MSG(CCircularGrid)
47         virtual void OnCancel();
48         afx_msg void OnUpdateCircGridDivNumber();
49         afx_msg void OnUpdateCircGridRotationAngle();
50         afx_msg void OnUpdateCircGridXOrigin();
51         afx_msg void OnUpdateCircGridYorigin();
52         afx_msg void OnUpdateCirctGridRadiusStep();
53         //}}AFX_MSG
54         DECLARE_MESSAGE_MAP()
55     void UpdateDialogData();
56
57 private :
58         Handle(V3d_Viewer)  myViewer;
59
60     Quantity_Length     SavedXOrigin,SavedYOrigin,SavedRadiusStep;
61         Standard_Integer    SavedDivisionNumber;
62     Quantity_PlaneAngle SavedRotationAngle ;            
63
64 };
65
66 //{{AFX_INSERT_LOCATION}}
67 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
68
69 #endif // !defined(AFX_CIRCULARGRID_H__338883C5_510A_11D1_A4A8_00C04FB15CA3__INCLUDED_)