OrsSimulationMcXRAY_157a2ed0808f11e986b5309c235e8fdb

author:ORS Team
contact:http://theobjects.com
email:info@theobjects.com
organization:Object Research Systems (ORS), Inc.
address:760 St-Paul West, suite 101, Montréal, Québec, Canada, H3C 1M4
copyright:Object Research Systems (ORS), Inc. All rights reserved 2020.
date:May 27 2019 10:52
dragonflyVersion:
 4.1.0.629 (D)
UUID:157a2ed0808f11e986b5309c235e8fdb

Class Code

class OrsPythonPlugins.OrsSimulationMcXRAY_157a2ed0808f11e986b5309c235e8fdb.OrsSimulationMcXRAY_157a2ed0808f11e986b5309c235e8fdb.OrsSimulationMcXRAY_157a2ed0808f11e986b5309c235e8fdb(varname=None, managed=True)
OrsChooseFaceOnBox = 'OrsChooseFaceOnBox'
UIDescriptors = [<ORSServiceClass.OrsPlugin.uidescriptor.UIDescriptor object>]
actionGetSelectedFaceOnClipBox()
classmethod actionStartSimulationMcXRAY()
interfacemethod addElectronDetectorToSolidSimulation(aSolidSimulation)

add a new Electron detector to the simulator

Parameters:aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
interfacemethod addXRaynDetectorToSolidSimulation(aSolidSimulation)

add a new xRay detector to the simulator

Parameters:aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
applyOpacityEffectToCropSample()
canEnablePositioning()
canEnterChooseFaceState()
cleanup()

Deletes the variables managed by the plugin. It is the place to remove callbacks and other references to Python objects that would prevent them to be garbage collected. This method is called during the process of deletion of the plugin. It calls for the cleanup and deletion of the forms.

closable = True
closeWidget(name)
interfacemethod configureElectronDetectorOfSolidSimulation(aSolidSimulation, detectorIndex, position, normal, innerRadius, outerRadius)

configure an electron detector to the simulator

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • detectorIndex (int) – a int
  • position (ORSModel.ors.Vector3) – a Vector3 the position of the detector
  • normal (ORSModel.ors.Vector3) – a Vector3 the normal of the detector
  • innerRadius (float) – a float the inner radius of the anulus
  • outerRadius (float) – a float the outer radius of the anulus
interfacemethod configureXRayDetectorDiskManufacturerXModelYOfSolidSimulation(aSolidSimulation, detectorIndex, position, normal)

configure an xRay detector to the simulator

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • detectorIndex (int) – a int
  • position (ORSModel.ors.Vector3) – a Vector3 the position of the detector
  • normal (ORSModel.ors.Vector3) – a Vector3 the normal of the detector
interfacemethod createSolideSimulation()

Return a new instance of SolidSimulation

Returns:aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
execute()
executeForPoints(anArray, timestep)
executeForSurface(IProgress)
interfacemethod executeOnSurfaceOfRectangle(aSolidSimulation, chosenFace, IProgress: ORSModel.ors.Progress)

execute the simulation on the rectangle

Parameters:
Returns:
interfacemethod executeSimulation(aSolidSimulation)

run the simulation fo a given point

Parameters:aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
exportToCSV()
getAccumulatorsWindowsMaximumEnergy()
getAccumulatorsWindowsMaximumEnergyResult()
getAcquisitionTime()
getAngleOfIncidence()
getArrayAtomicNumbers(anArrayToFill)
getArraySpectrumDetectedBremsstrahlung(anArrayToFill)
getArraySpectrumDetectedCharacteristic(anArrayToFill)
getArraySpectrumDetectedTotal(anArrayToFill)
classmethod getAtomCollisionAvailableModels()
getAtomCollisionModel()
classmethod getAtomCrossSectionAvailableModels()
getAtomCrossSectionModel()
classmethod getAtomEnergyLossAvailableModels()
getAtomEnergyLossModel()
classmethod getAtomMeanIonizationPotentialAvailableModels()
getAtomMeanIonizationPotentialModel()
classmethod getAtomScreeningAvailableModels()
getAtomScreeningModel()
interfacemethod getBSEResultFromSolidSimulation(aSolidSimulation, detectorIndex)

get the result of the simulation for an electron detector

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • detectorIndex (int) – a int
Returns:

bse (float) – output bse ratio, a float

getBackScatteredCoefficient(pointIndex, detectorIndex)
getBeamCurrent()
getBeamEnergy()
getChosenFaceOnBox(timestep=0) → ORSModel.ors.Rectangle
getComputeXRayResults()
getElectronSourceDirection()
getElectronSourceDistanceFromSample()
getElectronSourcePosition()
getHeightResolution()
getLabelDetails(label)
getMeshMicroscope()
getMultiROIDict()
getMultiROIVisualBox()
getNumberSimulatedElectronTrajectories()
getNumberSpectrumChannels()
getNumberThreadsToStart()
getRandomNumberSeed()
classmethod getRegionEnergyLossAvailableModels()
getRegionEnergyLossModel()
getResultsSpectrumDetectedLineData()

Gets the line data of the results of spectrum detected (bremsstrahlung, characteristic and total) and the related information.

Returns:
  • lines – list of lines
  • lineTitles (list of str) – list of the line titles
  • lineColors (list of tuples (r, g, b)) – list of colors
getSelectedFaceOnClipBox(myEvent)
getSliceThicknessResolution()
getSpecimenLabelTableModel()
getSpecimenMultiROI()
getUseHuey()
getWidthResolution()
interfacemethod getXRayBremsstrahlungResultFromSolidSimulation(aSolidSimulation, detectorIndex)

get the xray Bremsstrahlung result of the simulation for an xray detector

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • detectorIndex (int) – a int
Returns:

xray (ORSModel.ors.ArrayDouble) – xray energies, a ArrayDouble

classmethod getXRayCSBremsstrahlungAvailableModels()
getXRayCSBremsstrahlungModel()
classmethod getXRayCSCharacteristicAvailableModels()
getXRayCSCharacteristicModel()
interfacemethod getXRayCharacteristicResultFromSolidSimulation(aSolidSimulation, detectorIndex)

get the xray characteristic result of the simulation for an xray detector

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • detectorIndex (int) – a int
Returns:

xray (ORSModel.ors.ArrayDouble) – xray energies, a ArrayDouble

classmethod getXRayMassAbsorptionCoefficientAvailableModels()
getXRayMassAbsorptionCoefficientModel()
interfacemethod getXRayTotalResultFromSolidSimulation(aSolidSimulation, detectorIndex)

get the xray total result of the simulation for an xray detector

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • detectorIndex (int) – a int
Returns:

xray (ORSModel.ors.ArrayDouble) – xray energies, a ArrayDouble

handleChanged(oldState, newState)

This method is called when the state of the application is changed.

Parameters:
  • oldState (str) – name of the old (previous) state
  • newState (str) – name of the new (current) state
initializeMeshMicroscope()
keepAlive = False
multiple = True
onHandleChanged(oldState, newState)
openWidget(name, dock=None, tab=None, x=-1, y=-1, w=-1, l=-1, order=-1)
orsSelectedObjectsChange()
refreshTableModelOnSpecimenChange()
savable = False
setAccumulatorsWindowsMaximumEnergy(accumulatorsWindowsMaximumEnergy)
setAcquisitionTime(acquisitionTime)
setAngleOfIncidence(angleIncidence)
setAtomCollisionModel(atomCollisionModel)
setAtomCrossSectionModel(atomCrossSectionModel)
setAtomEnergyLossModel(atomEnergyLossModel)
setAtomMeanIonizationPotentialModel(atomMeanIonizationPotentialModel)
setAtomScreeningModel(atomScreeningModel)
setBeamCurrent(beamCurrent)
setBeamEnergy(beamEnergy)
setChosenFaceOnBoxIndex(chosenFaceOnBoxIndex)
setComputeXRayResults(computeXRayResults)
setDirectionIncidence(directionIncidence)
setElectronSourceDirection(electronSourceDirection)
setElectronSourceDistanceFromSample(distance)
setElectronSourcePosition(electronSourcePosition)
setHeightResolution(heightResolution)
setLabelDetails(newLabelDetails, label)
setLabelDetailsForNewSpecimen()
setMeshMicroscope(meshMicroscope)
setNumberSimulatedElectronTrajectories(numberSimulatedElectronTrajectories)
setNumberSpectrumChannels(numberOfSpectrumChannel)
setNumberThreadsToStart(numberThreadsToStart)
setRandomNumberSeed(randomNumberSeed)
setRegionEnergyLossModel(regionEnergyLossModel)
setSliceThicknessResolution(sliceThicknessResolution)
interfacemethod setSolidSimulationAccumulatorsWindowsMaximumEnergy(aSolidSimulation, accumulatorsWindowsMaximumEnergy)

Set the simulator accumulator windows maximum xRay energy

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • accumulatorsWindowsMaximumEnergy (float) – a float
interfacemethod setSolidSimulationAcquisitionTime(aSolidSimulation, acquisitionTime)

Set the simulator acquisition time

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • acquisitionTime (float) – a float
interfacemethod setSolidSimulationAtomCollisionModel(aSolidSimulation, atomCollisionModel)

Set the simulator Atomic colliusion model

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • atomCollisionModel (int) – a int
interfacemethod setSolidSimulationAtomCrossSectionModel(aSolidSimulation, atomCrossSectionModel)

Set the simulator Atomic cross section model

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • atomCrossSectionModel (int) – a int
interfacemethod setSolidSimulationAtomEnergyLossModel(aSolidSimulation, atomEnergyLossModel)

Set the simulator Atomic energy loss model

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • atomEnergyLossModel (int) – a int
interfacemethod setSolidSimulationAtomMeanIonizationPotentialModel(aSolidSimulation, atomMeanIonizationPotentialModel)

Set the simulator Atomic mean ionization potential model

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • atomMeanIonizationPotentialModel (int) – a int
interfacemethod setSolidSimulationAtomScreeningModel(aSolidSimulation, atomScreeningModel)

Set the simulator Atomic screening model

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • atomScreeningModel (int) – a int
interfacemethod setSolidSimulationBeamCurrent(aSolidSimulation, beamCurrent)

Set the simulator beam current model

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • beamCurrent (float) – a float
interfacemethod setSolidSimulationBeamEnergy(aSolidSimulation, beamEnergy)

Set the simulator beam energy model

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • beamEnergy (float) – a float
interfacemethod setSolidSimulationComputeXRay(aSolidSimulation, computeXRay)

Set the simulator so that it simulate the xray emissoin

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • computeXRay (bool) – a bool
interfacemethod setSolidSimulationEctronSourcePosition(aSolidSimulation, electronSourcePosition)

Set the simulator electron source position

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • electronSourcePosition (ORSModel.ors.Vector3) – a Vector3 instance
interfacemethod setSolidSimulationElectronSourceDirection(aSolidSimulation, electronSourceDirection)

Set the simulator electron source direction

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • electronSourceDirection (ORSModel.ors.Vector3) – a Vector3 instance
interfacemethod setSolidSimulationMultiROI(aSolidSimulation, multiROI, timestep)

Set the multiROI that will be used by the simulator

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • multiROI (ORSModel.ors.MultiROI) – a MultiROI instance
  • timestep (int) – timestep of the simulation
interfacemethod setSolidSimulationNumberOfThread(aSolidSimulation, numberThreadsToStart)

Set the simulator thread count time

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • numberThreadsToStart (int) – a int
interfacemethod setSolidSimulationNumberSimulatedElectronTrajectories(aSolidSimulation, numberSimulatedElectronTrajectories)

Set the simulator trajectory count

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • numberSimulatedElectronTrajectories (int) – a int
interfacemethod setSolidSimulationNumberSpectrumChannels(aSolidSimulation, channelCount)

Set the simulator number of channel for xray detector

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • channelCount (int) – a int
interfacemethod setSolidSimulationRegionEnergyLossModel(aSolidSimulation, regionEnergyLossModel)

Set the simulator region energy loss model

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • regionEnergyLossModel (int) – a int
interfacemethod setSolidSimulationXRayCSBremsstrahlungModel(aSolidSimulation, xRayCSBremsstrahlungModel)

Set the simulator xRay Collision Bremsstrahlung model

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • xRayCSBremsstrahlungModel (int) – a int
interfacemethod setSolidSimulationXRayCSCharacteristicModel(aSolidSimulation, xRayCSCharacteristicModel)

Set the simulator xRay Collision characteristic model

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • xRayCSCharacteristicModel (int) – a int
interfacemethod setSolidSimulationXRayMassAbsorptionCoefficientModel(aSolidSimulation, xRayMassAbsorptionCoefficientModel)

Set the simulator XRay mass absorption model

Parameters:
  • aSolidSimulation (transient SolidSimulation) – new SolidSimulation instance
  • xRayMassAbsorptionCoefficientModel (int) – a int
setSpecimenMultiROI(aMultiROI, timestep)
setUseHuey(useHuey)
setWidthResolution(widthResolution)
setXRayCSBremsstrahlungModel(xRayCSBremsstrahlungModel)
setXRayCSCharacteristicModel(xRayCSCharacteristicModel)
setXRayMassAbsorptionCoefficientModel(xRayMassAbsorptionCoefficientModel)
showClipBox()
stateDescriptors = [<ORSServiceClass.OrsPlugin.statedescriptor.StateDescriptor object>]
classmethod toolsMenu()
classmethod updateDetector(solidSimulation)
updateMeshWithAngleOfIncidence()
updateOutputHeight(heightResolution)
updateOutputWidth(widthResolution)
updateSubsetDimensions(timestep=0)
updateTotalImages(sliceThickness)
updateUI()
validateLabelDetails()
validateLineEditInput(text)