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 status bar (make it short!), will get called at same time as ...
std::list< Trigger > TriggerList
List of triggers.
void clearTriggers()
Clears list of default triggers.
~SoOffsetAction() override
const TriggerList & getTriggers() const
Returns the default triggers set for this action.
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.
virtual void offsetBy(double, double)
Variant without additional info parameter. You need to override one of these methods.
virtual void offsetBy(double dx, double dy, void *)
Perform offset operation with given values.
OffsetType getOffsetType() const
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.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.