18#include <Inventor/fields/SoSFEnum.h>
73 enum CSO_REACT_ON_DOUBLE_CLICK
75 CSO_SPLINE_EDITOR_DOUBLE_CLICK_SET_SINGLE_SEED = 0,
76 CSO_SPLINE_EDITOR_DOUBLE_CLICK_SET_DOUBLE_SEEDS,
77 CSO_SPLINE_EDITOR_DOUBLE_CLICK_FINISH,
78 CSO_SPLINE_EDITOR_DOUBLE_CLICK_CLOSE,
79 CSO_SPLINE_EDITOR_DOUBLE_CLICK_FINISH_NO_CLOSE
82 void interpolateCSO(
ml::CSO* cso);
95 bool _couldCloseCurrentCSO;
#define SOCSO_EXPORT
Header file for system independent resolution.
Base class for extensions that generate line-type CSOs with special interaction on finished CSOs.
Extension for rendering, generating, and modifying a spline CSO.
ml::Vector3 getCurrentPositon(const SoPointerPosition &pos)
SoPointingAction * selectAndMoveEndPress(int clickCount) override
bool createEndPress(int clickCount) override
void insertSeedPointDragMoveTo(const SoPointerPosition &pos) override
void selectAndMoveDragMoveTo(const SoPointerPosition &pos) override
bool deleteSeedPoint(ml::CSO *cso, ml::CSOSeedPoint *seedPoint) override
Removes the given seed point from the given CSO and returns whether that was successful.
void createDragMoveTo(const SoPointerPosition &pos) override
void cancel() override
Cancels an action like generating a CSO. Depends on concrete editor.
SoSFBool shouldCloseFreehandOnRelease
Closes a freehand CSO on release, independent of the distance between the first and the last seed poi...
SoSFBool useFreehandMode
Toggles the interaction.
void insertSeedPointStartPressAt(const SoPointerPosition &pos) override
void pointerPositionIfAllowedAt(const SoPointerPosition &pos) override
Sets seed points while moving the mouse – but not while dragging.
void createNewCSO(const SoPointerPosition &pos)
static void initClass()
init class in inventor runtime
SoCSOSplineEditor()
Standard constructor.
void createStartPressAt(const SoPointerPosition &pos) override
int cursorShape() const override
Returns the cursor shape that indicates the next creation.
SoSFEnum doubleClickMode
Defines how the module should react on a double-click.
SoPointingAction * insertSeedPointEndPress(int clickCount) override
void selectAndMoveStartPressAt(const SoPointerPosition &pos) override
SoPointerPosition manages the current position of the mouse cursor.
SoPointingAction is the base class for any mouse based interaction.
The CSOSeedPoint can be interactively set and modified and is the framework for contours.
The CSO represents a contour segmentation object.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.