-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcone.h
More file actions
34 lines (25 loc) · 677 Bytes
/
cone.h
File metadata and controls
34 lines (25 loc) · 677 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
#ifndef CONE_H
#define CONE_H
#include"shape.h"
class Cone : public Shape
{
public:
Cone(void); //constructor
virtual ~Cone(void); //destructor
void print();
int GetType(){return 3;}
void GetRadiusX(int &rad_x);
void GetRadiusY(int &rad_y);
void GetHeight(int &height);
void GetOrigin(int &orx, int &ory, int &orz);
void SetRadiusX(const int rad_x);
void SetRadiusY(const int rad_y);
void SetHeight(const int height);
void SetOrigin(const int orx, const int ory, const int orz);
private:
int mConeRadX;
int mConeRadY;
int mConeHeight;
int mConeOrx, mConeOry, mConeOrz;
};
#endif // CONE_H