0029520: Visualization - drop deprecated V3d_View::Export() functionality and depende...
[occt.git] / src / Graphic3d / Graphic3d_GraphicDriver.hxx
index 01fddf3..5880b00 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <Standard_Integer.hxx>
 #include <Standard_Boolean.hxx>
-#include <MMgt_TShared.hxx>
+#include <Standard_Transient.hxx>
 #include <Graphic3d_CView.hxx>
 #include <Graphic3d_CStructure.hxx>
 #include <Aspect_GradientFillMethod.hxx>
@@ -32,7 +32,6 @@
 #include <Quantity_NameOfColor.hxx>
 #include <Standard_Real.hxx>
 #include <Aspect_TypeOfTriedronPosition.hxx>
-#include <Aspect_TypeOfTriedronEcho.hxx>
 #include <Graphic3d_GraduatedTrihedron.hxx>
 #include <Graphic3d_Vec3.hxx>
 #include <Standard_ShortReal.hxx>
@@ -41,8 +40,6 @@
 #include <Graphic3d_BufferType.hxx>
 #include <Aspect_GenId.hxx>
 #include <Aspect_Handle.hxx>
-#include <Graphic3d_ExportFormat.hxx>
-#include <Graphic3d_SortType.hxx>
 #include <Graphic3d_ZLayerId.hxx>
 #include <Graphic3d_ZLayerSettings.hxx>
 #include <Graphic3d_CLight.hxx>
@@ -60,11 +57,11 @@ class Graphic3d_ViewManager;
 class Quantity_Color;
 class TCollection_AsciiString;
 
-DEFINE_STANDARD_HANDLE(Graphic3d_GraphicDriver, MMgt_TShared)
+DEFINE_STANDARD_HANDLE(Graphic3d_GraphicDriver, Standard_Transient)
 
 //! This class allows the definition of a graphic driver
 //! for 3d interface (currently only OpenGl driver is used).
-class Graphic3d_GraphicDriver : public MMgt_TShared
+class Graphic3d_GraphicDriver : public Standard_Transient
 {
 
 public:
@@ -131,7 +128,7 @@ public:
   virtual void SetZLayerSettings (const Graphic3d_ZLayerId theLayerId, const Graphic3d_ZLayerSettings& theSettings) = 0;
 
   //! Returns the settings of a single Z layer.
-  virtual Graphic3d_ZLayerSettings ZLayerSettings (const Graphic3d_ZLayerId theLayerId) = 0;
+  virtual const Graphic3d_ZLayerSettings& ZLayerSettings (const Graphic3d_ZLayerId theLayerId) const = 0;
 
   //! Returns view associated with the window if it is exists and is activated.
   //! Returns Standard_True if the view associated to the window exists.
@@ -139,10 +136,6 @@ public:
 
   //! returns Handle to display connection
   Standard_EXPORT const Handle(Aspect_DisplayConnection)& GetDisplayConnection() const;
-  
-  Standard_EXPORT Standard_Boolean IsDeviceLost() const;
-  
-  Standard_EXPORT void ResetDeviceLostFlag();
 
   //! Returns a new identification number for a new structure.
   Standard_EXPORT Standard_Integer NewIdentification();
@@ -150,31 +143,18 @@ public:
   //! Frees the identifier of a structure.
   Standard_EXPORT void RemoveIdentification(const Standard_Integer theId);
 
-  DEFINE_STANDARD_RTTIEXT(Graphic3d_GraphicDriver,MMgt_TShared)
+  DEFINE_STANDARD_RTTIEXT(Graphic3d_GraphicDriver,Standard_Transient)
 
 protected:
-
   
   //! Initializes the Driver
   Standard_EXPORT Graphic3d_GraphicDriver(const Handle(Aspect_DisplayConnection)& theDisp);
 
-  Handle(Aspect_DisplayConnection) myDisplayConnection;
-  Standard_Boolean myDeviceLostFlag;
+protected:
 
+  Handle(Aspect_DisplayConnection) myDisplayConnection;
   Aspect_GenId myStructGenId;
 
-
-private:
-
-
-
-
 };
 
-
-
-
-
-
-
 #endif // _Graphic3d_GraphicDriver_HeaderFile