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

SnapshotDisplayDevice Class Reference

FileRenderer subclass to save VMD images in a supported image file format. More...

#include <SnapshotDisplayDevice.h>

Inheritance diagram for SnapshotDisplayDevice:

FileRenderer DisplayDevice List of all members.

Public Methods

 SnapshotDisplayDevice (DisplayDevice *)
 set up the commands for grabbing images from the screen pass in display to grab image from. More...

virtual int open_file (const char *filename)
 open output. More...

virtual void render (const VMDDisplayList *)
 ignore renders. More...

virtual void close_file (void)
 capture and save the image to a file. More...


Detailed Description

FileRenderer subclass to save VMD images in a supported image file format.

Definition at line 31 of file SnapshotDisplayDevice.h.


Constructor & Destructor Documentation

SnapshotDisplayDevice::SnapshotDisplayDevice DisplayDevice  
 

set up the commands for grabbing images from the screen pass in display to grab image from.

Definition at line 39 of file SnapshotDisplayDevice.C.

References DEF_SNAPSHOT_FILENAME, FileRenderer::defaultCommandLine, FileRenderer::set_exec_string, and stringdup.


Member Function Documentation

void SnapshotDisplayDevice::close_file void    [virtual]
 

capture and save the image to a file.

Reimplemented from FileRenderer.

Definition at line 80 of file SnapshotDisplayDevice.C.

References checkfileextension, FileRenderer::isOpened, FileRenderer::my_filename, NULL, FileRenderer::outfile, DisplayDevice::readpixels_rgb3u, vmd_writebmp, vmd_writeppm, vmd_writergb, and vmd_writetga.

int SnapshotDisplayDevice::open_file const char *    filename [virtual]
 

open output.

Reimplemented from FileRenderer.

Definition at line 51 of file SnapshotDisplayDevice.C.

References FileRenderer::isOpened, FileRenderer::my_filename, NULL, FileRenderer::outfile, and stringdup.

virtual void SnapshotDisplayDevice::render const VMDDisplayList   [inline, virtual]
 

ignore renders.

Reimplemented from FileRenderer.

Definition at line 40 of file SnapshotDisplayDevice.h.


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