Kinetic Visualization (Visualisierung 2 - S2012)
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Public Slots | Public Member Functions | Private Member Functions | Private Attributes
QKineticVisWidget Class Reference

Main GUI class with a render target and some other input elements. More...

#include <QKineticVisWidget.hxx>

Inheritance diagram for QKineticVisWidget:
AppletParticleKinematicListener

List of all members.

Public Slots

void openFileForVolumeUpload ()
void openFileForConfig ()
void saveFileForConfig ()
void particleConfigurationChanged (double val)
void particleConfigurationChanged (bool val)
void particleConfigurationChanged (int val)
void gradientPointsChanged (const QGradientStops &stops)
void transferColorChanged ()

Public Member Functions

 QKineticVisWidget (AppletParticleKinematic *applet, QWidget *parent=0)
virtual ~QKineticVisWidget ()
virtual void volumeImageChanged (vl::Image *volImg)

Private Member Functions

void createMenu ()
 Creates the menu buttons.
void createSpinButtons ()
 Creates the spin buttons.
void createRenderTarget ()
 Creates the OpenGL window.
void createFileUpload ()
 Creates the file upload stuff.
void createTransferFunction ()
 Creates the transfer function widget.
void writeConfig (const std::string &file)
 Writes the config to the given filename.
void loadConfig (const std::string &file)
 Loads the config from the given filename.
void setTransferFunction (vl::ref< vl::Image > img)
vl::ref< vl::Image > getTransferFunction ()
void center (QWidget *widget, int w, int h)

Private Attributes

QMenu * fileMenu
QMenuBar * menuBar
QTabWidget * controlGroupBox
Qt4Widget * vlWidget
QCheckBox * stickParticleToDensityLevel
QDoubleSpinBox * curvatureBox
QRadioButton * enableFlocking
QDoubleSpinBox * flockingBox
QDoubleSpinBox * flockingSigmaBox
QRadioButton * enableUserDirection
QDoubleSpinBox * userDirection
QDoubleSpinBox * userDirectionX
QDoubleSpinBox * userDirectionY
QDoubleSpinBox * userDirectionZ
QRadioButton * enableRepulsion
QDoubleSpinBox * repulsionBox
QDoubleSpinBox * repulsionSigmaBox
QRadioButton * enableDying
QDoubleSpinBox * crowdedThreshold
QDoubleSpinBox * crowdedSigma
QCheckBox * preprocessingEnableGaussianBox
QDoubleSpinBox * preprocessingSigmaBox
QDoubleSpinBox * preprocessingDepthBox
QDoubleSpinBox * gradientMagnitudeThresholdBox
QSpinBox * maxNumParticlesBox
QSpinBox * neighbourRadiusBox
QSpinBox * sampleBox
QDoubleSpinBox * particleSizeBox
QDoubleSpinBox * shadingIntensityBox
QDoubleSpinBox * gradientIntensityBox
QDoubleSpinBox * opacityIntensityBox
QCheckBox * renderSmoothedImage
QCheckBox * enableParticles
QCheckBox * enableParticleShading
QComboBox * renderModeCombo
QGroupBox * fileGroupBox
QLineEdit * txtFileForUpload
QPushButton * btnOpenFileForUpload
QGroupBox * transferFunctionGroupBox
TransferFunctionWidgettransferFunctionWidget
GradientStopWidgetgradientStopWidget
vl::ref< AppletParticleKinematicapplet
bool _enableUpdates

Detailed Description

Main GUI class with a render target and some other input elements.

NEED TO RUN MOC.EXE MANUALLY WHEN CHANGING SIGNALS/SLOTS!


Constructor & Destructor Documentation

QKineticVisWidget::QKineticVisWidget ( AppletParticleKinematic applet,
QWidget *  parent = 0 
)
QKineticVisWidget::~QKineticVisWidget ( )
virtual

Member Function Documentation

void QKineticVisWidget::center ( QWidget *  widget,
int  w,
int  h 
)
private
void QKineticVisWidget::createFileUpload ( )
private

Creates the file upload stuff.

void QKineticVisWidget::createMenu ( )
private

Creates the menu buttons.

void QKineticVisWidget::createRenderTarget ( )
private

Creates the OpenGL window.

void QKineticVisWidget::createSpinButtons ( )
private

Creates the spin buttons.

void QKineticVisWidget::createTransferFunction ( )
private

Creates the transfer function widget.

vl::ref< vl::Image > QKineticVisWidget::getTransferFunction ( )
private
void QKineticVisWidget::gradientPointsChanged ( const QGradientStops &  stops)
slot
void QKineticVisWidget::loadConfig ( const std::string &  file)
private

Loads the config from the given filename.

void QKineticVisWidget::openFileForConfig ( )
slot
void QKineticVisWidget::openFileForVolumeUpload ( )
slot
void QKineticVisWidget::particleConfigurationChanged ( double  val)
slot
void QKineticVisWidget::particleConfigurationChanged ( bool  val)
slot
void QKineticVisWidget::particleConfigurationChanged ( int  val)
slot
void QKineticVisWidget::saveFileForConfig ( )
slot
void QKineticVisWidget::setTransferFunction ( vl::ref< vl::Image >  img)
private
void QKineticVisWidget::transferColorChanged ( )
slot
void QKineticVisWidget::volumeImageChanged ( vl::Image *  volImg)
virtual
void QKineticVisWidget::writeConfig ( const std::string &  file)
private

Writes the config to the given filename.


Member Data Documentation

bool QKineticVisWidget::_enableUpdates
private

Indicates if updates on GUI widgets should be propagated to the applet-instance. We use this for preventing updates for every loaded config-key when loading a config file.

vl::ref<AppletParticleKinematic> QKineticVisWidget::applet
private
QPushButton* QKineticVisWidget::btnOpenFileForUpload
private
QTabWidget* QKineticVisWidget::controlGroupBox
private
QDoubleSpinBox* QKineticVisWidget::crowdedSigma
private
QDoubleSpinBox* QKineticVisWidget::crowdedThreshold
private
QDoubleSpinBox* QKineticVisWidget::curvatureBox
private
QRadioButton* QKineticVisWidget::enableDying
private
QRadioButton* QKineticVisWidget::enableFlocking
private
QCheckBox* QKineticVisWidget::enableParticles
private
QCheckBox* QKineticVisWidget::enableParticleShading
private
QRadioButton* QKineticVisWidget::enableRepulsion
private
QRadioButton* QKineticVisWidget::enableUserDirection
private
QGroupBox* QKineticVisWidget::fileGroupBox
private
QMenu* QKineticVisWidget::fileMenu
private
QDoubleSpinBox* QKineticVisWidget::flockingBox
private
QDoubleSpinBox* QKineticVisWidget::flockingSigmaBox
private
QDoubleSpinBox* QKineticVisWidget::gradientIntensityBox
private
QDoubleSpinBox* QKineticVisWidget::gradientMagnitudeThresholdBox
private
GradientStopWidget* QKineticVisWidget::gradientStopWidget
private
QSpinBox* QKineticVisWidget::maxNumParticlesBox
private
QMenuBar* QKineticVisWidget::menuBar
private
QSpinBox* QKineticVisWidget::neighbourRadiusBox
private
QDoubleSpinBox* QKineticVisWidget::opacityIntensityBox
private
QDoubleSpinBox* QKineticVisWidget::particleSizeBox
private
QDoubleSpinBox* QKineticVisWidget::preprocessingDepthBox
private
QCheckBox* QKineticVisWidget::preprocessingEnableGaussianBox
private
QDoubleSpinBox* QKineticVisWidget::preprocessingSigmaBox
private
QComboBox* QKineticVisWidget::renderModeCombo
private
QCheckBox* QKineticVisWidget::renderSmoothedImage
private
QDoubleSpinBox* QKineticVisWidget::repulsionBox
private
QDoubleSpinBox* QKineticVisWidget::repulsionSigmaBox
private
QSpinBox* QKineticVisWidget::sampleBox
private
QDoubleSpinBox* QKineticVisWidget::shadingIntensityBox
private
QCheckBox* QKineticVisWidget::stickParticleToDensityLevel
private
QGroupBox* QKineticVisWidget::transferFunctionGroupBox
private
TransferFunctionWidget* QKineticVisWidget::transferFunctionWidget
private
QLineEdit* QKineticVisWidget::txtFileForUpload
private
QDoubleSpinBox* QKineticVisWidget::userDirection
private
QDoubleSpinBox* QKineticVisWidget::userDirectionX
private
QDoubleSpinBox* QKineticVisWidget::userDirectionY
private
QDoubleSpinBox* QKineticVisWidget::userDirectionZ
private
Qt4Widget* QKineticVisWidget::vlWidget
private

The documentation for this class was generated from the following files: