-
Notifications
You must be signed in to change notification settings - Fork 0
/
Shape.h
55 lines (41 loc) · 1.19 KB
/
Shape.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
//-----------------------------------------------------------
// File : Shape.h
// Class: COP 3003, Fall 2022
// Devl : Katarya Johnson-Williams
// Desc : Declaration of a Shape class object
//---------------------------------------------------------
// HEADER GUARD
#ifndef PROJECT_SHAPES_CALCULATOR_SHAPE_H
#define PROJECT_SHAPES_CALCULATOR_SHAPE_H
#include <iostream>
#include <vector>
#include "Point.h"
enum ShapeMode {
DEFAULT, // 0 by default
LINE, // 1
RECTANGLE, // 2
CIRCLE, // 3
TRIANGLE, // 4
PRINT,
EXIT
};
class Shape {
protected:
std::vector<Point> coordinates;
int shapeType;
int numOfPoints;
public:
// Constructors
//---------------------------------------------------------
Shape(); // default constructor
// Accessors
//---------------------------------------------------------
int getShapeType();
void setShapeType(int value);
int getNumOfPoints();
void setNumOfPoints(int value);
// Methods
//---------------------------------------------------------
virtual std::string shapeProperties() = 0;
};
#endif //PROJECT_SHAPES_CALCULATOR_SHAPE_H