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);
87 void createCursorShapeChanged(SoField* field);
89 SbVec3f _startPosition;
95 bool _couldCloseCurrentCSO;
#define SOCSO_EXPORT
Header file for system independent resolution.
SoCSOLineCreatorEditorExtension()
Hidden constructor.
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
SoSFBool useFreehandMode
Toggles the interaction.
void insertSeedPointStartPressAt(const SoPointerPosition &pos) override
void pointerPositionIfAllowedAt(const SoPointerPosition &pos) override
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.
Tvec3< MLdouble > Vector3
A vector with three components of type double.