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

TachyonDisplayDevice Class Reference

FileRenderer subclass to export VMD scenes to the Tachyon scene format. More...

#include <TachyonDisplayDevice.h>

Inheritance diagram for TachyonDisplayDevice:

FileRenderer DisplayDevice List of all members.

Public Methods

 TachyonDisplayDevice (void)
virtual ~TachyonDisplayDevice (void)
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 comment (const char *)
 Comment describing representation geometry. More...

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...

virtual void trimesh_c4n3v3 (int numverts, float *cnv, int numfacets, int *facets)
 triangle mesh built from a vertex array and facet vertex index arrays. 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 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...

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...


Detailed Description

FileRenderer subclass to export VMD scenes to the Tachyon scene format.

Definition at line 30 of file TachyonDisplayDevice.h.


Constructor & Destructor Documentation

TachyonDisplayDevice::TachyonDisplayDevice void   
 

Definition at line 103 of file TachyonDisplayDevice.C.

References FileRenderer::aasamples, NameList< int >::add_name, FileRenderer::aosamples, FileRenderer::curformat, FileRenderer::formats, get_tachyon_run_string, and FileRenderer::has_aa.

TachyonDisplayDevice::~TachyonDisplayDevice void    [virtual]
 

Definition at line 128 of file TachyonDisplayDevice.C.


Member Function Documentation

void TachyonDisplayDevice::comment const char *    s [protected, virtual]
 

Comment describing representation geometry.

Reimplemented from FileRenderer.

Definition at line 143 of file TachyonDisplayDevice.C.

References FileRenderer::outfile.

void TachyonDisplayDevice::cylinder float *   ,
float *   ,
float    rad,
int    filled
[protected, virtual]
 

draw a cylinder, with optional caps.

Reimplemented from FileRenderer.

Definition at line 325 of file TachyonDisplayDevice.C.

References FileRenderer::colorIndex, CYLINDER_LEADINGCAP, CYLINDER_TRAILINGCAP, FileRenderer::materialIndex, FileRenderer::outfile, FileRenderer::scale_radius, Stack< Matrix4 >::top, and FileRenderer::transMat.

void TachyonDisplayDevice::define_volume_texture int    ID,
int    xs,
int    ys,
int    zs,
const float *    xpq,
const float *    ypq,
const float *    zpq,
unsigned char *    texmap
[protected, virtual]
 

define a volumetric texture map.

Reimplemented from FileRenderer.

Definition at line 622 of file TachyonDisplayDevice.C.

References FileRenderer::outfile, DisplayDevice::x, DisplayDevice::y, and z.

void TachyonDisplayDevice::end_clipgroup void    [protected, virtual]
 

terminate clipping plane group.

Reimplemented from FileRenderer.

Definition at line 793 of file TachyonDisplayDevice.C.

References FileRenderer::outfile.

void TachyonDisplayDevice::line float *    xyz1,
float *    xyz2
[protected, virtual]
 

draw a single line.

Reimplemented from FileRenderer.

Definition at line 269 of file TachyonDisplayDevice.C.

References FileRenderer::colorIndex, DASH_LENGTH, DEFAULT_RADIUS, FileRenderer::lineStyle, FileRenderer::lineWidth, FileRenderer::materialIndex, FileRenderer::outfile, Stack< Matrix4 >::top, FileRenderer::transMat, vec_copy, vec_normalize, and vec_sub.

void TachyonDisplayDevice::point float *    spdata [protected, virtual]
 

draw an unlit point.

Reimplemented from FileRenderer.

Definition at line 212 of file TachyonDisplayDevice.C.

References FileRenderer::colorIndex, DEFAULT_RADIUS, FileRenderer::lineWidth, FileRenderer::materialIndex, FileRenderer::outfile, Stack< Matrix4 >::top, and FileRenderer::transMat.

void TachyonDisplayDevice::sphere float *    xyzr [protected, virtual]
 

draw a sphere.

Reimplemented from FileRenderer.

Definition at line 226 of file TachyonDisplayDevice.C.

References FileRenderer::colorIndex, FileRenderer::materialIndex, FileRenderer::outfile, FileRenderer::scale_radius, Stack< Matrix4 >::top, and FileRenderer::transMat.

void TachyonDisplayDevice::sphere_array int    num,
int    res,
float *    centers,
float *    radii,
float *    colors
[protected, virtual]
 

draw a sphere array.

Reimplemented from FileRenderer.

Definition at line 243 of file TachyonDisplayDevice.C.

References FileRenderer::materialIndex, FileRenderer::nearest_index, FileRenderer::outfile, FileRenderer::scale_radius, FileRenderer::super_set_color, Stack< Matrix4 >::top, and FileRenderer::transMat.

void TachyonDisplayDevice::start_clipgroup void    [protected, virtual]
 

emit clipping plane group.

Reimplemented from FileRenderer.

Definition at line 682 of file TachyonDisplayDevice.C.

References FileRenderer::clip_center, FileRenderer::clip_mode, FileRenderer::clip_normal, dot_prod, FILERENDERER_NOCLIP, FileRenderer::outfile, Stack< Matrix4 >::top, FileRenderer::transMat, vec_negate, VMD_MAX_CLIP_PLANE, and FileRenderer::warningflags.

void TachyonDisplayDevice::text float *    pos,
float    size,
float    thickness,
const char *    str
[protected, virtual]
 

draw text at specified location.

Reimplemented from FileRenderer.

Definition at line 148 of file TachyonDisplayDevice.C.

References FileRenderer::colorIndex, DEFAULT_RADIUS, hersheyDrawInitLetter, hersheyDrawNextLine, FileRenderer::materialIndex, FileRenderer::outfile, size, Stack< Matrix4 >::top, FileRenderer::transMat, DisplayDevice::x, and DisplayDevice::y.

void TachyonDisplayDevice::triangle const float *    a,
const float *    b,
const float *    c,
const float *    n1,
const float *    n2,
const float *    n3
[protected, virtual]
 

single color triangle with interpolated surface normals.

Reimplemented from FileRenderer.

Definition at line 374 of file TachyonDisplayDevice.C.

References FileRenderer::colorIndex, FileRenderer::materialIndex, FileRenderer::outfile, Stack< Matrix4 >::top, and FileRenderer::transMat.

void TachyonDisplayDevice::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
[protected, virtual]
 

triangle with interpolated surface normals and vertex colors.

Reimplemented from FileRenderer.

Definition at line 401 of file TachyonDisplayDevice.C.

References FileRenderer::mat_ambient, FileRenderer::mat_diffuse, FileRenderer::mat_mirror, FileRenderer::mat_opacity, FileRenderer::mat_outline, FileRenderer::mat_outlinewidth, FileRenderer::mat_shininess, FileRenderer::mat_specular, FileRenderer::mat_transmode, FileRenderer::outfile, Stack< Matrix4 >::top, and FileRenderer::transMat.

void TachyonDisplayDevice::trimesh_c4n3v3 int    numverts,
float *    cnv,
int    numfacets,
int *    facets
[protected, virtual]
 

triangle mesh built from a vertex array and facet vertex index arrays.

Reimplemented from FileRenderer.

Definition at line 460 of file TachyonDisplayDevice.C.

References FileRenderer::colorIndex, FileRenderer::materialIndex, FileRenderer::outfile, Stack< Matrix4 >::top, and FileRenderer::transMat.

void TachyonDisplayDevice::trimesh_c4u_n3b_v3f unsigned char *    c,
signed char *    n,
float *    v,
int    numfacets
[protected, virtual]
 

triangle mesh built from a vertex array.

Reimplemented from FileRenderer.

Definition at line 506 of file TachyonDisplayDevice.C.

References FileRenderer::colorIndex, FileRenderer::materialIndex, n, FileRenderer::outfile, Stack< Matrix4 >::top, and FileRenderer::transMat.

void TachyonDisplayDevice::tristrip int    numverts,
const float *    cnv,
int    numstrips,
const int *    vertsperstrip,
const int *    facets
[protected, virtual]
 

triangle strips built from a vertex array and vertex index arrays.

Reimplemented from FileRenderer.

Definition at line 570 of file TachyonDisplayDevice.C.

References FileRenderer::colorIndex, FileRenderer::materialIndex, FileRenderer::outfile, Stack< Matrix4 >::top, and FileRenderer::transMat.

void TachyonDisplayDevice::update_exec_cmd   [protected, virtual]
 

Renderer-specific function to update execCmd based on the current state of aasamples, image size, etc. Default implementation is to do nothing.

Reimplemented from FileRenderer.

Definition at line 58 of file TachyonDisplayDevice.C.

References FileRenderer::aasamples, FileRenderer::execCmd, NULL, stringdup, and tachyon_run_string.

void TachyonDisplayDevice::volume_texture_off void    [protected, virtual]
 

disable volumetric texturing.

Reimplemented from FileRenderer.

Definition at line 677 of file TachyonDisplayDevice.C.

void TachyonDisplayDevice::volume_texture_on int    texmode [protected, virtual]
 

enable volumetric texturing, either in "replace" or "modulate" mode.

Reimplemented from FileRenderer.

Definition at line 671 of file TachyonDisplayDevice.C.

void TachyonDisplayDevice::write_header void    [virtual]
 

write the header info. This is an alias for prepare3D.

Reimplemented from FileRenderer.

Definition at line 729 of file TachyonDisplayDevice.C.

References DisplayDevice::ao_enabled, FileRenderer::aosamples, DisplayDevice::get_ao_ambient, DisplayDevice::get_ao_direct, FileRenderer::outfile, DisplayDevice::shadows_enabled, TACHYON_RUN_STRING, DisplayDevice::xSize, and DisplayDevice::ySize.

void TachyonDisplayDevice::write_trailer void    [virtual]
 

write any trailer info. This is called by update.

Reimplemented from FileRenderer.

Definition at line 801 of file TachyonDisplayDevice.C.

References FileRenderer::outfile.


The documentation for this class was generated from the following files:
Generated on Sat Dec 7 02:45:54 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002