0031431: Visualization, PrsMgr_PresentableObject - simplify HLR computing interface
[occt.git] / samples / mfc / standard / Common / OCC_App.h
1 // OCC_BaseApp.h: interface for the OCC_BaseApp class.
2 //
3 //////////////////////////////////////////////////////////////////////
4
5 #if !defined(AFX_OCC_APP_H__425A6447_38ED_11D7_8611_0060B0EE281E__INCLUDED_)
6 #define AFX_OCC_APP_H__425A6447_38ED_11D7_8611_0060B0EE281E__INCLUDED_
7
8 #if _MSC_VER > 1000
9 #pragma once
10 #endif // _MSC_VER > 1000
11
12 #include "res\OCC_Resource.h"
13 #include <Standard_Macro.hxx>
14 #include <Graphic3d_GraphicDriver.hxx>
15
16 class Standard_EXPORT OCC_App : public CWinApp 
17 {
18 public:
19   void SetSampleName (const wchar_t* theName);
20   virtual const wchar_t* GetSampleName() const;
21         const wchar_t* GetInitDataDir() const;
22   void SetSamplePath (const wchar_t* thePath);
23
24   virtual BOOL InitApplication ();
25
26   Handle(Graphic3d_GraphicDriver) GetGraphicDriver() const
27   {
28     return myGraphicDriver;
29   }
30
31 // Implementation
32   //{{AFX_MSG(OCC_BaseApp)
33   afx_msg void OnAppAbout();
34   afx_msg void OnStereo();
35   afx_msg void OnUpdateStereo (CCmdUI* theCmdUI);
36     // NOTE - the ClassWizard will add and remove member functions here.
37     //    DO NOT EDIT what you see in these blocks of generated code !
38    //}}AFX_MSG
39    DECLARE_MESSAGE_MAP()
40 protected:
41   Handle(Graphic3d_GraphicDriver) myGraphicDriver;
42 public:
43         CString SampleName;
44         CString SamplePath;
45 };
46
47 #endif // !defined(AFX_OCC_BASEAPP_H__425A6447_38ED_11D7_8611_0060B0EE281E__INCLUDED_)