Пример #1
0
        internal void OnEnable()
        {
            if (lightMeter == null)
            {
                lightMeter = new LightMeterMonitor();
            }

            if (histogram == null)
            {
                histogram = new HistogramMonitor();
            }

            if (waveform == null)
            {
                waveform = new WaveformMonitor();
            }

            if (vectorscope == null)
            {
                vectorscope = new VectorscopeMonitor();
            }

            m_Monitors = new Dictionary <MonitorType, Monitor>
            {
                { MonitorType.LightMeter, lightMeter },
                { MonitorType.Histogram, histogram },
                { MonitorType.Waveform, waveform },
                { MonitorType.Vectorscope, vectorscope }
            };

            foreach (var kvp in m_Monitors)
            {
                kvp.Value.OnEnable();
            }
        }
Пример #2
0
        internal void OnEnable()
        {
            if (lightMeter == null)
            {
                lightMeter = new LightMeterMonitor();
            }

            if (histogram == null)
            {
                histogram = new HistogramMonitor();
            }

            if (waveform == null)
            {
                waveform = new WaveformMonitor();
            }

            if (vectorscope == null)
            {
                vectorscope = new VectorscopeMonitor();
            }

            lightMeter.OnEnable();
            histogram.OnEnable();
            waveform.OnEnable();
            vectorscope.OnEnable();
        }