99 void createLineFixedLength();
#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 distance line CSO.
void selectAndMoveStartPressAt(const SoPointerPosition &pos) override
SoSFBool shouldRenderDecorationOnGhost
Should the decoration also be rendered on ghosts of CSOs?
void createStartPressAt(const SoPointerPosition &pos) override
void createNewCSO(const SoPointerPosition &pos)
SoSFInt32 endPositionDeviceOffsetY
The fixed length in y-direction of a single-click created line in pixel.
bool createEndPress(int clickCount) override
SoSFBool shouldUseShiftToToggleSnapAngle
Should SHIFT toggle snap angle/no snap angle?
void selectAndMoveDragMoveTo(const SoPointerPosition &pos) override
SoSFTypedEnum< DecorationLineStyleOverwriteModes > decorationOverwriteLineStyleAtEnd
SoSFInt32 decorationPixelSizeAtStart
The size of the decoration at the start of the distance line.
SoSFInt32 endPositionDeviceOffsetX
The fixed length in x-direction of a single-click created line in pixel.
SoSFBool createLineWithSingleClick
Shall a line with fixed length in pixel be created with a single click?
SoSFTypedEnum< DecorationLineStyleOverwriteModes > decorationOverwriteLineStyleAtStart
SoSFBool shouldSnapAngle
Should the line snap to an angle relative to the voxel grid?
SoCSODistanceLineEditor()
Standard constructor.
void pointerPositionIfAllowedAt(const SoPointerPosition &) override
Sets seed points while moving the mouse – but not while dragging.
static void initClass()
init class in inventor runtime
void cancel() override
Cancels an action like generating a CSO. Depends on concrete editor.
bool deleteSeedPoint(ml::CSO *cso, ml::CSOSeedPoint *seedPoint) override
Removes the given seed point from the given CSO and returns whether that was successful.
SoSFFloat snapAngle
The angle for snapping.
void draw(const CSODrawCSOInfos &csoInfos, const CSODrawView2DInfos &view2DInfos, const CSODrawSliceInformation &drawSliceInfo, SoView2DCSOExtensibleEditor *editor) override
Drawing routine.
SoSFTypedEnum< DecorationTypes > decorationTypeAtEnd
The decoration to be rendered at the end of the distance line.
void createDragMoveTo(const SoPointerPosition &pos) override
SoPointingAction * selectAndMoveEndPress(int clickCount) override
SoSFTypedEnum< DecorationTypes > decorationTypeAtStart
The decoration to be rendered at the start of the distance line.
SoSFInt32 decorationPixelSizeAtEnd
The size of the decoration at the end of the distance line.
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.
#define ML_M_PI
Pi as ML constant for backward compatibility.