#include <ANARIDisplayDevice.h>
Inheritance diagram for ANARIDisplayDevice:
Public Methods | |
ANARIDisplayDevice (VMDApp *, int interactive) | |
constructor ... initialize some variables. More... | |
virtual | ~ANARIDisplayDevice (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... | |
Static Public Methods | |
void | ANARI_Global_Init (void) |
global init, call ONCE. More... | |
void | ANARI_Global_Shutdown (void) |
global shutdown, call ONCE. More... | |
Protected Methods | |
void | comment (const char *) |
Comment describing representation geometry. More... | |
void | sphere_array (int num, int res, float *centers, float *radii, float *colors) |
draw a sphere array. More... | |
void | send_triangle_buffer (void) |
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_c4u_n3b_v3f (unsigned char *c, signed char *n, float *v, int numfacets) |
triangle mesh built from a vertex array. More... | |
void | trimesh_c4u_n3f_v3f (unsigned char *c, float *n, float *v, int numfacets) |
triangle mesh built from a vertex array. 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_n3b_v3f (signed char *n, float *v, int numfacets) |
void | trimesh_n3f_v3f (float *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... |
Definition at line 49 of file ANARIDisplayDevice.h.
|
constructor ... initialize some variables.
Definition at line 69 of file ANARIDisplayDevice.C. References FileRenderer::aasamples, NameList< int >::add_name, FileRenderer::aosamples, FileRenderer::curformat, FileRenderer::formats, FileRenderer::has_aa, DisplayDevice::vmdapp, and wkf_timer_create. |
|
destructor.
Definition at line 97 of file ANARIDisplayDevice.C. References NULL, and wkf_timer_destroy. |
|
global init, call ONCE.
Definition at line 58 of file ANARIDisplayDevice.C. References ANARIRender::ANARI_Global_Init. Referenced by FileRenderList::FileRenderList. |
|
global shutdown, call ONCE.
Definition at line 63 of file ANARIDisplayDevice.C. References ANARIRender::ANARI_Global_Shutdown. Referenced by FileRenderList::~FileRenderList. |
|
Comment describing representation geometry.
Reimplemented from FileRenderer. Definition at line 118 of file ANARIDisplayDevice.C. References ANARIRender::comment. |
|
Definition at line 302 of file ANARIDisplayDevice.C. References FileRenderer::matData, NULL, ResizeArray< float >::num, and ANARIRender::trimesh_n3f_v3f. Referenced by triangle, and write_trailer. |
|
draw a sphere array.
Reimplemented from FileRenderer. Definition at line 215 of file ANARIDisplayDevice.C. References FileRenderer::materialIndex, FileRenderer::nearest_index, FileRenderer::scale_factor, ANARIRender::sphere_array_color, FileRenderer::super_set_color, Stack< Matrix4 >::top, and FileRenderer::transMat. |
|
single color triangle with interpolated surface normals.
Reimplemented from FileRenderer. Definition at line 318 of file ANARIDisplayDevice.C. References ResizeArray< float >::append3x3, FileRenderer::colorIndex, Matrix4::mat, FileRenderer::materialIndex, NULL, send_triangle_buffer, Stack< Matrix4 >::top, and FileRenderer::transMat. |
|
triangle with interpolated surface normals and vertex colors.
Reimplemented from FileRenderer. Definition at line 343 of file ANARIDisplayDevice.C. References FileRenderer::materialIndex, Stack< Matrix4 >::top, FileRenderer::transMat, ANARIRender::tricolor_list, and vec_copy. |
|
triangle mesh built from a vertex array and facet vertex index arrays.
Reimplemented from FileRenderer. Definition at line 378 of file ANARIDisplayDevice.C. References FileRenderer::materialIndex, Stack< Matrix4 >::top, FileRenderer::transMat, and ANARIRender::trimesh_c4n3v3. |
|
triangle mesh built from a vertex array.
Reimplemented from FileRenderer. Definition at line 365 of file ANARIDisplayDevice.C. References FileRenderer::materialIndex, n, Stack< Matrix4 >::top, FileRenderer::transMat, and ANARIRender::trimesh_c4u_n3b_v3f. |
|
triangle mesh built from a vertex array.
Reimplemented from FileRenderer. Definition at line 372 of file ANARIDisplayDevice.C. References FileRenderer::materialIndex, n, Stack< Matrix4 >::top, FileRenderer::transMat, and ANARIRender::trimesh_c4u_n3f_v3f. |
|
Reimplemented from FileRenderer. Definition at line 385 of file ANARIDisplayDevice.C. References FileRenderer::colorIndex, FileRenderer::matData, FileRenderer::materialIndex, n, Stack< Matrix4 >::top, FileRenderer::transMat, and ANARIRender::trimesh_n3b_v3f. |
|
triangle mesh built from a vertex array.
Reimplemented from FileRenderer. Definition at line 390 of file ANARIDisplayDevice.C. References FileRenderer::colorIndex, FileRenderer::matData, FileRenderer::materialIndex, n, Stack< Matrix4 >::top, FileRenderer::transMat, and ANARIRender::trimesh_n3f_v3f. |
|
triangle strips built from a vertex array and vertex index arrays.
Reimplemented from FileRenderer. Definition at line 404 of file ANARIDisplayDevice.C. References FileRenderer::materialIndex, Stack< Matrix4 >::top, FileRenderer::transMat, and ANARIRender::tristrip. |
|
|
write any trailer info. This is called by update.
Reimplemented from FileRenderer. Definition at line 596 of file ANARIDisplayDevice.C. References ANARIRender::destroy_scene, DisplayDevice::eyeDist, DisplayDevice::eyePos, DisplayDevice::eyeSep, FileRenderer::my_filename, NULL, DisplayDevice::ORTHOGRAPHIC, DisplayDevice::PERSPECTIVE, DisplayDevice::projection, ANARIRender::render_to_file, ANARIRender::RT_ORTHOGRAPHIC, ANARIRender::RT_PERSPECTIVE, send_triangle_buffer, ANARIRender::set_camera_projection, ANARIRender::set_camera_stereo_convergence_dist, ANARIRender::set_camera_stereo_eyesep, ANARIRender::set_camera_zoom, strupcmp, DisplayDevice::vSize, wkf_timer_stop, wkf_timer_time, wkf_timer_timenow, and DisplayDevice::zDist. |