![]() |
Langmuir
Simulation
|
Base class for objects in OpenGL scene. More...
#include <sceneobject.h>
Public Slots | |
| void | toggleVisible () |
| toggle visibility More... | |
| void | setVisible (bool draw=true) |
| set the visibility More... | |
| virtual void | makeConnections () |
| make signal/slot connections More... | |
Signals | |
| void | visibleChanged (bool drawn) |
| signal that the visibility has changed More... | |
Public Member Functions | |
| 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... | |
| virtual void | preDraw () |
| perform OpenGL drawing operations before draw() More... | |
| virtual void | postDraw () |
| perform OpenGL drawing operations after draw() More... | |
Protected Attributes | |
| LangmuirViewer & | m_viewer |
| reference to OpenGL widget More... | |
| bool | visible_ |
| visibility More... | |
Base class for objects in OpenGL scene.
|
explicit |
create the SceneObject
| viewer | the viewer |
| parent | QObject this belongs to |
|
protectedvirtual |
perform OpenGL drawing operations
Reimplemented in LangmuirView::PointCloud, LangmuirView::Light, LangmuirView::Box, LangmuirView::Mesh, LangmuirView::Axis, and LangmuirView::Grid.
|
protectedvirtual |
initialize object
Explicitly call this in derived class constructor.
Reimplemented in LangmuirView::PointCloud, LangmuirView::Light, LangmuirView::Box, LangmuirView::Mesh, LangmuirView::Axis, LangmuirView::CornerAxis, and LangmuirView::Grid.
| bool LangmuirView::SceneObject::isVisible | ( | ) |
true if object is drawn
|
virtualslot |
make signal/slot connections
|
protectedvirtual |
perform OpenGL drawing operations after draw()
Reimplemented in LangmuirView::CornerAxis.
|
protectedvirtual |
perform OpenGL drawing operations before draw()
Reimplemented in LangmuirView::CornerAxis.
| void LangmuirView::SceneObject::render | ( | ) |
calls OpenGL drawing commands.
Use this inside the paintGL() or draw() functions of the main OpenGL widget.
|
slot |
set the visibility
| draw | true if object is to be drawn |
|
slot |
toggle visibility
|
signal |
signal that the visibility has changed
| drawn | true if object is visible |
|
protected |
reference to OpenGL widget
|
protected |
visibility