class ClearSceneCommand(Command): """ Clear the whole scene of all the objects. """ def __init__(self, mainWindow): Command.__init__(self) self.mainWindow = mainWindow self.prototypeManager = PrototypeManager() def execute(self): self.prototypeManager.removeAllObjects() self.mainWindow.viewportManager.resetScene() self.mainWindow.viewportManager.updateViewports() self.mainWindow.saveFileName = QtCore.QString("")
class ClearSceneCommand(Command): """ Clear the whole scene of all the objects. """ def __init__(self, mainWindow): Command.__init__(self) self.mainWindow = mainWindow self.prototypeManager = PrototypeManager() def execute(self): self.prototypeManager.removeAllObjects() self.mainWindow.viewportManager.resetScene() self.mainWindow.viewportManager.updateViewports() self.mainWindow.saveFileName = QtCore.QString("")