Langmuir
Simulation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
LangmuirView::IsoSurfaceDialog Class Reference

A class to get isosurface parameters from the user. More...

#include <isosurfacedialog.h>

Public Slots

void init ()
 initialize dialog More...
 
void update ()
 update dialog More...
 
void on_calculateButton_clicked ()
 start isosurface calculation More...
 
void setCalculateEnabled (bool enabled)
 allow isosurface calculation More...
 
void setProgressRange (int low, int high)
 set progress bar range More...
 
void setProgress (int value)
 set current value of progress bar More...
 
void updateComboBoxMode (Mesh::Mode mode)
 update combo box text More...
 
void updateSpinBoxAlpha (int value)
 update spin box value More...
 
void on_comboBoxMode_currentTextChanged (const QString &text)
 set trap mesh render mode More...
 
void on_spinBoxAlpha_valueChanged (int value)
 set trap mesh alpha value More...
 
void extractAlpha (QColor color)
 get alpha component of color and emit it (using sendAlpha) More...
 

Signals

void sendAlpha (int value)
 sendAlpha More...
 

Public Member Functions

 IsoSurfaceDialog (LangmuirViewer &viewer, QWidget *parent=0)
 create the IsoSurfaceDialog More...
 
 ~IsoSurfaceDialog ()
 destroy the IsoSurfaceDialog More...
 

Private Attributes

Ui::IsoSurfaceDialog * ui
 dialog UI More...
 
LangmuirViewerm_viewer
 reference to OpenGL widget More...
 

Detailed Description

A class to get isosurface parameters from the user.

Constructor & Destructor Documentation

LangmuirView::IsoSurfaceDialog::IsoSurfaceDialog ( LangmuirViewer viewer,
QWidget *  parent = 0 
)
explicit

create the IsoSurfaceDialog

Parameters
viewerthe viewer
parentQObject this belongs to
LangmuirView::IsoSurfaceDialog::~IsoSurfaceDialog ( )

destroy the IsoSurfaceDialog

Member Function Documentation

void LangmuirView::IsoSurfaceDialog::extractAlpha ( QColor  color)
slot

get alpha component of color and emit it (using sendAlpha)

Parameters
colorcolor to analyze
void LangmuirView::IsoSurfaceDialog::init ( )
slot

initialize dialog

void LangmuirView::IsoSurfaceDialog::on_calculateButton_clicked ( )
slot

start isosurface calculation

void LangmuirView::IsoSurfaceDialog::on_comboBoxMode_currentTextChanged ( const QString &  text)
slot

set trap mesh render mode

Parameters
textmode as string
void LangmuirView::IsoSurfaceDialog::on_spinBoxAlpha_valueChanged ( int  value)
slot

set trap mesh alpha value

Parameters
valuevalue
void LangmuirView::IsoSurfaceDialog::sendAlpha ( int  value)
signal

sendAlpha

Parameters
value
void LangmuirView::IsoSurfaceDialog::setCalculateEnabled ( bool  enabled)
slot

allow isosurface calculation

Parameters
enabledtrue if allowed
void LangmuirView::IsoSurfaceDialog::setProgress ( int  value)
slot

set current value of progress bar

Parameters
valuecurrent progress
void LangmuirView::IsoSurfaceDialog::setProgressRange ( int  low,
int  high 
)
slot

set progress bar range

Parameters
lowlower bound
highupper bound
void LangmuirView::IsoSurfaceDialog::update ( )
slot

update dialog

void LangmuirView::IsoSurfaceDialog::updateComboBoxMode ( Mesh::Mode  mode)
slot

update combo box text

Parameters
modeselection number
void LangmuirView::IsoSurfaceDialog::updateSpinBoxAlpha ( int  value)
slot

update spin box value

Parameters
valuevalue

Member Data Documentation

LangmuirViewer& LangmuirView::IsoSurfaceDialog::m_viewer
private

reference to OpenGL widget

Ui::IsoSurfaceDialog* LangmuirView::IsoSurfaceDialog::ui
private

dialog UI


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