Exemple #1
0
 private string GetLineContaining(string[] pLines, EHeaderAttribute pKey)
 {
     for (int i = 0; i < pLines.Length; i++)
     {
         string line = pLines[i];
         if (line.Contains(GetHeaderAttributeKeyString(pKey)))
         {
             return(line);
         }
     }
     return("");
 }
Exemple #2
0
        private string GetHeaderAttributeKeyString(EHeaderAttribute pKey)
        {
            switch (pKey)
            {
            case EHeaderAttribute.Scale:
                return("scale factor x y z");

            case EHeaderAttribute.Offset:
                return("offset x y z");

            case EHeaderAttribute.Min:
                return("min x y z");

            case EHeaderAttribute.Max:
                return("max x y z");
            }
            return("");
        }