MeVisLabToolboxReference
|
SoView2DInteractionExtension is base class for all SoView2DExtensions that want to support the Managed Interactions and provide a single SoPointingAction. More...
#include <SoView2DInteractionExtension.h>
Public Member Functions | |
SoView2DInteractionExtension (const std::string &actionID, bool positionSensitive=true) | |
SoView2DInteractionExtension () | |
Constructor. | |
virtual void | fieldChanged (SoSensor *sensor) |
handle if any field has changed | |
virtual bool | implementsManagedInteractionAndClassicEventHandling () const |
this node is a hybrid module providing managed interaction and classic event handling | |
Static Public Member Functions | |
static void | initClass () |
Initializes this class. | |
Protected Member Functions | |
virtual | ~SoView2DInteractionExtension () |
destructor | |
bool | isValidLocation (const SoPointerPosition &pos) |
return true if the position is inside the image or needsValidVoxel is not set | |
virtual int | getCurrentCursor (SoViewerProxy *viewerProxy) |
interface forwarded from SoPointingAction: | |
virtual bool | isSensitiveAt (const SoPointerPosition &) |
virtual void | setHighlightAt (const SoPointerPosition &) |
virtual void | unsetHighlight () |
virtual void | startPressAt (const SoPointerPosition &) |
virtual void | dragMoveTo (const SoPointerPosition &) |
virtual SoPointingAction * | endPress (int) |
virtual int | getNumInteractionModes () const |
virtual void | setInteractionMode (int) |
Protected Attributes | |
SoPointingAction * | _pointingAction |
Friends | |
class | SoView2DGenericPointingAction |
SoView2DInteractionExtension is base class for all SoView2DExtensions that want to support the Managed Interactions and provide a single SoPointingAction.
This single SoPointingAction forwards all functionality to this class.
Definition at line 42 of file SoView2DInteractionExtension.h.
SoView2DInteractionExtension::SoView2DInteractionExtension | ( | const std::string & | actionID, |
bool | positionSensitive = true |
||
) |
SoView2DInteractionExtension::SoView2DInteractionExtension | ( | ) |
Constructor.
virtual SoView2DInteractionExtension::~SoView2DInteractionExtension | ( | ) | [protected, virtual] |
destructor
virtual void SoView2DInteractionExtension::dragMoveTo | ( | const SoPointerPosition & | ) | [inline, protected, virtual] |
Reimplemented in SoView2DMarkerEditor, SoView2DPlane, SoView2DPosition, SoView2DRectangle, SoView2DSlicePan, SoView2DSlicer, SoView2DSliceZoom, and SoView2DVoxelValue.
Definition at line 78 of file SoView2DInteractionExtension.h.
virtual SoPointingAction* SoView2DInteractionExtension::endPress | ( | int | ) | [inline, protected, virtual] |
Reimplemented in SoView2DAutoCenter, SoView2DMarkerEditor, SoView2DPlane, SoView2DRectangle, SoView2DSlicePan, SoView2DSlicer, and SoView2DSliceZoom.
Definition at line 79 of file SoView2DInteractionExtension.h.
virtual void SoView2DInteractionExtension::fieldChanged | ( | SoSensor * | sensor | ) | [virtual] |
handle if any field has changed
Reimplemented from SoView2DExtension.
virtual int SoView2DInteractionExtension::getCurrentCursor | ( | SoViewerProxy * | viewerProxy | ) | [protected, virtual] |
interface forwarded from SoPointingAction:
Reimplemented in SoView2DMarkerEditor, and SoView2DPlane.
virtual int SoView2DInteractionExtension::getNumInteractionModes | ( | ) | const [inline, protected, virtual] |
Definition at line 80 of file SoView2DInteractionExtension.h.
virtual bool SoView2DInteractionExtension::implementsManagedInteractionAndClassicEventHandling | ( | ) | const [inline, virtual] |
this node is a hybrid module providing managed interaction and classic event handling
Reimplemented from SoView2DExtension.
Definition at line 62 of file SoView2DInteractionExtension.h.
static void SoView2DInteractionExtension::initClass | ( | ) | [static] |
Initializes this class.
Reimplemented from SoView2DExtension.
Reimplemented in SoView2DAutoCenter, SoView2DMarkerEditor, SoView2DPlane, SoView2DPosition, SoView2DRectangle, SoView2DSlicePan, SoView2DSlicer, SoView2DSliceZoom, and SoView2DVoxelValue.
virtual bool SoView2DInteractionExtension::isSensitiveAt | ( | const SoPointerPosition & | ) | [protected, virtual] |
Reimplemented in SoView2DMarkerEditor, SoView2DPlane, SoView2DPosition, and SoView2DRectangle.
bool SoView2DInteractionExtension::isValidLocation | ( | const SoPointerPosition & | pos | ) | [protected] |
return true if the position is inside the image or needsValidVoxel is not set
virtual void SoView2DInteractionExtension::setHighlightAt | ( | const SoPointerPosition & | ) | [inline, protected, virtual] |
Definition at line 75 of file SoView2DInteractionExtension.h.
virtual void SoView2DInteractionExtension::setInteractionMode | ( | int | ) | [inline, protected, virtual] |
Definition at line 81 of file SoView2DInteractionExtension.h.
virtual void SoView2DInteractionExtension::startPressAt | ( | const SoPointerPosition & | ) | [inline, protected, virtual] |
Reimplemented in SoView2DAutoCenter, SoView2DMarkerEditor, SoView2DPlane, SoView2DPosition, SoView2DRectangle, SoView2DSlicePan, SoView2DSlicer, SoView2DSliceZoom, and SoView2DVoxelValue.
Definition at line 77 of file SoView2DInteractionExtension.h.
virtual void SoView2DInteractionExtension::unsetHighlight | ( | ) | [inline, protected, virtual] |
Definition at line 76 of file SoView2DInteractionExtension.h.
friend class SoView2DGenericPointingAction [friend] |
Definition at line 44 of file SoView2DInteractionExtension.h.
SoPointingAction* SoView2DInteractionExtension::_pointingAction [protected] |
Definition at line 84 of file SoView2DInteractionExtension.h.