using System;
using System.Collections.Generic;
using System.Windows.Media;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WpfApp1.Structure
{
    internal class StrokeInfo
    {
        public int id;
        public int color;
        public int thickness;
        public double[][] points;
        public int time;
        public double bounding_x1;
        public double bounding_y1;
        public double bounding_x2;
        public double bounding_y2;

        public StrokeInfo(int id, int color, int thickness, double[][] points, int time, double bounding_x1, double bounding_y1, double bounding_x2, double bounding_y2)
        {
            this.id = id;
            this.color = color;
            this.thickness = thickness;
            this.points = points;
            this.time = time;
            this.bounding_x1 = bounding_x1;
            this.bounding_y1 = bounding_y1;
            this.bounding_x2 = bounding_x2;
            this.bounding_y2 = bounding_y2;
        }
        public StrokeInfo(int id)
        {
            this.id = id;
            this.points = new double[0][];
            //this.color = 0;
            //this.thickness = 0;
            //this.time = 0;
            //this.bounding_x1 = 0;
            //this.bounding_y1 = 0;
            //this.bounding_x2 = 0;
            //this.bounding_y2 = 0;
        }
    }


    class Obj
    {
        public string name;
        public string category;
        public StrokeInfo[] strokes;
        public int integrity;
        public int quality;
        public int similarity;
        public int direction;
        public int boundingbox;
        public int[] color;
        public int id;

        public Obj()
        {
            this.name = "开始";
            this.category = "开始";
            this.strokes = new StrokeInfo[0];
            this.color = new int[4];
        }
    }

    class Msg
    {
        public Obj[] objects;

        public Msg()
        {
            this.objects = new Obj[1];
        }
    }
}
