Beispiel #1
0
        public void Take()
        {
            int Max = 0, i = 0, j = 0;

            for (i = 0; i < Framework.RealFixtureList.Count; i++)
            {
                for (j = 0; j < Framework.RealFixtureList[i].Channels.Count; j++)
                {
                    RealChannel chan = (RealChannel)Framework.RealFixtureList[i].Channels[j];
                    if (chan.DmxAddress > Max)
                    {
                        Max = chan.DmxAddress;
                    }
                }
            }
            Max++;

            mValues = new int[Max];
            for (i = 0; i < Max; i++)
            {
                mValues[i] = -1;
            }

            for (i = 0; i < Framework.RealFixtureList.Count; i++)
            {
                for (j = 0; j < Framework.RealFixtureList[i].Channels.Count; j++)
                {
                    RealChannel chan = (RealChannel)Framework.RealFixtureList[i].Channels[j];
                    mValues[chan.DmxAddress] = chan.Value;
                }
            }
        }
Beispiel #2
0
 public void Apply()
 {
     for (int i = 0; i < Framework.RealFixtureList.Count; i++)
     {
         for (int j = 0; j < Framework.RealFixtureList[i].Channels.Count; j++)
         {
             RealChannel chan = (RealChannel)Framework.RealFixtureList[i].Channels[j];
             if (chan.DmxAddress < mValues.Length)
             {
                 if (mValues[chan.DmxAddress] != -1)
                 {
                     chan.ForceValue(mValues[chan.DmxAddress], ChangeOrigin.User);
                 }
             }
         }
     }
 }
 public RealChannelParameter(RealChannel pChannel)
 {
     mChannel = pChannel;
 }