5. The GlMainView class

GlMainView provide an OpenGL view with overview

Is the more simple view to implement

You just have to implement :

If you use GlMainView, more important functions are setData and getData

GlMainView use a GlMainWidget to do the rendering, and in setData you must specify what you want to render

In setData you have some code like this : mainWidget->setData(Graph *,DataSet); This code specify what you want to be rendered. if the DataSet is empty GlMainWidget construct a default scene with 3 layers : Foreground, Main and Background

The last element you need to create your OpenGl View is the overview mechanism

In the overview, you can display only one composite (in NodeLinkDiagramComponent is the GlGraphComposite with the graph). To specify this composite you have to call overviewWidget->setObservedView(mainWidget,youComposite);