d59c6001ed0931bb690f581fb71669686e297a5b
[occt.git] / samples / xaml / MainPage.xaml.h
1 //
2 // MainPage.xaml.h
3 // Declaration of the MainPage class.
4 //
5
6 #pragma once
7
8 #include <TopoDS_Shape.hxx>
9 #include <STEPControl_StepModelType.hxx>
10
11 #include "MainPage.g.h"
12
13 namespace uwp
14 {
15   /// <summary>
16   /// An empty page that can be used on its own or navigated to within a Frame.
17   /// </summary>
18   public ref class MainPage sealed
19   {
20   public:
21     MainPage();
22
23     void OnClickOffset(Platform::Object^  theSender,
24       Windows::UI::Xaml::Input::PointerRoutedEventArgs^ theEvent);
25
26     void OnClickMesh(Platform::Object^  theSender,
27       Windows::UI::Xaml::Input::PointerRoutedEventArgs^ theEvent);
28
29     void OnClickBoolean(Platform::Object^  theSender,
30       Windows::UI::Xaml::Input::PointerRoutedEventArgs^ theEvent);
31
32     void OnClickDataExchange(Platform::Object^  theSender,
33         Windows::UI::Xaml::Input::PointerRoutedEventArgs^ theEvent);
34
35     void OnClickBuildTemporary(Platform::Object^  theSender,
36       Windows::UI::Xaml::Input::PointerRoutedEventArgs^ theEvent);
37
38   private:
39     // test data exchange export functionality
40     Standard_Boolean SaveBREP(const wchar_t* theFilePath, const TopoDS_Shape& theShape);
41     Standard_Boolean SaveIGES(const wchar_t* theFilePath, const TopoDS_Shape& theShape);
42     Standard_Boolean SaveSTEP(const wchar_t* theFilePath, const TopoDS_Shape& theShape, const STEPControl_StepModelType theValue);
43     Standard_Boolean SaveSTL (const wchar_t* theFilePath, const TopoDS_Shape& theShape);
44     // Standard_Boolean SaveVRML(const wchar_t* theFilePath, const TopoDS_Shape& theShape);
45
46     // test data exchange import functionality
47     Standard_Boolean ReadBREP(const wchar_t* theFilePath, TopoDS_Shape& theShape);
48     Standard_Boolean ReadIGES(const wchar_t* theFilePath, TopoDS_Shape& theShape);
49     Standard_Boolean ReadSTEP(const wchar_t* theFilePath, TopoDS_Shape& theShape);
50   };
51 }