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

RayShadeDisplayDevice Class Reference

FileRenderer subclass to exports VMD scenes to Rayshade scene format. More...

#include <RayShadeDisplayDevice.h>

Inheritance diagram for RayShadeDisplayDevice:

FileRenderer DisplayDevice List of all members.

Public Methods

 RayShadeDisplayDevice ()
virtual ~RayShadeDisplayDevice (void)
void write_header (void)
 write the header info. This is an alias for prepare3D. More...

void write_trailer (void)
 write any trailer info. This is called by update. More...


Protected Methods

void comment (const char *)
 assorted graphics functions. More...

void cone (float *, float *, float, int)
 draw a single-radius cone (pointy top). More...

void cylinder (float *, float *, float, int filled)
 draw a cylinder, with optional caps. More...

void line (float *, float *)
 draw a single line. More...

void point (float *)
 draw an unlit point. More...

void sphere (float *)
 draw a sphere. More...

void triangle (const float *, const float *, const float *, const float *, const float *, const float *)
 single color triangle with interpolated surface normals. More...


Detailed Description

FileRenderer subclass to exports VMD scenes to Rayshade scene format.

Definition at line 28 of file RayShadeDisplayDevice.h.


Constructor & Destructor Documentation

RayShadeDisplayDevice::RayShadeDisplayDevice  
 

Definition at line 37 of file RayShadeDisplayDevice.C.

RayShadeDisplayDevice::~RayShadeDisplayDevice void    [virtual]
 

Definition at line 41 of file RayShadeDisplayDevice.C.


Member Function Documentation

void RayShadeDisplayDevice::comment const char *    [protected, virtual]
 

assorted graphics functions.

Reimplemented from FileRenderer.

Definition at line 258 of file RayShadeDisplayDevice.C.

References FileRenderer::outfile.

void RayShadeDisplayDevice::cone float *    a,
float *    b,
float    r,
int   
[protected, virtual]
 

draw a single-radius cone (pointy top).

Reimplemented from FileRenderer.

Definition at line 164 of file RayShadeDisplayDevice.C.

References FileRenderer::colorIndex, DEFAULT_RADIUS, FileRenderer::lineWidth, FileRenderer::materialIndex, FileRenderer::outfile, FileRenderer::scale_radius, Stack< Matrix4 >::top, and FileRenderer::transMat.

void RayShadeDisplayDevice::cylinder float *   ,
float *   ,
float   ,
int    filled
[protected, virtual]
 

draw a cylinder, with optional caps.

Reimplemented from FileRenderer.

Definition at line 135 of file RayShadeDisplayDevice.C.

References FileRenderer::colorIndex, FileRenderer::materialIndex, FileRenderer::outfile, FileRenderer::scale_radius, Stack< Matrix4 >::top, and FileRenderer::transMat.

void RayShadeDisplayDevice::line float *   ,
float *   
[protected, virtual]
 

draw a single line.

Reimplemented from FileRenderer.

Definition at line 83 of file RayShadeDisplayDevice.C.

References FileRenderer::colorIndex, DASH_LENGTH, DEFAULT_RADIUS, FileRenderer::lineStyle, FileRenderer::lineWidth, FileRenderer::materialIndex, FileRenderer::outfile, Stack< Matrix4 >::top, FileRenderer::transMat, vec_copy, vec_normalize, and vec_sub.

void RayShadeDisplayDevice::point float *    spdata [protected, virtual]
 

draw an unlit point.

Reimplemented from FileRenderer.

Definition at line 51 of file RayShadeDisplayDevice.C.

References FileRenderer::colorIndex, DEFAULT_RADIUS, FileRenderer::lineWidth, FileRenderer::materialIndex, FileRenderer::outfile, Stack< Matrix4 >::top, and FileRenderer::transMat.

void RayShadeDisplayDevice::sphere float *    [protected, virtual]
 

draw a sphere.

Reimplemented from FileRenderer.

Definition at line 66 of file RayShadeDisplayDevice.C.

References FileRenderer::colorIndex, FileRenderer::materialIndex, FileRenderer::outfile, FileRenderer::scale_radius, Stack< Matrix4 >::top, and FileRenderer::transMat.

void RayShadeDisplayDevice::triangle const float *    a,
const float *    b,
const float *    c,
const float *    n1,
const float *    n2,
const float *    n3
[protected, virtual]
 

single color triangle with interpolated surface normals.

Reimplemented from FileRenderer.

Definition at line 182 of file RayShadeDisplayDevice.C.

References FileRenderer::colorIndex, FileRenderer::materialIndex, FileRenderer::outfile, Stack< Matrix4 >::top, and FileRenderer::transMat.

void RayShadeDisplayDevice::write_header void    [virtual]
 

write the header info. This is an alias for prepare3D.

Reimplemented from FileRenderer.

Definition at line 212 of file RayShadeDisplayDevice.C.

References FileRenderer::backColor, DISP_LIGHTS, DisplayDevice::eyeDir, DisplayDevice::eyePos, DisplayDevice::eyesep, FileRenderer::lightState, FileRenderer::my_filename, NULL, FileRenderer::outfile, DisplayDevice::stereo_mode, DisplayDevice::xSize, and DisplayDevice::ySize.

void RayShadeDisplayDevice::write_trailer void    [virtual]
 

write any trailer info. This is called by update.

Reimplemented from FileRenderer.

Definition at line 264 of file RayShadeDisplayDevice.C.

References FileRenderer::outfile.


The documentation for this class was generated from the following files:
Generated on Fri Nov 8 02:47:20 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002