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

GelatoDisplayDevice Class Reference

FileRenderer subclass to exports VMD scenes to Gelato PYG scene format. More...

#include <GelatoDisplayDevice.h>

Inheritance diagram for GelatoDisplayDevice:

FileRenderer DisplayDevice List of all members.

Public Methods

 GelatoDisplayDevice (void)
 constructor ... initialize some variables. More...

virtual ~GelatoDisplayDevice (void)
 destructor. More...

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 *)
void cylinder (float *, float *, float rad, int filled)
 draw a NURBS cylinder. More...

void line (float *xyz1, float *xyz2)
 draw a line (cylinder) from a to b. More...

void point (float *xyz)
 draw a point. More...

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

void square (float *, float *, float *, float *, float *)
void triangle (const float *, const float *, const float *, const float *, const float *, const float *)
void tricolor (const float *xyz1, const float *xyz2, const float *xyz3, const float *n1, const float *n2, const float *n3, const float *c1, const float *c2, const float *c3)
virtual void trimesh (int numverts, float *cnv, int numfacets, int *facets)
virtual void tristrip (int numverts, const float *cnv, int numstrips, const int *vertsperstrip, const int *facets)

Detailed Description

FileRenderer subclass to exports VMD scenes to Gelato PYG scene format.

Definition at line 30 of file GelatoDisplayDevice.h.


Constructor & Destructor Documentation

GelatoDisplayDevice::GelatoDisplayDevice void   
 

constructor ... initialize some variables.

Definition at line 133 of file GelatoDisplayDevice.C.

GelatoDisplayDevice::~GelatoDisplayDevice void    [virtual]
 

destructor.

Definition at line 139 of file GelatoDisplayDevice.C.


Member Function Documentation

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

Reimplemented from FileRenderer.

Definition at line 485 of file GelatoDisplayDevice.C.

References FileRenderer::outfile.

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

draw a NURBS cylinder.

Reimplemented from FileRenderer.

Definition at line 199 of file GelatoDisplayDevice.C.

References FileRenderer::cylinder, DEFAULT_RADIUS, fullcirclearc, FileRenderer::outfile, FileRenderer::scale_radius, Stack< Matrix4 >::top, FileRenderer::transMat, and VMD_PI.

Referenced by line.

void GelatoDisplayDevice::line float *    xyz1,
float *    xyz2
[protected, virtual]
 

draw a line (cylinder) from a to b.

Reimplemented from FileRenderer.

Definition at line 193 of file GelatoDisplayDevice.C.

References cylinder, DEFAULT_RADIUS, and FileRenderer::lineWidth.

void GelatoDisplayDevice::point float *    xyz [protected, virtual]
 

draw a point.

Reimplemented from FileRenderer.

Definition at line 155 of file GelatoDisplayDevice.C.

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

void GelatoDisplayDevice::sphere float *    xyzr [protected, virtual]
 

draw a sphere.

Reimplemented from FileRenderer.

Definition at line 172 of file GelatoDisplayDevice.C.

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

void GelatoDisplayDevice::square float *   ,
float *   ,
float *   ,
float *   ,
float *   
[protected, virtual]
 

Reimplemented from FileRenderer.

Definition at line 455 of file GelatoDisplayDevice.C.

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

void GelatoDisplayDevice::triangle const float *   ,
const float *   ,
const float *   ,
const float *   ,
const float *   ,
const float *   
[protected, virtual]
 

Reimplemented from FileRenderer.

Definition at line 294 of file GelatoDisplayDevice.C.

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

void GelatoDisplayDevice::tricolor const float *    xyz1,
const float *    xyz2,
const float *    xyz3,
const float *    n1,
const float *    n2,
const float *    n3,
const float *    c1,
const float *    c2,
const float *    c3
[protected, virtual]
 

Reimplemented from FileRenderer.

Definition at line 321 of file GelatoDisplayDevice.C.

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

void GelatoDisplayDevice::trimesh int    numverts,
float *    cnv,
int    numfacets,
int   facets
[protected, virtual]
 

Reimplemented from FileRenderer.

Definition at line 352 of file GelatoDisplayDevice.C.

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

void GelatoDisplayDevice::tristrip int    numverts,
const float *    cnv,
int    numstrips,
const int   vertsperstrip,
const int   facets
[protected, virtual]
 

Reimplemented from FileRenderer.

Definition at line 394 of file GelatoDisplayDevice.C.

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

void GelatoDisplayDevice::write_header void    [virtual]
 

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

Reimplemented from FileRenderer.

Definition at line 491 of file GelatoDisplayDevice.C.

References DisplayDevice::Aspect, FileRenderer::backColor, DISP_LIGHTS, DisplayDevice::eyePos, DisplayDevice::farClip, FileRenderer::lightState, FileRenderer::my_filename, DisplayDevice::nearClip, FileRenderer::outfile, DisplayDevice::PERSPECTIVE, DisplayDevice::projection, VMD_1_PI, DisplayDevice::vSize, DisplayDevice::xSize, DisplayDevice::ySize, and DisplayDevice::zDist.

void GelatoDisplayDevice::write_trailer void    [virtual]
 

write any trailer info. This is called by update.

Reimplemented from FileRenderer.

Definition at line 568 of file GelatoDisplayDevice.C.

References FileRenderer::outfile.


The documentation for this class was generated from the following files:
Generated on Sat Aug 30 01:27:39 2008 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002