58 POINT_DRAWING_MODE_POINT = 0,
59 POINT_DRAWING_MODE_CROSSHAIR = 1
71 void renderCrosshair(
int deviceXCenter,
int deviceYCenter,
const SbColor& color,
float alpha)
const;
72 void glRenderOpaqueLine(
int deviceXStart,
int deviceYStart,
int deviceXEnd,
int deviceYEnd,
const SbColor& color,
float alpha)
const;
73 void glRenderFadingOutLine(
int deviceXStart,
int deviceYStart,
int deviceXEnd,
int deviceYEnd,
const SbColor& color,
float alpha)
const;
75 void glVertex2fWithMagicOffset(
float x,
float y)
const;
79 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 point CSO.
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 selectAndMoveStartPressAt(const SoPointerPosition &pos) override
SoCSOPointEditor()
Standard constructor.
void draw(const CSODrawCSOInfos &csoInfos, const CSODrawView2DInfos &view2DInfos, const CSODrawSliceInformation &drawSliceInfo, SoView2DCSOExtensibleEditor *editor) override
Drawing routine.
bool createEndPress(int clickCount) override
void createStartPressAt(const SoPointerPosition &pos) override
SoSFEnum drawingMode
Sets the drawing mode.
void selectAndMoveDragMoveTo(const SoPointerPosition &pos) override
SoPointingAction * selectAndMoveEndPress(int clickCount) override
bool isCreationAllowedAt(const SoPointerPosition &pos) const override
Returns whether the editor is allowed to create a new CSO at the given position, by default calls the...
void cancel() override
Cancels an action like generating a CSO. Depends on concrete editor.
SoSFBool restrictToImageBoundaries
Points can only be set/moved inside the image boundaries.
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.
The SoSFMLImage field is the interface used by Inventor Nodes to access image data (in the current im...
The CSO represents a contour segmentation object.