18#include <Inventor/SoPickedPoint.h>
43 return (pos[0] >= 0) &&
SoCSODrawOnSurfaceCancelCommandAction(SoCSODrawOnSurface *owner)
void execute() override
Execute the action. Must be overridden by user.
void startPressAt(const SoPointerPosition &pos) override
Starts a drag at given device position.
SoPointingAction * endPress(int) override
Ends the drag at last device position.
bool isSensitiveAt(const SoPointerPosition &pos) override
Returns true if the gesture is startable at the given device position.
int getCurrentCursor(SoViewerProxy *) const override
Returns the cursor ID to display for this action, as defined in SoViewerProxy.h - this gets (at least...
void dragMoveTo(const SoPointerPosition &pos) override
Continues the drag to given device position.
SoCSODrawOnSurfaceDrawAction(SoCSODrawOnSurface *owner, int modifierKey)
bool isInViewportRegion(const SoPointerPosition &pos) const
void setTriggerMask(int modifierKey)
void execute() override
Execute the action. Must be overridden by user.
SoCSODrawOnSurfaceRedoCommandAction(SoCSODrawOnSurface *owner)
SoCSODrawOnSurfaceUndoCommandAction(SoCSODrawOnSurface *owner)
void execute() override
Execute the action. Must be overridden by user.
SoCommandAction is the base class for instantaneous actions.
ManagedKeyboardShortcut Shortcut
Class Shortcut encapsulates the combination of modifier keys and another key that activates a command...
bool setShortcut(const std::string &shortcut)
Set the (only) default key shortcut (as string describing the shortcut, see ManagedKeyboardShortcut::...
virtual void setEnabled(bool enabled)
Sets the enabled status of this interaction.
SoInteractionOwner * getOwner() const
SoPointerPosition manages the current position of the mouse cursor.
SoHandleEventAction * getAction() const
SoPointingAction is the base class for any mouse based interaction.
@ Button1Mask
Left button.
void setTrigger(int triggerMask, int ignoreMask=0)
Sets the (only) default modifier/button mask for triggering this action.
This class gives access to state of a viewer during scene graph traversal.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.