Пример #1
0
 public void LoadXML(XmlReader reader)
 {
     XMLHelpers.ReadVector3(reader, "rotation", ref _Rotation);
     XMLHelpers.ReadDouble(reader, "scale", ref _Scale);
     XMLHelpers.ReadBool(reader, "juliaMode", ref _JuliaMode);
     XMLHelpers.ReadVector3(reader, "julia", ref _Julia);
     XMLHelpers.ReadInt(reader, "repeats", ref _Repeats);
     reader.Read();
 }
Пример #2
0
 public void LoadXML(XmlReader reader)
 {
     XMLHelpers.ReadBool(reader, "autoExposure", ref _AutoExposure);
     XMLHelpers.ReadBool(reader, "shadowsEnabled", ref _ShadowsEnabled);
     XMLHelpers.ReadBool(reader, "dofEnabled", ref _DoFEnabled);
     XMLHelpers.ReadInt(reader, "reflections", ref _Reflections);
     XMLHelpers.ReadBool(reader, "headlight", ref _Headlight);
     XMLHelpers.ReadBool(reader, "colours", ref _Colours);
     XMLHelpers.ReadBool(reader, "progressive", ref _Progressive);
     XMLHelpers.ReadInt(reader, "maxIterations", ref _MaxIterations);
     XMLHelpers.ReadInt(reader, "resolution", ref _Resolution);
     reader.Read();
 }
Пример #3
0
 public void LoadXML(XmlReader reader)
 {
     XMLHelpers.ReadDouble(reader, "distanceMinimum", ref _DistanceMinimum);
     XMLHelpers.ReadInt(reader, "distanceMinimumMode", ref _DistanceMinimumMode);
     XMLHelpers.ReadDouble(reader, "distanceIterations", ref _DistanceIterations);
     XMLHelpers.ReadDouble(reader, "stepSize", ref _StepSize);
     XMLHelpers.ReadDouble(reader, "distanceExtents", ref _DistanceExtents);
     XMLHelpers.ReadInt(reader, "fractalIterationCount", ref _FractalIterationCount);
     XMLHelpers.ReadInt(reader, "colourIterationCount", ref _ColourIterationCount);
     XMLHelpers.ReadInt(reader, "deMode", ref _DEMode);
     XMLHelpers.ReadInt(reader, "background", ref _Background);
     XMLHelpers.ReadInt(reader, "lighting", ref _Lighting);
     XMLHelpers.ReadDouble(reader, "sunHeight", ref _SunHeight);
     XMLHelpers.ReadDouble(reader, "sunDirection", ref _SunDirection);
     XMLHelpers.ReadBool(reader, "headlightEnabled", ref _Headlight);
     XMLHelpers.ReadDouble(reader, "headlightStrength", ref _HeadLightStrength);
     XMLHelpers.ReadDouble(reader, "fogStrength", ref _FogStrength);
     XMLHelpers.ReadColour(reader, "fogColour", ref _FogColour);
     XMLHelpers.ReadInt(reader, "fogSamples", ref _FogSamples);
     XMLHelpers.ReadFogType(reader, "fogType", ref _FogType);
 }
Пример #4
0
        public void LoadXML(XmlReader reader)
        {
            XMLHelpers.ReadBool(reader, "xOrbitEnabled", ref _XOrbitEnabled);
            XMLHelpers.ReadBool(reader, "yOrbitEnabled", ref _YOrbitEnabled);
            XMLHelpers.ReadBool(reader, "zOrbitEnabled", ref _ZOrbitEnabled);

            while (reader.NodeType != XmlNodeType.EndElement && reader.Read())
            {
                if (reader.NodeType == XmlNodeType.Element && reader.Name == "ORBITCOLOURSX")
                {
                    _OrbitColoursX.LoadXML(reader);
                }
                if (reader.NodeType == XmlNodeType.Element && reader.Name == "ORBITCOLOURSY")
                {
                    _OrbitColoursY.LoadXML(reader);
                }
                if (reader.NodeType == XmlNodeType.Element && reader.Name == "ORBITCOLOURSZ")
                {
                    _OrbitColoursZ.LoadXML(reader);
                }
            }
            reader.Read();
        }