Ejemplo n.º 1
0
 public Properties()
 {
     absorption = AbsorptionProperties.Initialize();
     sample     = SampleProperties.Initialize();
     ray        = RayProperties.Initialize();
     detector   = DetectorProperties.Initialize();
     angle      = AngleProperties.Initialize();
 }
Ejemplo n.º 2
0
 public Properties(AbsorptionProperties absorptionProperties, AngleProperties angleProperties,
                   DetectorProperties detectorProperties, RayProperties rayProperties, SampleProperties sampleProperties)
 {
     absorption = absorptionProperties;
     sample     = sampleProperties;
     ray        = rayProperties;
     detector   = detectorProperties;
     angle      = angleProperties;
 }
Ejemplo n.º 3
0
        private void FillFromPreset(AngleProperties source)
        {
            if (!IsValue(fieldAngleStart.text))
            {
                preset.properties.angle.angleStart = source.angleStart;
            }
            if (!IsValue(fieldAngleEnd.text))
            {
                preset.properties.angle.angleEnd = source.angleEnd;
            }
            if (!IsValue(fieldAngleSteps.text))
            {
                preset.properties.angle.angleCount = source.angleCount;
            }

            RefreshAnglePropertiesUI();
        }