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

RenderManDisplayDevice Class Reference

FileRenderer subclass to exports VMD scenes to Renderman RIB scene format. More...

#include <RenderManDisplayDevice.h>

Inheritance diagram for RenderManDisplayDevice:

FileRenderer DisplayDevice List of all members.

Public Methods

 RenderManDisplayDevice (void)
 constructor ... initialize some variables. More...

virtual ~RenderManDisplayDevice (void)
 destructor. 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 text (float *pos, float size, float thickness, const char *str)
 draw text at specified location. More...

void point (float *xyz)
 draw a point. More...

void sphere (float *xyzr)
 draw a sphere. More...

void line (float *xyz1, float *xyz2)
 draw a line (cylinder) from a to b. More...

void cylinder (float *, float *, float rad, int filled)
 draw a cylinder. More...

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

void trimesh_c4u_n3b_v3f (unsigned char *c, signed char *n, float *v, int numfacets)
 triangle mesh built from a vertex array. 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...

void square (float *, float *, float *, float *, float *)
 draw a quadrilateral. More...

void comment (const char *)
 Comment describing representation geometry. More...


Detailed Description

FileRenderer subclass to exports VMD scenes to Renderman RIB scene format.

Definition at line 28 of file RenderManDisplayDevice.h.


Constructor & Destructor Documentation

RenderManDisplayDevice::RenderManDisplayDevice void   
 

constructor ... initialize some variables.

Definition at line 37 of file RenderManDisplayDevice.C.

RenderManDisplayDevice::~RenderManDisplayDevice void    [virtual]
 

destructor.

Definition at line 43 of file RenderManDisplayDevice.C.


Member Function Documentation

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

Comment describing representation geometry.

Reimplemented from FileRenderer.

Definition at line 605 of file RenderManDisplayDevice.C.

References FileRenderer::outfile.

void RenderManDisplayDevice::cone float *    a,
float *    b,
float    rad,
int   
[protected, virtual]
 

draw a cone.

Reimplemented from FileRenderer.

Definition at line 271 of file RenderManDisplayDevice.C.

References DEFAULT_RADIUS, FileRenderer::outfile, FileRenderer::scale_radius, Stack< Matrix4 >::top, FileRenderer::transMat, and VMD_PI.

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

draw a cylinder.

Reimplemented from FileRenderer.

Definition at line 205 of file RenderManDisplayDevice.C.

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

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

draw a line (cylinder) from a to b.

Reimplemented from FileRenderer.

Definition at line 162 of file RenderManDisplayDevice.C.

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

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

draw a point.

Reimplemented from FileRenderer.

Definition at line 124 of file RenderManDisplayDevice.C.

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

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

draw a sphere.

Reimplemented from FileRenderer.

Definition at line 141 of file RenderManDisplayDevice.C.

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

void RenderManDisplayDevice::square float *    n,
float *    a,
float *    b,
float *    c,
float *    d
[protected, virtual]
 

draw a quadrilateral.

Reimplemented from FileRenderer.

Definition at line 578 of file RenderManDisplayDevice.C.

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

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

draw text at specified location.

Reimplemented from FileRenderer.

Definition at line 58 of file RenderManDisplayDevice.C.

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

void RenderManDisplayDevice::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 322 of file RenderManDisplayDevice.C.

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

void RenderManDisplayDevice::tricolor const float *    a,
const float *    b,
const float *    c,
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 348 of file RenderManDisplayDevice.C.

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

void RenderManDisplayDevice::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 381 of file RenderManDisplayDevice.C.

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

void RenderManDisplayDevice::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 435 of file RenderManDisplayDevice.C.

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

void RenderManDisplayDevice::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 508 of file RenderManDisplayDevice.C.

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

void RenderManDisplayDevice::write_header void    [virtual]
 

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

Reimplemented from FileRenderer.

Definition at line 611 of file RenderManDisplayDevice.C.

References DisplayDevice::Aspect, FileRenderer::backColor, DISP_LIGHTS, DisplayDevice::eyePos, FileRenderer::lightState, n, FileRenderer::outfile, DisplayDevice::PERSPECTIVE, DisplayDevice::projection, VMD_1_PI, DisplayDevice::vSize, DisplayDevice::xSize, DisplayDevice::ySize, and DisplayDevice::zDist.

void RenderManDisplayDevice::write_trailer void    [virtual]
 

write any trailer info. This is called by update.

Reimplemented from FileRenderer.

Definition at line 693 of file RenderManDisplayDevice.C.

References FileRenderer::outfile.


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