Exemplo n.º 1
0
        /// <summary>
        /// A Simple, two-point TieTemplate.
        /// Parameters p2 and p3 are the bezier control points
        /// The x and y coordinates are integers
        /// </summary>
        /// <param name="p1"></param>
        /// <param name="c1"></param>
        /// <param name="c2"></param>
        /// <param name="p2"></param>
        internal ShortTieTemplate(Point p1, Point c1, Point c2, Point p2, double gap, bool isOver)
        {
            _p1 = p1;
            _c1 = c1;
            _c2 = c2;
            _p2 = p2;

            _gap = gap;

            Metrics = new SlurTieMetrics(CSSObjectClass.tieTemplate, gap, p1.X, p1.Y, p2.X, isOver);
        }
Exemplo n.º 2
0
        /// <summary>
        /// A Simple, two-point SlurTemplate.
        /// Parameters p2 and p3 are the bezier control points
        /// The x and y coordinates are integers
        /// </summary>
        /// <param name="p1"></param>
        /// <param name="p2"></param>
        /// <param name="p3"></param>
        /// <param name="p4"></param>
        public SlurTemplate(Point p1, Point p2, Point p3, Point p4, double gap, bool isOver)
        {
            _p1 = p1;
            _p2 = p2;
            _p3 = p3;
            _p4 = p4;

            _gap = gap;

            type = "short";

            Metrics = new SlurTieMetrics(CSSObjectClass.slurTemplate, gap, p1.X, p1.Y, p4.X, isOver);
        }
Exemplo n.º 3
0
        /// <summary>
        /// A "long" three-point TieTemplate.
        /// Parameters p1, tp and p2 are points on the line,
        /// Parameters c1, tc and c2 are their respective bezier control points.
        /// The parameters are conceptually in clockwise order.
        /// The x and y coordinates are integers
        /// </summary>
        /// <param name="p1"></param>
        /// <param name="c1"></param>
        /// <param name="tc"></param>
        /// <param name="tp"></param>
        /// <param name="c2"></param>
        /// <param name="p2"></param>
        /// <param name="gap"></param>
        /// <param name="isOver"></param>
        public LongTieTemplate(Point p1, Point c1, Point tc, Point tp, Point c2, Point p2, double gap, bool isOver)
        {
            _p1 = p1;
            _c1 = c1;
            _tc = tc;
            _tp = tp;
            _c2 = c2;
            _p2 = p2;

            _gap = gap;

            Metrics = new SlurTieMetrics(CSSObjectClass.tieTemplate, gap, p1.X, p1.Y, p2.X, isOver);
        }
Exemplo n.º 4
0
        /// <summary>
        /// A "long" three-point SlurTemplate.
        /// Parameters p1, p2 and p3 are points on the line,
        /// Parameters c1, c2 and c3 are their respective bezier control points.
        /// The parameters are conceptually in clockwise order.
        /// The x and y coordinates are integers
        /// </summary>
        /// <param name="p1"></param>
        /// <param name="c1"></param>
        /// <param name="c2"></param>
        /// <param name="p2"></param>
        /// <param name="c3"></param>
        /// <param name="p3"></param>
        public SlurTemplate(Point p1, Point c1, Point c2, Point p2, Point c3, Point p3, double gap, bool isOver)
        {
            _p1 = p1;
            _p2 = p2;
            _p3 = p3;
            _c1 = c1;
            _c2 = c2;
            _c3 = c3;

            _gap = gap;

            type = "long";

            Metrics = new SlurTieMetrics(CSSObjectClass.slurTemplate, gap, p1.X, p1.Y, p3.X, isOver);
        }