Salome HOME
destructors are declared as virtual
[modules/gui.git] / src / GraphicsView / GraphicsView_ViewPort.h
index 518598dd4f2f8b7ea117003d9818c85887257076..8e53b1c5ab120b7137efda3c22dd9c6cd3f6b94a 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2013-2014  CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2013-2016  CEA/DEN, EDF R&D, OPEN CASCADE
 //
 // This library is free software; you can redistribute it and/or
 // modify it under the terms of the GNU Lesser General Public
@@ -77,13 +77,14 @@ public:
 
 public:
   GraphicsView_ViewPort( QWidget* theParent );
-  ~GraphicsView_ViewPort();
+  virtual ~GraphicsView_ViewPort();
 
 public:
   GraphicsView_Scene*              getScene() { return myScene; }
   void                             addItem( QGraphicsItem* theItem );
   bool                             isItemAdded( QGraphicsItem* theItem );
   void                             removeItem( QGraphicsItem* theItem );
+  void                             clearItems();
 
   enum SortType { NoSorting, SelectedFirst, SortByZLevel };
   GraphicsView_ObjectList          getObjects( SortType theSortType = NoSorting ) const;
@@ -93,6 +94,8 @@ public:
   QImage                           dumpView( bool theWholeScene = false,
                                              QSizeF theSize = QSizeF() );
 
+  bool                             dumpViewToPSFormat(const QString& fileName);
+
 public:
   // scene
   void                             setSceneGap( double theSceneGap );