Volume Renderer DoF
global.cpp File Reference
#include "global.h"

Variables

Volumevolume
 
bool newVolume = false
 
int focusPlane = 0
 
int lastFocusPlane = 0
 
float blurAccum = 0
 
float blurAttenuation = 0
 
const float maxBlurAttenuation = 45
 
int tfsSize = 3
 
TransferFunctiontfs [5]
 

Variable Documentation

◆ blurAccum

float blurAccum = 0

stores the absolute blurring value in degrees

◆ blurAttenuation

float blurAttenuation = 0

stores the relativ blurring value tan(blur/2)

◆ focusPlane

int focusPlane = 0

actual plane in focus

◆ lastFocusPlane

int lastFocusPlane = 0

the last plane in the volume

◆ maxBlurAttenuation

const float maxBlurAttenuation = 45

stores the maximal absolute blurring value to avoid negativ values

◆ newVolume

bool newVolume = false

boolean flag to reset the renderer

◆ tfs

Initial value:
= {
new TransferFunction(240, 255, 1, new float[3]{ 0, 1, 1 }),
new TransferFunction(190, 240, 0.3f, new float[3]{ 0.7f, 0.7f, 0 }),
new TransferFunction(15, 50, 0.15f, new float[3]{ 1, 0, 0.5 }),
nullptr, nullptr }
Definition: TransferFunction.h:4

array containing up to 5 transfer function objects

◆ tfsSize

int tfsSize = 3

number of actual transfer functions

◆ volume

Volume* volume

this file is used for gui-logic interactions the volume to be rendered