MeVisLab Toolbox Reference
View2DInteractionProvider Class Reference

The View2DInteractionProvider extracts the interactions from the SoView2DExtensions. More...

#include <SoView2DInteraction.h>

Inheritance diagram for View2DInteractionProvider:
SoInteractionProvider

Public Member Functions

 View2DInteractionProvider (SoView2D *viewer)
 
std::list< SoInteraction * > getInteractions (SoState *state) override
 return interactions from SoView2DExtensions
 
void pointerPosition (SoState *state, const SoPointerPosition &pos) override
 Forwarding to the SoView2DExtensions.
 
void pointerLeftWindow (SoState *state) override
 Forwarding to the SoView2DExtensions.
 
- Public Member Functions inherited from SoInteractionProvider
 SoInteractionProvider ()
 Default constructor.
 
virtual ~SoInteractionProvider ()
 
template<class T >
std::list< T * > getInteractionsOfType (SoState *state)
 Returns list of interactions of a specific type:
 
virtual std::list< SoCommandAction * > getCommandActions (SoState *state)
 
virtual std::list< SoPointingAction * > getPointingActions (SoState *state)
 
virtual std::list< SoOffsetAction * > getOffsetActions (SoState *state)
 

Protected Member Functions

const SoNodeListgetExtensionList (SoState *state)
 Return list of extensions at the moment - returns NULL if the current action is not set in the SoView2D.
 
bool isExtensionEnabled (SoView2DExtension *ext) const
 return true if interactions from the given SoView2DExtension should be handled
 

Protected Attributes

SoView2D_viewer
 Back-reference to the SoView2D object.
 

Additional Inherited Members

- Public Types inherited from SoInteractionProvider
typedef SoInteractionProvider *(* GetProviderFunc) (SoNode *)
 
- Static Public Member Functions inherited from SoInteractionProvider
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

The View2DInteractionProvider extracts the interactions from the SoView2DExtensions.

For this it accesses the SoAction currently stored in the SoView2D object.

Definition at line 69 of file SoView2DInteraction.h.

Constructor & Destructor Documentation

◆ View2DInteractionProvider()

View2DInteractionProvider::View2DInteractionProvider ( SoView2D * viewer)

Member Function Documentation

◆ getExtensionList()

const SoNodeList * View2DInteractionProvider::getExtensionList ( SoState * state)
protected

Return list of extensions at the moment - returns NULL if the current action is not set in the SoView2D.

◆ getInteractions()

std::list< SoInteraction * > View2DInteractionProvider::getInteractions ( SoState * state)
overridevirtual

return interactions from SoView2DExtensions

Implements SoInteractionProvider.

◆ isExtensionEnabled()

bool View2DInteractionProvider::isExtensionEnabled ( SoView2DExtension * ext) const
protected

return true if interactions from the given SoView2DExtension should be handled

◆ pointerLeftWindow()

void View2DInteractionProvider::pointerLeftWindow ( SoState * state)
overridevirtual

Forwarding to the SoView2DExtensions.

Implements SoInteractionProvider.

◆ pointerPosition()

void View2DInteractionProvider::pointerPosition ( SoState * state,
const SoPointerPosition & pos )
overridevirtual

Forwarding to the SoView2DExtensions.

Implements SoInteractionProvider.

Member Data Documentation

◆ _viewer

SoView2D* View2DInteractionProvider::_viewer
protected

Back-reference to the SoView2D object.

Definition at line 92 of file SoView2DInteraction.h.


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