MeVisLab Toolbox Reference
|
SoInteractionProvider is an abstract interface class that provides interactions to the SoInteractionController. More...
#include <SoInteractionProvider.h>
Public Member Functions | |
SoInteractionProvider () | |
Default constructor. | |
virtual | ~SoInteractionProvider () |
virtual std::list< SoInteraction * > | getInteractions (SoState *state)=0 |
Returns the list of all interactions of this provider. | |
template<class T > | |
std::list< T * > | getInteractionsOfType (SoState *state) |
Returns list of interactions of a specific type: | |
virtual void | pointerPosition (SoState *state, const SoPointerPosition &pos)=0 |
Override this to always be informed of the current mouse cursor position. | |
virtual void | pointerLeftWindow (SoState *state)=0 |
This is called when the mouse cursor leaves the window. | |
These methods simply use getInteractionsOfType | |
virtual std::list< SoCommandAction * > | getCommandActions (SoState *state) |
virtual std::list< SoPointingAction * > | getPointingActions (SoState *state) |
virtual std::list< SoOffsetAction * > | getOffsetActions (SoState *state) |
typedef SoInteractionProvider *(* | GetProviderFunc) (SoNode *) |
static void | registerInteractionProviderNode (SoType type, GetProviderFunc func) |
Register a function to obtain a SoInteractionProvider from a SoNode. | |
static SoInteractionProvider * | getInteractionProvider (SoNode *node) |
Get a SoInteractionProvider from a SoNode if registered, else NULL. | |
SoInteractionProvider is an abstract interface class that provides interactions to the SoInteractionController.
Definition at line 38 of file SoInteractionProvider.h.
typedef SoInteractionProvider *(* SoInteractionProvider::GetProviderFunc) (SoNode *) |
Callback function type.
Definition at line 69 of file SoInteractionProvider.h.
SoInteractionProvider::SoInteractionProvider | ( | ) |
Default constructor.
|
inlinevirtual |
Definition at line 44 of file SoInteractionProvider.h.
|
virtual |
|
static |
Get a SoInteractionProvider from a SoNode if registered, else NULL.
This is e.g. used in the SoInteractionCollection class of the SoInteractionControllers library.
|
pure virtual |
Returns the list of all interactions of this provider.
Implemented in SoInteractionOwner, and View2DInteractionProvider.
Referenced by getInteractionsOfType().
Returns list of interactions of a specific type:
Definition at line 85 of file SoInteractionProvider.h.
References getInteractions(), mlrange_cast(), and T.
|
virtual |
|
virtual |
This is called when the mouse cursor leaves the window.
Implemented in SoView2DRectangle, SoInteractionOwner, SoView2DLabel, SoView2DSliceZoom, and View2DInteractionProvider.
|
pure virtual |
Override this to always be informed of the current mouse cursor position.
Implemented in SoView2DRectangle, SoInteractionOwner, SoView2DLabel, SoView2DSliceZoom, and View2DInteractionProvider.
|
static |
Register a function to obtain a SoInteractionProvider from a SoNode.