public static ImageConditionAndDataRepresentingForm RepresentDataFromDenseMatrix(object dmToRepresent, string dataName = "", bool withFixedScaleMargins = false, bool withSymmetricColorScheme = false, double minScaleValue = 0.0d, double maxScaleValue = 1.0d, bool showTheWindow = true)
        {
            imageConditionAndData dataRepresentingImgData = new imageConditionAndData(dmToRepresent, null);

            if (withSymmetricColorScheme)
            {
                dataRepresentingImgData.currentColorScheme = new ColorScheme("", true);
            }
            else
            {
                dataRepresentingImgData.currentColorScheme = new ColorScheme("");
            }
            dataRepresentingImgData.currentColorSchemeRuler = new ColorSchemeRuler(dataRepresentingImgData);
            if (!withFixedScaleMargins)
            {
                dataRepresentingImgData.currentColorSchemeRuler.IsMarginsFixed = false;
                dataRepresentingImgData.UpdateColorSchemeRuler();
            }
            else
            {
                dataRepresentingImgData.currentColorSchemeRuler.IsMarginsFixed = true;
                dataRepresentingImgData.currentColorSchemeRuler.minValue       = minScaleValue;
                dataRepresentingImgData.currentColorSchemeRuler.maxValue       = maxScaleValue;
                dataRepresentingImgData.UpdateColorSchemeRuler();
            }
            ImageConditionAndDataRepresentingForm dmTestReversedRepresentingForm = new ImageConditionAndDataRepresentingForm(dataRepresentingImgData, dataName);

            if (showTheWindow)
            {
                dmTestReversedRepresentingForm.Show();
            }
            return(dmTestReversedRepresentingForm);
        }
Beispiel #2
0
        public void RepresentHeatMap()
        {
            if (currHeatMapData == null)
            {
                ConstructCurrHeatMapData();
            }

            ImageConditionAndDataRepresentingForm imgForm = new ImageConditionAndDataRepresentingForm(currHeatMapData, "data density");

            imgForm.defaultProperties = defaultProperties;
            imgForm.Show();
        }