Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members 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 short name (used in scripts) for the ith class. More...

const char * pretty_name (int)
return the "pretty" name (used in GUIs) for the ith class. More...

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

FileRenderer * find_pretty_name (const char *)
given a "pretty" render name, return the corresponding class. More...

const char * find_short_name_from_pretty_name (const char *pretty)
find the short name that corresponds to a "pretty" GUI name. 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 aasamples (const char *method, int aasamples)
Set the AA sample count; return the new value. More...

int aosamples (const char *method, int aosamples)
Set the AO sample count; 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 78 of file FileRenderList.C.

References add, ANARIDisplayDevice::ANARI_Global_Init, CPU_SSE4_1, OptiXDisplayDevice::device_count, VMDApp::display, wkf_cpu_caps_struct::flags, NULL, OSPRay2DisplayDevice::OSPRay_Global_Init, OSPRayDisplayDevice::OSPRay_Global_Init, and wkf_cpu_capability_flags.

FileRenderList::~FileRenderList ( void ) [virtual]

Definition at line 238 of file FileRenderList.C.

References ANARIDisplayDevice::ANARI_Global_Shutdown, NameList< FileRenderer * >::data, NameList< FileRenderer * >::num, OSPRay2DisplayDevice::OSPRay_Global_Shutdown, and OSPRayDisplayDevice::OSPRay_Global_Shutdown.


Member Function Documentation

int FileRenderList::aasamples ( const char * method,
int aasamples
)

Set the AA sample count; return the new value.

Definition at line 375 of file FileRenderList.C.

References aasamples, find, and FileRenderer::set_aasamples.

Referenced by aasamples, and VMDApp::filerender_aasamples.

void FileRenderList::add ( FileRenderer * )

add a new render class and its corresponding name.

Definition at line 264 of file FileRenderList.C.

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

Referenced by FileRenderList.

int FileRenderList::aosamples ( const char * method,
int aosamples
)

Set the AO sample count; return the new value.

Definition at line 381 of file FileRenderList.C.

References aosamples, find, and FileRenderer::set_aosamples.

Referenced by aosamples, and VMDApp::filerender_aosamples.

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 399 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 293 of file FileRenderList.C.

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

Referenced by aasamples, aosamples, 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.

FileRenderer * FileRenderList::find_pretty_name ( const char * )

given a "pretty" render name, return the corresponding class.

Definition at line 303 of file FileRenderList.C.

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

Referenced by find_short_name_from_pretty_name.

const char * FileRenderList::find_short_name_from_pretty_name ( const char * pretty )

find the short name that corresponds to a "pretty" GUI name.

Definition at line 314 of file FileRenderList.C.

References find_pretty_name, NULL, and FileRenderer::visible_name.

Referenced by VMDApp::filerender_shortname_from_prettyname.

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

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

Definition at line 412 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 369 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 393 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 387 of file FileRenderList.C.

References find, and FileRenderer::set_imagesize.

Referenced by VMDApp::filerender_imagesize.

const char * FileRenderList::name ( int )

return the short name (used in scripts) for the ith class.

Definition at line 275 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 270 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 406 of file FileRenderList.C.

References find, and FileRenderer::numformats.

Referenced by VMDApp::filerender_numformats.

const char * FileRenderList::pretty_name ( int )

return the "pretty" name (used in GUIs) for the ith class.

Definition at line 284 of file FileRenderList.C.

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

Referenced by VMDApp::filerender_prettyname, and find_pretty_name.

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

do the rendering.

Definition at line 321 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 419 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 358 of file FileRenderList.C.

References find, and FileRenderer::set_exec_string.


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

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