My Project
rayCylinder.h
1 #ifndef CYLINDER_INCLUDED
2 #define CYLINDER_INCLUDED
3 #include <Util/geometry.h>
4 #include "rayShape.h"
5 
9 class RayCylinder : public RayShape {
10 public:
14  double height;
16  double radius;
19 
20  RayCylinder(void);
21 
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 // CYLINDER_INCLUDED
double radius
Definition: rayCylinder.h:16
Definition: geometry.h:421
class RayMaterial * material
Definition: rayCylinder.h:18
Point3D center
Definition: rayCylinder.h:12
void setUpOpenGL(int cplx)
Definition: rayCylinder.cpp:35
Definition: rayCylinder.h:9
int read(FILE *fp, int *materialIndex)
Definition: rayCylinder.cpp:13
Definition: rayScene.h:16
Definition: geometry.h:81
double height
Definition: rayCylinder.h:14
void write(int indent, FILE *fp=stdout)
Definition: rayCylinder.cpp:23
Definition: rayScene.h:48
double intersect(Ray3D ray, struct RayIntersectionInfo &iInfo, double mx=-1)
Definition: rayCylinder.todo.cpp:11
int drawOpenGL(int materialIndex)
Definition: rayCylinder.todo.cpp:22
Definition: geometry.h:182
BoundingBox3D setBoundingBox(void)
Definition: rayCylinder.todo.cpp:15
Definition: rayShape.h:9