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