#include <LibTachyonDisplayDevice.h>
Inheritance diagram for LibTachyonDisplayDevice:
Public Methods | |
LibTachyonDisplayDevice (VMDApp *) | |
virtual | ~LibTachyonDisplayDevice (void) |
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 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 | 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 | cylinder (float *, float *, float rad, int filled) |
draw a cylinder, with optional caps. More... | |
void | line (float *xyz1, float *xyz2) |
draw a single line. More... | |
void | point (float *xyz) |
draw an unlit point. More... | |
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... | |
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... | |
void | tristrip (int numverts, 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 | 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... | |
void | start_clipgroup (void) |
emit clipping plane group. More... | |
void | end_clipgroup (void) |
terminate clipping plane group. More... |
Definition at line 31 of file LibTachyonDisplayDevice.h.
|
Definition at line 55 of file LibTachyonDisplayDevice.C. References FileRenderer::aasamples, NameList< int >::add_name, FileRenderer::aosamples, FileRenderer::curformat, FileRenderer::formats, FileRenderer::has_aa, NULL, vmd_rt_ui_progress, DisplayDevice::vmdapp, and wkf_timer_create. |
|
Definition at line 118 of file LibTachyonDisplayDevice.C. References wkf_timer_destroy. |
|
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 from FileRenderer. Definition at line 483 of file LibTachyonDisplayDevice.C. References FileRenderer::isOpened, FileRenderer::my_filename, NULL, and FileRenderer::outfile. |
|
draw a cylinder, with optional caps.
Reimplemented from FileRenderer. Definition at line 310 of file LibTachyonDisplayDevice.C. References FileRenderer::colorIndex, CYLINDER_LEADINGCAP, CYLINDER_TRAILINGCAP, FileRenderer::materialIndex, FileRenderer::scale_radius, Stack< Matrix4 >::top, and FileRenderer::transMat. |
|
define a volumetric texture map.
Reimplemented from FileRenderer. Definition at line 669 of file LibTachyonDisplayDevice.C. References NULL. |
|
terminate clipping plane group.
Reimplemented from FileRenderer. Definition at line 761 of file LibTachyonDisplayDevice.C. |
|
draw a single line.
Reimplemented from FileRenderer. Definition at line 255 of file LibTachyonDisplayDevice.C. References FileRenderer::colorIndex, DASH_LENGTH, DEFAULT_RADIUS, FileRenderer::lineStyle, FileRenderer::lineWidth, FileRenderer::materialIndex, Stack< Matrix4 >::top, FileRenderer::transMat, vec_copy, vec_normalize, and vec_sub. |
|
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 from FileRenderer. Definition at line 476 of file LibTachyonDisplayDevice.C. References FileRenderer::isOpened, FileRenderer::my_filename, FileRenderer::reset_state, and stringdup. |
|
draw an unlit point.
Reimplemented from FileRenderer. Definition at line 199 of file LibTachyonDisplayDevice.C. References FileRenderer::colorIndex, DEFAULT_RADIUS, FileRenderer::lineWidth, FileRenderer::materialIndex, Stack< Matrix4 >::top, and FileRenderer::transMat. |
|
draw a sphere.
Reimplemented from FileRenderer. Definition at line 214 of file LibTachyonDisplayDevice.C. References FileRenderer::colorIndex, FileRenderer::materialIndex, FileRenderer::scale_radius, Stack< Matrix4 >::top, and FileRenderer::transMat. |
|
draw a sphere array.
Reimplemented from FileRenderer. Definition at line 230 of file LibTachyonDisplayDevice.C. References FileRenderer::materialIndex, FileRenderer::nearest_index, FileRenderer::scale_radius, FileRenderer::super_set_color, Stack< Matrix4 >::top, and FileRenderer::transMat. |
|
emit clipping plane group.
Reimplemented from FileRenderer. Definition at line 711 of file LibTachyonDisplayDevice.C. References FileRenderer::clip_center, FileRenderer::clip_mode, FileRenderer::clip_normal, dot_prod, FILERENDERER_NOCLIP, Stack< Matrix4 >::top, FileRenderer::transMat, vec_negate, VMD_MAX_CLIP_PLANE, and FileRenderer::warningflags. |
|
draw text at specified location.
Reimplemented from FileRenderer. Definition at line 139 of file LibTachyonDisplayDevice.C. References FileRenderer::colorIndex, DEFAULT_RADIUS, hersheyDrawInitLetter, hersheyDrawNextLine, FileRenderer::materialIndex, size, Stack< Matrix4 >::top, FileRenderer::transMat, DisplayDevice::x, and DisplayDevice::y. |
|
single color triangle with interpolated surface normals.
Reimplemented from FileRenderer. Definition at line 357 of file LibTachyonDisplayDevice.C. References FileRenderer::colorIndex, FileRenderer::materialIndex, Stack< Matrix4 >::top, and FileRenderer::transMat. |
|
triangle with interpolated surface normals and vertex colors.
Reimplemented from FileRenderer. Definition at line 385 of file LibTachyonDisplayDevice.C. References FileRenderer::materialIndex, Stack< Matrix4 >::top, and FileRenderer::transMat. |
|
triangle strips built from a vertex array and vertex index arrays.
Reimplemented from FileRenderer. Definition at line 434 of file LibTachyonDisplayDevice.C. References FileRenderer::materialIndex, Matrix4::multnorm3d, Matrix4::multpoint3d, Stack< Matrix4 >::top, and FileRenderer::transMat. |
|
disable volumetric texturing.
Reimplemented from FileRenderer. Definition at line 706 of file LibTachyonDisplayDevice.C. |
|
enable volumetric texturing, either in "replace" or "modulate" mode.
Reimplemented from FileRenderer. Definition at line 700 of file LibTachyonDisplayDevice.C. |
|
write the header info. This is an alias for prepare3D.
Reimplemented from FileRenderer. Definition at line 506 of file LibTachyonDisplayDevice.C. References DisplayDevice::ao_enabled, FileRenderer::aosamples, checkfileextension, DisplayDevice::dof_enabled, DisplayDevice::get_ao_ambient, DisplayDevice::get_ao_direct, DisplayDevice::get_dof_fnumber, DisplayDevice::get_dof_focal_dist, FileRenderer::my_filename, NULL, DisplayDevice::PERSPECTIVE, DisplayDevice::projection, DisplayDevice::shadows_enabled, wkf_timer_start, DisplayDevice::xSize, and DisplayDevice::ySize. |
|
write any trailer info. This is called by update.
Reimplemented from FileRenderer. Definition at line 644 of file LibTachyonDisplayDevice.C. References wkf_timer_stop, and wkf_timer_time. |