-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodel.h
More file actions
66 lines (52 loc) · 1.52 KB
/
Copy pathmodel.h
File metadata and controls
66 lines (52 loc) · 1.52 KB
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
56
57
58
59
60
61
62
63
64
65
66
#include "view.h"
#ifndef TWODMODEL_H
#define TWODMODEL_H
/*! \class TwoDModel
A class representing a 2D model containing the three views
*/
class TwoDModel{
TwoDView frontView; /*< frontView is an object of TwoDView class */
TwoDView topView; /*< topView is an object of TwoDView class */
TwoDView sideView; /*< sideView is an object of TwoDView class */
public:
//! Accessor function to get the front view
TwoDView getFrontView();
//! Accessor function to get the top view
TwoDView getTopView();
//! Accessor function to get the side view
TwoDView getSideView();
void setFrontView(TwoDView v);
void setTopView(TwoDView v);
void setSideView(TwoDView v);
};
#endif
#ifndef THREEDMODEL_H
#define THREEDMODEL_H
/*! \class ThreeDModel
A class representing a 3D model containing the vertices, edges and surfaces
*/
class ThreeDModel{
Point* points; /*< points represent the vertices */
int pointSize = 0;
Line* lines; /*< lines represent the edges */
int lineSize = 0;
Plane* planes; /*< planes represent the surfaces */
int planeSize = 0;
public:
//! Accessor function to get the vertices
Point* getPoints();
//! Accessor function to get the lines
Line* getLines();
//! Accessor function to get the surfaces
Plane* getPlanes();
void setPoints(Point* p);
void setLines(Line* l);
void setPlanes(Plane* p);
int getPointSize();
int getLineSize();
int getPlaneSize();
void setPointSize(int s);
void setLineSize(int s);
void setPlaneSize(int s);
};
#endif