-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbox.h
More file actions
36 lines (25 loc) · 650 Bytes
/
box.h
File metadata and controls
36 lines (25 loc) · 650 Bytes
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
#ifndef BOX_H
#define BOX_H
#include "shape.h"
class Box : public Shape
{
public:
Box(void); //constructor
virtual ~Box(void); //destructor
void print();
int GetType(){return 1;}
void GetWidth(int &width);
void GetHeight(int &height);
void GetDepth(int &depth);
void GetOrigin(int &orx, int &ory, int &orz);
void SetWidth(const int width);
void SetHeight(const int height);
void SetDepth(const int depth);
void SetOrigin(const int orx, const int ory, const int orz);
private:
int mBoxWidth;
int mBoxHeight;
int mBoxDepth;
int mBoxOrx, mBoxOry, mBoxOrz;
};
#endif // BOX_H