#include <FileRenderer.h>
Inheritance diagram for FileRenderer:
Public Methods | |
FileRenderer (const char *public_name, const char *public_pretty_name, const char *default_file_name, const char *default_command_line) | |
create the renderer; set the 'visible' name for the renderer list. More... | |
virtual | ~FileRenderer (void) |
const char * | visible_name (void) const |
const char * | pretty_name (void) const |
const char * | default_filename (void) const |
const char * | default_exec_string (void) const |
const char * | saved_exec_string (void) const |
void | set_exec_string (const char *) |
int | has_antialiasing () const |
Supports anti-aliasing? More... | |
int | set_aasamples (int newval) |
Get/set the AA level; return the new value. Must be non-negative. More... | |
int | set_aosamples (int newval) |
Get/set the AO samples; return the new value. Must be non-negative. More... | |
int | has_imagesize () const |
Supports arbitrary image size? More... | |
int | set_imagesize (int *w, int *h) |
Get/set the image size. Return success and places the current values in the passed-in pointers. May fail if the renderer is not able to specify the image size (e.g. snapshot). Passing 0,0 just returns the current values. More... | |
float | set_aspectratio (float aspect) |
Set the aspect ratio. Negative values ignored. Returns the new value. Also updates image size if it has been set. More... | |
int | numformats () const |
Number of output formats. More... | |
const char * | format (int i) const |
get/set formats. More... | |
const char * | format () const |
int | set_format (const char *format) |
virtual void | set_background (const float *) |
copy in the background color. More... | |
virtual void | set_backgradient (const float *top, const float *bot) |
set gradient colors. More... | |
virtual int | open_file (const char *filename) |
open the file; don't write the header info return TRUE if opened okay if file already opened, complain, and close previous file this will also reset the state variables. More... | |
virtual int | do_define_light (int n, float *color, float *position) |
virtual routines to deal with light sources, return success/failure. More... | |
virtual int | do_activate_light (int n, int turnon) |
virtual int | do_define_adv_light (int n, float *color, float *position, float constant, float linear, float quad, float *spotdir, float fallstart, float fallend, int spoton) |
virtual int | do_activate_adv_light (int n, int turnon) |
virtual int | prepare3D (int) |
ready to draw 3D. More... | |
virtual void | render (const VMDDisplayList *) |
process list of draw commands. More... | |
virtual void | update (int) |
don't need to override this (unless you want to do so). More... | |
Protected Methods | |
virtual void | update_exec_cmd () |
Renderer-specific function to update execCmd based on the current state of aasamples, image size, etc. Default implementation is to do nothing. More... | |
virtual void | do_use_colors () |
virtual void | write_header (void) |
write the header info. This is an alias for prepare3D. More... | |
void | reset_state (void) |
virtual void | write_trailer (void) |
write any trailer info. This is called by update. More... | |
virtual void | close_file (void) |
close the file. This is called by update, and exists due to symmetry. Also, is called for case when open is called when a file was already open. More... | |
void | super_load (float *cmdptr) |
virtual void | load (const Matrix4 &) |
void | super_multmatrix (const float *cmdptr) |
virtual void | multmatrix (const Matrix4 &) |
multiply transformation matrix. More... | |
void | super_translate (float *cmdptr) |
virtual void | translate (float, float, float) |
void | super_rot (float *cmdptr) |
virtual void | rot (float, char) |
void | super_scale (float *cmdptr) |
void | super_scale (float) |
virtual void | scale (float, float, float) |
float | scale_factor (void) |
return the current scaling factor to use with large batches of geometry. More... | |
float | scale_radius (float) |
apply current scaling factor to radius. More... | |
void | super_set_color (int index) |
only calls set_color when index changes. More... | |
virtual void | set_color (int) |
set the color index. More... | |
int | nearest_index (float r, float g, float b) const |
compute nearest index in matData using given rgb value XXX We shouldn't be doing this; a better approach would be to store the new color in the matData color table and return the new index, rather than trying to match a 17 color palette. More... | |
void | super_set_material (int index) |
only call set_material on idx chg. More... | |
virtual void | set_material (int) |
change material index. More... | |
virtual void | start_clipgroup () |
emit clipping plane group. More... | |
virtual void | end_clipgroup () |
terminate clipping plane group. More... | |
virtual void | set_line_width (int new_width) |
virtual void | set_line_style (int) |
called by super. More... | |
virtual void | set_sphere_res (int) |
called by super. More... | |
virtual void | set_sphere_style (int) |
called by super. More... | |
void | super_materials (int on_or_off) |
virtual void | activate_materials (void) |
if previous is TRUE. More... | |
virtual void | deactivate_materials (void) |
if super is FALSE. More... | |
virtual void | cone (float *xyz1, float *xyz2, float radius, int resolution) |
draw a single-radius cone (pointy top). More... | |
virtual void | cone_trunc (float *, float *, float, float, int) |
draw a two-radius truncated cone. More... | |
virtual void | cylinder (float *base, float *apex, float radius, int filled) |
draw a cylinder, with optional caps. More... | |
virtual void | line (float *a, float *b) |
draw a single line. More... | |
virtual void | line_array (int num, float thickness, float *points) |
draw a set of lines with the same color and thickness. More... | |
virtual void | polyline_array (int num, float thickness, float *points) |
draw a set of connected lines with the same color and thickness. More... | |
virtual void | point (float *xyz) |
draw an unlit point. More... | |
virtual void | point_array (int num, float size, float *xyz, float *colors) |
draw an unlighted point array. More... | |
virtual void | point_array_lit (int num, float size, float *xyz, float *norm, float *colors) |
draw a lighted point array. More... | |
virtual void | cube_array (int num, float *centers, float *radii, float *colors) |
draw a lattice cube array. More... | |
virtual void | sphere (float *xyzr) |
draw a sphere. More... | |
virtual void | sphere_array (int num, int res, float *centers, float *radii, float *colors) |
draw a sphere array. More... | |
virtual void | square (float *norm, float *a, float *b, float *c, float *d) |
draw a quadrilateral. More... | |
virtual void | cube (float *xyzr) |
draw an axis-aligned lattice site cube. More... | |
virtual void | triangle (const float *, const float *, const float *, const float *, const float *, const float *) |
single color triangle with interpolated surface normals. More... | |
virtual 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... | |
virtual void | trimesh_n3f_v3f (float *n, float *v, int numfacets) |
triangle mesh built from a vertex array. More... | |
virtual void | trimesh_n3fopt_v3f (float *n, float *v, int numfacets) |
flat-shaded triangle mesh built from a vertex array, if this routine isn't overridden, it has the same behavior as trimesh_n3f_v3f(), but if it is, the FileRenderer subclass can choose to skip storing surface normals in favor of on-the-fly facet normal calculation or something similar, for greater memory efficiency. More... | |
virtual void | trimesh_n3b_v3f (signed char *n, float *v, int numfacets) |
virtual void | trimesh_c3f_n3f_v3f (float *c, float *n, float *v, int numfacets) |
triangle mesh built from a vertex array. More... | |
virtual void | trimesh_c4n3v3 (int, float *cnv, int numfacets, int *facets) |
triangle mesh built from a vertex array and facet vertex index arrays. More... | |
virtual void | trimesh_c4u_n3f_v3f (unsigned char *c, float *n, float *v, int numfacets) |
triangle mesh built from a vertex array. More... | |
virtual void | trimesh_c4u_n3b_v3f (unsigned char *c, signed char *n, float *v, int numfacets) |
triangle mesh built from a vertex array. More... | |
virtual void | trimesh_singlecolor (int cindex, int, float *nv, int numfacets, int *facets) |
triangle mesh built from a vertex array and facet vertex index arrays. More... | |
virtual void | tristrip (int, const float *cnv, int numstrips, const int *vertsperstrip, const int *facets) |
triangle strips built from a vertex array and vertex index arrays. More... | |
virtual void | tristrip_singlecolor (int, const float *nv, int numstrips, const int *stripcolindex, const int *vertsperstrip, const int *facets) |
single-color triangle strips built from a vertex array and vertex index arrays. More... | |
virtual void | trifan_singlecolor (int, const float *nv, int numfans, const int *fancolindex, const int *vertsperfan, const int *facets) |
single-color triangle fans built from a vertex array and vertex index arrays. More... | |
virtual void | define_volume_texture (int ID, int xs, int ys, int zs, const float *xplaneeq, const float *yplaneeq, const float *zplaneeq, unsigned char *texmap) |
define a volumetric texture map. More... | |
virtual void | volume_texture_on (int texmode) |
enable volumetric texturing, either in "replace" or "modulate" mode. More... | |
virtual void | volume_texture_off (void) |
disable volumetric texturing. More... | |
virtual void | wiremesh (int, float *cnv, int numlines, int *lines) |
wire mesh built from a vertex array and an vertex index array. More... | |
virtual void | beginrepgeomgroup (const char *) |
start a new representation geometry group, used to preserve some of the original scene hierarchy when loading VMD scenes into tools like Maya, 3DS Max, etc. More... | |
virtual void | comment (const char *) |
Comment describing representation geometry. More... | |
virtual void | text (float *pos, float size, float thickness, const char *str) |
draw text at specified location. More... | |
virtual void | pick_point (float *, int) |
here for completeness, only VRML or 'token' renderers would likely use it. More... | |
Protected Attributes | |
char * | publicName |
scripting name of renderer (no spaces). More... | |
char * | publicPrettyName |
name of renderer for use in GUIs. More... | |
char * | defaultFilename |
default output filename. More... | |
char * | defaultCommandLine |
default rendering command. More... | |
char * | execCmd |
current version of the post-render command. More... | |
FILE * | outfile |
the current file. More... | |
int | isOpened |
is the file opened correctly. More... | |
char * | my_filename |
the current filename. More... | |
int | has_aa |
supports antialiasing; off by default. More... | |
int | aasamples |
antialiasing samples, -1 if unsupported. More... | |
int | aosamples |
ambient occlusion samples, -1 if unsupported. More... | |
int | has_imgsize |
True if the renderer can produce an arbitrary-sized image; false by default. More... | |
int | warningflags |
If set, emit a warning message that this subclass doesn't support all of the render features in use by the current scene. More... | |
int | imgwidth |
int | imgheight |
desired size of image. More... | |
float | aspectratio |
Desired aspect ratio. More... | |
NameList< int > | formats |
Output formats supported by this renderer. More... | |
int | curformat |
Currently selected format. More... | |
LightState | lightState [DISP_LIGHTS] |
state of all lights. More... | |
AdvancedLightState | advLightState [DISP_LIGHTS] |
state of advanced lights. More... | |
float | matData [MAXCOLORS][3] |
color state, copied into here when do_use_colors is called. More... | |
float | backColor [3] |
background color, copied into here with set_background is called. More... | |
float | backgradientenabled |
flag indicating background gradient use. More... | |
float | backgradienttopcolor [3] |
top edge color of background gradient. More... | |
float | backgradientbotcolor [3] |
bottom edge color of background gradient. More... | |
Stack< Matrix4 > | transMat |
current transformation matrix for the display (NOT the projection matrix). More... | |
int | colorIndex |
active color index. More... | |
int | materialIndex |
active material index. More... | |
float | mat_ambient |
active ambient value. More... | |
float | mat_diffuse |
active diffuse value. More... | |
float | mat_specular |
active specular value. More... | |
float | mat_shininess |
active shininess value. More... | |
float | mat_mirror |
active mirror value. More... | |
float | mat_opacity |
active opacity value. More... | |
float | mat_outline |
active outline factor. More... | |
float | mat_outlinewidth |
active outline width. More... | |
float | mat_transmode |
active transparency mode. More... | |
float | clip_center [VMD_MAX_CLIP_PLANE][3] |
clipping plane center. More... | |
float | clip_normal [VMD_MAX_CLIP_PLANE][3] |
clipping plane normal. More... | |
float | clip_color [VMD_MAX_CLIP_PLANE][3] |
clipping plane CSG color. More... | |
int | clip_mode [VMD_MAX_CLIP_PLANE] |
clipping plane mode. More... | |
int | lineWidth |
drawing characteristics ... line style, sphere resolution, etc. More... | |
int | lineStyle |
drawing characteristics ... line style, sphere resolution, etc. More... | |
int | pointSize |
int | sphereResolution |
int | sphereStyle |
int | materials_on |
Definition at line 44 of file FileRenderer.h.
|
create the renderer; set the 'visible' name for the renderer list.
Definition at line 35 of file FileRenderer.C. References aasamples, aosamples, aspectratio, curformat, defaultCommandLine, defaultFilename, execCmd, FILERENDERER_NOWARNINGS, has_aa, has_imgsize, imgheight, imgwidth, isOpened, my_filename, NULL, outfile, publicName, publicPrettyName, stringdup, and warningflags. |
|
Definition at line 67 of file FileRenderer.C. References close_file, defaultCommandLine, defaultFilename, execCmd, my_filename, publicName, and publicPrettyName. |
|
if previous is TRUE.
Definition at line 315 of file FileRenderer.h. Referenced by super_materials. |
|
start a new representation geometry group, used to preserve some of the original scene hierarchy when loading VMD scenes into tools like Maya, 3DS Max, etc.
Reimplemented in MayaDisplayDevice. Definition at line 786 of file FileRenderer.h. Referenced by render. |
|
close the file. This is called by update, and exists due to symmetry. Also, is called for case when open is called when a file was already open.
Reimplemented in LibTachyonDisplayDevice. Definition at line 238 of file FileRenderer.C. References isOpened, my_filename, NULL, and outfile. Referenced by open_file, update, and ~FileRenderer. |
|
Comment describing representation geometry.
Reimplemented in ANARIDisplayDevice. Definition at line 789 of file FileRenderer.h. Referenced by render. |
|
draw a single-radius cone (pointy top).
Reimplemented in ArtDisplayDevice. Definition at line 322 of file FileRenderer.h. References cone_trunc. |
|
draw a two-radius truncated cone.
Reimplemented in RadianceDisplayDevice. Definition at line 790 of file FileRenderer.C. References cross_prod, CYLINDER_LEADINGCAP, CYLINDER_TRAILINGCAP, triangle, vec_add, vec_copy, vec_negate, vec_normalize, and VMD_TWOPI. |
|
draw an axis-aligned lattice site cube.
Definition at line 385 of file FileRenderer.h. References square, and vec_triad. Referenced by cube_array. |
|
draw a lattice cube array.
Definition at line 1316 of file FileRenderer.C. References cube, nearest_index, and super_set_color. Referenced by render. |
|
draw a cylinder, with optional caps.
Reimplemented in ArtDisplayDevice. Definition at line 923 of file FileRenderer.C. References colorIndex, cross_prod, CYLINDER_LEADINGCAP, CYLINDER_TRAILINGCAP, trifan_singlecolor, tristrip_singlecolor, vec_add, vec_copy, vec_negate, vec_normalize, and VMD_TWOPI. Referenced by RenderManDisplayDevice::cylinder, GelatoDisplayDevice::cylinder, LibGelatoDisplayDevice::line, line, and render. |
|
if super is FALSE.
Definition at line 316 of file FileRenderer.h. Referenced by super_materials. |
|
Definition at line 117 of file FileRenderer.h. References defaultCommandLine. Referenced by VMDApp::filerender_default_option. |
|
Definition at line 116 of file FileRenderer.h. References defaultFilename. Referenced by VMDApp::filerender_default_filename. |
|
define a volumetric texture map.
Reimplemented in LibTachyonDisplayDevice. Definition at line 739 of file FileRenderer.h. References FILERENDERER_NOTEXTURE, and warningflags. Referenced by render. |
|
Definition at line 122 of file FileRenderer.C. References advLightState, DISP_LIGHTS, and n. Referenced by Scene::filedraw. |
|
Reimplemented from DisplayDevice. Definition at line 92 of file FileRenderer.C. References DISP_LIGHTS, lightState, and n. Referenced by Scene::filedraw. |
|
Definition at line 100 of file FileRenderer.C. References advLightState, DISP_LIGHTS, and n. Referenced by Scene::filedraw. |
|
virtual routines to deal with light sources, return success/failure.
Reimplemented from DisplayDevice. Definition at line 81 of file FileRenderer.C. References DISP_LIGHTS, lightState, and n. Referenced by Scene::filedraw. |
|
Reimplemented from DisplayDevice. Definition at line 132 of file FileRenderer.C. References DisplayDevice::colorData, matData, and MAXCOLORS. |
|
terminate clipping plane group.
Reimplemented in LibTachyonDisplayDevice. Definition at line 299 of file FileRenderer.h. Referenced by render. |
|
Definition at line 161 of file FileRenderer.h. References curformat, and NameList::name. |
|
get/set formats.
Definition at line 160 of file FileRenderer.h. References NameList::name. Referenced by FileRenderList::format, and set_format. |
|
Supports anti-aliasing?
Definition at line 123 of file FileRenderer.h. References has_aa. Referenced by FileRenderList::has_antialiasing. |
|
Supports arbitrary image size?
Definition at line 144 of file FileRenderer.h. References has_imgsize. Referenced by FileRenderList::has_imagesize. |
|
draw a single line.
Reimplemented in ArtDisplayDevice. Definition at line 1057 of file FileRenderer.C. References cylinder, lineStyle, lineWidth, vec_copy, vec_normalize, and vec_sub. Referenced by line_array, polyline_array, render, text, and wiremesh. |
|
draw a set of lines with the same color and thickness.
Reimplemented in X3DDisplayDevice. Definition at line 1087 of file FileRenderer.C. Referenced by render. |
|
Reimplemented in Vrml2DisplayDevice. Definition at line 252 of file FileRenderer.h. Referenced by super_load. |
|
multiply transformation matrix.
Reimplemented from DisplayDevice. Reimplemented in Vrml2DisplayDevice. Definition at line 254 of file FileRenderer.h. Referenced by super_multmatrix. |
|
compute nearest index in matData using given rgb value XXX We shouldn't be doing this; a better approach would be to store the new color in the matData color table and return the new index, rather than trying to match a 17 color palette.
Definition at line 173 of file FileRenderer.C. References BEGREGCLRS, MAPCLRS, matData, n, and REGCLRS. Referenced by cube_array, point_array, PSDisplayDevice::render, TachyonDisplayDevice::sphere_array, OSPRayDisplayDevice::sphere_array, OSPRay2DisplayDevice::sphere_array, OptiXDisplayDevice::sphere_array, LibTachyonDisplayDevice::sphere_array, sphere_array, ANARIDisplayDevice::sphere_array, tricolor, WavefrontDisplayDevice::trimesh_c4n3v3, WavefrontDisplayDevice::trimesh_c4u_n3b_v3f, WavefrontDisplayDevice::tristrip, and wiremesh. |
|
Number of output formats.
Definition at line 157 of file FileRenderer.h. References NameList::num. Referenced by FileRenderList::numformats. |
|
open the file; don't write the header info return TRUE if opened okay if file already opened, complain, and close previous file this will also reset the state variables.
Reimplemented in LibTachyonDisplayDevice. Definition at line 206 of file FileRenderer.C. References close_file, isOpened, my_filename, NULL, outfile, reset_state, and stringdup. Referenced by Scene::filedraw. |
|
here for completeness, only VRML or 'token' renderers would likely use it.
Definition at line 795 of file FileRenderer.h. Referenced by render. |
|
draw an unlit point.
Reimplemented in ArtDisplayDevice. Definition at line 354 of file FileRenderer.h. References lineWidth, and vec_copy. Referenced by point_array, and render. |
|
draw an unlighted point array.
Reimplemented in X3DDisplayDevice. Definition at line 1335 of file FileRenderer.C. References nearest_index, num, point, pointSize, size, and super_set_color. Referenced by point_array_lit, and render. |
|
draw a lighted point array.
Definition at line 1353 of file FileRenderer.C. References num, point_array, and size. Referenced by render. |
|
draw a set of connected lines with the same color and thickness.
Reimplemented in X3DDisplayDevice. Definition at line 1099 of file FileRenderer.C. Referenced by render. |
|
ready to draw 3D.
Reimplemented from DisplayDevice. Definition at line 249 of file FileRenderer.C. References DisplayDevice::eyeDir, DisplayDevice::eyePos, DisplayDevice::eyeSepDir, DisplayDevice::LEFTEYE, DisplayDevice::NOSTEREO, DisplayDevice::RIGHTEYE, and write_header. Referenced by Scene::filedraw. |
|
Definition at line 115 of file FileRenderer.h. References publicPrettyName. Referenced by FileRenderList::pretty_name. |
|
|
Definition at line 221 of file FileRenderer.C. References Stack< Matrix4 >::clear, colorIndex, lineStyle, lineWidth, materialIndex, materials_on, pointSize, sphereResolution, sphereStyle, and transMat. Referenced by WavefrontDisplayDevice::open_file, MayaDisplayDevice::open_file, LibTachyonDisplayDevice::open_file, and open_file. |
|
Definition at line 258 of file FileRenderer.h. Referenced by super_rot. |
|
Definition at line 118 of file FileRenderer.h. References execCmd. Referenced by VMDApp::filerender_option. |
|
Definition at line 261 of file FileRenderer.h. Referenced by super_scale, and R3dDisplayDevice::write_header. |
|
return the current scaling factor to use with large batches of geometry.
Definition at line 756 of file FileRenderer.C. References Matrix4::mat, mat, Stack< Matrix4 >::top, and transMat. Referenced by OSPRayDisplayDevice::cylinder, OSPRay2DisplayDevice::cylinder, OptiXDisplayDevice::cylinder, scale_radius, OptiXDisplayDevice::sphere, OSPRayDisplayDevice::sphere_array, OSPRay2DisplayDevice::sphere_array, OptiXDisplayDevice::sphere_array, and ANARIDisplayDevice::sphere_array. |
|
|
Get/set the AA level; return the new value. Must be non-negative.
Definition at line 126 of file FileRenderer.h. References aasamples, has_aa, and update_exec_cmd. Referenced by FileRenderList::aasamples. |
|
Get/set the AO samples; return the new value. Must be non-negative.
Definition at line 135 of file FileRenderer.h. References aosamples, and update_exec_cmd. Referenced by FileRenderList::aosamples. |
|
Set the aspect ratio. Negative values ignored. Returns the new value. Also updates image size if it has been set.
Definition at line 166 of file FileRenderer.C. References DisplayDevice::aspect, aspectratio, and set_imagesize. Referenced by FileRenderList::aspectratio. |
|
set gradient colors.
Reimplemented from DisplayDevice. Definition at line 199 of file FileRenderer.C. References backgradientbotcolor, backgradienttopcolor, and vec_copy. Referenced by Scene::filedraw. |
|
copy in the background color.
Reimplemented from DisplayDevice. Definition at line 193 of file FileRenderer.C. References backColor. Referenced by Scene::filedraw. |
|
set the color index.
Reimplemented in RadianceDisplayDevice. Definition at line 271 of file FileRenderer.h. Referenced by super_set_color. |
|
Definition at line 783 of file FileRenderer.C. References execCmd, and stringdup. Referenced by VMDApp::filerender_option, FileRenderList::set_render_option, and SnapshotDisplayDevice::SnapshotDisplayDevice. |
|
Definition at line 162 of file FileRenderer.h. References curformat, format, NameList::typecode, and update_exec_cmd. Referenced by FileRenderList::set_format. |
|
Get/set the image size. Return success and places the current values in the passed-in pointers. May fail if the renderer is not able to specify the image size (e.g. snapshot). Passing 0,0 just returns the current values.
Definition at line 140 of file FileRenderer.C. References aspectratio, imgheight, imgwidth, and update_exec_cmd. Referenced by FileRenderList::imagesize, and set_aspectratio. |
|
called by super.
Definition at line 306 of file FileRenderer.h. Referenced by render. |
|
Reimplemented in POV3DisplayDevice. Definition at line 303 of file FileRenderer.h. References lineWidth. Referenced by render. |
|
change material index.
Definition at line 291 of file FileRenderer.h. Referenced by super_set_material. |
|
called by super.
Definition at line 310 of file FileRenderer.h. Referenced by PSDisplayDevice::render, render, and sphere_array. |
|
called by super.
Definition at line 311 of file FileRenderer.h. Referenced by render. |
|
draw a sphere.
Reimplemented in ArtDisplayDevice. Definition at line 1112 of file FileRenderer.C. References NULL, sphereResolution, triangle, vec_copy, and vec_normalize. Referenced by render, and sphere_array. |
|
draw a sphere array.
Reimplemented in ANARIDisplayDevice. Definition at line 1294 of file FileRenderer.C. References nearest_index, set_sphere_res, sphere, and super_set_color. Referenced by render. |
|
draw a quadrilateral.
Reimplemented in ArtDisplayDevice. Definition at line 377 of file FileRenderer.h. References triangle. |
|
emit clipping plane group.
Reimplemented in LibTachyonDisplayDevice. Definition at line 1363 of file FileRenderer.C. References clip_mode, FILERENDERER_NOCLIP, VMD_MAX_CLIP_PLANE, and warningflags. Referenced by render. |
|
Definition at line 724 of file FileRenderer.C. References load, Stack< Matrix4 >::top, and transMat. |
|
Definition at line 711 of file FileRenderer.C. References activate_materials, deactivate_materials, and materials_on. Referenced by render. |
|
Definition at line 729 of file FileRenderer.C. References multmatrix, Stack< Matrix4 >::top, and transMat. Referenced by PSDisplayDevice::render, and render. |
|
Definition at line 740 of file FileRenderer.C. References rot, Stack< Matrix4 >::top, and transMat. |
|
Definition at line 750 of file FileRenderer.C. References scale, Matrix4::scale, Stack< Matrix4 >::top, and transMat. |
|
Definition at line 745 of file FileRenderer.C. References scale, Stack< Matrix4 >::top, and transMat. |
|
only calls set_color when index changes.
Definition at line 695 of file FileRenderer.C. References colorIndex, and set_color. Referenced by cube_array, point_array, render, TachyonDisplayDevice::sphere_array, OSPRayDisplayDevice::sphere_array, OSPRay2DisplayDevice::sphere_array, OptiXDisplayDevice::sphere_array, LibTachyonDisplayDevice::sphere_array, sphere_array, ANARIDisplayDevice::sphere_array, tricolor, trifan_singlecolor, trimesh_singlecolor, tristrip_singlecolor, and wiremesh. |
|
only call set_material on idx chg.
Definition at line 703 of file FileRenderer.C. References materialIndex, and set_material. Referenced by render. |
|
Definition at line 735 of file FileRenderer.C. References Stack< Matrix4 >::top, translate, and transMat. |
|
draw text at specified location.
Reimplemented in GelatoDisplayDevice. Definition at line 1375 of file FileRenderer.C. References FILERENDERER_NOTEXT, hersheyDrawInitLetter, hersheyDrawNextLine, line, Stack< Matrix4 >::pop, Stack< Matrix4 >::push, size, Stack< Matrix4 >::top, transMat, warningflags, DisplayDevice::x, and DisplayDevice::y. Referenced by render. |
|
Definition at line 256 of file FileRenderer.h. Referenced by super_translate. |
|
single color triangle with interpolated surface normals.
Reimplemented in ANARIDisplayDevice. Definition at line 422 of file FileRenderer.h. References FILERENDERER_NOGEOM, and warningflags. Referenced by cone_trunc, render, sphere, square, tricolor, trifan_singlecolor, trimesh_n3b_v3f, trimesh_n3f_v3f, trimesh_singlecolor, and tristrip_singlecolor. |
|
triangle with interpolated surface normals and vertex colors.
Reimplemented in ANARIDisplayDevice. Definition at line 429 of file FileRenderer.h. References nearest_index, super_set_color, and triangle. Referenced by trimesh_c3f_n3f_v3f, trimesh_c4n3v3, trimesh_c4u_n3b_v3f, trimesh_c4u_n3f_v3f, and tristrip. |
|
single-color triangle fans built from a vertex array and vertex index arrays.
Definition at line 705 of file FileRenderer.h. References super_set_color, and triangle. Referenced by cylinder. |
|
triangle mesh built from a vertex array.
Definition at line 500 of file FileRenderer.h. Referenced by render. |
|
triangle mesh built from a vertex array and facet vertex index arrays.
Reimplemented in ANARIDisplayDevice. Definition at line 516 of file FileRenderer.h. References tricolor. Referenced by render. |
|
triangle mesh built from a vertex array.
Reimplemented in ANARIDisplayDevice. Definition at line 568 of file FileRenderer.h. Referenced by render. |
|
triangle mesh built from a vertex array.
Reimplemented in ANARIDisplayDevice. Definition at line 536 of file FileRenderer.h. Referenced by render. |
|
Reimplemented in ANARIDisplayDevice. Definition at line 470 of file FileRenderer.h. Referenced by render. |
|
triangle mesh built from a vertex array.
Reimplemented in ANARIDisplayDevice. Definition at line 446 of file FileRenderer.h. Referenced by render, and trimesh_n3fopt_v3f. |
|
flat-shaded triangle mesh built from a vertex array, if this routine isn't overridden, it has the same behavior as trimesh_n3f_v3f(), but if it is, the FileRenderer subclass can choose to skip storing surface normals in favor of on-the-fly facet normal calculation or something similar, for greater memory efficiency.
Reimplemented in OptiXDisplayDevice. Definition at line 465 of file FileRenderer.h. References n, and trimesh_n3f_v3f. Referenced by render. |
|
triangle mesh built from a vertex array and facet vertex index arrays.
Definition at line 614 of file FileRenderer.h. References super_set_color, and triangle. |
|
triangle strips built from a vertex array and vertex index arrays.
Reimplemented in ANARIDisplayDevice. Definition at line 634 of file FileRenderer.h. References tricolor. Referenced by render. |
|
single-color triangle strips built from a vertex array and vertex index arrays.
Definition at line 670 of file FileRenderer.h. References super_set_color, and triangle. Referenced by cylinder. |
|
don't need to override this (unless you want to do so).
Reimplemented from DisplayDevice. Definition at line 217 of file FileRenderer.h. References close_file, FILERENDERER_NOCLIP, FILERENDERER_NOCUEING, FILERENDERER_NOGEOM, FILERENDERER_NOTEXT, FILERENDERER_NOTEXTURE, FILERENDERER_NOWARNINGS, isOpened, warningflags, and write_trailer. Referenced by Scene::filedraw. |
|
Renderer-specific function to update execCmd based on the current state of aasamples, image size, etc. Default implementation is to do nothing.
Reimplemented in TachyonDisplayDevice. Definition at line 70 of file FileRenderer.h. Referenced by set_aasamples, set_aosamples, set_format, and set_imagesize. |
|
Definition at line 114 of file FileRenderer.h. References publicName. Referenced by FileRenderList::find_short_name_from_pretty_name. |
|
disable volumetric texturing.
Reimplemented in LibTachyonDisplayDevice. Definition at line 755 of file FileRenderer.h. References FILERENDERER_NOTEXTURE, and warningflags. Referenced by render. |
|
enable volumetric texturing, either in "replace" or "modulate" mode.
Reimplemented in LibTachyonDisplayDevice. Definition at line 749 of file FileRenderer.h. References FILERENDERER_NOTEXTURE, and warningflags. Referenced by render. |
|
wire mesh built from a vertex array and an vertex index array.
Definition at line 761 of file FileRenderer.h. References line, nearest_index, and super_set_color. Referenced by render. |
|
write the header info. This is an alias for prepare3D.
Reimplemented in ANARIDisplayDevice. Definition at line 199 of file FileRenderer.h. Referenced by prepare3D. |
|
write any trailer info. This is called by update.
Reimplemented in ANARIDisplayDevice. Definition at line 208 of file FileRenderer.h. Referenced by update. |
|
|
state of advanced lights.
Definition at line 93 of file FileRenderer.h. Referenced by do_activate_adv_light, and do_define_adv_light. |
|
|
Desired aspect ratio.
Definition at line 64 of file FileRenderer.h. Referenced by FileRenderer, set_aspectratio, and set_imagesize. |
|
background color, copied into here with set_background is called.
Definition at line 100 of file FileRenderer.h. Referenced by set_background, X3DDisplayDevice::write_header, Vrml2DisplayDevice::write_header, RenderManDisplayDevice::write_header, RayShadeDisplayDevice::write_header, R3dDisplayDevice::write_header, PSDisplayDevice::write_header, POV3DisplayDevice::write_header, LibGelatoDisplayDevice::write_header, GelatoDisplayDevice::write_header, and ArtDisplayDevice::write_header. |
|
bottom edge color of background gradient.
Definition at line 104 of file FileRenderer.h. Referenced by set_backgradient, X3DDisplayDevice::write_header, Vrml2DisplayDevice::write_header, and POV3DisplayDevice::write_header. |
|
flag indicating background gradient use.
Definition at line 102 of file FileRenderer.h. |
|
top edge color of background gradient.
Definition at line 103 of file FileRenderer.h. Referenced by set_backgradient, X3DDisplayDevice::write_header, Vrml2DisplayDevice::write_header, and POV3DisplayDevice::write_header. |
|
clipping plane center.
Definition at line 293 of file FileRenderer.h. Referenced by render, TachyonDisplayDevice::start_clipgroup, POV3DisplayDevice::start_clipgroup, and LibTachyonDisplayDevice::start_clipgroup. |
|
clipping plane CSG color.
Definition at line 295 of file FileRenderer.h. Referenced by render, and POV3DisplayDevice::start_clipgroup. |
|
clipping plane mode.
Definition at line 296 of file FileRenderer.h. Referenced by render, TachyonDisplayDevice::start_clipgroup, POV3DisplayDevice::start_clipgroup, LibTachyonDisplayDevice::start_clipgroup, and start_clipgroup. |
|
clipping plane normal.
Definition at line 294 of file FileRenderer.h. Referenced by render, TachyonDisplayDevice::start_clipgroup, POV3DisplayDevice::start_clipgroup, and LibTachyonDisplayDevice::start_clipgroup. |
|
|
Currently selected format.
Definition at line 66 of file FileRenderer.h. Referenced by ANARIDisplayDevice::ANARIDisplayDevice, FileRenderer, format, LibTachyonDisplayDevice::LibTachyonDisplayDevice, OptiXDisplayDevice::OptiXDisplayDevice, OSPRay2DisplayDevice::OSPRay2DisplayDevice, OSPRayDisplayDevice::OSPRayDisplayDevice, set_format, and TachyonDisplayDevice::TachyonDisplayDevice. |
|
default rendering command.
Definition at line 49 of file FileRenderer.h. Referenced by default_exec_string, FileRenderer, SnapshotDisplayDevice::SnapshotDisplayDevice, and ~FileRenderer. |
|
default output filename.
Definition at line 48 of file FileRenderer.h. Referenced by default_filename, FileRenderer, and ~FileRenderer. |
|
current version of the post-render command.
Definition at line 51 of file FileRenderer.h. Referenced by FileRenderer, saved_exec_string, set_exec_string, TachyonDisplayDevice::update_exec_cmd, and ~FileRenderer. |
|
Output formats supported by this renderer.
Definition at line 65 of file FileRenderer.h. Referenced by ANARIDisplayDevice::ANARIDisplayDevice, LibTachyonDisplayDevice::LibTachyonDisplayDevice, OptiXDisplayDevice::OptiXDisplayDevice, OSPRay2DisplayDevice::OSPRay2DisplayDevice, OSPRayDisplayDevice::OSPRayDisplayDevice, and TachyonDisplayDevice::TachyonDisplayDevice. |
|
supports antialiasing; off by default.
Definition at line 55 of file FileRenderer.h. Referenced by ANARIDisplayDevice::ANARIDisplayDevice, FileRenderer, has_antialiasing, LibTachyonDisplayDevice::LibTachyonDisplayDevice, OptiXDisplayDevice::OptiXDisplayDevice, OSPRay2DisplayDevice::OSPRay2DisplayDevice, OSPRayDisplayDevice::OSPRayDisplayDevice, set_aasamples, and TachyonDisplayDevice::TachyonDisplayDevice. |
|
True if the renderer can produce an arbitrary-sized image; false by default.
Definition at line 58 of file FileRenderer.h. Referenced by FileRenderer, and has_imagesize. |
|
desired size of image.
Definition at line 63 of file FileRenderer.h. Referenced by FileRenderer, and set_imagesize. |
|
Definition at line 63 of file FileRenderer.h. Referenced by FileRenderer, and set_imagesize. |
|
is the file opened correctly.
Definition at line 53 of file FileRenderer.h. Referenced by WavefrontDisplayDevice::close_file, SnapshotDisplayDevice::close_file, MayaDisplayDevice::close_file, LibTachyonDisplayDevice::close_file, close_file, FileRenderer, WavefrontDisplayDevice::open_file, SnapshotDisplayDevice::open_file, MayaDisplayDevice::open_file, LibTachyonDisplayDevice::open_file, open_file, and update. |
|
state of all lights.
Definition at line 78 of file FileRenderer.h. Referenced by do_activate_light, do_define_light, PSDisplayDevice::render, RenderManDisplayDevice::write_header, RayShadeDisplayDevice::write_header, R3dDisplayDevice::write_header, POV3DisplayDevice::write_header, LibGelatoDisplayDevice::write_header, and GelatoDisplayDevice::write_header. |
|
drawing characteristics ... line style, sphere resolution, etc.
Reimplemented from DisplayDevice. Definition at line 302 of file FileRenderer.h. Referenced by X3DDisplayDevice::line, WavefrontDisplayDevice::line, Vrml2DisplayDevice::line, TachyonDisplayDevice::line, RenderManDisplayDevice::line, RayShadeDisplayDevice::line, R3dDisplayDevice::line, POV3DisplayDevice::line, MayaDisplayDevice::line, LibTachyonDisplayDevice::line, GelatoDisplayDevice::line, line, ArtDisplayDevice::line, render, and reset_state. |
|
drawing characteristics ... line style, sphere resolution, etc.
Reimplemented from DisplayDevice. Definition at line 302 of file FileRenderer.h. Referenced by RayShadeDisplayDevice::cone, TachyonDisplayDevice::line, RenderManDisplayDevice::line, RayShadeDisplayDevice::line, R3dDisplayDevice::line, LibTachyonDisplayDevice::line, LibGelatoDisplayDevice::line, GelatoDisplayDevice::line, line, ArtDisplayDevice::line, TachyonDisplayDevice::point, RenderManDisplayDevice::point, RayShadeDisplayDevice::point, R3dDisplayDevice::point, LibTachyonDisplayDevice::point, LibGelatoDisplayDevice::point, GelatoDisplayDevice::point, point, ArtDisplayDevice::point, render, reset_state, POV3DisplayDevice::set_line_width, set_line_width, and POV3DisplayDevice::write_header. |
|
active ambient value.
Definition at line 281 of file FileRenderer.h. Referenced by X3DOMDisplayDevice::line_array, X3DDisplayDevice::line_array, X3DDisplayDevice::point, X3DDisplayDevice::point_array, X3DOMDisplayDevice::polyline_array, X3DDisplayDevice::polyline_array, render, X3DOMDisplayDevice::text, X3DDisplayDevice::text, TachyonDisplayDevice::tricolor, and X3DDisplayDevice::write_colormaterial. |
|
active diffuse value.
Definition at line 282 of file FileRenderer.h. Referenced by X3DOMDisplayDevice::line_array, X3DDisplayDevice::line_array, X3DDisplayDevice::point, X3DOMDisplayDevice::polyline_array, X3DDisplayDevice::polyline_array, render, X3DOMDisplayDevice::text, X3DDisplayDevice::text, TachyonDisplayDevice::tricolor, and X3DDisplayDevice::write_colormaterial. |
|
active mirror value.
Definition at line 285 of file FileRenderer.h. Referenced by render, and TachyonDisplayDevice::tricolor. |
|
|
active outline factor.
Definition at line 287 of file FileRenderer.h. Referenced by render, and TachyonDisplayDevice::tricolor. |
|
active outline width.
Definition at line 288 of file FileRenderer.h. Referenced by render, and TachyonDisplayDevice::tricolor. |
|
active shininess value.
Definition at line 284 of file FileRenderer.h. Referenced by render, TachyonDisplayDevice::tricolor, and X3DDisplayDevice::write_colormaterial. |
|
active specular value.
Definition at line 283 of file FileRenderer.h. Referenced by render, TachyonDisplayDevice::tricolor, and X3DDisplayDevice::write_colormaterial. |
|
active transparency mode.
Definition at line 289 of file FileRenderer.h. Referenced by render, and TachyonDisplayDevice::tricolor. |
|
|
|
Definition at line 313 of file FileRenderer.h. Referenced by reset_state, and super_materials. |
|
|
|
Definition at line 302 of file FileRenderer.h. Referenced by POV3DisplayDevice::point, point_array, render, and reset_state. |
|
scripting name of renderer (no spaces).
Definition at line 46 of file FileRenderer.h. Referenced by FileRenderer, visible_name, and ~FileRenderer. |
|
name of renderer for use in GUIs.
Definition at line 47 of file FileRenderer.h. Referenced by FileRenderer, pretty_name, and ~FileRenderer. |
|
Definition at line 309 of file FileRenderer.h. Referenced by render, reset_state, and sphere. |
|
Definition at line 309 of file FileRenderer.h. Referenced by render, and reset_state. |
|
|
If set, emit a warning message that this subclass doesn't support all of the render features in use by the current scene.
Definition at line 60 of file FileRenderer.h. Referenced by define_volume_texture, FileRenderer, render, TachyonDisplayDevice::start_clipgroup, LibTachyonDisplayDevice::start_clipgroup, start_clipgroup, text, triangle, update, volume_texture_off, and volume_texture_on. |