MeVisLabToolboxReference
SoView2DCallback Class Reference

SoView2DCallback allows to set a callback for evalEvent and draw virtual functions of a SoView2DExtension. More...

#include <SoView2DCallback.h>

Inheritance diagram for SoView2DCallback:
SoView2DExtension SoView2DOverlay SoView2DOverlayDecoration

List of all members.

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.

Detailed Description

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.

Author:
Florian Link

Definition at line 38 of file SoView2DCallback.h.


Constructor & Destructor Documentation

SoView2DCallback::SoView2DCallback ( )

Member Function Documentation

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


The documentation for this class was generated from the following file: