Salome HOME
e2784eb80521a9b64b3d4d2f060aa05b24c0b72e
[modules/gui.git] / src / OCCViewer / OCCViewer_VService.h
1 // Copyright (C) 2007-2013  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5 //
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
10 //
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14 // Lesser General Public License for more details.
15 //
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
19 //
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21 //
22
23 #ifndef OCCVIEWER_VSERVICE_H
24 #define OCCVIEWER_VSERVICE_H
25
26 #include <Handle_Aspect_Window.hxx>
27 #include <Handle_V3d_View.hxx>
28 #include <Handle_V3d_Viewer.hxx>
29 #include <Standard_Boolean.hxx>
30 #include <Standard_CString.hxx>
31 #include <Standard_ExtString.hxx>
32 //#include <Standard_Integer.hxx>
33 #include <Quantity_Length.hxx>
34 //#include <Xw_WindowQuality.hxx>
35 #include <V3d_TypeOfOrientation.hxx>
36
37 #include <QWidget>
38
39 class Standard_EXPORT OCCViewer_VService
40 {
41 public:
42   // STATIC METHODS
43   static Handle(Aspect_Window) CreateWindow( const Handle(V3d_View)& view, WId id );
44
45   /*
46     static void     SetWindow( const Handle(  V3d_View )& view,
47                                const Standard_Integer hiwin,
48                                const Standard_Integer lowin,
49                                const Xw_WindowQuality quality = Xw_WQ_3DQUALITY );
50
51     static void     SetMagnify( const Handle( V3d_View)& view,
52                                 const Standard_Integer hiwin,
53                                 const Standard_Integer lowin,
54                                 const Handle( V3d_View)& aPreviousView,
55                                 const Standard_Integer x1,
56                                 const Standard_Integer y1,
57                                 const Standard_Integer x2,
58                                 const Standard_Integer y2,
59                                 const Xw_WindowQuality quality = Xw_WQ_3DQUALITY );
60     */
61
62   static Handle(V3d_Viewer) Viewer3d( const Standard_CString display,
63                                       const Standard_ExtString name,
64                                       const Standard_CString domain = "",
65                                       const Quantity_Length ViewSize = 1000.0,
66                                       const V3d_TypeOfOrientation ViewProj = V3d_XposYnegZpos,
67                                       const Standard_Boolean ComputedMode = Standard_True,
68                                       const Standard_Boolean DefaultComputedMode = Standard_True );
69 };
70
71 #endif