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

FileRenderList Class Reference

Manage a list of FileRenderer objects that can be used to render a scene. More...

#include <FileRenderList.h>

List of all members.

Public Methods

 FileRenderList (VMDApp *)
virtual ~FileRenderList (void)
void add (FileRenderer *)
 add a new render class and its corresponding name. More...

int num (void)
 figure out how many render classes are installed. More...

const char * name (int)
 return the name for the ith class. More...

FileRendererfind (const char *)
 given a render name, return the corresponding class. More...

int render (const char *filename, const char *method, const char *extcmd)
 do the rendering. More...

int set_render_option (const char *, const char *)
 set the command string to execute after producing the scene file. More...

int has_antialiasing (const char *method)
 does renderer support antialiasing. More...

int aalevel (const char *method, int aalevel)
 Set the aa level; return the new value. More...

int imagesize (const char *method, int *width, int *height)
 Get/set the image size. More...

int has_imagesize (const char *method)
 Does the renderer support arbitrary image size? More...

int aspectratio (const char *method, float *aspect)
 Get/set the aspect ratio. A negative value will be ignored. Return success and place the new value in the passed-in pointer. More...

int numformats (const char *method)
 Number of file formats supported by the given renderer. More...

const char * format (const char *method, int i=-1)
 Name of the ith format; by default, returns current format. More...

int set_format (const char *method, const char *format)
 Set the output format for the given renderer. Return success. More...


Detailed Description

Manage a list of FileRenderer objects that can be used to render a scene.

Definition at line 32 of file FileRenderList.h.


Constructor & Destructor Documentation

FileRenderList::FileRenderList VMDApp  
 

Definition at line 61 of file FileRenderList.C.

References add, VMDApp::display, and NULL.

FileRenderList::~FileRenderList void    [virtual]
 

Definition at line 93 of file FileRenderList.C.

References NameList< FileRenderer * >::data, and NameList< FileRenderer * >::num.


Member Function Documentation

int FileRenderList::aalevel const char *    method,
int    aalevel
 

Set the aa level; return the new value.

Definition at line 181 of file FileRenderList.C.

References aalevel, find, and FileRenderer::set_aalevel.

Referenced by aalevel, and VMDApp::filerender_aalevel.

void FileRenderList::add FileRenderer  
 

add a new render class and its corresponding name.

Definition at line 99 of file FileRenderList.C.

References NameList< FileRenderer * >::add_name, and DisplayDevice::name.

Referenced by FileRenderList.

int FileRenderList::aspectratio const char *    method,
float *    aspect
 

Get/set the aspect ratio. A negative value will be ignored. Return success and place the new value in the passed-in pointer.

Definition at line 199 of file FileRenderList.C.

References find, and FileRenderer::set_aspectratio.

Referenced by VMDApp::filerender_aspectratio.

FileRenderer * FileRenderList::find const char *   
 

given a render name, return the corresponding class.

Definition at line 118 of file FileRenderList.C.

References NameList< FileRenderer * >::data, NULL, and NameList< FileRenderer * >::typecode.

Referenced by aalevel, aspectratio, VMDApp::filerender_default_filename, VMDApp::filerender_default_option, VMDApp::filerender_option, VMDApp::filerender_valid, format, has_antialiasing, has_imagesize, imagesize, numformats, render, set_format, and set_render_option.

const char * FileRenderList::format const char *    method,
int    i = -1
 

Name of the ith format; by default, returns current format.

Definition at line 212 of file FileRenderList.C.

References find, FileRenderer::format, and NULL.

Referenced by VMDApp::filerender_cur_format, VMDApp::filerender_get_format, and set_format.

int FileRenderList::has_antialiasing const char *    method
 

does renderer support antialiasing.

Definition at line 175 of file FileRenderList.C.

References find, and FileRenderer::has_antialiasing.

Referenced by VMDApp::filerender_has_antialiasing.

int FileRenderList::has_imagesize const char *    method
 

Does the renderer support arbitrary image size?

Definition at line 193 of file FileRenderList.C.

References find, and FileRenderer::has_imagesize.

Referenced by VMDApp::filerender_has_imagesize.

int FileRenderList::imagesize const char *    method,
int   width,
int   height
 

Get/set the image size.

Definition at line 187 of file FileRenderList.C.

References find, and FileRenderer::set_imagesize.

Referenced by VMDApp::filerender_imagesize.

const char * FileRenderList::name int   
 

return the name for the ith class.

Definition at line 110 of file FileRenderList.C.

References NameList< FileRenderer * >::name, NULL, and NameList< FileRenderer * >::num.

Referenced by VMDApp::filerender_name.

int FileRenderList::num void   
 

figure out how many render classes are installed.

Definition at line 105 of file FileRenderList.C.

References NameList< FileRenderer * >::num.

Referenced by VMDApp::filerender_num.

int FileRenderList::numformats const char *    method
 

Number of file formats supported by the given renderer.

Definition at line 206 of file FileRenderList.C.

References find, and FileRenderer::numformats.

Referenced by VMDApp::filerender_numformats.

int FileRenderList::render const char *    filename,
const char *    method,
const char *    extcmd
 

do the rendering.

Definition at line 127 of file FileRenderList.C.

References VMDApp::display, VMDApp::display_get_size, Scene::filedraw, find, JString::gsub, render, VMDApp::scene, DisplayDevice::update, and vmd_system.

Referenced by VMDApp::filerender_render, and render.

int FileRenderList::set_format const char *    method,
const char *    format
 

Set the output format for the given renderer. Return success.

Definition at line 219 of file FileRenderList.C.

References find, format, and FileRenderer::set_format.

Referenced by VMDApp::filerender_set_format.

int FileRenderList::set_render_option const char *   ,
const char *   
 

set the command string to execute after producing the scene file.

Definition at line 164 of file FileRenderList.C.

References find, and FileRenderer::set_exec_string.


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