def slotNewLauePlaneProjector(self): wid = ProjectionPlaneWidget(1, self) for t in self.tools: self.connect(wid, QtCore.SIGNAL('reflexInfo(int,int,int)'), t.reflexInfo) self.connect(wid, QtCore.SIGNAL('projectorAddedRotation(double)'), t.addedRotation) if self.crystalStore.size()>0: wid.projector.connectToCrystal(self.crystalStore.at(0)) wid.setWindowTitle('LauePlane') self.MdiArea.addSubWindow(wid) wid.show() return wid
def newProjector(self, projector): wid = ProjectionPlaneWidget(projector, self) for t in self.tools: self.connect(wid, QtCore.SIGNAL('reflexInfo(int,int,int)'), t.reflexInfo) self.connect(wid, QtCore.SIGNAL('projectorAddedRotation(double)'), t.addedRotation) #if self.crystalStore.size()>0: # wid.projector.connectToCrystal(self.crystalStore.at(0)) mdi=self.MdiArea.addSubWindow(wid) mdi.setWindowIcon(wid.windowIcon()) wid.show() return wid
def slotNewStereoProjector(self): wid = ProjectionPlaneWidget(0, self) for t in self.tools: self.connect(wid, QtCore.SIGNAL('reflexInfo(int,int,int)'), t.reflexInfo) self.connect(wid, QtCore.SIGNAL('projectorAddedRotation(double)'), t.addedRotation) if self.crystalStore.size()>0: wid.projector.connectToCrystal(self.crystalStore.at(0)) wid.setWindowTitle('Stereographic Projection') mdi=self.MdiArea.addSubWindow(wid) mdi.setWindowIcon(wid.windowIcon()) wid.show() return wid