#include <Vrml2DisplayDevice.h>
Inheritance diagram for Vrml2DisplayDevice:
Public Methods | |
Vrml2DisplayDevice (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 | cone (float *a, float *b, float rad, int) |
draw a single-radius cone (pointy top). More... | |
void | cylinder (float *a, float *b, 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... | |
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... | |
void | load (const Matrix4 &mat) |
load transofrmation matrix. More... | |
void | multmatrix (const Matrix4 &mat) |
concatenate transformation. More... | |
void | set_color (int color_index) |
set the colorID. More... |
Definition at line 34 of file Vrml2DisplayDevice.h.
|
Definition at line 45 of file Vrml2DisplayDevice.C. |
|
Comment describing representation geometry.
Reimplemented from FileRenderer. Definition at line 641 of file Vrml2DisplayDevice.C. References FileRenderer::outfile. |
|
draw a single-radius cone (pointy top).
Reimplemented from FileRenderer. Definition at line 318 of file Vrml2DisplayDevice.C. References FileRenderer::colorIndex, cross_prod, distance, dot_prod, FileRenderer::materialIndex, FileRenderer::outfile, FileRenderer::scale_radius, Stack< Matrix4 >::top, FileRenderer::transMat, vec_normalize, and vec_sub. |
|
draw a cylinder, with optional caps.
Reimplemented from FileRenderer. Definition at line 240 of file Vrml2DisplayDevice.C. References FileRenderer::scale_radius, Stack< Matrix4 >::top, and FileRenderer::transMat. |
|
draw a single line.
Reimplemented from FileRenderer. Definition at line 166 of file Vrml2DisplayDevice.C. References FileRenderer::colorIndex, DASH_LENGTH, FileRenderer::lineStyle, FileRenderer::matData, FileRenderer::materialIndex, FileRenderer::outfile, Stack< Matrix4 >::top, FileRenderer::transMat, vec_copy, vec_normalize, and vec_sub. |
|
load transofrmation matrix.
Reimplemented from FileRenderer. Definition at line 637 of file Vrml2DisplayDevice.C. References mat. |
|
concatenate transformation.
Reimplemented from FileRenderer. Definition at line 633 of file Vrml2DisplayDevice.C. References mat. |
|
draw an unlit point.
Reimplemented from FileRenderer. Definition at line 140 of file Vrml2DisplayDevice.C. References FileRenderer::colorIndex, FileRenderer::matData, FileRenderer::materialIndex, FileRenderer::outfile, Stack< Matrix4 >::top, FileRenderer::transMat, and vec_copy. |
|
set the colorID.
Reimplemented from FileRenderer. Definition at line 50 of file Vrml2DisplayDevice.C. References FileRenderer::materialIndex. |
|
draw a sphere.
Reimplemented from FileRenderer. Definition at line 121 of file Vrml2DisplayDevice.C. References FileRenderer::colorIndex, FileRenderer::materialIndex, FileRenderer::outfile, FileRenderer::scale_radius, Stack< Matrix4 >::top, and FileRenderer::transMat. |
|
draw text at specified location.
Reimplemented from FileRenderer. Definition at line 57 of file Vrml2DisplayDevice.C. References FileRenderer::colorIndex, hersheyDrawInitLetter, hersheyDrawNextLine, FileRenderer::matData, FileRenderer::materialIndex, FileRenderer::outfile, size, Stack< Matrix4 >::top, FileRenderer::transMat, vec_copy, DisplayDevice::x, and DisplayDevice::y. |
|
single color triangle with interpolated surface normals.
Reimplemented from FileRenderer. Definition at line 369 of file Vrml2DisplayDevice.C. References FileRenderer::colorIndex, FileRenderer::materialIndex, FileRenderer::outfile, Stack< Matrix4 >::top, and FileRenderer::transMat. |
|
triangle with interpolated surface normals and vertex colors.
Reimplemented from FileRenderer. Definition at line 401 of file Vrml2DisplayDevice.C. References FileRenderer::colorIndex, FileRenderer::materialIndex, FileRenderer::outfile, Stack< Matrix4 >::top, and FileRenderer::transMat. |
|
triangle mesh built from a vertex array and facet vertex index arrays.
Reimplemented from FileRenderer. Definition at line 438 of file Vrml2DisplayDevice.C. References FileRenderer::colorIndex, FileRenderer::materialIndex, n, FileRenderer::outfile, Stack< Matrix4 >::top, and FileRenderer::transMat. |
|
triangle mesh built from a vertex array.
Reimplemented from FileRenderer. Definition at line 493 of file Vrml2DisplayDevice.C. References FileRenderer::colorIndex, FileRenderer::materialIndex, n, FileRenderer::outfile, Stack< Matrix4 >::top, and FileRenderer::transMat. |
|
triangle strips built from a vertex array and vertex index arrays.
Reimplemented from FileRenderer. Definition at line 566 of file Vrml2DisplayDevice.C. References FileRenderer::colorIndex, FileRenderer::materialIndex, n, FileRenderer::outfile, Stack< Matrix4 >::top, and FileRenderer::transMat. |
|
write the header info. This is an alias for prepare3D.
Reimplemented from FileRenderer. Definition at line 648 of file Vrml2DisplayDevice.C. References FileRenderer::backColor, FileRenderer::backgradientbotcolor, FileRenderer::backgradienttopcolor, DisplayDevice::backgroundmode, and FileRenderer::outfile. |
|
write any trailer info. This is called by update.
Reimplemented from FileRenderer. Definition at line 718 of file Vrml2DisplayDevice.C. References FileRenderer::outfile. |