public static PathCommand Parse(string sequence, PathLocationInfo pathLocationInfo = null) { PathCommand pathCommand = new PathCommand(); pathCommand.ParseCore(sequence); return(pathCommand); }
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; } }
public static PathCommand Parse(string sequence, PathLocationInfo pathLocationInfo = null) { PathCommand pathCommand = new PathCommand(); pathCommand.ParseCore(sequence); return pathCommand; }
protected virtual void ParsePathCommand(string commandData) { PathCommand command = PathCommand.Parse(commandData); pathCommandsCore.Add(command); }