My Project
rayBox.h
1 #ifndef BOX_INCLUDED
2 #define BOX_INCLUDED
3 #include <Util/geometry.h>
4 #include "rayShape.h"
5 
7 class RayBox : public RayShape {
8 public:
13 
16 
17 
18  RayBox(void);
19 
23  int read(FILE* fp,int* materialIndex);
24 
25  void write(int indent,FILE* fp=stdout);
26 
28  // Ray-Tracing stuff //
30  double intersect(Ray3D ray,struct RayIntersectionInfo& iInfo,double mx=-1);
31 
33 
35  // OpenGL stuff //
37  void setUpOpenGL(int cplx);
38 
39  int drawOpenGL(int materialIndex);
40 };
41 
42 #endif // BOX_INCLUDED
43 
Definition: geometry.h:421
int drawOpenGL(int materialIndex)
Definition: rayBox.todo.cpp:20
void write(int indent, FILE *fp=stdout)
Definition: rayBox.cpp:21
Point3D center
Definition: rayBox.h:10
class RayMaterial * material
Definition: rayBox.h:15
BoundingBox3D setBoundingBox(void)
Definition: rayBox.todo.cpp:13
Definition: rayScene.h:16
Definition: geometry.h:81
void setUpOpenGL(int cplx)
Definition: rayBox.cpp:32
Definition: rayBox.h:7
int read(FILE *fp, int *materialIndex)
Definition: rayBox.cpp:12
Definition: rayScene.h:48
Definition: geometry.h:182
Definition: rayShape.h:9
Point3D length
Definition: rayBox.h:12
double intersect(Ray3D ray, struct RayIntersectionInfo &iInfo, double mx=-1)
Definition: rayBox.todo.cpp:10