69 unsigned int getHitSeedPointIndex()
const;
75 SbVec3f _startPosition;
#define SOCSO_EXPORT
Header file for system independent resolution.
Base class for extensions that extend the editor with interaction and rendering for specific CSO type...
Extension for rendering, generating, and modifying a square/rectangle CSO.
SoPointingAction * selectAndMoveEndPress(int clickCount) override
SoSFBool shouldMoveOnlyGrabbedSide
Should only a side of the rectangle be moved instead of the entire CSO?
void cancel() override
Cancels an action like generating a CSO. Depends on concrete editor.
bool createEndPress(int clickCount) override
SoSFBool shouldUseShiftToToggleSquareRectangle
Should the SHIFT modifier key be active for toggling square/rectangle?
void pointerPositionIfAllowedAt(const SoPointerPosition &) override
Sets seed points while moving the mouse – but not while dragging.
void selectAndMoveStartPressAt(const SoPointerPosition &pos) override
SoCSORectangleEditor()
Standard constructor.
SoSFFloat grabbedSideMouseOverLineWidth
Line width of a grabbed side on mouse-over.
void createStartPressAt(const SoPointerPosition &pos) override
SoSFBool isSquare
Is the rectangle actually a square?
virtual void drawAdditionalGeometry(const CSODrawView2DInfos &view2DInfos, SoView2DCSOExtensibleEditor *editor)
Routine for drawing additional geometry of the extension.
SoSFColor grabbedSideMouseOverColor
Color of a grabbed side on mouse-over.
void selectAndMoveDragMoveTo(const SoPointerPosition &pos) override
void createDragMoveTo(const SoPointerPosition &pos) override
SoPointerPosition manages the current position of the mouse cursor.
SoPointingAction is the base class for any mouse based interaction.