MeVisLab Toolbox Reference
|
SoInteractionOwner is a mix-in class for instances of SoNode that should have interaction objects. More...
#include <SoInteractionOwner.h>
Public Member Functions | |
SoInteractionOwner () | |
Default constructor. | |
~SoInteractionOwner () override | |
The destructor will destroy all interactions created with this object as owner. | |
virtual void | objRef ()=0 |
Memory management by reference counting; must be implemented in derived classes. | |
virtual void | objUnref ()=0 |
virtual std::string | getID () const |
Returns the id string for identifying the provider (and its actions). | |
std::list< SoInteraction * > | getInteractions (SoState *state) override |
Returns the list of all interactions of this provider. | |
void | pointerPosition (SoState *state, const SoPointerPosition &pos) override |
Same as below, with additional SoState argument. Be defaults simply calls the below version. | |
void | pointerLeftWindow (SoState *state) override |
Same as below, with additional SoState argument. Be defaults simply calls the below version. | |
void | addListener (SoInteractionOwnerListenerInterface *listener) |
Add a listener object that is notified of changes in the interaction list. | |
void | removeListener (SoInteractionOwnerListenerInterface *listener) |
Remove a listener object that was notified of changes in the interaction list. | |
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 | |
virtual void | pointerPosition (const SoPointerPosition &) |
Override this if you always need to be informed of the current mouse cursor position. | |
virtual void | pointerLeftWindow () |
This is called when the mouse cursor leaves the window. | |
bool | hasInteractions () const |
Returns whether there are any actions defined by this owner. | |
template<class T > | |
bool | hasInteractionsOfType () const |
Same as above, but asking for a specific type of interaction. | |
Deprecated, happens in constructor of SoInteraction now | |
void | addPointingAction (SoPointingAction *) |
void | addCommandAction (SoCommandAction *) |
void | addOffsetAction (SoOffsetAction *) |
Friends | |
class | SoInteraction |
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 SoInteractionProvider * | getInteractionProvider (SoNode *node) |
Get a SoInteractionProvider from a SoNode if registered, else NULL. | |
SoInteractionOwner is a mix-in class for instances of SoNode that should have interaction objects.
Definition at line 46 of file SoInteractionOwner.h.
SoInteractionOwner::SoInteractionOwner | ( | ) |
Default constructor.
|
override |
The destructor will destroy all interactions created with this object as owner.
|
inlineprotected |
Definition at line 99 of file SoInteractionOwner.h.
void SoInteractionOwner::addListener | ( | SoInteractionOwnerListenerInterface * | listener | ) |
Add a listener object that is notified of changes in the interaction list.
|
inlineprotected |
Definition at line 100 of file SoInteractionOwner.h.
|
inlineprotected |
Definition at line 98 of file SoInteractionOwner.h.
|
virtual |
Returns the id string for identifying the provider (and its actions).
Reimplemented in SoInteractionProviderNode, and SoView2D.
|
overridevirtual |
Returns the list of all interactions of this provider.
Implements SoInteractionProvider.
|
inlineprotected |
Returns whether there are any actions defined by this owner.
Definition at line 90 of file SoInteractionOwner.h.
Same as above, but asking for a specific type of interaction.
Definition at line 121 of file SoInteractionOwner.h.
References mlrange_cast(), and T.
Memory management by reference counting; must be implemented in derived classes.
(Name changed from Inventor methods to avoid confusion, though ref and unref will normally be called for SoInteractionOwners based on OpenInventor.)
Implemented in SoInteractionProviderNode, and SoView2D.
Implemented in SoInteractionProviderNode, and SoView2D.
This is called when the mouse cursor leaves the window.
Reimplemented in SoView2DCSOExtensibleEditor, SoPicking, SoView2DRigidRegistrationEditorBase, and SoView2DVoxelValue.
Definition at line 87 of file SoInteractionOwner.h.
Same as below, with additional SoState argument. Be defaults simply calls the below version.
Implements SoInteractionProvider.
Reimplemented in SoView2DRectangle, SoView2DLabel, and SoView2DSliceZoom.
|
inlineprotectedvirtual |
Override this if you always need to be informed of the current mouse cursor position.
Reimplemented in SoView2DCSOExtensibleEditor, SoPicking, SoView2DPosition, SoView2DRigidRegistrationEditorBase, and SoView2DVoxelValue.
Definition at line 84 of file SoInteractionOwner.h.
|
overridevirtual |
Same as below, with additional SoState argument. Be defaults simply calls the below version.
Implements SoInteractionProvider.
Reimplemented in SoView2DRectangle, SoView2DLabel, and SoView2DSliceZoom.
void SoInteractionOwner::removeListener | ( | SoInteractionOwnerListenerInterface * | listener | ) |
Remove a listener object that was notified of changes in the interaction list.
|
friend |
Definition at line 48 of file SoInteractionOwner.h.