#include <SetRenderModeCommand.h>
Inheritance diagram for VolVis::Commands::SetRenderModeCommand:
Public Member Functions | |
void | execute () |
SetRenderModeCommand (Gui::RenderWidget *widget, VolumeRendering::Rendering *renderMode, Gui::TFWidget *tfWidget, Gui::TFWidget *gradientTfWidget) |
VolVis::Commands::SetRenderModeCommand::SetRenderModeCommand | ( | Gui::RenderWidget * | widget, | |
VolumeRendering::Rendering * | renderMode, | |||
Gui::TFWidget * | tfWidget, | |||
Gui::TFWidget * | gradientTfWidget | |||
) | [inline] |
Constructor. Copies the passed pointers.
widget | the render mode needs to know the new render mode | |
renderMode | the desired render mode (e.g. slicing) | |
tfWidget | each render mode has a transfer function (for intensity values) | |
gradientTfWidget | each render mode has an additional transfer function (for gradient magnitude values) in the transfer function widget |
void VolVis::Commands::SetRenderModeCommand::execute | ( | ) | [inline, virtual] |
The render mode is bound to the render widget. The transfer function attached to the render mode is loaded in the transfer function widget. All transformations in the render widget are resetted.
Implements VolVis::Commands::Command.