Esempio n. 1
0
        private void selectPlot(SpPerfChart.PerfChart plot, bool select)
        {
            if (null == plot)
                return;

            if (null != m_selectedPlot && plot != m_selectedPlot)
            {
                m_selectedPlot.Selected = false;
                m_selectedPlot = null;

                if (select)
                {
                    m_selectedPlot = plot;
                    m_selectedPlot.Selected = select;
                }
            }
            else if (null == m_selectedPlot && select)
            {
                m_selectedPlot = plot;
                m_selectedPlot.Selected = select;
            }
            else if (plot == m_selectedPlot && !select)
            {
                m_selectedPlot.Selected = select;
                m_selectedPlot = null;
            }
        }
Esempio n. 2
0
 private void enableCalibrate(SpPerfChart.PerfChart plot, bool calibrate)
 {
     plot.Highlighted = calibrate;
     getSignal(plot).EnableCalibrate = calibrate;
     plot.Invalidate();
 }
Esempio n. 3
0
        private Signal getSignal(SpPerfChart.PerfChart plot)
        {
            if (plot == m_plotGSR)
                return m_provider.GSR;
            else if (plot == m_plotHR)
                return m_provider.HR;
            else if (plot == m_plotBVP)
                return m_provider.BVP;
            //else if (plot == m_plotEMGSmile)
            //	return m_provider.EMGSmile;
            //else if (plot == m_plotEMGFrown)
            //	return m_provider.EMGFrown;
            else if (plot == m_plotArousal)
                return m_provider.Arousal;
            //else if (plot == m_plotValence)
            //	return m_provider.Valence;
            //else if (plot == m_plotFun)
            //	return m_provider.Fun;
            //else if (plot == m_plotExcitement)
            //	return m_provider.Excitement;
            //else if (plot == m_plotBoredom)
            //	return m_provider.Boredom;

            return null;
        }
Esempio n. 4
0
 void formatChart(ref SpPerfChart.PerfChart pc)
 {
     pc._SymmetricDisplay = true;
     pc._ScaleMode = SpPerfChart.ScaleMode.Relative;
 }