コード例 #1
0
        protected IrPluginViewSettings(IrPluginViewSettings source)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }

            this.pluginService = source.pluginService;
            this.eventType     = source.eventType;
            this.lastContext   = source.lastContext;
            this.amplification = source.amplification;
            this.gamma         = source.gamma;
        }
コード例 #2
0
        protected IrPluginViewSettings(IrPluginViewSettings source)
        {
            if (source == null)
            {
                throw new ArgumentNullException("source");
            }

            this.pluginService = source.pluginService;
            this.eventType = source.eventType;
            this.lastContext = source.lastContext;
            this.amplification = source.amplification;
            this.gamma = source.gamma;
        }
コード例 #3
0
        private viz.Texture GetTexture(IPluginViewSettings pluginViewSettings, EventTypePluginData data)
        {
            Debug.Assert(data != null);

            viz.Texture value = null;

            lock (this.lockObj)
            {
                IrPluginViewSettings irPluginViewSettings = pluginViewSettings as IrPluginViewSettings;
                if (irPluginViewSettings != null)
                {
                    IrPlugin.UpdateData(irPluginViewSettings.RampTexture, data);

                    value = data.irTexture;
                }
            }

            return(value);
        }