#include <Histogram2d.h>
Public Member Functions | |
void | bindVolumeData (VolumeRendering::VolumeData *volume) |
Histogram2d (QWidget *parent, QGLWidget *share) | |
void | updateHistogram () |
~Histogram2d () | |
Protected Member Functions | |
void | paintGL () |
void | resizeGL (int width, int height) |
VolVis::Gui::Histogram2d::Histogram2d | ( | QWidget * | parent, | |
QGLWidget * | share | |||
) |
Constructor. Defines the OpenGL Widget.
parent | parent widget | |
share | Render widget with which texture objects should be shared. |
VolVis::Gui::Histogram2d::~Histogram2d | ( | ) |
Destructor. Frees texture objects.
void VolVis::Gui::Histogram2d::bindVolumeData | ( | VolumeRendering::VolumeData * | volume | ) |
Binds the volume data from which the 2d histogram data is aquired.
volume | volume data which contains the 2d histogram data |
void VolVis::Gui::Histogram2d::paintGL | ( | ) | [protected] |
This method is called by the slot updateGL() from the base class QGLWidget. This is needed for the openGL callback. It renders the histogram texture to the screen.
void VolVis::Gui::Histogram2d::resizeGL | ( | int | width, | |
int | height | |||
) | [protected] |
This method is called when the size of the widget is changed.
width | new width of the widget | |
height | new height of the widget |
void VolVis::Gui::Histogram2d::updateHistogram | ( | ) |
Fetches the data from the volume and creates a new texture.