13 #ifndef SO_OFFSET_ACTION_H
14 #define SO_OFFSET_ACTION_H
35 enum { TypeId = TypeOffsetAction };
120 TriggerList _triggers;
126 OffsetType _offsetType;
#define SOMANAGEDINTERACTION_API
File to resolve system dependencies in View2D library.
@ Button3Mask
Right button.
@ Button1Mask
Left button.
@ AllButtonsMask
All buttons.
@ Button2Mask
Middle button.
Class ManagedOffsetTrigger may contain a ManagedMouseButtonTrigger, a ManagedMouseWheelTrigger,...
SoInteractionHandler is a mix-in class for instances of SoNode to handle the interactions it provides...
SoInteractionOwner is a mix-in class for instances of SoNode that should have interaction objects.
SoInteraction is the base class for SoCommandAction, SoPointingAction, and SoOffsetAction.
SoOffsetAction is the base class for any interaction that only provides (numeric) offsets in one or t...
virtual std::string getCurrentStatusMessage() const
Returns a status message for display in the status bar of MeVisLab (make it short!...
std::list< Trigger > TriggerList
List of triggers.
void clearTriggers()
Clears the list of default triggers.
~SoOffsetAction() override
void setTrigger(const Trigger &trigger)
Sets the (only) default trigger.
virtual int getCurrentCursor(SoViewerProxy *) const
Returns the cursor shape ID for display, as defined in SoViewerProxy.
OffsetType
Type of offset action (single or double axis).
@ SINGLE_AXIS
Only one offset axis is used.
const TriggerList & getTriggers() const
Returns the default triggers set for this action.
virtual void offsetBy(double, double)
Variant without additional information parameter. You need to override one of these methods.
virtual void offsetBy(double dx, double dy, void *)
Performs offset operation with given values.
OffsetType getOffsetType() const
Returns whether one or two axes are used by this action.
void addTrigger(const Trigger &trigger)
Adds another default trigger.
ManagedOffsetTrigger Trigger
The trigger type for this action.
SoOffsetAction(SoInteractionOwner *owner, std::string id, OffsetType offsetType=DOUBLE_AXES)
Standard constructor.
SoPointingAction is the base class for any mouse based interaction.
This class gives access to state of a viewer during scene graph traversal.