Public Slots | Public Member Functions | Private Slots

RenderInterface Class Reference

Interface to add additional rendering functions from within plugins. More...

#include <OpenFlipper/BasePlugin/RenderInterface.hh>

Inheritance diagram for RenderInterface:
Inheritance graph
[legend]

List of all members.

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

Detailed Description

Interface to add additional rendering functions from within plugins.

Detailed description

Interface for adding and controlling rendering functions from a plugin.

Definition at line 63 of file RenderInterface.hh.


Member Function Documentation

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.

Returns:
Action for a menu or menu entry

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

Parameters:
_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.

Parameters:
_mode Combined list of drawmodes

Implemented in RenderPickingPlugin.


The documentation for this class was generated from the following file: