A base class used for integrating Ceetron Desktop Components with a UI Toolkit. More...
Public Member Functions | |
ViewerUIFramework (OpenGLContextGroup *contextGroup) | |
Constructs a Viewer. More... | |
![]() | |
Viewer () | |
Constructs an empty viewer. More... | |
Protected Member Functions | |
virtual void | doRequestRedraw ()=0 |
Requests a redraw of the 3D window in the UI toolkit. More... | |
virtual void | doRequestImmediateRedraw ()=0 |
Requests an immediate redraw of the 3D window in the UI toolkit. More... | |
virtual bool | doMakeCurrent ()=0 |
Sets the OpenGL Context of the Viewer current. More... | |
virtual bool | doIsCurrent ()=0 |
Returns true if the OpenGL context in the Viewer is current. More... | |
virtual unsigned int | doGetDefaultFramebufferObject ()=0 |
Returns the default framebuffer object for the current surface. More... | |
bool | initializeComponentInternalOpenGL () |
Does internal initialization of this viewer. More... | |
void | shutdownComponentInternalOpenGL () |
Prepares the viewer for deletion. More... | |
OpenGLInfo | openGLInfo () const |
Returns the openGL info for current framework. More... | |
A base class used for integrating Ceetron Desktop Components with a UI Toolkit.
This class describes the minimum implementation needed to integrate Ceetron Desktop Components into a UI framework. Ready to use PlatformIntegration classes are provided for Qt, wxWidgets and Win32. These can be useful to look at when creating a Viewer for your Toolkit. The Qt Viewers are described here: Using Ceetron Desktop Components with Qt.
To create your own Viewer, you need to derive from this class and implement the three pure virtual methods below. This is the only requirement to get Ceetron Desktop Components to work with your UI toolkit.
Please contact Support if you need assistance in using Ceetron Desktop Components with your UI toolkit on your platform(s).
cee::vis::ViewerUIFramework::ViewerUIFramework | ( | OpenGLContextGroup * | contextGroup | ) |
Constructs a Viewer.
You need to provide a OpenGLContextGroup. This is created using the VisualizationComponent::createOpenGLContextGroup() method. See one of the Minimal example programs for a demonstration on how to do this.
|
protectedpure virtual |
Returns the default framebuffer object for the current surface.
|
protectedpure virtual |
Returns true if the OpenGL context in the Viewer is current.
|
protectedpure virtual |
Sets the OpenGL Context of the Viewer current.
|
protectedpure virtual |
Requests an immediate redraw of the 3D window in the UI toolkit.
|
protectedpure virtual |
Requests a redraw of the 3D window in the UI toolkit.
|
protected |
Does internal initialization of this viewer.
It is safe to call this function multiple times, successive calls will do nothing if the viewer is already initialized.
|
protected |
Returns the openGL info for current framework.
|
protected |
Prepares the viewer for deletion.
Prepares the viewer for deletion by shutting down and possibly cleaning up backing OpenGL structures and resources.