#include <VisVolRenderer.hpp>
Public Member Functions | |
| VolRenderer (Texture3D &volume) | |
| void | draw () |
| void | add_plane (Plane3f plane) |
| void | delete_plane (int i) |
| void | set_plane (int i, Plane3f plane) |
| int | get_plane_count () |
| Plane3f | get_plane (int i) |
| void | setTransferFunc (Texture1D *tData) |
| void | triggerLight (bool on) |
| void | triggerNPR (bool on) |
| void | setUpperLight (Color4f color) |
| void | setLowerLight (Color4f color) |
| void | setLightDirection (V3f dir) |
| void | resizeBackBuffer (V2i new_size) |
Public Attributes | |
| Texture1D * | transferFunction |
| bool | texInit |
| VolRenderer::VolRenderer | ( | Texture3D & | volume | ) |
Initializes the Renderer.
| void VolRenderer::add_plane | ( | Plane3f | plane | ) |
Adds a clipping plane.
| void VolRenderer::delete_plane | ( | int | i | ) |
Deletes a clipping plane.
| void VolRenderer::draw | ( | ) |
Draw the volume.
| Plane3f VolRenderer::get_plane | ( | int | i | ) | [inline] |
Returns a numbered plane.
| int VolRenderer::get_plane_count | ( | ) | [inline] |
Returns the number of planes.
| void VolRenderer::set_plane | ( | int | i, | |
| Plane3f | plane | |||
| ) |
Sets a specific clipping plane.
| void VolRenderer::setLightDirection | ( | V3f | dir | ) | [inline] |
Sets the polar vector of the light sphere.
| void VolRenderer::setLowerLight | ( | Color4f | color | ) | [inline] |
Sets the color of the lower hemisphere.
| void VolRenderer::setTransferFunc | ( | Texture1D * | tData | ) |
Set's the transfer function.
| void VolRenderer::setUpperLight | ( | Color4f | color | ) | [inline] |
Sets the color of the upper hemisphere.
| void VolRenderer::triggerLight | ( | bool | on | ) |
Switches lightin on and off.
| void VolRenderer::triggerNPR | ( | bool | on | ) |
Switches Non Photorealistic Rendering on and off.
The used Transfer function texture.
1.5.7.1