Salome HOME
Profile object creation.
[modules/hydro.git] / src / HYDROCurveCreator / OCCViewer_Utilities.h
1 #ifndef OCCVIEWER_UTILITIES_H
2 #define OCCVIEWER_UTILITIES_H
3
4 #include "CurveCreator_Macro.hxx"
5
6 #include <OCCViewer_ViewWindow.h>
7 #include "OCCViewer_ViewWidget.h"
8
9 class OCCViewer_Viewer;
10
11 #ifdef WIN32
12 #pragma warning ( disable:4251 )
13 #endif
14
15 class CURVECREATOR_EXPORT OCCViewer_Utilities
16 {
17 public:
18
19   /*!
20    * Set 2D mode for the viewer. Hide or show 3D actions.
21    * \param theViewer an OCC viewer
22    * \param theMode OCC view window mode
23    */
24   static void setViewer2DMode( OCCViewer_Viewer* theViewer,
25                                const OCCViewer_ViewWindow::Mode2dType& theMode );
26
27
28   /*!
29    * Set 2D mode for the view widget. Hide or show 3D actions.
30    * \param theViewWidget an OCC view widget
31    * \param theMode OCC view window mode
32    */
33   static void setViewWidget2DMode( OCCViewer_ViewWidget* theViewWidget,
34                                    const OCCViewer_ViewWidget::Mode2dType& theMode );
35 };
36
37 #endif