예제 #1
0
        protected override void Reset()
        {
            // resetto i valori non UserInputed
            if (!X.IsUserInputed)
            {
                X.SetValue(false, null);
            }

            if (!DeltaX.IsUserInputed)
            {
                DeltaX.SetValue(false, null);
            }

            if (!Y.IsUserInputed)
            {
                Y.SetValue(false, null);
            }

            if (!DeltaY.IsUserInputed)
            {
                DeltaY.SetValue(false, null);
            }

            if (!Angle.IsUserInputed)
            {
                Angle.SetValue(false, null);
            }
        }
예제 #2
0
        protected override void DumpBody(XmlWriter writer, SwfTagCode shapeType)
        {
            writer.WriteAttributeString("state", State.ToString());

            if ((State & SwfStyleState.HasMoveTo) != 0)
            {
                writer.WriteAttributeString("dx", DeltaX.ToString());
                writer.WriteAttributeString("dy", DeltaY.ToString());
            }

            if ((State & SwfStyleState.HasFillStyle0) != 0)
            {
                writer.WriteAttributeString("fs0", FillStyle0.ToString());
            }

            if ((State & SwfStyleState.HasFillStyle1) != 0)
            {
                writer.WriteAttributeString("fs1", FillStyle1.ToString());
            }

            if ((State & SwfStyleState.HasLineStyle) != 0)
            {
                writer.WriteAttributeString("ls", LineStyle.ToString());
            }

            if ((State & SwfStyleState.HasNewStyles) != 0)
            {
                Styles.Dump(writer, shapeType);
            }
        }
예제 #3
0
        //#region Temporary Field

        //private Point2D _tempTeoricaFinalPnt = null;
        //private Point2D _prevTeoricalPnt = null;

        //#endregion
        protected override void Reset()
        {
            // resetto i valori non UserInputed
            if (!X.IsUserInputed)
            {
                X.SetValue(false, null);
            }

            if (!DeltaX.IsUserInputed)
            {
                DeltaX.SetValue(false, null);
            }

            if (!Y.IsUserInputed)
            {
                Y.SetValue(false, null);
            }

            if (!DeltaY.IsUserInputed)
            {
                DeltaY.SetValue(false, null);
            }

            if (!CenterX.IsUserInputed)
            {
                CenterX.SetValue(false, null);
            }

            if (!CenterY.IsUserInputed)
            {
                CenterY.SetValue(false, null);
            }

            if (!Radius.IsUserInputed)
            {
                Radius.SetValue(false, null);
            }
        }