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.30 $       $Date: 2011/02/23 05:38:55 $
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(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 

Generated on Tue May 22 01:48:10 2012 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002