Salome HOME
updated copyright message
[modules/gui.git] / src / OCCViewer / OCCViewer_VService.h
old mode 100755 (executable)
new mode 100644 (file)
index 73dfcff..b72ae1c
@@ -1,4 +1,4 @@
-// Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2023  CEA, EDF, OPEN CASCADE
 //
 // Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@ -6,7 +6,7 @@
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
 // License as published by the Free Software Foundation; either
-// version 2.1 of the License.
+// version 2.1 of the License, or (at your option) any later version.
 //
 // This library is distributed in the hope that it will be useful,
 // but WITHOUT ANY WARRANTY; without even the implied warranty of
 #ifndef OCCVIEWER_VSERVICE_H
 #define OCCVIEWER_VSERVICE_H
 
-#include <Handle_Aspect_Window.hxx>
-#include <Handle_V3d_View.hxx>
-#include <Handle_V3d_Viewer.hxx>
+#include <Aspect_Window.hxx>
+#include <V3d_View.hxx>
+#include <V3d_Viewer.hxx>
 #include <Standard_Boolean.hxx>
 #include <Standard_CString.hxx>
 #include <Standard_ExtString.hxx>
-#include <Standard_Integer.hxx>
-#include <Quantity_Length.hxx>
-#include <Xw_WindowQuality.hxx>
 #include <V3d_TypeOfOrientation.hxx>
 
+#include <QWidget>
+
 class Standard_EXPORT OCCViewer_VService
 {
 public:
-    inline void* operator new(size_t,void* anAddress)
-    {
-        return anAddress;
-    }
-    inline void* operator new(size_t size)
-    {
-        return Standard::Allocate(size);
-    }
-    inline void  operator delete(void *anAddress)
-    {
-        if ( anAddress ) Standard::Free((Standard_Address&)anAddress);
-    }
-
-    // STATIC METHODS
-    static Handle(Aspect_Window) 
-                    CreateWindow( const Handle(V3d_View)& view,
-                                  const Standard_Integer hiwin,
-                                  const Standard_Integer lowin,
-                                  const Xw_WindowQuality quality );
-
-    static void     SetWindow( const Handle(  V3d_View )& view,
-                               const Standard_Integer hiwin,
-                               const Standard_Integer lowin,
-                               const Xw_WindowQuality quality = Xw_WQ_3DQUALITY );
-
-    static void     SetMagnify( const Handle( V3d_View)& view,
-                                const Standard_Integer hiwin,
-                                const Standard_Integer lowin,
-                                const Handle( V3d_View)& aPreviousView,
-                                const Standard_Integer x1,
-                                const Standard_Integer y1,
-                                const Standard_Integer x2,
-                                const Standard_Integer y2,
-                                const Xw_WindowQuality quality = Xw_WQ_3DQUALITY );
-    static Handle_V3d_Viewer
-                    Viewer3d( const Standard_CString display,
-                              const Standard_ExtString name,
-                              const Standard_CString domain = "",
-                              const Quantity_Length ViewSize = 1000.0,
-                              const V3d_TypeOfOrientation ViewProj = V3d_XposYnegZpos,
-                              const Standard_Boolean ComputedMode = Standard_True,
-                              const Standard_Boolean DefaultComputedMode = Standard_True );
+  static Handle(Aspect_Window) CreateWindow( const Handle(V3d_View)&, WId );
+  static Handle(V3d_Viewer)    CreateViewer();
 };
 
 #endif