a618541d774a5a42ca55efe1aa412af17c002049
[occt.git] / samples / mfc / standard / 08_HLR / src / SelectionDialog.h
1 #if !defined(AFX_SelectionDialog_H__0307BDF3_AF53_11D1_8DAE_0800369C8A03__INCLUDED_)
2 #define AFX_SelectionDialog_H__0307BDF3_AF53_11D1_8DAE_0800369C8A03__INCLUDED_
3
4 #if _MSC_VER >= 1000
5 #pragma once
6 #endif // _MSC_VER >= 1000
7 // SelectionDialog.h : header file
8 //
9 #include "resource.h"
10 #include <ISession2D/ISession2D_Shape.h>
11 #include "SelectionDialog.h"
12
13 class CHLRDoc;
14 /////////////////////////////////////////////////////////////////////////////
15 // CSelectionDialog dialog
16
17 class CSelectionDialog : public CDialog
18 {
19   // Construction
20 public:
21   void SetTitle(CString& aTitle);
22   CSelectionDialog(CHLRDoc* aDoc,CWnd* pParent = NULL);   // standard constructor
23   void OnDisplay(bool isfit);
24
25   // Dialog Data
26   //{{AFX_DATA(CSelectionDialog)
27   enum { IDD = IDD_SelectionDialog };
28   int           m_Algo;
29   int           m_DisplayMode;
30   int           m_NbIsos;
31   BOOL  m_DrawHiddenLine;
32   BOOL  m_DegeneratedModeOn;
33   //}}AFX_DATA
34
35   // Overrides
36   // ClassWizard generated virtual function overrides
37   //{{AFX_VIRTUAL(CSelectionDialog)
38 protected:
39   virtual void DoDataExchange(CDataExchange* pDX);
40   //}}AFX_VIRTUAL
41
42   // Implementation
43 protected:
44
45   // Generated message map functions
46   //{{AFX_MSG(CSelectionDialog)
47   virtual BOOL OnInitDialog();
48   afx_msg void OnGetShape();
49   afx_msg void OnDisplayDefault();
50   afx_msg void OnVIsoParametrics();
51   afx_msg void OnVApparentContour();
52   afx_msg void OnVSewingEdges();
53   afx_msg void OnVsharpEdges();
54   afx_msg void OnVsmoothEdges();
55   afx_msg void OnHsharpEdges();
56   afx_msg void OnHsmoothEdges();
57   afx_msg void OnHSewingEdges();
58   afx_msg void OnHIsoParametrics();
59   afx_msg void OnHApparentContour();
60   afx_msg void OnChangeEDITNBIsos();
61   afx_msg void OnAlgo();
62   afx_msg void OnPolyAlgo();
63   afx_msg void OnUpdate2D();
64   afx_msg void OnTopView();
65   afx_msg void OnBottomView();
66   afx_msg void OnLeftView();
67   afx_msg void OnRightView();
68   afx_msg void OnFrontView();
69   afx_msg void OnBackView();
70   afx_msg void OnAxoView();
71   virtual void OnOK();
72   afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
73   afx_msg void OnLButtonUp(UINT nFlags, CPoint point);
74   afx_msg void OnRButtonDown(UINT nFlags, CPoint point);
75   afx_msg void OnRButtonUp(UINT nFlags, CPoint point);
76   afx_msg void OnMouseMove(UINT nFlags, CPoint point);
77   afx_msg void OnDrawHiddenLine();
78   afx_msg void OnDegeneratedMode();
79   afx_msg void OnPaint();
80   //}}AFX_MSG
81   DECLARE_MESSAGE_MAP()
82 private :
83   void UpdateProjector();
84   void ShowHideButton(Standard_Boolean EnableButton=Standard_True;);
85   void Apply();
86   CHLRDoc* myDoc;
87
88   Handle(V3d_Viewer) myActiveViewer;
89   Handle(V3d_View)   myActiveView;
90   Standard_Integer   myPosMaxX,  myPosMinX ,myBoxX;
91   Standard_Integer   myPosMinY, myPosMaxY ,myBoxY;
92   Standard_Integer   myXmax;
93   Standard_Integer   myYmax;
94
95   Handle(AIS_InteractiveContext) myInteractiveContext;
96   Handle(AIS_Trihedron)          myTrihedron;
97   Handle(ISession2D_Shape)        myDisplayableShape;
98
99 protected:
100   CBitmapButton TopView    ;
101   CBitmapButton BottomView ;
102   CBitmapButton LeftView   ;
103   CBitmapButton RightView  ;
104   CBitmapButton FrontView  ;
105   CBitmapButton BackView   ;
106   CBitmapButton AxoView    ;
107   bool myDisplay;
108 };
109
110 //{{AFX_INSERT_LOCATION}}
111 // Microsoft Developer Studio will insert additional declarations immediately before the previous line.
112
113 #endif // !defined(AFX_SelectionDialog_H__0307BDF3_AF53_11D1_8DAE_0800369C8A03__INCLUDED_)