Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

RadianceDisplayDevice.h

Go to the documentation of this file.
00001 #ifndef RADIANCEDISPLAYDEVICE_H
00002 #define RADIANCEDISPLAYDEVICE_H
00003 /***************************************************************************
00004  *cr                                                                       
00005  *cr            (C) Copyright 1995-2011 The Board of Trustees of the           
00006  *cr                        University of Illinois                       
00007  *cr                         All Rights Reserved                        
00008  *cr                                                                   
00009  ***************************************************************************/
00010 
00011 /***************************************************************************
00012  * RCS INFORMATION:
00013  *
00014  *      $RCSfile: RadianceDisplayDevice.h,v $
00015  *      $Author: johns $        $Locker:  $             $State: Exp $
00016  *      $Revision: 1.31 $       $Date: 2013/03/07 19:39:29 $
00017  *
00018  ***************************************************************************
00019  * DESCRIPTION:
00020  *  Writes to the format for Radiance.  For more information about that
00021  * package, see http://radsite.lbl.gov/radiance/HOME.html .
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_trunc(float *, float *, float, float, int); 
00043   void cylinder(float *, float *, float,int);
00044   void line(float *, float *);
00045   void point(float *);
00046   void sphere(float *);
00047   void square(float *, float *, float *, float *, float *);
00048   void triangle(const float *, const float *, const float *,
00049                 const float *, const float *, const float *);
00050 
00051   void set_color(int); 
00052    
00053 public: 
00054   RadianceDisplayDevice();
00055   virtual ~RadianceDisplayDevice(void);
00056   void write_header(void);
00057   void write_trailer(void);
00058 }; 
00059 
00060 #endif
00061 

Generated on Wed Jun 19 01:47:24 2013 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002