Exemple #1
0
 private void SetMapValues(CylMapBuilder mapBuilder)
 {
     try
     {
         BlueValue   = mapBuilder.BlueValue.ToString("f4");
         RedValue    = mapBuilder.RedValue.ToString("f4");
         GreenValue  = mapBuilder.GreenValue.ToString("f4");
         YellowValue = mapBuilder.YellowValue.ToString("f4");
         AquaValue   = mapBuilder.YellowValue.ToString("f4");
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemple #2
0
        public void BuildModel(ref Model3DGroup modelgroup, ICylGridData data, double radialDirection, double nominalRadius,
                               double minToleranceValue, double maxToleranceValue, double scalingFactor, COLORCODE colorCode)
        {
            try
            {
                maxArraySize           = 1000000;
                model_group            = modelgroup;
                this.maxToleranceValue = maxToleranceValue;
                System.Diagnostics.Stopwatch sw = new System.Diagnostics.Stopwatch();
                sw.Start();
                DefineLights();
                var mapBuilder = new CylMapBuilder(data, scalingFactor, radialDirection, nominalRadius);
                mapBuilder.CreateAltitudeMap(minToleranceValue * scalingFactor, maxToleranceValue * scalingFactor, colorCode);
                SetMapValues(mapBuilder);

                model_group.Children.Add(mapBuilder.DefineModel());
            }
            catch (Exception)
            {
                throw;
            }
        }