Esempio n. 1
0
        public static PathCommand Parse(string sequence, PathLocationInfo pathLocationInfo = null)
        {
            PathCommand pathCommand = new PathCommand();

            pathCommand.ParseCore(sequence);
            return(pathCommand);
        }
Esempio n. 2
0
        protected virtual void RenderPathCommand(RenderedPathInfo renderedPathInfo, PathCommand command)
        {
            switch (command.Type)
            {
            case PathCommandType.MoveTo: renderedPathInfo.MoveTo(command.Args as MoveToCommandArgs); break;

            case PathCommandType.LineTo: renderedPathInfo.LineTo(command.Args as MoveToCommandArgs); break;

            case PathCommandType.CurveTo:
            case PathCommandType.QuadraticCurveTo:
            case PathCommandType.SmoothCurveTo:
            case PathCommandType.SmoothQuadraticCurveTo: renderedPathInfo.CurveTo(command.Args as MoveToCommandArgs); break;
            }
        }
 protected virtual void RenderPathCommand(RenderedPathInfo renderedPathInfo, PathCommand command) {
     switch(command.Type) {
         case PathCommandType.MoveTo: renderedPathInfo.MoveTo(command.Args as MoveToCommandArgs); break;
         case PathCommandType.LineTo: renderedPathInfo.LineTo(command.Args as MoveToCommandArgs); break;
         case PathCommandType.CurveTo:
         case PathCommandType.QuadraticCurveTo:
         case PathCommandType.SmoothCurveTo:
         case PathCommandType.SmoothQuadraticCurveTo: renderedPathInfo.CurveTo(command.Args as MoveToCommandArgs); break;
     }
 }
Esempio n. 4
0
 public static PathCommand Parse(string sequence, PathLocationInfo pathLocationInfo = null) {
     PathCommand pathCommand = new PathCommand();
     pathCommand.ParseCore(sequence);
     return pathCommand;
 }
Esempio n. 5
0
        protected virtual void ParsePathCommand(string commandData)
        {
            PathCommand command = PathCommand.Parse(commandData);

            pathCommandsCore.Add(command);
        }