Esempio n. 1
0
 def loadSessionInfo(self, sessionManager, sessionProperties):
     BaseViewer.loadSessionInfo(self, sessionManager, sessionProperties)
            
     isoLevel = sessionManager.getProperty(sessionProperties, self.shortTitle, "ISO_LEVEL")
     self.surfaceEditor.ui.histogram.setLowerValue(isoLevel)
     
     maxIsoLevel = sessionManager.getProperty(sessionProperties, self.shortTitle, "MAX_ISO_LEVEL")
     self.surfaceEditor.ui.histogram.setHigherValue(maxIsoLevel)
     
     samplingInterval = sessionManager.getProperty(sessionProperties, self.shortTitle, "SAMPLING_INTERVAL")
     #self.surfaceEditor.ui.horizontalSliderSampling.setValue(samplingInterval)
             
     useDisplayRadius = sessionManager.getProperty(sessionProperties, self.shortTitle, "USE_DISPLAY_RADIUS")
     self.surfaceEditor.ui.checkBoxUseRadius.setCheckState(useDisplayRadius)
             
     displayRadius = sessionManager.getProperty(sessionProperties, self.shortTitle, "DISPLAY_RADIUS")
     self.surfaceEditor.ui.spinBoxDisplayRadius.setValue(displayRadius)
     
     surfaceViewing = sessionManager.getProperty(sessionProperties, self.shortTitle, "VIEWING_TYPE_SURFACE")
     solidViewing = sessionManager.getProperty(sessionProperties, self.shortTitle, "VIEWING_TYPE_SOLID")
     crossSectionViewing = sessionManager.getProperty(sessionProperties, self.shortTitle, "VIEWING_TYPE_CROSS_SECTION")
     
     self.surfaceEditor.ui.radioButtonIsoSurface.setChecked(surfaceViewing)
     self.surfaceEditor.ui.radioButtonSolid.setChecked(solidViewing)
     self.surfaceEditor.ui.radioButtonCrossSection.setChecked(crossSectionViewing)
Esempio n. 2
0
 def loadSessionInfo(self, sessionManager, sessionProperties):
     BaseViewer.loadSessionInfo(self, sessionManager, sessionProperties)        
     self.helixLoaded = sessionManager.getProperty(sessionProperties, self.shortTitle, "HELIX_LOADED")
     if self.helixLoaded:
         self.helixFileName = sessionManager.getProperty(sessionProperties, self.shortTitle, "HELIX_FILE")
         self.loadHelixDataFromFile(self.helixFileName)
     self.sheetLoaded = sessionManager.getProperty(sessionProperties, self.shortTitle, "SHEET_LOADED")
     if self.sheetLoaded:
         self.sheetFileName = sessionManager.getProperty(sessionProperties, self.shortTitle, "SHEET_FILE")
         self.loadSheetDataFromFile(self.sheetFileName)