Example #1
0
		public override void Draw(IOutputCommand output, DrawState state, object param)
		{
			int radius = 10;
			base.Draw(output, state, param);
			Point3D ptFrom = CalculatedEndPosition;
			output.DrawEllipse(this, param, Convert(MoveType.Normal, state), ptFrom, radius, radius);
        }
Example #2
0
        public virtual void Draw(IOutputCommand output, DrawState state, object param)
		{
			output.DrawLine(this, param, Convert(Movetype, state), CalculatedStartPosition, CalculatedEndPosition);
		}
Example #3
0
        public DrawType Convert(MoveType movetype, DrawState state)
        {
            if (movetype == MoveType.NoMove) return DrawType.NoDraw;

            if (state.UseLaser)
            {
                if (state.LaserOn == false) return DrawType.NoDraw;

                switch (movetype)
                {
                    case MoveType.Fast:   return DrawType.LaserFast;
                    case MoveType.Normal: return DrawType.LaserCut;
                }
            }

            switch (movetype)
            {
                case MoveType.Fast: return DrawType.Fast;
                case MoveType.Normal: return DrawType.Cut;
            }

            return DrawType.NoDraw;
        }