Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
 public Properties()
 {
     absorption = AbsorptionProperties.Initialize();
     sample     = SampleProperties.Initialize();
     ray        = RayProperties.Initialize();
     detector   = DetectorProperties.Initialize();
     angle      = AngleProperties.Initialize();
 }
Exemplo n.º 3
0
 public Properties(AbsorptionProperties absorptionProperties, AngleProperties angleProperties,
                   DetectorProperties detectorProperties, RayProperties rayProperties, SampleProperties sampleProperties)
 {
     absorption = absorptionProperties;
     sample     = sampleProperties;
     ray        = rayProperties;
     detector   = detectorProperties;
     angle      = angleProperties;
 }