示例#1
0
        public ConfigurationPlot(ConfigurationPlot p)
        {
            m_clrLine             = p.m_clrLine;
            m_clrPlotFill         = p.m_clrPlotFill;
            m_clrPlotLine         = p.m_clrPlotLine;
            m_clrPlotLineOverride = p.m_clrPlotLineOverride;
            m_clrAction1Active    = p.m_clrAction1Active;
            m_clrAction2Active    = p.m_clrAction2Active;
            m_nActionActiveAlpha  = p.m_nActionActiveAlpha;
            m_fLineWidth          = p.m_fLineWidth;
            m_bEnableFlag         = p.m_bEnableFlag;
            m_bEnableTopMostFlag  = p.m_bEnableTopMostFlag;
            m_bEnableLabel        = p.m_bEnableLabel;
            m_clrFlag             = p.m_clrFlag;
            m_clrFlagBorder       = p.m_clrFlagBorder;
            m_clrFlagText         = p.m_clrFlagText;
            m_strDataParam        = p.m_strDataParam;
            m_strDataName         = p.m_strDataName;
            m_nDataIdx            = p.m_nDataIdx;
            m_nDataIdxOnRender    = p.m_nDataIdxOnRender;
            m_strName             = p.m_strName;
            m_bVisible            = p.m_bVisible;
            m_nInterval           = p.m_nInterval;
            m_plotType            = p.m_plotType;
            m_strCustomName       = p.m_strCustomName;
            m_bExcludeFromMinMax  = p.m_bExcludeFromMinMax;
            m_bLookaheadActive    = p.m_bLookaheadActive;
            m_dfMarginPercent     = p.m_dfMarginPercent;
            m_dfTransparency      = p.m_dfTransparency;
            m_dfMidPoint          = p.m_dfMidPoint;
            m_plotShape           = p.m_plotShape;

            foreach (KeyValuePair <string, double> kv in p.m_rgExtraSettings)
            {
                m_rgExtraSettings.Add(kv.Key, kv.Value);
            }

            m_custiomBuildOrder = p.m_custiomBuildOrder;

            if (p.m_properties != null)
            {
                foreach (PropertyValue prop in p.m_properties)
                {
                    m_properties.Add(prop);
                }
            }
        }
示例#2
0
        public PlotCollectionSet BuildGraph(ConfigurationFrame config, List <ConfigurationPlot> plots, PlotCollectionSet data, bool bAddToParams = false, GETDATAORDER order = GETDATAORDER.PRE)
        {
            PlotCollectionSet data1 = new PlotCollectionSet();

            if (order == GETDATAORDER.PRE)
            {
                if (!config.UseExistingDataMinMax)
                {
                    data.SetMinMax();
                }

                data.GetAbsMinMax(0, 0, out m_dfAbsMinY, out m_dfAbsMaxY);

                setMinMaxLines(config);

                m_rgPlots = new SimpleGraphing.GraphPlotCollection();
                m_rgData  = new PlotCollectionSet();
                m_rgData.Add(data);
            }

            for (int i = 0; i < plots.Count; i++)
            {
                if ((plots[i].HasCustomBuild || plots[i].Visible) && plots[i].BuildOrder == order)
                {
                    GraphPlot graphPlot  = new SimpleGraphing.GraphPlot(m_cache, m_gx, m_gy);
                    int       nLookahead = Math.Max(config.PlotArea.Lookahead, config.PlotArea.CalculationLookahead);

                    PlotCollectionSet set = graphPlot.BuildGraph(plots[i], m_rgData, plots[i].DataIndex, nLookahead, m_rgPlots, bAddToParams);

                    if (set != null)
                    {
                        data1.Add(set, true);
                    }

                    if (graphPlot.Plots != null)
                    {
                        m_rgPlots.Add(graphPlot);
                        m_rgData.Add(graphPlot.Plots, true);
                    }
                }
            }

            if (order == GETDATAORDER.PRE)
            {
                m_style = createStyle(config);
            }

            return(data1);
        }
示例#3
0
 public void SetCustomBuildOrder(GETDATAORDER order)
 {
     m_custiomBuildOrder = order;
 }