cgv
Loading...
Searching...
No Matches
cgv::render::slab_render_style Struct Reference

#include <slab_renderer.h>

Inheritance diagram for cgv::render::slab_render_style:
cgv::render::group_render_style cgv::render::render_style cgv::render::slab_render_style_reflect

Public Member Functions

 slab_render_style ()
 construct with default values
 
- Public Member Functions inherited from cgv::render::group_render_style
 group_render_style ()
 set default values
 

Public Attributes

float thickness_scale
 multiplied to the thickness, initialized to 1
 
int tex_unit
 unit used to access the slab texture values, initialized to 0, must point to a 2d texture array
 
int tf_tex_unit
 unit used to access the volume transfer function texture, initialized to 1, must be a 1d texture
 
bool use_transfer_function
 whether to use a transfer function or interpret the luminance as alpha, initialized to false
 
int tf_source_channel
 
int tex_idx_offset
 used to offset the texture index of each slab when specified
 
int tex_idx_stride
 multiplied to the texture index of each slab
 
float step_size
 constant step size for volume ray integration over all slabs
 
float opacity
 multiplied to the input opacity value during rendering to change the overall opacity of the slabs
 
float falloff_mix
 overall influence of the falloff
 
float falloff_strength
 strength of the opacity falloff in the slabs normal direction
 
float scale
 compensates for the overall slab scale
 
- Public Attributes inherited from cgv::render::group_render_style
bool use_group_color
 whether to use group colors indexed through group index, defaults to false
 
bool use_group_transformation
 whether to use group translation and rotation indexed through group index, defaults to false
 

Detailed Description

Style to control the look of slabs. The slab renderer uses texture arrays for rendering. A texture index can be specified for each slab, which is used to access the texture array. Ech slab texture must therefore have the same resolution. For animated slabs store the timesteps for each slab in a non-interleaved fashion in the texture array. Set the tex_idx_stride to the number of animation frames. The tex_idx_offset can be used to select the rendered time step.

Definition at line 24 of file slab_renderer.h.

Constructor & Destructor Documentation

◆ slab_render_style()

cgv::render::slab_render_style::slab_render_style ( )

Member Data Documentation

◆ falloff_mix

float cgv::render::slab_render_style::falloff_mix

overall influence of the falloff

Definition at line 45 of file slab_renderer.h.

Referenced by cgv::gui::slab_render_style_gui_creator::create(), cgv::render::slab_renderer::enable(), and slab_render_style().

◆ falloff_strength

float cgv::render::slab_render_style::falloff_strength

strength of the opacity falloff in the slabs normal direction

Definition at line 47 of file slab_renderer.h.

Referenced by cgv::gui::slab_render_style_gui_creator::create(), cgv::render::slab_renderer::enable(), and slab_render_style().

◆ opacity

float cgv::render::slab_render_style::opacity

multiplied to the input opacity value during rendering to change the overall opacity of the slabs

Definition at line 43 of file slab_renderer.h.

Referenced by cgv::gui::slab_render_style_gui_creator::create(), cgv::render::slab_renderer::enable(), and slab_render_style().

◆ scale

float cgv::render::slab_render_style::scale

compensates for the overall slab scale

Definition at line 49 of file slab_renderer.h.

Referenced by cgv::gui::slab_render_style_gui_creator::create(), cgv::render::slab_renderer::enable(), and slab_render_style().

◆ step_size

float cgv::render::slab_render_style::step_size

constant step size for volume ray integration over all slabs

Definition at line 41 of file slab_renderer.h.

Referenced by cgv::gui::slab_render_style_gui_creator::create(), cgv::render::slab_renderer::enable(), and slab_render_style().

◆ tex_idx_offset

int cgv::render::slab_render_style::tex_idx_offset

used to offset the texture index of each slab when specified

Definition at line 37 of file slab_renderer.h.

Referenced by cgv::render::slab_renderer::enable(), and slab_render_style().

◆ tex_idx_stride

int cgv::render::slab_render_style::tex_idx_stride

multiplied to the texture index of each slab

Definition at line 39 of file slab_renderer.h.

Referenced by cgv::render::slab_renderer::enable(), and slab_render_style().

◆ tex_unit

int cgv::render::slab_render_style::tex_unit

unit used to access the slab texture values, initialized to 0, must point to a 2d texture array

Definition at line 29 of file slab_renderer.h.

Referenced by cgv::gui::slab_render_style_gui_creator::create(), cgv::render::slab_renderer::enable(), and slab_render_style().

◆ tf_source_channel

int cgv::render::slab_render_style::tf_source_channel

Definition at line 35 of file slab_renderer.h.

◆ tf_tex_unit

int cgv::render::slab_render_style::tf_tex_unit

unit used to access the volume transfer function texture, initialized to 1, must be a 1d texture

Definition at line 31 of file slab_renderer.h.

Referenced by cgv::gui::slab_render_style_gui_creator::create(), cgv::render::slab_renderer::enable(), and slab_render_style().

◆ thickness_scale

float cgv::render::slab_render_style::thickness_scale

multiplied to the thickness, initialized to 1

Definition at line 27 of file slab_renderer.h.

Referenced by cgv::gui::slab_render_style_gui_creator::create(), cgv::render::slab_renderer::enable(), and slab_render_style().

◆ use_transfer_function

bool cgv::render::slab_render_style::use_transfer_function

whether to use a transfer function or interpret the luminance as alpha, initialized to false

Definition at line 33 of file slab_renderer.h.

Referenced by cgv::gui::slab_render_style_gui_creator::create(), cgv::render::slab_renderer::enable(), and slab_render_style().


The documentation for this struct was generated from the following files: