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

R3dDisplayDevice.h

Go to the documentation of this file.
00001 /***************************************************************************
00002  *cr                                                                       
00003  *cr            (C) Copyright 1995-2019 The Board of Trustees of the           
00004  *cr                        University of Illinois                       
00005  *cr                         All Rights Reserved                        
00006  *cr                                                                   
00007  ***************************************************************************/
00008 /***************************************************************************
00009  * RCS INFORMATION:
00010  *
00011  *      $RCSfile: R3dDisplayDevice.h,v $
00012  *      $Author: johns $        $Locker:  $             $State: Exp $
00013  *      $Revision: 1.38 $       $Date: 2020/02/26 07:21:45 $
00014  *
00015  ***************************************************************************/
00021 #ifndef R3DDISPLAYDEVICE
00022 #define R3DDISPLAYDEVICE
00023 
00024 #include <stdio.h>
00025 #include "FileRenderer.h"
00026 
00028 class R3dDisplayDevice : public FileRenderer {
00029 private:
00032   int objLegal;
00033 
00037   float old_mat_shininess;
00038   float old_mat_opacity;
00039   float old_mat_specular;
00040   int mat_on;
00041 
00042   void reset_vars(void); 
00043   void write_materials(void);
00044   void close_materials(void);
00045 
00046 protected:
00047   // assorted graphics functions
00048   void comment(const char *);
00049   void cylinder(float *, float *, float, int);
00050   void line(float *, float *);
00051   void point(float *);
00052   void sphere(float *);
00053   void text(float *pos, float size, float thickness, const char *str);
00054   void triangle(const float *, const float *, const float *,
00055                 const float *, const float *, const float *);
00056   void tricolor(const float * xyz1, const float * xyz2, const float * xyz3,
00057                 const float * n1,   const float * n2,   const float * n3,
00058                 const float *c1,    const float *c2,    const float *c3);
00059   
00060 public: 
00061   R3dDisplayDevice(void);
00062   virtual ~R3dDisplayDevice(void);
00063   void write_header(void);
00064   void write_trailer(void);
00065 }; 
00066 
00067 #endif
00068 

Generated on Fri Oct 11 02:44:38 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002