cgv
|
#include <slab_renderer.h>
Public Member Functions | |
slab_render_style () | |
construct with default values | |
![]() | |
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 | |
![]() | |
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 | |
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.
cgv::render::slab_render_style::slab_render_style | ( | ) |
construct with default values
Definition at line 20 of file slab_renderer.cxx.
References falloff_mix, falloff_strength, opacity, scale, step_size, tex_idx_offset, tex_idx_stride, tex_unit, tf_tex_unit, thickness_scale, and use_transfer_function.
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().
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().
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().
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().
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().
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().
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().
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().
int cgv::render::slab_render_style::tf_source_channel |
Definition at line 35 of file slab_renderer.h.
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().
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().
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().