Thursday 7 January 2016

Line Drawing using DDA and Bresenham

Q:- Write a program to draw line using DDA or Bresenham algorithm. Accept values for the 2 endpoints as well as the input for colour. Inherit a class and overload the functions for DDA and Bresenham.



Software & Hardware used

  1. Os:- 64 bit linux (Ubuntu 14.04 LTS)
  2. QT version 5.5
Note:- Overloading of these functions of DDA and Bresenham makes no sense. And is an abuse of overloading facility provided by C++ (Object Oriented Programming). However as it is mentioned in the problem statement overloading of the two functions is done.This is a bad programming practice. Use overloading only when it makes sense.


Screenshot



Download link
 mediafire.com

List of files contained are:-
  1. header files for all clases
  2. source files for all clases
  3. Gui file
  4. Executable file
  5. Screenshot in jpeg format

No comments:

Post a Comment