コード例 #1
0
        protected override bool setParameterInternal(string name, object value)
        {
            if (name.ToLowerInvariant() == "playmode")
            {
                this.Playmode = (string)value;
                return(true);
            }
            if (FannedValueManager.getInstance().canConvertToValueInstance(value))
            {
                IFannedValue valueInstance = FannedValueManager.getInstance().convertToValueInstance(value);
                switch (name)
                {
                case "Amplitude X":
                    this.AmplitudeX = (object)valueInstance;
                    return(true);

                case "Amplitude Y":
                    this.AmplitudeY = (object)valueInstance;
                    return(true);

                case "Frequency":
                    this.Frequency = (object)valueInstance;
                    return(true);

                case "Phase":
                    this.Phase = (object)valueInstance;
                    return(true);

                case "Indexing":
                    this.Index = (object)valueInstance;
                    return(true);

                case "Rotationfrequency":
                    this.Rotationfrequency = (object)valueInstance;
                    return(true);

                case "a":
                    this.Parameter_a = (object)valueInstance;
                    return(true);

                case "b":
                    this.Parameter_b = (object)valueInstance;
                    return(true);

                case "Startangle":
                    this.Startangle = (object)valueInstance;
                    return(true);

                case "Stopangle":
                    this.Stopangle = (object)valueInstance;
                    return(true);
                }
            }
            return(base.setParameterInternal(name, value));
        }
コード例 #2
0
        protected override object getParameterInternal(string name)
        {
            object obj = (object)null;

            switch (name)
            {
            case "Amplitude X":
                obj = this.AmplitudeX;
                break;

            case "Amplitude Y":
                obj = this.AmplitudeY;
                break;

            case "Frequency":
                obj = this.Frequency;
                break;

            case "Phase":
                obj = this.Phase;
                break;

            case "Indexing":
                obj = this.Index;
                break;

            case "Rotationfrequency":
                obj = this.Rotationfrequency;
                break;

            case "a":
                obj = this.Parameter_a;
                break;

            case "b":
                obj = this.Parameter_b;
                break;

            case "Startangle":
                obj = this.Startangle;
                break;

            case "Stopangle":
                obj = this.Stopangle;
                break;

            case "Playmode":
                return((object)this.Playmode);
            }
            return((object)FannedValueManager.getInstance().convertToContainerInstance(obj, EUiValueType.Unknown));
        }
コード例 #3
0
 protected override bool setParameterInternal(string name, object value)
 {
     if (FannedValueManager.getInstance().canConvertToValueInstance(value))
     {
         IFannedValue valueInstance = FannedValueManager.getInstance().convertToValueInstance(value);
         if (!(name.ToLowerInvariant() == "peak"))
         {
         }
         else
         {
             this.PeakValue = (object)valueInstance;
             return(true);
         }
     }
     return(base.setParameterInternal(name, value));
 }
コード例 #4
0
        protected override bool setParameterInternal(string name, object value)
        {
            if (name.ToLowerInvariant() == "movingtype")
            {
                this.Movingtype = (string)value;
                return(true);
            }
            if (FannedValueManager.getInstance().canConvertToValueInstance(value))
            {
                IFannedValue valueInstance = FannedValueManager.getInstance().convertToValueInstance(value);
                switch (name)
                {
                case "Amplitude X":
                    this.AmplitudeX = (object)valueInstance;
                    return(true);

                case "Amplitude Y":
                    this.AmplitudeY = (object)valueInstance;
                    return(true);

                case "P":
                    this.P = (object)valueInstance;
                    return(true);

                case "Frequency":
                    this.Frequency = (object)valueInstance;
                    return(true);

                case "Indexing":
                    this.Index = (object)valueInstance;
                    return(true);

                case "Phase":
                    this.Phase = (object)valueInstance;
                    return(true);

                case "RotationFrequency":
                    this.RotationFrequency = (object)valueInstance;
                    return(true);

                case "Q":
                    this.Q = (object)valueInstance;
                    return(true);
                }
            }
            return(base.setParameterInternal(name, value));
        }
コード例 #5
0
        protected override object getParameterInternal(string name)
        {
            object obj            = (object)null;
            string lowerInvariant = name.ToLowerInvariant();

            if (!(lowerInvariant == "peak"))
            {
            }
            else
            {
                if (!FannedValueManager.getInstance().canConvertToContainerInstance(this.PeakValue))
                {
                    return(this.PeakValue);
                }
                obj = this.PeakValue;
            }
            return((object)FannedValueManager.getInstance().convertToContainerInstance(obj, EUiValueType.Unknown));
        }
コード例 #6
0
        protected override object getParameterInternal(string name)
        {
            object obj = (object)null;

            switch (name)
            {
            case "Amplitude X":
                obj = this.AmplitudeX;
                break;

            case "Amplitude Y":
                obj = this.AmplitudeY;
                break;

            case "P":
                obj = this.P;
                break;

            case "Frequency":
                obj = this.Frequency;
                break;

            case "Indexing":
                obj = this.Index;
                break;

            case "Phase":
                obj = this.Phase;
                break;

            case "RotationFrequency":
                obj = this.RotationFrequency;
                break;

            case "Q":
                obj = this.Q;
                break;

            case "Movingtype":
                return((object)this.Movingtype);
            }
            return((object)FannedValueManager.getInstance().convertToContainerInstance(obj, EUiValueType.Unknown));
        }
コード例 #7
0
        protected override bool setParameterInternal(string name, object value)
        {
            if (FannedValueManager.getInstance().canConvertToValueInstance(value))
            {
                IFannedValue valueInstance = FannedValueManager.getInstance().convertToValueInstance(value);
                switch (name)
                {
                case "Amplitude X":
                    this.AmplitudeX = (object)valueInstance;
                    return(true);

                case "Amplitude Y":
                    this.AmplitudeY = (object)valueInstance;
                    return(true);

                case "Jags":
                    this.Corners = (object)valueInstance;
                    return(true);

                case "Frequency":
                    this.Frequency = (object)valueInstance;
                    return(true);

                case "Indexing":
                    this.Index = (object)valueInstance;
                    return(true);

                case "Phase":
                    this.Phase = (object)valueInstance;
                    return(true);

                case "RotationFrequency":
                    this.RotationFrequency = (object)valueInstance;
                    return(true);

                case "Scale":
                    this.Scale = (object)valueInstance;
                    return(true);
                }
            }
            return(base.setParameterInternal(name, value));
        }