12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace HiTeachCC.Model.PowerPoint
- {
- public abstract class Path
- {
- double w { get; set; }
- double h { get; set; }
- public string Type { get; set; }
- }
- public class ClosePath :Path
- {
- public bool Close { get; set; } = false;
- }
- /// <summary>
- /// 起点 <a:moveTo>
- /// </summary>
- public class MoveToPath : Path
- {
- public MoveToPath()
- {
- Pts = new List<Point> { };
- }
- public List<Point> Pts { get; set; }
- }
- /// <summary>
- /// 弧形 <a:arcTo>
- /// </summary>
- public class ArcToPath : Path
- {
- public string WidthRadius { get; set; }
- public string HeightRadius { get; set; }
- public string StartAngle { get; set; }
- public string SwingAngle { get; set; }
- }
- /// <summary>
- /// 画线 <a:lnTo>
- /// </summary>
- public class LineToPath : Path
- {
- public LineToPath()
- {
- Pts = new List<Point> { };
- }
- public List<Point> Pts { get; set; }
- }
- /// <summary>
- /// 三次贝塞尔曲线<a:cubicBezTo>
- /// </summary>
- public class CubicBezPath : Path
- {
- public CubicBezPath()
- {
- Pts = new List<Point> { };
- }
- public List<Point> Pts { get; set; }
- }/// <summary>
- /// 二次贝塞尔曲线 <a:quadBezTo>
- /// </summary>
- public class QuadBezPath : Path
- {
- public QuadBezPath()
- {
- Pts = new List<Point> { };
- }
- public List<Point> Pts { get; set; }
- }
- public class Point
- {
- public double X { get; set; }
- public double Y { get; set; }
- }
- }
|