00001 #ifndef RADIANCEDISPLAYDEVICE_H
00002 #define RADIANCEDISPLAYDEVICE_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #include <stdio.h>
00026 #include "FileRenderer.h"
00027
00029 class RadianceDisplayDevice : public FileRenderer {
00030 private:
00032 ResizeArray<float> red;
00033 ResizeArray<float> green;
00034 ResizeArray<float> blue;
00035 ResizeArray<float> trans;
00036 int cur_color;
00037 void reset_vars(void);
00038
00039 protected:
00041 void comment(const char *);
00042 void cone(float *, float *, float);
00043 void cone(float *, float *, float, float);
00044 void cylinder(float *, float *, float,int);
00045 void line(float *, float *);
00046 void point(float *);
00047 void sphere(float *);
00048 void square(float *, float *, float *, float *, float *);
00049 void triangle(const float *, const float *, const float *,
00050 const float *, const float *, const float *);
00051
00052 void set_color(int);
00053
00054 public:
00055 RadianceDisplayDevice();
00056 virtual ~RadianceDisplayDevice(void);
00057 void write_header(void);
00058 void write_trailer(void);
00059 };
00060
00061 #endif
00062