private void SetMapValues(CartMapBuilder 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; } }
public void BuildModel(ref Model3DGroup modelgroup, ICartGridData data, 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 CartMapBuilder(data, scalingFactor); mapBuilder.CreateAltitudeMap(minToleranceValue * scalingFactor, maxToleranceValue * scalingFactor, colorCode); SetMapValues(mapBuilder); model_group.Children.Add(mapBuilder.DefineModel()); } catch (Exception) { throw; } }