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