-// 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
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;
QImage dumpView( bool theWholeScene = false,
QSizeF theSize = QSizeF() );
+ bool dumpViewToPSFormat(const QString& fileName);
+
public:
// scene
void setSceneGap( double theSceneGap );