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

LibGelatoDisplayDevice Class Reference

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

#include <LibGelatoDisplayDevice.h>

Inheritance diagram for LibGelatoDisplayDevice:

List of all members.

Public Methods

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

virtual ~LibGelatoDisplayDevice (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 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 *)
draw a quadrilateral. More...

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

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)
triangle with interpolated surface normals and vertex colors. More...

virtual void trimesh_c4n3v3 (int numverts, float *cnv, int numfacets, int *facets)
triangle mesh built from a vertex array and facet vertex index arrays. More...

virtual void tristrip (int numverts, const float *cnv, int numstrips, const int *vertsperstrip, const int *facets)
triangle strips built from a vertex array and vertex index arrays. More...


Detailed Description

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

Definition at line 33 of file LibGelatoDisplayDevice.h.


Constructor & Destructor Documentation

LibGelatoDisplayDevice::LibGelatoDisplayDevice ( void )

constructor ... initialize some variables.

Definition at line 36 of file LibGelatoDisplayDevice.C.

References NULL.

LibGelatoDisplayDevice::~LibGelatoDisplayDevice ( void ) [virtual]

destructor.

Definition at line 48 of file LibGelatoDisplayDevice.C.


Member Function Documentation

void LibGelatoDisplayDevice::line ( float * xyz1,
float * xyz2
) [protected, virtual]

draw a line (cylinder) from a to b.

Reimplemented from FileRenderer.

Definition at line 105 of file LibGelatoDisplayDevice.C.

References FileRenderer::cylinder, DEFAULT_RADIUS, and FileRenderer::lineWidth.

void LibGelatoDisplayDevice::point ( float * xyz ) [protected, virtual]

draw a point.

Reimplemented from FileRenderer.

Definition at line 66 of file LibGelatoDisplayDevice.C.

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

void LibGelatoDisplayDevice::sphere ( float * xyzr ) [protected, virtual]

draw a sphere.

Reimplemented from FileRenderer.

Definition at line 83 of file LibGelatoDisplayDevice.C.

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

void LibGelatoDisplayDevice::square ( float * n,
float * a,
float * b,
float * c,
float * d
) [protected, virtual]

draw a quadrilateral.

Reimplemented from FileRenderer.

Definition at line 225 of file LibGelatoDisplayDevice.C.

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

void LibGelatoDisplayDevice::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 111 of file LibGelatoDisplayDevice.C.

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

void LibGelatoDisplayDevice::tricolor ( const float * a,
const float * b,
const float * c,
const float * n1,
const float * n2,
const float * n3,
const float * c1,
const float * c2,
const float * c3
) [protected, virtual]

triangle with interpolated surface normals and vertex colors.

Reimplemented from FileRenderer.

Definition at line 135 of file LibGelatoDisplayDevice.C.

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

Referenced by trimesh_c4n3v3, and tristrip.

void LibGelatoDisplayDevice::trimesh_c4n3v3 ( int numverts,
float * cnv,
int numfacets,
int * facets
) [protected, virtual]

triangle mesh built from a vertex array and facet vertex index arrays.

Reimplemented from FileRenderer.

Definition at line 166 of file LibGelatoDisplayDevice.C.

References tricolor.

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

triangle strips built from a vertex array and vertex index arrays.

Reimplemented from FileRenderer.

Definition at line 188 of file LibGelatoDisplayDevice.C.

References tricolor.

void LibGelatoDisplayDevice::write_header ( void ) [virtual]

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

Reimplemented from FileRenderer.

Definition at line 252 of file LibGelatoDisplayDevice.C.

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

void LibGelatoDisplayDevice::write_trailer ( void ) [virtual]

write any trailer info. This is called by update.

Reimplemented from FileRenderer.

Definition at line 341 of file LibGelatoDisplayDevice.C.


The documentation for this class was generated from the following files:
Generated on Mon Nov 17 02:48:45 2025 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002

AltStyle によって変換されたページ (->オリジナル) /