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

VrmlDisplayDevice Class Reference

FileRenderer subclass to export VMD scenes to VRML 1.0 scene format. More...

#include <VrmlDisplayDevice.h>

Inheritance diagram for VrmlDisplayDevice:

List of all members.

Public Methods

VrmlDisplayDevice (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 *)
Comment describing representation geometry. More...

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

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

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

void sphere (float *xyzr)
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...

void push (void)
transformation functions. More...

void pop (void)
void load (const Matrix4 &mat)
void multmatrix (const Matrix4 &mat)
multiply transformation matrix. More...

void set_color (int color_index)
set the colorID. More...


Detailed Description

FileRenderer subclass to export VMD scenes to VRML 1.0 scene format.

Definition at line 31 of file VrmlDisplayDevice.h.


Constructor & Destructor Documentation

VrmlDisplayDevice::VrmlDisplayDevice ( void )

Definition at line 41 of file VrmlDisplayDevice.C.

References NULL.


Member Function Documentation

void VrmlDisplayDevice::comment ( const char * s ) [protected, virtual]

Comment describing representation geometry.

Reimplemented from FileRenderer.

Definition at line 207 of file VrmlDisplayDevice.C.

References FileRenderer::outfile.

void VrmlDisplayDevice::cone ( float * a,
float * b,
float r,
int
) [protected, virtual]

draw a single-radius cone (pointy top).

Reimplemented from FileRenderer.

Definition at line 140 of file VrmlDisplayDevice.C.

References convert_endpoints_to_matrix, distance, load, mat, FileRenderer::outfile, pop, and push.

void VrmlDisplayDevice::cylinder ( float * a,
float * b,
float rad,
int filled
) [protected, virtual]

draw a cylinder, with optional caps.

Reimplemented from FileRenderer.

Definition at line 118 of file VrmlDisplayDevice.C.

References convert_endpoints_to_matrix, distance, load, mat, FileRenderer::outfile, pop, and push.

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

draw a single line.

Reimplemented from FileRenderer.

Definition at line 64 of file VrmlDisplayDevice.C.

References FileRenderer::outfile.

void VrmlDisplayDevice::load ( const Matrix4 & mat ) [protected, virtual]

Reimplemented from FileRenderer.

Definition at line 192 of file VrmlDisplayDevice.C.

References Matrix4::mat, mat, and FileRenderer::outfile.

Referenced by cone, cylinder, and multmatrix.

void VrmlDisplayDevice::multmatrix ( const Matrix4 & mat ) [protected, virtual]

multiply transformation matrix.

Reimplemented from FileRenderer.

Definition at line 187 of file VrmlDisplayDevice.C.

References load, mat, and FileRenderer::outfile.

void VrmlDisplayDevice::pop ( void ) [protected]

Definition at line 183 of file VrmlDisplayDevice.C.

References FileRenderer::outfile.

Referenced by cone, and cylinder.

void VrmlDisplayDevice::push ( void ) [protected]

transformation functions.

Definition at line 179 of file VrmlDisplayDevice.C.

References FileRenderer::outfile.

Referenced by cone, and cylinder.

void VrmlDisplayDevice::set_color ( int color_index ) [protected, virtual]

set the colorID.

Reimplemented from FileRenderer.

Definition at line 48 of file VrmlDisplayDevice.C.

References FileRenderer::materialIndex.

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

draw a sphere.

Reimplemented from FileRenderer.

Definition at line 53 of file VrmlDisplayDevice.C.

References FileRenderer::outfile.

void VrmlDisplayDevice::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 161 of file VrmlDisplayDevice.C.

References FileRenderer::outfile.

void VrmlDisplayDevice::write_header ( void ) [virtual]

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

Reimplemented from FileRenderer.

Definition at line 214 of file VrmlDisplayDevice.C.

References FileRenderer::outfile.

void VrmlDisplayDevice::write_trailer ( void ) [virtual]

write any trailer info. This is called by update.

Reimplemented from FileRenderer.

Definition at line 221 of file VrmlDisplayDevice.C.

References FileRenderer::outfile.


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

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