Ejemplo n.º 1
0
 public void Parse(string lineIn)
 {
     deviceType = SeqEnums.enumDevice(utils.getKeyWord(lineIn, FIELDdeviceType));
     unit       = utils.getKeyValue(lineIn, FIELDunit);
     network    = utils.getKeyValue(lineIn, FIELDnetwork);
     circuit    = utils.getKeyValue(lineIn, FIELDcircuit);
 }
Ejemplo n.º 2
0
        public override string ToString()
        {
            string ret = SeqEnums.EffectName(type);

            ret += " From " + startCentisecond.ToString();
            ret += " to " + myEndCentisecond.ToString();
            if (intensity > utils.UNDEFINED)
            {
                ret += " at " + intensity.ToString();
            }
            if (startIntensity > utils.UNDEFINED)
            {
                ret += " at " + startIntensity.ToString();
            }
            return(ret);
        }
Ejemplo n.º 3
0
        public void Parse(string lineIn)
        {
            this.EffectType    = SeqEnums.enumEffectType(utils.getKeyWord(lineIn, utils.FIELDtype));
            myStartCentisecond = utils.getKeyValue(lineIn, utils.FIELDstartCentisecond);
            myEndCentisecond   = utils.getKeyValue(lineIn, utils.FIELDendCentisecond);
            Intensity          = utils.getKeyValue(lineIn, FIELDintensity);
            startIntensity     = utils.getKeyValue(lineIn, FIELDstartIntensity);
            endIntensity       = utils.getKeyValue(lineIn, FIELDendIntensity);

            if (parent != null)
            {
                if (parent.ParentSequence != null)
                {
                    parent.ParentSequence.MakeDirty();
                }
            }
        }
Ejemplo n.º 4
0
        public void Parse(string lineIn)
        {
            //System.Diagnostics.Debugger.Break();
            //string keywd = utils.getKeyWord(lineIn, VizChannel.FIELDsubParam);
            //string keywd = utils.getKeyWord(lineIn, Channel.FIELDcolor);
            int idt = lineIn.IndexOf(FIELDdeviceType);

            //if (keywd.Length == 0)
            if (idt > 0)
            {
                isViz = false;
                string dev = utils.getKeyWord(lineIn, FIELDdeviceType);                 // Note: deviceType is NOT capitalized and is a String
                deviceType = SeqEnums.enumDevice(dev);

                // for LOR, this is the unit, for DMX it's not used
                unit = utils.getKeyValue(lineIn, FIELDunit);

                // for LOR, this is the network, for DMX it is the universe
                network = utils.getKeyValue(lineIn, FIELDnetwork);

                // for LOR or DMX this is the channel
                circuit = utils.getKeyValue(lineIn, FIELDcircuit);
            }
            else
            {
                isViz = true;
                int dt = utils.getKeyValue(lineIn, FIELDDeviceType);                 // Note: DeviceType IS captialized and is an Int
                if (dt == 1)
                {
                    deviceType = DeviceType.LOR;
                }
                if (dt == 7)
                {
                    deviceType = DeviceType.DMX;
                }

                // for LOR, this is the unit, for DMX it's not used
                unit = utils.getKeyValue(lineIn, FIELDController);

                // for LOR, this is the network, for DMX it is the universe
                network = utils.getKeyValue(lineIn, FIELDNetwork);

                // for LOR or DMX this is the channel
                circuit = utils.getKeyValue(lineIn, FIELDChannel);
            }
        }
Ejemplo n.º 5
0
        public string LineOut()
        {
            StringBuilder ret = new StringBuilder();

            if (isViz)
            {
                if (deviceType == DeviceType.LOR)
                {
                    ret.Append(utils.SetKey(FIELDDeviceType, 1));
                }
                else if (deviceType == DeviceType.DMX)
                {
                    ret.Append(utils.SetKey(FIELDDeviceType, 7));
                }
                ret.Append(utils.SetKey(FIELDNetwork, network));
                ret.Append(utils.SetKey(FIELDController, unit));
                ret.Append(utils.SetKey(FIELDChannel, circuit));
            }
            else
            {
                if (deviceType == DeviceType.LOR)
                {
                    ret.Append(utils.SetKey(FIELDdeviceType, SeqEnums.DeviceName(deviceType)));
                    ret.Append(utils.SetKey(FIELDunit, unit));
                    ret.Append(utils.SetKey(FIELDcircuit, circuit));
                    if (network != utils.UNDEFINED)
                    {
                        ret.Append(utils.SetKey(FIELDnetwork, network));
                    }
                }
                else if (deviceType == DeviceType.DMX)
                {
                    ret.Append(utils.SetKey(FIELDdeviceType, SeqEnums.DeviceName(deviceType)));
                    ret.Append(utils.SetKey(FIELDcircuit, circuit));
                    ret.Append(utils.SetKey(FIELDnetwork, network));
                }
                else if (deviceType == DeviceType.Dasher)
                {
                    ret.Append(utils.SetKey(FIELDdeviceType, SeqEnums.DeviceName(deviceType)));
                    ret.Append(utils.SetKey(FIELDunit, unit));
                    ret.Append(utils.SetKey(FIELDcircuit, circuit));
                }
            }
            return(ret.ToString());
        }
Ejemplo n.º 6
0
        public string LineOut()
        {
            string ret = "";

            ret  = utils.LEVEL3 + utils.STFLD + Sequence4.TABLEeffect;
            ret += utils.FIELDtype + utils.FIELDEQ + SeqEnums.EffectName(type) + utils.ENDQT;
            ret += utils.FIELDstartCentisecond + utils.FIELDEQ + startCentisecond.ToString() + utils.ENDQT;
            ret += utils.FIELDendCentisecond + utils.FIELDEQ + myEndCentisecond.ToString() + utils.ENDQT;
            if (intensity > utils.UNDEFINED)
            {
                ret += FIELDintensity + utils.FIELDEQ + intensity.ToString() + utils.ENDQT;
            }
            if (startIntensity > utils.UNDEFINED)
            {
                ret += FIELDstartIntensity + utils.FIELDEQ + startIntensity.ToString() + utils.ENDQT;
                ret += FIELDendIntensity + utils.FIELDEQ + endIntensity.ToString() + utils.ENDQT;
            }
            ret += utils.ENDFLD;
            return(ret);
        }
Ejemplo n.º 7
0
        public override string ToString()
        {
            StringBuilder ret = new StringBuilder();

            ret.Append(SeqEnums.EffectTypeName(this.EffectTypeEX));
            ret.Append(" From ");
            ret.Append(startCentisecond);
            ret.Append(" to ");
            ret.Append(myEndCentisecond);
            if (Intensity > utils.UNDEFINED)
            {
                ret.Append(" at ");
                ret.Append(Intensity);
            }
            if (startIntensity > utils.UNDEFINED)
            {
                ret.Append(" at ");
                ret.Append(startIntensity);
            }
            return(ret.ToString());
        }
Ejemplo n.º 8
0
        public string LineOut()
        {
            StringBuilder ret = new StringBuilder();

            ret.Append(utils.StartTable(Sequence4.TABLEeffect, 3));

            ret.Append(utils.SetKey(utils.FIELDtype, SeqEnums.EffectTypeName(this.EffectType).ToLower()));
            ret.Append(utils.SetKey(utils.FIELDstartCentisecond, startCentisecond));
            ret.Append(utils.SetKey(utils.FIELDendCentisecond, myEndCentisecond));
            if (Intensity > utils.UNDEFINED)
            {
                ret.Append(utils.SetKey(FIELDintensity, Intensity));
            }
            if (startIntensity > utils.UNDEFINED)
            {
                ret.Append(utils.SetKey(FIELDstartIntensity, startIntensity));
                ret.Append(utils.SetKey(FIELDendIntensity, endIntensity));
            }
            ret.Append(utils.ENDFLD);
            return(ret.ToString());
        }
Ejemplo n.º 9
0
        public string LineOut()
        {
            string ret = "";

            if (deviceType == DeviceType.LOR)
            {
                ret += FIELDdeviceType + utils.FIELDEQ + SeqEnums.DeviceName(deviceType) + utils.ENDQT;
                ret += FIELDunit + utils.FIELDEQ + unit.ToString() + utils.ENDQT;
                ret += FIELDcircuit + utils.FIELDEQ + circuit.ToString() + utils.ENDQT;
                if (network != utils.UNDEFINED)
                {
                    ret += FIELDnetwork + utils.FIELDEQ + network.ToString() + utils.ENDQT;
                }
            }
            else if (deviceType == DeviceType.DMX)
            {
                ret += FIELDdeviceType + utils.FIELDEQ + SeqEnums.DeviceName(deviceType) + utils.ENDQT;
                ret += FIELDcircuit + utils.FIELDEQ + circuit.ToString() + utils.ENDQT;
                ret += FIELDnetwork + utils.FIELDEQ + network.ToString() + utils.ENDQT;
            }
            return(ret);
        }