-
Notifications
You must be signed in to change notification settings - Fork 0
/
object.h
43 lines (32 loc) · 970 Bytes
/
object.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
#ifndef object_h
#define object_h
/*****************************************************************************
Base class for all object in the raycaster/raytracer
NAME:object.h
DATE:10/11/1996
AUTHOR: Z.A. Nolan
*****************************************************************************/
// include the colour class
#include "surface.h"
class TObject
{
private:
TSurfaceProperties _SurfaceProperties ;
public:
// constuctor
TObject () ;
TObject (const TSurfaceProperties SurfaceProperties) ;
virtual ~TObject() {}
// return the colour
TColour Colour() const;
double Diffuse() const ;
double Specular() const ;
double Shine() const ;
int Roughness() const ;
TSurfaceProperties SurfaceProperties() const ;
Copy (const TSurfaceProperties &Surface) ;
// intersection
virtual double Intersection(TVector &Point,TVector &Normal,
const TLine &Line) const =0 ;
} ;
#endif