10 #include <OpenGL/glu.h>
101 #endif // SCENEOBJECT_H
Base class for objects in OpenGL scene.
Definition: sceneobject.h:22
virtual void preDraw()
perform OpenGL drawing operations before draw()
virtual void init()
initialize object
bool isVisible()
true if object is drawn
virtual void makeConnections()
make signal/slot connections
void render()
calls OpenGL drawing commands.
bool visible_
visibility
Definition: sceneobject.h:96
void visibleChanged(bool drawn)
signal that the visibility has changed
void setVisible(bool draw=true)
set the visibility
void toggleVisible()
toggle visibility
LangmuirViewer & m_viewer
reference to OpenGL widget
Definition: sceneobject.h:93
Widget to view Langmuir Simulation in real time.
Definition: langmuirviewer.h:47
virtual void postDraw()
perform OpenGL drawing operations after draw()
virtual void draw()
perform OpenGL drawing operations
SceneObject(LangmuirViewer &viewer, QObject *parent=0)
create the SceneObject