![]() |
Langmuir
Simulation
|
Widget to view Langmuir Simulation in real time. More...
#include <langmuirviewer.h>
Public Slots | |
| void | setElectronPointMode (PointCloud::Mode mode) |
| set the render mode for points More... | |
| void | setDefectPointMode (PointCloud::Mode mode) |
| set the render mode for points More... | |
| void | setHolePointMode (PointCloud::Mode mode) |
| set the render mode for points More... | |
| void | setPointMode (PointCloud::Mode mode) |
| set the render mode for points More... | |
| void | setIterationsPrint (int value) |
| set the value of iterations.print More... | |
| void | toggleTrapsShown (bool on=true) |
| turn on the traps texture More... | |
| void | toggleOpenCL (bool on=true) |
| turn OpenCL on and off More... | |
| void | toggleCoulomb (bool on=true) |
| turn Coulomb on and off More... | |
| void | toggleCornerAxisIsVisible () |
| show/hide the corner axis More... | |
| void | toggleGridIsVisible () |
| show/hide the grid More... | |
| void | load (QString fileName) |
| load a simulation More... | |
| void | save (QString fileName) |
| save a checkpoint file More... | |
| void | resetCamera () |
| reset the camera to the default position More... | |
| void | unload () |
| unload the current simulation More... | |
| void | reset () |
| reset the current simulation More... | |
| void | pause () |
| pause the simulation More... | |
| void | play () |
| play the simulation More... | |
| void | showParameters () |
| show parameters in a window More... | |
| void | drawLightSource (GLenum light, float scale=1.0f) const |
| draw an OpenGL light source More... | |
| void | loadSettings (QString fileName) |
| load settings from a file More... | |
| void | saveSettings (QString fileName) |
| save settings to a file More... | |
| void | errorMessage (QString message) |
| show error message window More... | |
| void | setSettings (QSettings &settings) |
| set the properties of settings object More... | |
| void | getSettings (QSettings &settings) |
| get the properties of settings object More... | |
| void | setTrapColor (QColor color) |
| Change the trap color. More... | |
| void | setStageColor2 (QColor color) |
| Change the stage color2. More... | |
| void | setBackgroundColor (QColor color) |
| set background color More... | |
| void | initTraps () |
| init trap texture More... | |
| void | initStage () |
| init stage texture More... | |
| void | generateIsoSurface (float value) |
| generate isosurface More... | |
| void | updateTrapMesh () |
| update trap mesh More... | |
| void | resetSettings () |
| set default colors More... | |
| void | setCanCalculateIsoSurface (bool enabled) |
| set can calculate isosurface More... | |
| void | setCheckerSize (float size) |
| set size of checkers on stage More... | |
Signals | |
| void | showMessage (const QString &message, int timeout=0) |
| show a message in the status bar More... | |
| void | clearMessage () |
| clear the status bar message More... | |
| void | isUsingOpenCL (bool useOpenCL) |
| signal if OpenCL is being used More... | |
| void | isUsingCoulomb (bool useCoulomb) |
| signal if Coulomb is being used More... | |
| void | isAnimated (bool playing) |
| signal if simulation is playing More... | |
| void | isShowingTraps (bool shown) |
| signal if traps are shown More... | |
| void | iterationsPrintChanged (int value) |
| signal that iterations.print changed More... | |
| void | currentStepChanged (int value) |
| signal that current.step changed More... | |
| void | openGLInitFinished () |
| signal that OpenGL has been initialized More... | |
| void | trapColorChanged (QColor color) |
| signal that the trap color changed More... | |
| void | stageColor2Changed (QColor color) |
| signal that the stage color2 changed More... | |
| void | backgroundColorChanged (QColor color) |
| signal that the background color changed More... | |
| void | canCalculateIsoSurface (bool able) |
| signal that the isosurface can by calculated again More... | |
| void | isoSurfaceProgress (int) |
| show calculation progress More... | |
| void | checkerSizeChanged (float) |
| signal that the checker size changed More... | |
Public Member Functions | |
| LangmuirViewer (QWidget *parent=0) | |
| create the LangmuirViewer More... | |
| ~LangmuirViewer () | |
| destroy the LangmuirViewer More... | |
| QMatrix4x4 & | getModelViewProjectionMatrix () |
| obtain the model-view-projection matrix (QGLViewer camera) More... | |
| QMatrix4x4 & | getProjectionMatrix () |
| obtain the projection matrix (QGLViewer camera) More... | |
| QMatrix4x4 & | getOpenGLModelViewMatrix () |
| obtain the model-view matrix (OpenGL matrix stack) More... | |
| QMatrix4x4 & | getOpenGLProjectionMatrix () |
| obtain the projection matrix (OpenGL matrix stack) More... | |
| LangmuirCore::Random & | random () |
| get the random number generator More... | |
| bool | okToCalculateIsoSurface () |
| its ok when not already calculating More... | |
| const QColor & | trapColor () const |
| get the trap color More... | |
| const QColor & | stageColor2 () const |
| get the stage color More... | |
| CornerAxis & | cornerAxis () |
| get corner axis object More... | |
| PointCloud & | electrons () |
| get electrons object More... | |
| PointCloud & | defects () |
| get defects object More... | |
| PointCloud & | holes () |
| get holes object More... | |
| PointCloud & | traps () |
| get traps object More... | |
| Box & | rightBox () |
| get right box object More... | |
| Box & | leftBox () |
| get left box object More... | |
| Box & | baseBox () |
| get base box object More... | |
| Box & | trapBox () |
| get trap box object More... | |
| Box & | stageBox () |
| get stage box object More... | |
| Mesh & | trapMesh () |
| get trap mesh object More... | |
| Light & | light () |
| get light object More... | |
| Grid & | grid () |
| get grid object More... | |
Protected Member Functions | |
| void | updateElectronCloud () |
| update the electron point cloud More... | |
| void | updateDefectCloud () |
| update the defect point cloud More... | |
| void | updateTrapCloud () |
| update the defect point cloud More... | |
| void | updateHoleCloud () |
| update the hole point cloud More... | |
| void | initGeometry () |
| update the geometry using simulation parameters More... | |
| virtual void | init () |
| setup OpenGL More... | |
| virtual void | preDraw () |
| draw on the OpenGL widget before the main draw event More... | |
| virtual void | draw () |
| draw on the OpenGL widget More... | |
| virtual void | postDraw () |
| draw on the OpenGL widget after the main draw event More... | |
| virtual void | animate () |
| change the state of the system before drawing More... | |
| virtual void | help () |
| open the help widget More... | |
| virtual QString | helpString () const |
| get the help string More... | |
| void | drawTraps (QImage &image, QColor bcolor, QColor fcolor) |
| draw traps on image More... | |
| void | drawChecker (QImage &image, QColor color1, QColor color2) |
| draw checker pattern on stage More... | |
| void | loadTexture (GLuint imageID, QImage &image) |
| load texture to gpu memory More... | |
Protected Attributes | |
| GLuint | m_textures [2] |
| texture ids More... | |
| CornerAxis * | m_cornerAxis |
| axis that sits in the corner and doesnt change size More... | |
| PointCloud * | m_electrons |
| point cloud representing electrons More... | |
| PointCloud * | m_defects |
| point cloud representing defects More... | |
| PointCloud * | m_holes |
| point cloud representing holes More... | |
| PointCloud * | m_traps |
| point cloud representing traps More... | |
| Box * | m_trapBox |
| trap box More... | |
| Box * | m_baseBox |
| base box More... | |
| Box * | m_lBox |
| box (left) More... | |
| Box * | m_rBox |
| box (right) More... | |
| Box * | m_stageBox |
| box (stage) More... | |
| double | m_boxThickness |
| box parameter More... | |
| QColor | m_trapColor |
| box parameter More... | |
| QColor | m_stageColor2 |
| stage color More... | |
| Grid * | m_grid |
| grid that outlines sites More... | |
| Mesh * | m_trapMesh |
| trap mesh More... | |
| MarchingCubes::Isosurface * | m_isoSurface |
| isosurface More... | |
| Light * | m_light0 |
| main light source More... | |
| LangmuirCore::Simulation * | m_simulation |
| the simulation manipulator More... | |
| LangmuirCore::Random | m_random |
| a random number generator instance More... | |
| LangmuirCore::World * | m_world |
| the simulation data More... | |
| float | m_gridHalfX |
| half of grid.x More... | |
| float | m_gridHalfY |
| half of grid.y More... | |
| float | m_gridHalfZ |
| half of grid.z More... | |
| float | m_gridX |
| grid.x More... | |
| float | m_gridY |
| grid.y More... | |
| float | m_gridZ |
| grid.z More... | |
| QErrorMessage * | m_error |
| error messages More... | |
| bool | m_canCalculateIsoSurface |
| can calculate isosurface More... | |
| float | m_sceneRadius |
| size of scene More... | |
| float | m_stageExtend |
| stage size More... | |
| float | m_checkerSize |
| size of checkers on stage More... | |
Widget to view Langmuir Simulation in real time.
|
explicit |
create the LangmuirViewer
| parent | QObject this belongs to |
| LangmuirView::LangmuirViewer::~LangmuirViewer | ( | ) |
destroy the LangmuirViewer
|
protectedvirtual |
change the state of the system before drawing
|
signal |
signal that the background color changed
|
inline |
get base box object
|
signal |
signal that the isosurface can by calculated again
|
signal |
signal that the checker size changed
|
signal |
clear the status bar message
|
inline |
get corner axis object
|
signal |
signal that current.step changed
| value | value of current.step |
|
inline |
get defects object
|
protectedvirtual |
draw on the OpenGL widget
|
protected |
draw checker pattern on stage
| image | image to draw on |
| color1 | first color |
| color2 | second color |
|
slot |
draw an OpenGL light source
| light | |
| scale |
|
protected |
draw traps on image
| image | image to draw draws on |
| bcolor | background color |
| fcolor | foreground color |
| fcolor | foreground color |
|
inline |
get electrons object
|
slot |
show error message window
| message | error message |
|
slot |
generate isosurface
| QMatrix4x4& LangmuirView::LangmuirViewer::getModelViewProjectionMatrix | ( | ) |
obtain the model-view-projection matrix (QGLViewer camera)
| QMatrix4x4& LangmuirView::LangmuirViewer::getOpenGLModelViewMatrix | ( | ) |
obtain the model-view matrix (OpenGL matrix stack)
| QMatrix4x4& LangmuirView::LangmuirViewer::getOpenGLProjectionMatrix | ( | ) |
obtain the projection matrix (OpenGL matrix stack)
| QMatrix4x4& LangmuirView::LangmuirViewer::getProjectionMatrix | ( | ) |
obtain the projection matrix (QGLViewer camera)
|
slot |
get the properties of settings object
| settings | settings object |
|
inline |
get grid object
|
protectedvirtual |
open the help widget
|
protectedvirtual |
get the help string
|
inline |
get holes object
|
protectedvirtual |
setup OpenGL
|
protected |
update the geometry using simulation parameters
|
slot |
init stage texture
|
slot |
init trap texture
|
signal |
signal if simulation is playing
| playing | true if playing |
|
signal |
show calculation progress
|
signal |
signal if traps are shown
| shown | true if showing traps |
|
signal |
signal if Coulomb is being used
| useCoulomb | true if using Coulomb |
|
signal |
signal if OpenCL is being used
| useOpenCL | true if using OpenCL |
|
signal |
signal that iterations.print changed
| value | value of iterations.print |
|
inline |
get left box object
|
inline |
get light object
|
slot |
load a simulation
| fileName | name of simulation input file |
|
slot |
load settings from a file
| fileName | name of settings file |
|
protected |
load texture to gpu memory
| imageID | OpenGL texture ID |
| image | texture |
|
inline |
its ok when not already calculating
|
signal |
signal that OpenGL has been initialized
|
slot |
pause the simulation
|
slot |
play the simulation
|
protectedvirtual |
draw on the OpenGL widget after the main draw event
|
protectedvirtual |
draw on the OpenGL widget before the main draw event
| LangmuirCore::Random& LangmuirView::LangmuirViewer::random | ( | ) |
get the random number generator
|
slot |
reset the current simulation
|
slot |
reset the camera to the default position
|
slot |
set default colors
|
inline |
get right box object
|
slot |
save a checkpoint file
| fileName | name of simulation checkpoint file |
|
slot |
save settings to a file
| fileName | name of settings file |
|
slot |
set background color
| color | color to set |
|
slot |
set can calculate isosurface
|
slot |
set size of checkers on stage
|
slot |
set the render mode for points
|
slot |
set the render mode for points
|
slot |
set the render mode for points
|
slot |
set the value of iterations.print
| value | value to set |
|
slot |
set the render mode for points
|
slot |
set the properties of settings object
| settings | settings object |
|
slot |
Change the stage color2.
| color | color to set |
|
slot |
Change the trap color.
| color | color to set |
|
signal |
show a message in the status bar
| message | string to display |
| timeout | message display time in ms |
|
slot |
show parameters in a window
|
inline |
get stage box object
|
inline |
get the stage color
|
signal |
signal that the stage color2 changed
|
slot |
show/hide the corner axis
|
slot |
turn Coulomb on and off
| on | true if turning Coulomb on |
|
slot |
show/hide the grid
|
slot |
turn OpenCL on and off
| on | true if turning OpenCL on |
|
slot |
turn on the traps texture
| on | true is showing traps |
|
inline |
get trap box object
|
inline |
get the trap color
|
signal |
signal that the trap color changed
|
inline |
get trap mesh object
|
inline |
get traps object
|
slot |
unload the current simulation
|
protected |
update the defect point cloud
|
protected |
update the electron point cloud
|
protected |
update the hole point cloud
|
protected |
update the defect point cloud
|
slot |
update trap mesh
|
protected |
base box
|
protected |
box parameter
|
protected |
can calculate isosurface
|
protected |
size of checkers on stage
|
protected |
axis that sits in the corner and doesnt change size
|
protected |
point cloud representing defects
|
protected |
point cloud representing electrons
|
protected |
error messages
|
protected |
grid that outlines sites
|
protected |
half of grid.x
|
protected |
half of grid.y
|
protected |
half of grid.z
|
protected |
grid.x
|
protected |
grid.y
|
protected |
grid.z
|
protected |
point cloud representing holes
|
protected |
isosurface
|
protected |
box (left)
|
protected |
main light source
|
protected |
a random number generator instance
|
protected |
box (right)
|
protected |
size of scene
|
protected |
the simulation manipulator
|
protected |
box (stage)
|
protected |
stage color
|
protected |
stage size
|
protected |
texture ids
|
protected |
trap box
|
protected |
box parameter
|
protected |
trap mesh
|
protected |
point cloud representing traps
|
protected |
the simulation data