VolVis::Gui::Histogram2d Class Reference

#include <Histogram2d.h>


Detailed Description

This widget renders the 2d histogram (density values, gradient magnitude values). Data is calculated in the class VolumeData.


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)


Constructor & Destructor Documentation

VolVis::Gui::Histogram2d::Histogram2d ( QWidget *  parent,
QGLWidget *  share 
)

Constructor. Defines the OpenGL Widget.

Parameters:
parent parent widget
share Render widget with which texture objects should be shared.

VolVis::Gui::Histogram2d::~Histogram2d (  ) 

Destructor. Frees texture objects.


Member Function Documentation

void VolVis::Gui::Histogram2d::bindVolumeData ( VolumeRendering::VolumeData volume  ) 

Binds the volume data from which the 2d histogram data is aquired.

Parameters:
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.

Parameters:
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.


The documentation for this class was generated from the following file:
Generated on Wed Dec 5 12:27:31 2007 for VolVis by  doxygen 1.5.1-p1