MeVisLabToolboxReference
|
SoView2DCallback allows to set a callback for evalEvent and draw virtual functions of a SoView2DExtension. More...
#include <SoView2DCallback.h>
Public Member Functions | |
SoView2DCallback () | |
void | setEvalEventCB (SoView2DEvalEventCB *eval, void *usrData) |
set a callback for evalEvent, clears previous callback | |
void | setDrawCB (SoView2DDrawCB *draw, void *usrData) |
set a callback for draw, clears previous callback | |
virtual void | draw (View2DSliceList *dsl, View2DSlice *dslice, int slice) |
reimplemented from SoView2DExtension | |
virtual bool | evalEvent (SoView2D *view2d, View2DSliceList *slicelist, View2DEvent *ec, View2DEventPhase phase) |
reimplemented from SoView2DExtension | |
Static Public Member Functions | |
static void | initClass () |
Initializes this class. |
SoView2DCallback allows to set a callback for evalEvent and draw virtual functions of a SoView2DExtension.
This class can be used to add SoView2D capabilities to a ML module. See the ml::ContourManager and ml::Draw2D for an example. Some modules like the SoView2DOverlay are also derived from the SoView2DCallback to allow other modules to intercept the draw and evalEvent calls.
Definition at line 38 of file SoView2DCallback.h.
SoView2DCallback::SoView2DCallback | ( | ) |
virtual void SoView2DCallback::draw | ( | View2DSliceList * | dsl, |
View2DSlice * | dslice, | ||
int | slice | ||
) | [virtual] |
reimplemented from SoView2DExtension
Reimplemented from SoView2DExtension.
Reimplemented in SoView2DOverlay, and SoView2DOverlayDecoration.
virtual bool SoView2DCallback::evalEvent | ( | SoView2D * | view2d, |
View2DSliceList * | slicelist, | ||
View2DEvent * | ec, | ||
View2DEventPhase | phase | ||
) | [virtual] |
reimplemented from SoView2DExtension
Reimplemented from SoView2DExtension.
Reimplemented in SoView2DOverlay.
static void SoView2DCallback::initClass | ( | ) | [static] |
Initializes this class.
Reimplemented from SoView2DExtension.
Reimplemented in SoView2DOverlay, and SoView2DOverlayDecoration.
void SoView2DCallback::setDrawCB | ( | SoView2DDrawCB * | draw, |
void * | usrData | ||
) |
set a callback for draw, clears previous callback
void SoView2DCallback::setEvalEventCB | ( | SoView2DEvalEventCB * | eval, |
void * | usrData | ||
) |
set a callback for evalEvent, clears previous callback