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

OSPRay2Renderer Class Reference

#include <OSPRay2Renderer.h>

List of all members.


Public Types

enum RtShadowMode { RT_SHADOWS_OFF = 0, RT_SHADOWS_ON = 1 }
enum FogMode { RT_FOG_NONE = 0, RT_FOG_LINEAR = 1, RT_FOG_EXP = 2, RT_FOG_EXP2 = 3 }
enum CameraProjection { RT_PERSPECTIVE = 0, RT_ORTHOGRAPHIC = 1 }
enum Verbosity { RT_VERB_MIN = 0, RT_VERB_TIMING = 1, RT_VERB_DEBUG = 2 }
enum BGMode { RT_BACKGROUND_TEXTURE_SOLID = 0, RT_BACKGROUND_TEXTURE_SKY_SPHERE = 1, RT_BACKGROUND_TEXTURE_SKY_ORTHO_PLANE = 2 }
enum RenderMode { RT_SCIVIS = 0, RT_PATHTRACER = 1 }

Public Methods

OSPRay2Renderer (void)
normal constructors and destructors. More...

~OSPRay2Renderer (void)
destructor. More...

void check_verbose_env ()
check environment variables that modify verbose output. More...

void setup_context (int width, int height)
(re)configure the OSPRay context. More...

void reposp_context_stats (void)
report various context statistics for memory leak debugging, etc. More...

void shadows_on (int onoff)
shadows. More...

void set_aa_samples (int cnt)
antialiasing (samples > 1 == on). More...

void set_camera_projection (CameraProjection m)
set the camera projection mode. More...

void set_camera_zoom (float zoomfactor)
set camera zoom factor. More...

void set_camera_stereo_eyesep (float eyesep)
set stereo eye separation. More...

void set_camera_stereo_convergence_dist (float dist)
set stereo convergence distance. More...

void dof_on (int onoff)
depth of field on/off. More...

void set_camera_dof_focal_dist (float d)
set depth of field focal plane distance. More...

void set_camera_dof_fnumber (float n)
set depth of field f/stop number. More...

void set_ao_samples (int cnt)
ambient occlusion (samples > 1 == on). More...

void set_ao_ambient (float aoa)
set AO ambient lighting factor. More...

void set_ao_direct (float aod)
set AO direct lighting factor. More...

void set_bg_mode (BGMode m)
void set_bg_color (float *rgb)
void set_bg_color_grad_top (float *rgb)
void set_bg_color_grad_bot (float *rgb)
void set_bg_gradient (float *vec)
void set_bg_gradient_topval (float v)
void set_bg_gradient_botval (float v)
void set_cue_mode (FogMode mode, float start, float end, float density)
void init_materials ()
void add_material (int matindex, float ambient, float diffuse, float specular, float shininess, float reflectivity, float opacity, float outline, float outlinewidth, int transmode)
void set_material (OSPGeometricModel &model, int matindex, float *uniform_color)
void attach_sphere_array (int numsp, int matindex, osp_sphere_array_color &sparray)
void attach_cylinder_array (int numcyl, int matindex, osp_cylinder_array_color &cylarray)
void attach_mesh (int numverts, int numfacets, int matindex, osp_trimesh_v3f_n3f_c3f &mesh)
void clear_all_lights ()
void headlight_onoff (int onoff)
void add_directional_light (const float *dir, const float *color)
void add_positional_light (const float *pos, const float *color)
void update_rendering_state (int interactive)
void framebuffer_config (int fbwidth, int fbheight)
void framebuffer_resize (int fbwidth, int fbheight)
void framebuffer_destroy (void)
void render_compile_and_validate (void)
void render_to_file (const char *filename)
void destroy_scene (void)
void cylinder_array (Matrix4 *wtrans, float rscale, float *uniform_color, int cylnum, float *points, int matindex)
void cylinder_array_color (Matrix4 &wtrans, float rscale, int cylnum, float *points, float *radii, float *colors, int matindex)
void sphere_array (Matrix4 *wtrans, float rscale, float *uniform_color, int spnum, float *centers, float *radii, int matindex)
void sphere_array_color (Matrix4 &wtrans, float rscale, int spnum, float *centers, float *radii, float *colors, int matindex)
void tricolor_list (Matrix4 &wtrans, int numtris, float *vnc, int matindex)
void trimesh_c4n3v3 (Matrix4 &wtrans, int numverts, float *cnv, int numfacets, int *facets, int matindex)
void trimesh_c4u_n3b_v3f (Matrix4 &wtrans, unsigned char *c, signed char *n, float *v, int numfacets, int matindex)
void trimesh_c4u_n3f_v3f (Matrix4 &wtrans, unsigned char *c, float *n, float *v, int numfacets, int matindex)
void trimesh_n3b_v3f (Matrix4 &wtrans, float *uniform_color, signed char *n, float *v, int numfacets, int matindex)
void trimesh_n3f_v3f (Matrix4 &wtrans, float *uniform_color, float *n, float *v, int numfacets, int matindex)
void tristrip (Matrix4 &wtrans, int numverts, const float *cnv, int numstrips, const int *vertsperstrip, const int *facets, int matindex)

Static Public Methods

int OSPRay_Global_Init (void)
global init, call ONCE. More...

void OSPRay_Global_Shutdown (void)
global shutdown, call ONCE. More...


Member Enumeration Documentation

enum OSPRay2Renderer::BGMode

Enumeration values:
RT_BACKGROUND_TEXTURE_SOLID
RT_BACKGROUND_TEXTURE_SKY_SPHERE
RT_BACKGROUND_TEXTURE_SKY_ORTHO_PLANE

Definition at line 148 of file OSPRay2Renderer.h.

Referenced by set_bg_mode.

enum OSPRay2Renderer::CameraProjection

Enumeration values:
RT_PERSPECTIVE
RT_ORTHOGRAPHIC

Definition at line 139 of file OSPRay2Renderer.h.

Referenced by set_camera_projection.

enum OSPRay2Renderer::FogMode

Enumeration values:
RT_FOG_NONE
RT_FOG_LINEAR
RT_FOG_EXP
RT_FOG_EXP2

Definition at line 138 of file OSPRay2Renderer.h.

Referenced by set_cue_mode.

enum OSPRay2Renderer::RenderMode

Enumeration values:
RT_SCIVIS
RT_PATHTRACER

Definition at line 151 of file OSPRay2Renderer.h.

enum OSPRay2Renderer::RtShadowMode

Enumeration values:
RT_SHADOWS_OFF shadows disabled.
RT_SHADOWS_ON shadows on, std. impl.

Definition at line 135 of file OSPRay2Renderer.h.

enum OSPRay2Renderer::Verbosity

Enumeration values:
RT_VERB_MIN
RT_VERB_TIMING
RT_VERB_DEBUG

Definition at line 147 of file OSPRay2Renderer.h.


Constructor & Destructor Documentation

OSPRay2Renderer::OSPRay2Renderer ( void )

OSPRay2Renderer::~OSPRay2Renderer ( void )

destructor.

Definition at line 252 of file OSPRay2Renderer.C.

References DBG, destroy_scene, NULL, and wkf_timer_destroy.


Member Function Documentation

void OSPRay2Renderer::add_directional_light ( const float * dir,
const float * color
)

void OSPRay2Renderer::add_material ( int matindex,
float ambient,
float diffuse,
float specular,
float shininess,
float reflectivity,
float opacity,
float outline,
float outlinewidth,
int transmode
)

void OSPRay2Renderer::add_positional_light ( const float * pos,
const float * color
)

void OSPRay2Renderer::attach_cylinder_array ( int numcyl,
int matindex,
)

void OSPRay2Renderer::attach_mesh ( int numverts,
int numfacets,
int matindex,
)

void OSPRay2Renderer::attach_sphere_array ( int numsp,
int matindex,
)

void OSPRay2Renderer::check_verbose_env ( )

check environment variables that modify verbose output.

Definition at line 267 of file OSPRay2Renderer.C.

References DBG, NULL, RT_VERB_DEBUG, RT_VERB_MIN, RT_VERB_TIMING, and strupcmp.

Referenced by OSPRay2Renderer, and setup_context.

void OSPRay2Renderer::clear_all_lights ( ) [inline]

Definition at line 355 of file OSPRay2Renderer.h.

References ResizeArray::clear.

void OSPRay2Renderer::cylinder_array ( Matrix4 * wtrans,
float rscale,
float * uniform_color,
int cylnum,
float * points,
int matindex
)

void OSPRay2Renderer::cylinder_array_color ( Matrix4 & wtrans,
float rscale,
int cylnum,
float * points,
float * radii,
float * colors,
int matindex
)

void OSPRay2Renderer::destroy_scene ( void )

void OSPRay2Renderer::dof_on ( int onoff ) [inline]

depth of field on/off.

Definition at line 309 of file OSPRay2Renderer.h.

Referenced by OSPRay2DisplayDevice::write_header.

void OSPRay2Renderer::framebuffer_config ( int fbwidth,
int fbheight
)

Definition at line 553 of file OSPRay2Renderer.C.

References framebuffer_resize, and RT_VERB_DEBUG.

Referenced by render_compile_and_validate, and render_to_file.

void OSPRay2Renderer::framebuffer_destroy ( void )

Definition at line 606 of file OSPRay2Renderer.C.

Referenced by destroy_scene, and framebuffer_resize.

void OSPRay2Renderer::framebuffer_resize ( int fbwidth,
int fbheight
)

Definition at line 586 of file OSPRay2Renderer.C.

References framebuffer_destroy, and RT_VERB_DEBUG.

Referenced by framebuffer_config.

void OSPRay2Renderer::headlight_onoff ( int onoff ) [inline]

Definition at line 360 of file OSPRay2Renderer.h.

void OSPRay2Renderer::init_materials ( )

Definition at line 2148 of file OSPRay2Renderer.C.

References DBG, and RT_VERB_DEBUG.

Referenced by OSPRay2Renderer.

int OSPRay2Renderer::OSPRay_Global_Init ( void ) [static]

global init, call ONCE.

Definition at line 85 of file OSPRay2Renderer.C.

References DBG, and NULL.

Referenced by OSPRay2DisplayDevice::OSPRay_Global_Init.

void OSPRay2Renderer::OSPRay_Global_Shutdown ( void ) [static]

global shutdown, call ONCE.

Definition at line 116 of file OSPRay2Renderer.C.

References DBG.

Referenced by OSPRay2DisplayDevice::OSPRay_Global_Shutdown.

void OSPRay2Renderer::render_compile_and_validate ( void )

void OSPRay2Renderer::render_to_file ( const char * filename )

void OSPRay2Renderer::reposp_context_stats ( void )

report various context statistics for memory leak debugging, etc.

void OSPRay2Renderer::set_aa_samples ( int cnt ) [inline]

antialiasing (samples > 1 == on).

Definition at line 292 of file OSPRay2Renderer.h.

Referenced by OSPRay2DisplayDevice::write_header.

void OSPRay2Renderer::set_ao_ambient ( float aoa ) [inline]

set AO ambient lighting factor.

Definition at line 321 of file OSPRay2Renderer.h.

Referenced by OSPRay2DisplayDevice::write_header.

void OSPRay2Renderer::set_ao_direct ( float aod ) [inline]

set AO direct lighting factor.

Definition at line 324 of file OSPRay2Renderer.h.

Referenced by OSPRay2DisplayDevice::write_header.

void OSPRay2Renderer::set_ao_samples ( int cnt ) [inline]

ambient occlusion (samples > 1 == on).

Definition at line 318 of file OSPRay2Renderer.h.

Referenced by OSPRay2DisplayDevice::write_header.

void OSPRay2Renderer::set_bg_color ( float * rgb ) [inline]

Definition at line 327 of file OSPRay2Renderer.h.

void OSPRay2Renderer::set_bg_color_grad_bot ( float * rgb ) [inline]

Definition at line 329 of file OSPRay2Renderer.h.

void OSPRay2Renderer::set_bg_color_grad_top ( float * rgb ) [inline]

Definition at line 328 of file OSPRay2Renderer.h.

void OSPRay2Renderer::set_bg_gradient ( float * vec ) [inline]

Definition at line 330 of file OSPRay2Renderer.h.

void OSPRay2Renderer::set_bg_gradient_botval ( float v ) [inline]

Definition at line 332 of file OSPRay2Renderer.h.

void OSPRay2Renderer::set_bg_gradient_topval ( float v ) [inline]

Definition at line 331 of file OSPRay2Renderer.h.

void OSPRay2Renderer::set_bg_mode ( BGMode m ) [inline]

Definition at line 326 of file OSPRay2Renderer.h.

References BGMode.

void OSPRay2Renderer::set_camera_dof_fnumber ( float n ) [inline]

set depth of field f/stop number.

Definition at line 315 of file OSPRay2Renderer.h.

References n.

Referenced by OSPRay2DisplayDevice::write_header.

void OSPRay2Renderer::set_camera_dof_focal_dist ( float d ) [inline]

set depth of field focal plane distance.

Definition at line 312 of file OSPRay2Renderer.h.

Referenced by OSPRay2DisplayDevice::write_header.

void OSPRay2Renderer::set_camera_projection ( CameraProjection m ) [inline]

set the camera projection mode.

Definition at line 295 of file OSPRay2Renderer.h.

References CameraProjection.

Referenced by OSPRay2DisplayDevice::write_trailer.

void OSPRay2Renderer::set_camera_stereo_convergence_dist ( float dist ) [inline]

set stereo convergence distance.

Definition at line 304 of file OSPRay2Renderer.h.

Referenced by OSPRay2DisplayDevice::write_trailer.

void OSPRay2Renderer::set_camera_stereo_eyesep ( float eyesep ) [inline]

set stereo eye separation.

Definition at line 301 of file OSPRay2Renderer.h.

Referenced by OSPRay2DisplayDevice::write_trailer.

void OSPRay2Renderer::set_camera_zoom ( float zoomfactor ) [inline]

set camera zoom factor.

Definition at line 298 of file OSPRay2Renderer.h.

Referenced by OSPRay2DisplayDevice::write_trailer.

void OSPRay2Renderer::set_cue_mode ( FogMode mode,
float start,
float end,
float density
) [inline]

Definition at line 334 of file OSPRay2Renderer.h.

References FogMode.

Referenced by OSPRay2DisplayDevice::write_header.

void OSPRay2Renderer::set_material ( OSPGeometricModel & model,
int matindex,
float * uniform_color
)

Definition at line 2155 of file OSPRay2Renderer.C.

References mat, and RT_VERB_DEBUG.

Referenced by attach_cylinder_array, attach_mesh, and attach_sphere_array.

void OSPRay2Renderer::setup_context ( int width,
int height
)

(re)configure the OSPRay context.

Definition at line 287 of file OSPRay2Renderer.C.

References check_verbose_env, DBG, and wkf_timer_timenow.

Referenced by OSPRay2DisplayDevice::write_header.

void OSPRay2Renderer::shadows_on ( int onoff ) [inline]

shadows.

Definition at line 289 of file OSPRay2Renderer.h.

Referenced by OSPRay2DisplayDevice::write_header.

void OSPRay2Renderer::sphere_array ( Matrix4 * wtrans,
float rscale,
float * uniform_color,
int spnum,
float * centers,
float * radii,
int matindex
)

void OSPRay2Renderer::sphere_array_color ( Matrix4 & wtrans,
float rscale,
int spnum,
float * centers,
float * radii,
float * colors,
int matindex
)

void OSPRay2Renderer::tricolor_list ( Matrix4 & wtrans,
int numtris,
float * vnc,
int matindex
)

void OSPRay2Renderer::trimesh_c4n3v3 ( Matrix4 & wtrans,
int numverts,
float * cnv,
int numfacets,
int * facets,
int matindex
)

void OSPRay2Renderer::trimesh_c4u_n3b_v3f ( Matrix4 & wtrans,
unsigned char * c,
signed char * n,
float * v,
int numfacets,
int matindex
)

void OSPRay2Renderer::trimesh_c4u_n3f_v3f ( Matrix4 & wtrans,
unsigned char * c,
float * n,
float * v,
int numfacets,
int matindex
)

void OSPRay2Renderer::trimesh_n3b_v3f ( Matrix4 & wtrans,
float * uniform_color,
signed char * n,
float * v,
int numfacets,
int matindex
)

void OSPRay2Renderer::trimesh_n3f_v3f ( Matrix4 & wtrans,
float * uniform_color,
float * n,
float * v,
int numfacets,
int matindex
)

void OSPRay2Renderer::tristrip ( Matrix4 & wtrans,
int numverts,
const float * cnv,
int numstrips,
const int * vertsperstrip,
const int * facets,
int matindex
)

void OSPRay2Renderer::update_rendering_state ( int interactive )

The documentation for this class was generated from the following files:
Generated on Tue Nov 18 02:49:48 2025 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002

AltStyle によって変換されたページ (->オリジナル) /