Ejemplo n.º 1
0
        private static void ReadProperties(string[] lines, ref int lineNumber, out int numberOfVerticalAngles, out int numberOfHorizontalAngles, out PhotometricType photometricType)
        {
            // Read 13 values - these values contain several bits of information, of which only a couple are of importance to us.
            // All values are read so the line is advanced to the start of the angles declaration. Normally these properties should be fixed on 2 lines,
            // but ill formatted ies files are not uncommon.
            List <float> properties = ReadValues(lines, 13, ref lineNumber);

            // The fourth item is the number of vertical angles.
            numberOfVerticalAngles = (int)properties[3];
            // The fifth is the number of horizontal angles.
            numberOfHorizontalAngles = (int)properties[4];
            // The sixth item is the photometric type enum.
            photometricType = (PhotometricType)(properties[5]);
        }
Ejemplo n.º 2
0
        private static void ReadProperties(string[] lines, ref int lineNumber, out int numberOfVerticalAngles, out int numberOfHorizontalAngles, out PhotometricType photometricType)
        {
            List <float> list = ParseIES.ReadValues(lines, 13, ref lineNumber);

            numberOfVerticalAngles   = (int)list[3];
            numberOfHorizontalAngles = (int)list[4];
            photometricType          = (PhotometricType)list[5];
        }