Interface to add additional rendering functions from within plugins. More...
#include <OpenFlipper/BasePlugin/RenderInterface.hh>

Public Slots | |
| virtual void | render (ACG::GLState *_glState, Viewer::ViewerProperties &_properties) |
| rendering function | |
| virtual QAction * | optionsAction () |
| Return options menu. | |
Public Member Functions | |
| virtual | ~RenderInterface () |
| Destructor. | |
Private Slots | |
| virtual void | supportedDrawModes (ACG::SceneGraph::DrawModes::DrawMode &_mode)=0 |
| announce required draw modes | |
| virtual QString | rendererName ()=0 |
| announce name for the rendering function | |
Interface to add additional rendering functions from within plugins.
Interface for adding and controlling rendering functions from a plugin.
Definition at line 63 of file RenderInterface.hh.
| virtual QAction* RenderInterface::optionsAction | ( | ) | [inline, virtual, slot] |
Return options menu.
If you want an options Menu or menu entry, you can return your action here. It will be shown on top of the renderer list in the options menu.
Reimplemented in RenderPickingPlugin.
Definition at line 113 of file RenderInterface.hh.
Referenced by Core::loadPlugin().
| virtual void RenderInterface::render | ( | ACG::GLState * | _glState, | |
| Viewer::ViewerProperties & | _properties | |||
| ) | [inline, virtual, slot] |
rendering function
Implement this function to render the scene. You have to traverse the scenegraph in this function. The glContext is made current before this call. If you need to initialize something,you can do it within this function. gl and glew are already setUp here.
Reimplemented in RenderPickingPlugin.
Definition at line 103 of file RenderInterface.hh.
| virtual QString RenderInterface::rendererName | ( | ) | [private, pure virtual, slot] |
announce name for the rendering function
| _name | displayed name of the rendering function |
Implemented in RenderPickingPlugin.
| virtual void RenderInterface::supportedDrawModes | ( | ACG::SceneGraph::DrawModes::DrawMode & | _mode | ) | [private, pure virtual, slot] |
announce required draw modes
This function is called by the core to get a list of draw modes that are supported by this renderer. If such a draw mode is set and the currently active renderer does not support the given mode, the core will switch to this renderer automatically. If there are multiple renderers capable of rendering the drawmode(s), the core will ask the user for its preference.
| _mode | Combined list of drawmodes |
Implemented in RenderPickingPlugin.
1.7.1