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. More... | |
virtual | ~SoInteractionProvider () |
virtual std::list< SoInteraction * > | getInteractions (SoState *state)=0 |
Returns the list of all interactions of this provider. More... | |
template<class T > | |
std::list< T * > | getInteractionsOfType (SoState *state) |
Returns list of interactions of a specific type. More... | |
virtual void | pointerPosition (SoState *state, const SoPointerPosition &pos)=0 |
Override this to always be informed of the current mouse cursor position. More... | |
virtual void | pointerLeftWindow (SoState *state)=0 |
This is called when the mouse cursor leaves the window. More... | |
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) |
Registers a function to obtain a SoInteractionProvider from a SoNode. More... | |
static SoInteractionProvider * | getInteractionProvider (SoNode *node) |
Returns a SoInteractionProvider from a SoNode if registered, else NULL. More... | |
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 |
Returns 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 View2DInteractionProvider, and SoInteractionOwner.
Referenced by getInteractionsOfType().
std::list< T * > SoInteractionProvider::getInteractionsOfType | ( | SoState * | state | ) |
Returns list of interactions of a specific type.
Definition at line 85 of file SoInteractionProvider.h.
References getInteractions(), and T.
|
virtual |
|
virtual |
|
pure virtual |
This is called when the mouse cursor leaves the window.
Implemented in View2DInteractionProvider, SoView2DSliceZoom, SoView2DLabel, SoInteractionOwner, and SoView2DRectangle.
|
pure virtual |
Override this to always be informed of the current mouse cursor position.
Implemented in View2DInteractionProvider, SoView2DSliceZoom, SoView2DLabel, SoInteractionOwner, and SoView2DRectangle.
|
static |
Registers a function to obtain a SoInteractionProvider from a SoNode.