Image Component Library (ICL)
|
Extended ICLDrawWidget, able to draw 2D and 3D primitives using OpenGL. More...
#include <DrawWidget3D.h>
Classes | |
class | GLCallback |
internally used callback class type More... | |
Public Member Functions | |
ICLDrawWidget3D (QWidget *parent) | |
creates a new ICLDrawWidget embedded into the parent component | |
virtual void | customPaintEvent (PaintEngine *e) |
overwrites the parent's method | |
void | link (GLCallback *cb) |
add a single 3D callback, that is rendered (here, no queue swapping is neccessary) | |
Protected Attributes | |
GLCallback * | m_linkedCallback |
special single callback linked to the 3D visualisation | |
utils::Mutex | m_linkMutex |
internal mutex |
Extended ICLDrawWidget, able to draw 2D and 3D primitives using OpenGL.
Even though, it is possible to use the ICLDrawWidget3D for rendering 3D stuff on top of an image directly, it is strongly recommended to use an instance of ICLGeom::Scene to manage camera, scene objects and lights. A scene instance provides a single ICLDrawWidget3D::GLCallback* that can easily be linked to the DrawWidget3D by using the ICLDrawWidget3D::link method.
Most older methods got the deprecated status. They will be removed soon, since it turned out, that using ICLGeom's Scene class is much easier and less error-prone.
icl::qt::ICLDrawWidget3D::ICLDrawWidget3D | ( | QWidget * | parent | ) |
creates a new ICLDrawWidget embedded into the parent component
virtual void icl::qt::ICLDrawWidget3D::customPaintEvent | ( | PaintEngine * | e | ) | [virtual] |
overwrites the parent's method
Reimplemented from icl::qt::ICLDrawWidget.
void icl::qt::ICLDrawWidget3D::link | ( | GLCallback * | cb | ) |
add a single 3D callback, that is rendered (here, no queue swapping is neccessary)
the linked callback can be removed by calling link(0). The ownership of the linked callback is never passed.
GLCallback* icl::qt::ICLDrawWidget3D::m_linkedCallback [protected] |
special single callback linked to the 3D visualisation
utils::Mutex icl::qt::ICLDrawWidget3D::m_linkMutex [protected] |
internal mutex