myScene->removeItem( theItem );
}
+//================================================================
+// Function : getObjects
+// Purpose :
+//================================================================
+GraphicsView_ObjectList GraphicsView_ViewPort::getObjects() const
+{
+ GraphicsView_ObjectList aList;
+ QListIterator<QGraphicsItem*> anIter( items() );
+ while( anIter.hasNext() )
+ if( GraphicsView_Object* anObject = dynamic_cast<GraphicsView_Object*>( anIter.next() ) )
+ aList.append( anObject );
+ return aList;
+}
+
//================================================================
// Function : dumpView
// Purpose :
void addItem( QGraphicsItem* theItem );
void removeItem( QGraphicsItem* theItem );
+ GraphicsView_ObjectList getObjects() const;
+
QImage dumpView( bool theWholeScene = false );
public: