Skip to content

Project for UAF CS372 (Software Constuction). Library to convert C++ code to Postscript.

Notifications You must be signed in to change notification settings

Arsh25/Postscript_Interpreter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#PostScript Interpreter Design Document

CS 372 Software Construction

Project 2 – PostScript Interpreter

Jason Warta

Arsh Chauhan

Lonny Strunk

##Chat With Us Updated: April 19, 2016 Join the chat at https://gitter.im/Arsh25/Postscript_Interpreter

##Build Status
Build Status

##Goal Produce a C++ library that takes commands to draw certain shapes and outputs code in the PostScript programming language.

##Testing Framework We are using the Catch framework for our testing. This is an easy to use testing framework that only needs one header and one #include.

We are also utilizing Travis CI to automate the testing. When new code is pushed onto GitHub, Travis CI is called to build the testing code and report any errors.

##Documentation We are utilizing a documentation generation tool from source code called Doxygen. It generates an online documentation browser (HTML) which makes it easy to navigate the source code. It also makes it easy to see the inheritance and dependencies because of the automatic generation of graphs and diagrams.

##Class Hierarchy Figure 1: Shape Abstract Class Hierarchy

Figure 1: Shape Abstract Class Hierarchy

Shape|

#int x_
#int y_
#double boundsWidth_
#double boundsHeight_| +Shape()
+Shape(int x, int y, double width, double height)
+Shape(double width,double height)
+virtual ~Shape()
+Shape (const Shape & other)
+virtual string draw() const
+virtual string draw(int x,int y) const
+virtual void place(int x, int y)
+string bounds()
+double width()
+double height()
+int x()
+void x(int x)
+int y()
+void y(int y)
+string operator()(int x, int y)
+virtual int numOfSides()
+virtual double sideLength()
+virtual double radius()
+ostream & operator<<(ostream &os, const Shape & shape)|

Circle |

#double radius_ | +Circle()
+Circle(int x, int y, double radius)
+Circle(double radius)
+string draw(int x, int y) const|

Layered|

#initializer_list<Shape*> shapes_| +Layered()
+Layered(int x, int y, initializer_list<Shape*> shapes)
+Layered(initializer_list<Shape*> shapes)
+string draw(int x, int y) const|

Horizontal|

| +Horizontal()
+Horizontal(int x, int y, initializer_list<Shape*> shapes)
+Horizontal(initializer_list<Shape*> shapes)
+string draw(int x, int y) const|

Vertical|

| +Vertical()
+Vertical(int x, int y, initializer_list<Shape*> shapes)
+Vertical(initializer_list<Shape*> shapes)
+string draw(int x, int y) const|

Polygon|

#int numOfSides_
#double sideLength_
#double radius_| +Polygon()
+Polygon(int x, int y, int sides, double length)
+Polygon(int sides, double length)
+string draw(int x,int y) const
+int numOfSides()
+double sideLength()
+double radius()|

Square|

| +Square()
+Square(int x, int y, double side)
+Square(double side)|

Triangle|

| +Triangle()
+Triangle(int x, int y, double side)
+Triangle(double side)|

Rectangle|

#double width_
#double height_| +Rectangle()
+Rectangle(int x, int y, double w, double h)
+Rectangle(double w, double h)
+string draw(int x, int y) const|

Spacer|

| +Spacer()
+Spacer(int x, int y, double w, double h)
+Spacer(double w, double h)
+string draw(int x, int y) const|

Rotated|

-Shape * shape_
-int angle_| +Rotated()
+Rotated(Shape * shape, int angle)
+string draw() const
+string draw(int x, int y) const|

Scaled|

-Shape * shape_
-double sx_
-double sy_| +Scaled()
+Scaled(Shape* shape, double sx, double sy)
+string draw() const
+string draw(int x, int y) const|

Star |

-double numOfPoints_
-double outerRadius_
-double innerRadius_| +Star()
+Star(int x, int y, int n, double oRadius, double iRadius)
+Star(int n, double oRadius, double iRadius)
+string draw(int x, int y) const
+double outerRadius()
+double innerRadius()|

About

Project for UAF CS372 (Software Constuction). Library to convert C++ code to Postscript.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •