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

ANARIDisplayDevice Class Reference

FileRenderer subclass to exports VMD scenes to ANARI. More...

#include <ANARIDisplayDevice.h>

Inheritance diagram for ANARIDisplayDevice:

FileRenderer DisplayDevice List of all members.

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


Detailed Description

FileRenderer subclass to exports VMD scenes to ANARI.

Definition at line 49 of file ANARIDisplayDevice.h.


Constructor & Destructor Documentation

ANARIDisplayDevice::ANARIDisplayDevice VMDApp  ,
int    interactive
 

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.

ANARIDisplayDevice::~ANARIDisplayDevice void    [virtual]
 

destructor.

Definition at line 97 of file ANARIDisplayDevice.C.

References NULL, and wkf_timer_destroy.


Member Function Documentation

void ANARIDisplayDevice::ANARI_Global_Init void    [static]
 

global init, call ONCE.

Definition at line 58 of file ANARIDisplayDevice.C.

References ANARIRender::ANARI_Global_Init.

Referenced by FileRenderList::FileRenderList.

void ANARIDisplayDevice::ANARI_Global_Shutdown void    [static]
 

global shutdown, call ONCE.

Definition at line 63 of file ANARIDisplayDevice.C.

References ANARIRender::ANARI_Global_Shutdown.

Referenced by FileRenderList::~FileRenderList.

void ANARIDisplayDevice::comment const char *    [protected, virtual]
 

Comment describing representation geometry.

Reimplemented from FileRenderer.

Definition at line 118 of file ANARIDisplayDevice.C.

References ANARIRender::comment.

void ANARIDisplayDevice::send_triangle_buffer void    [protected]
 

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.

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

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.

void ANARIDisplayDevice::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 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.

void ANARIDisplayDevice::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 343 of file ANARIDisplayDevice.C.

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

void ANARIDisplayDevice::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 378 of file ANARIDisplayDevice.C.

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

void ANARIDisplayDevice::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 365 of file ANARIDisplayDevice.C.

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

void ANARIDisplayDevice::trimesh_c4u_n3f_v3f unsigned char *    c,
float *    n,
float *    v,
int    numfacets
[protected, virtual]
 

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.

void ANARIDisplayDevice::trimesh_n3b_v3f signed char *    n,
float *    v,
int    numfacets
[protected, virtual]
 

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.

void ANARIDisplayDevice::trimesh_n3f_v3f float *    n,
float *    v,
int    numfacets
[protected, virtual]
 

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.

void ANARIDisplayDevice::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 404 of file ANARIDisplayDevice.C.

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

void ANARIDisplayDevice::write_header void    [virtual]
 

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

Reimplemented from FileRenderer.

Definition at line 525 of file ANARIDisplayDevice.C.

References FileRenderer::aasamples, DisplayDevice::ao_enabled, FileRenderer::aosamples, DisplayDevice::CUE_EXP, DisplayDevice::CUE_EXP2, DisplayDevice::CUE_LINEAR, DisplayDevice::dof_enabled, ANARIRender::dof_on, DisplayDevice::get_ao_ambient, DisplayDevice::get_ao_direct, DisplayDevice::get_cue_density, DisplayDevice::get_cue_end, DisplayDevice::get_cue_start, DisplayDevice::get_dof_fnumber, DisplayDevice::get_dof_focal_dist, DisplayDevice::NUM_CUE_MODES, ANARIRender::RT_FOG_EXP, ANARIRender::RT_FOG_EXP2, ANARIRender::RT_FOG_LINEAR, ANARIRender::RT_FOG_NONE, ANARIRender::set_aa_samples, ANARIRender::set_ao_ambient, ANARIRender::set_ao_direct, ANARIRender::set_ao_samples, ANARIRender::set_camera_dof_fnumber, ANARIRender::set_camera_dof_focal_dist, ANARIRender::set_cue_mode, ANARIRender::setup_context, DisplayDevice::shadows_enabled, ANARIRender::shadows_on, wkf_timer_start, DisplayDevice::xSize, and DisplayDevice::ySize.

void ANARIDisplayDevice::write_trailer void    [virtual]
 

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.


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