private void FillFromPreset(SampleProperties source) { if (!IsValue(fieldGridResolution.text)) { preset.properties.sample.gridResolution = source.gridResolution; } if (!IsValue(fieldDiameter.text)) { preset.properties.sample.totalDiameter = source.totalDiameter; } if (!IsValue(fieldCellThickness.text)) { preset.properties.sample.cellThickness = source.cellThickness; } if (!IsValue(fieldMuCell.text)) { preset.properties.sample.muCell = source.muCell; } if (!IsValue(fieldMuSample.text)) { preset.properties.sample.muSample = source.muSample; } RefreshSamplePropertiesUI(); }
public Properties() { absorption = AbsorptionProperties.Initialize(); sample = SampleProperties.Initialize(); ray = RayProperties.Initialize(); detector = DetectorProperties.Initialize(); angle = AngleProperties.Initialize(); }
public Properties(AbsorptionProperties absorptionProperties, AngleProperties angleProperties, DetectorProperties detectorProperties, RayProperties rayProperties, SampleProperties sampleProperties) { absorption = absorptionProperties; sample = sampleProperties; ray = rayProperties; detector = detectorProperties; angle = angleProperties; }