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

LibTachyonDisplayDevice Class Reference

FileRenderer subclass renders via compiled-in Tachyon ray tracing engine. More...

#include <LibTachyonDisplayDevice.h>

Inheritance diagram for LibTachyonDisplayDevice:

FileRenderer DisplayDevice List of all members.

Public Methods

 LibTachyonDisplayDevice (void)
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)
void line (float *xyz1, float *xyz2)
void point (float *xyz)
void sphere (float *xyzr)
virtual void square (float *norm, float *a, float *b, float *c, float *d)
void triangle (const float *, const float *, const float *, const float *, const float *, const float *)
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)
void tristrip (int numverts, const float *cnv, int numstrips, const int *vertsperstrip, const int *facets)
void start_clipgroup (void)
 emit clipping plane group. More...

void end_clipgroup (void)
 terminate clipping plane group. More...


Detailed Description

FileRenderer subclass renders via compiled-in Tachyon ray tracing engine.

Definition at line 31 of file LibTachyonDisplayDevice.h.


Constructor & Destructor Documentation

LibTachyonDisplayDevice::LibTachyonDisplayDevice void   
 

Definition at line 42 of file LibTachyonDisplayDevice.C.

References NULL.

LibTachyonDisplayDevice::~LibTachyonDisplayDevice void    [virtual]
 

Definition at line 47 of file LibTachyonDisplayDevice.C.


Member Function Documentation

void LibTachyonDisplayDevice::close_file void    [virtual]
 

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 359 of file LibTachyonDisplayDevice.C.

References FileRenderer::isOpened, FileRenderer::my_filename, NULL, and FileRenderer::outfile.

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

Reimplemented from FileRenderer.

Definition at line 163 of file LibTachyonDisplayDevice.C.

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

void LibTachyonDisplayDevice::end_clipgroup void    [protected, virtual]
 

terminate clipping plane group.

Reimplemented from FileRenderer.

Definition at line 498 of file LibTachyonDisplayDevice.C.

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

Reimplemented from FileRenderer.

Definition at line 95 of file LibTachyonDisplayDevice.C.

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

int LibTachyonDisplayDevice::open_file const char *    filename [virtual]
 

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 353 of file LibTachyonDisplayDevice.C.

References FileRenderer::isOpened, FileRenderer::my_filename, and stringdup.

void LibTachyonDisplayDevice::point float *    xyz [protected, virtual]
 

Reimplemented from FileRenderer.

Definition at line 64 of file LibTachyonDisplayDevice.C.

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

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

Reimplemented from FileRenderer.

Definition at line 78 of file LibTachyonDisplayDevice.C.

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

virtual void LibTachyonDisplayDevice::square float *    norm,
float *    a,
float *    b,
float *    c,
float *    d
[inline, protected, virtual]
 

Reimplemented from FileRenderer.

Definition at line 51 of file LibTachyonDisplayDevice.h.

References triangle.

void LibTachyonDisplayDevice::start_clipgroup void    [protected, virtual]
 

emit clipping plane group.

Reimplemented from FileRenderer.

Definition at line 450 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.

void LibTachyonDisplayDevice::triangle const float *   ,
const float *   ,
const float *   ,
const float *   ,
const float *   ,
const float *   
[protected, virtual]
 

Reimplemented from FileRenderer.

Definition at line 212 of file LibTachyonDisplayDevice.C.

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

Referenced by square.

void LibTachyonDisplayDevice::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]
 

Reimplemented from FileRenderer.

Definition at line 240 of file LibTachyonDisplayDevice.C.

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

Referenced by tristrip.

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

Reimplemented from FileRenderer.

Definition at line 278 of file LibTachyonDisplayDevice.C.

References FileRenderer::materialIndex, Matrix4::multnorm3d, Matrix4::multpoint3d, Stack< Matrix4 >::top, FileRenderer::transMat, and tricolor.

void LibTachyonDisplayDevice::write_header void    [virtual]
 

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

Reimplemented from FileRenderer.

Definition at line 382 of file LibTachyonDisplayDevice.C.

References checkfileextension, FileRenderer::my_filename, DisplayDevice::xSize, and DisplayDevice::ySize.

void LibTachyonDisplayDevice::write_trailer void    [virtual]
 

write any trailer info. This is called by update.

Reimplemented from FileRenderer.

Definition at line 429 of file LibTachyonDisplayDevice.C.


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