00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00021 #ifndef RAYSHADEDISPLAYDEVICE
00022 #define RAYSHADEDISPLAYDEVICE
00023
00024 #include <stdio.h>
00025 #include "FileRenderer.h"
00026
00028 class RayShadeDisplayDevice : public FileRenderer {
00029 private:
00030 void write_cindexmaterial(int, int);
00031 void write_colormaterial(float *, int);
00032 float scale_fix(float);
00033
00034 protected:
00036 void comment(const char *);
00037 void cone(float *, float *, float, int);
00038 void cylinder(float *, float *, float,int filled);
00039 void line(float *, float *);
00040 void point(float *);
00041 void sphere(float *);
00042 void triangle(const float *, const float *, const float *,
00043 const float *, const float *, const float *);
00044
00045 public:
00046 RayShadeDisplayDevice();
00047 virtual ~RayShadeDisplayDevice(void);
00048 void write_header(void);
00049 void write_trailer(void);
00050 };
00051
00052 #endif
00053