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

R3dDisplayDevice Class Reference

FileRenderer subclass exports VMD scene to a file in Raster3D format. More...

#include <R3dDisplayDevice.h>

Inheritance diagram for R3dDisplayDevice:

List of all members.

Public Methods

R3dDisplayDevice (void)
virtual ~R3dDisplayDevice (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 cylinder (float *, float *, float, int)
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 text (float *pos, float size, float thickness, const char *str)
draw text at specified location. 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...


Detailed Description

FileRenderer subclass exports VMD scene to a file in Raster3D format.

Definition at line 28 of file R3dDisplayDevice.h.


Constructor & Destructor Documentation

R3dDisplayDevice::R3dDisplayDevice ( void )

Definition at line 42 of file R3dDisplayDevice.C.

R3dDisplayDevice::~R3dDisplayDevice ( void ) [virtual]

Definition at line 49 of file R3dDisplayDevice.C.


Member Function Documentation

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

Comment describing representation geometry.

Reimplemented from FileRenderer.

Definition at line 324 of file R3dDisplayDevice.C.

References length, and FileRenderer::outfile.

void R3dDisplayDevice::cylinder ( float * ,
float * ,
float ,
int
) [protected, virtual]

draw a cylinder, with optional caps.

Reimplemented from FileRenderer.

Definition at line 231 of file R3dDisplayDevice.C.

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

void R3dDisplayDevice::line ( float * ,
float *
) [protected, virtual]

draw a single line.

Reimplemented from FileRenderer.

Definition at line 172 of file R3dDisplayDevice.C.

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

void R3dDisplayDevice::point ( float * spdata ) [protected, virtual]

draw an unlit point.

Reimplemented from FileRenderer.

Definition at line 134 of file R3dDisplayDevice.C.

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

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

draw a sphere.

Reimplemented from FileRenderer.

Definition at line 151 of file R3dDisplayDevice.C.

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

void R3dDisplayDevice::text ( float * pos,
float size,
float thickness,
const char * str
) [protected, virtual]

draw text at specified location.

Reimplemented from FileRenderer.

Definition at line 63 of file R3dDisplayDevice.C.

References currentColor, DEFAULT_RADIUS, hersheyDrawInitLetter, hersheyDrawNextLine, FileRenderer::outfile, size, sqr, Stack< Matrix4 >::top, FileRenderer::transMat, DisplayDevice::x, and DisplayDevice::y.

void R3dDisplayDevice::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 256 of file R3dDisplayDevice.C.

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

void R3dDisplayDevice::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 288 of file R3dDisplayDevice.C.

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

void R3dDisplayDevice::write_header ( void ) [virtual]

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

Reimplemented from FileRenderer.

Definition at line 346 of file R3dDisplayDevice.C.

References DisplayDevice::Aspect, FileRenderer::backColor, DISP_LIGHTS, DisplayDevice::eyePos, FileRenderer::lightState, DisplayDevice::ORTHOGRAPHIC, FileRenderer::outfile, DisplayDevice::PERSPECTIVE, DisplayDevice::projection, FileRenderer::scale, DisplayDevice::vSize, DisplayDevice::xSize, DisplayDevice::ySize, and DisplayDevice::zDist.

void R3dDisplayDevice::write_trailer ( void ) [virtual]

write any trailer info. This is called by update.

Reimplemented from FileRenderer.

Definition at line 480 of file R3dDisplayDevice.C.


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

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