Langmuir
Simulation
|
A class to represent simulation grid. More...
#include <grid.h>
Public Slots | |
virtual void | makeConnections () |
make signal/slot connections More... | |
void | setDimensions (int xsize, int ysize, int zsize) |
create the grid using dimensions More... | |
void | setColor (QColor color) |
set the color More... | |
Public Slots inherited from LangmuirView::SceneObject | |
void | toggleVisible () |
toggle visibility More... | |
void | setVisible (bool draw=true) |
set the visibility More... | |
virtual void | makeConnections () |
make signal/slot connections More... | |
Signals | |
void | colorChanged (QColor color) |
signal that the color of has changed More... | |
void | gridChanged () |
signal that the grid has changed More... | |
Signals inherited from LangmuirView::SceneObject | |
void | visibleChanged (bool drawn) |
signal that the visibility has changed More... | |
Public Member Functions | |
Grid (LangmuirViewer &viewer, QObject *parent=0) | |
create the Grid More... | |
~Grid () | |
destroy the Grid More... | |
const QColor & | getColor () const |
get color More... | |
Public Member Functions inherited from LangmuirView::SceneObject | |
SceneObject (LangmuirViewer &viewer, QObject *parent=0) | |
create the SceneObject More... | |
bool | isVisible () |
true if object is drawn More... | |
void | render () |
calls OpenGL drawing commands. More... | |
Protected Member Functions | |
virtual void | init () |
initialize object More... | |
virtual void | draw () |
perform OpenGL drawing operations More... | |
void | initShaders () |
load the shaders More... | |
void | drawFallback () |
render function More... | |
void | drawGrid () |
render function More... | |
Protected Member Functions inherited from LangmuirView::SceneObject | |
virtual void | preDraw () |
perform OpenGL drawing operations before draw() More... | |
virtual void | postDraw () |
perform OpenGL drawing operations after draw() More... | |
Protected Attributes | |
QOpenGLShaderProgram | m_shader1 |
OpenGL shading pipeline. More... | |
QOpenGLBuffer * | m_verticesVBO |
vertices buffer More... | |
unsigned int | m_numPoints |
total number of points (# vertices / 3) More... | |
QColor | m_color |
color of grid More... | |
bool | m_shader1OK |
shader1 ok to use More... | |
Protected Attributes inherited from LangmuirView::SceneObject | |
LangmuirViewer & | m_viewer |
reference to OpenGL widget More... | |
bool | visible_ |
visibility More... | |
A class to represent simulation grid.
|
explicit |
create the Grid
viewer | the viewer |
parent | QObject this belongs to |
LangmuirView::Grid::~Grid | ( | ) |
destroy the Grid
|
signal |
signal that the color of has changed
color | value of color |
|
protectedvirtual |
perform OpenGL drawing operations
Reimplemented from LangmuirView::SceneObject.
|
protected |
render function
|
protected |
render function
const QColor& LangmuirView::Grid::getColor | ( | ) | const |
get color
|
signal |
signal that the grid has changed
|
protectedvirtual |
initialize object
Reimplemented from LangmuirView::SceneObject.
|
protected |
load the shaders
|
virtualslot |
make signal/slot connections
|
slot |
set the color
color | color to set |
|
slot |
create the grid using dimensions
xsize | size of grid in x-direction |
ysize | size of grid in y-direction |
zsize | size of grid in z-direction |
|
protected |
color of grid
|
protected |
total number of points (# vertices / 3)
|
protected |
OpenGL shading pipeline.
|
protected |
shader1 ok to use
|
protected |
vertices buffer