18#include <Inventor/SoPickedPoint.h>
42 const SbVec2s& windowSize = pos.
getAction()->getViewportRegion().getWindowSize();
43 return (pos[0] >= 0) &&
45 (pos[0] <= windowSize[0]) &&
46 (pos[1] <= windowSize[1]);
53 const SoPickedPoint* pickedPoint = pos.
getAction()->getPickedPoint();
SoCSODrawOnSurfaceCancelCommandAction(SoCSODrawOnSurface *owner)
void execute() override
Executes the action. Must be overridden by user.
void startPressAt(const SoPointerPosition &pos) override
SoPointingAction * endPress(int) override
bool isSensitiveAt(const SoPointerPosition &pos) override
int getCurrentCursor(SoViewerProxy *) const override
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
Executes the action. Must be overridden by user.
SoCSODrawOnSurfaceRedoCommandAction(SoCSODrawOnSurface *owner)
SoCSODrawOnSurfaceUndoCommandAction(SoCSODrawOnSurface *owner)
void execute() override
Executes the action. Must be overridden by user.
ManagedKeyboardShortcut Shortcut
SoCommandAction(SoInteractionOwner *owner, std::string id)
bool setShortcut(const std::string &shortcut)
virtual void setEnabled(bool enabled)
Sets the enabled status of this interaction.
SoInteractionOwner * getOwner() const
Returns the interaction provider of this entry.
SoPointerPosition manages the current position of the mouse cursor.
SoHandleEventAction * getAction() const
Returns the Inventor action.
@ Button1Mask
Left button.
SoPointingAction(SoInteractionOwner *owner, std::string id, bool positionSensitive=true)
void setTrigger(int triggerMask, int ignoreMask=0)