GlMainView provide an OpenGL view with overview
Is the more simple view to implement
You just have to implement :
constructInteractorsMap and constructInteractorsActionList if you want some interators
specificEventFilter, buildContextMenu and computeContextMenuAction if you want contextMenu and specific event filter
setData and getData functions
draw, refresh and init if you want an other draw system (GlMainView provide a basic draw system)
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);