MeVisLab Toolbox Reference
SoInteractionProvider Class Referenceabstract

SoInteractionProvider is an abstract interface class that provides interactions to the SoInteractionController. More...

#include <SoInteractionProvider.h>

Inheritance diagram for SoInteractionProvider:
SoInteractionOwner View2DInteractionProvider SoInteractionProviderNode SoView2D SoInteractionNode SoView2DExtension SoCSO3DVis SoCSODrawOnSurface SoMouseGrabber SoPicking SoView2DBorder SoView2DCSOExtensibleEditor SoView2DCallback SoView2DCine SoView2DCurrentState SoView2DDeformationGridView SoView2DEnlargeOnClick SoView2DExtensionSampler SoView2DExtensionSeparator SoView2DGrid SoView2DInteractionExtension SoView2DLegend SoView2DMagnifyController SoView2DRuler SoView2DShaderDevicePosition SoView2DShaderOverlay SoView2DTouchControl SoView2DTransRot SoView2DVectorFieldView SoView2DVoxelView

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 SoInteractionProvidergetInteractionProvider (SoNode *node)
 Get a SoInteractionProvider from a SoNode if registered, else NULL.
 

Detailed Description

SoInteractionProvider is an abstract interface class that provides interactions to the SoInteractionController.

Definition at line 38 of file SoInteractionProvider.h.

Member Typedef Documentation

◆ GetProviderFunc

typedef SoInteractionProvider *(* SoInteractionProvider::GetProviderFunc) (SoNode *)

Callback function type.

Definition at line 69 of file SoInteractionProvider.h.

Constructor & Destructor Documentation

◆ SoInteractionProvider()

SoInteractionProvider::SoInteractionProvider ( )

Default constructor.

◆ ~SoInteractionProvider()

virtual SoInteractionProvider::~SoInteractionProvider ( )
inlinevirtual

Definition at line 44 of file SoInteractionProvider.h.

Member Function Documentation

◆ getCommandActions()

virtual std::list< SoCommandAction * > SoInteractionProvider::getCommandActions ( SoState * state)
virtual

◆ getInteractionProvider()

static SoInteractionProvider * SoInteractionProvider::getInteractionProvider ( SoNode * node)
static

Get a SoInteractionProvider from a SoNode if registered, else NULL.

This is e.g. used in the SoInteractionCollection class of the SoInteractionControllers library.

◆ getInteractions()

virtual std::list< SoInteraction * > SoInteractionProvider::getInteractions ( SoState * state)
pure virtual

Returns the list of all interactions of this provider.

Implemented in SoInteractionOwner, and View2DInteractionProvider.

Referenced by getInteractionsOfType().

◆ getInteractionsOfType()

template<class T >
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(), mlrange_cast(), and T.

◆ getOffsetActions()

virtual std::list< SoOffsetAction * > SoInteractionProvider::getOffsetActions ( SoState * state)
virtual

◆ getPointingActions()

virtual std::list< SoPointingAction * > SoInteractionProvider::getPointingActions ( SoState * state)
virtual

◆ pointerLeftWindow()

virtual void SoInteractionProvider::pointerLeftWindow ( SoState * state)
pure virtual

This is called when the mouse cursor leaves the window.

Implemented in SoView2DRectangle, SoInteractionOwner, SoView2DLabel, SoView2DSliceZoom, and View2DInteractionProvider.

◆ pointerPosition()

virtual void SoInteractionProvider::pointerPosition ( SoState * state,
const SoPointerPosition & pos )
pure virtual

Override this to always be informed of the current mouse cursor position.

Implemented in SoView2DRectangle, SoInteractionOwner, SoView2DLabel, SoView2DSliceZoom, and View2DInteractionProvider.

◆ registerInteractionProviderNode()

static void SoInteractionProvider::registerInteractionProviderNode ( SoType type,
GetProviderFunc func )
static

Register a function to obtain a SoInteractionProvider from a SoNode.


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