Example #1
0
        /// <summary>
        /// overrides the <see cref="Surface.Copy"/> method and sets the belonging fields.
        /// </summary>
        /// <returns>the copied surface</returns>
        public override Surface Copy()
        {
            Curve2dRotator Result = base.Copy() as Curve2dRotator;

            Result.Curve     = Curve.Clone() as Curve;
            Result.FromAngle = FromAngle;
            Result.ToAngle   = ToAngle;

            return(Result);
        }
Example #2
0
        /// <summary>
        /// overrides <see cref="CustomEntity.OnDraw(OpenGlDevice)"/>
        /// </summary>
        /// <param name="Device"></param>
        protected override void OnDraw(OpenGlDevice Device)
        {
            if (Loca == null)
            {
                return;
            }
            Curve2dRotator CR = new Curve2dRotator();

            for (int i = 0; i < Loca.Count; i++)
            {
                for (int j = 0; j < Loca[i].Count; j++)
                {
                    CR.Curve     = Loca[i][j];
                    CR.FromAngle = FromAngle;
                    CR.ToAngle   = ToAngle;
                    CR.Paint(Device);
                }
            }
            base.OnDraw(Device);
        }