#include <OpenVolumeDataCommand.h>
Inheritance diagram for VolVis::Commands::OpenVolumeDataCommand:
Public Member Functions | |
void | execute () |
OpenVolumeDataCommand (VolumeRendering::VolumeData *data, Gui::TFWidget *tf, Gui::TFWidget *gradientTf, Gui::Histogram2d *histogram2d, QProgressBar *progress=0) |
VolVis::Commands::OpenVolumeDataCommand::OpenVolumeDataCommand | ( | VolumeRendering::VolumeData * | data, | |
Gui::TFWidget * | tf, | |||
Gui::TFWidget * | gradientTf, | |||
Gui::Histogram2d * | histogram2d, | |||
QProgressBar * | progress = 0 | |||
) | [inline] |
Constructor. Defines the title and statusTip of the command and binds the VolumeData object.
data | VolumeData object which will load the new file when the command is executed. | |
tf | widget which shows the histogram of the volume data has to be updated. | |
gradientTf | widget which shows the histogram of the gradient of the volume data. | |
histogram2d | widget which shows the 2d histogram (intensity, gradient magnitude) of the volume data. | |
progress | the progress bar which has to be updated during loading of the volume (this is not done over a command, but directly from the volumeData) |
void VolVis::Commands::OpenVolumeDataCommand::execute | ( | ) | [inline, virtual] |
Opens file dialog and then calls the method for loading a new volume defined in the VolumeData class. The histograms (intensity and gradient) of the TFWiget is updated.
Implements VolVis::Commands::Command.