64 POINT_DRAWING_MODE_POINT = 0,
65 POINT_DRAWING_MODE_CROSSHAIR = 1
80 void renderCrosshair(
int deviceXCenter,
int deviceYCenter,
const SbColor& color,
float alpha)
const;
81 void glRenderOpaqueLine(
int deviceXStart,
int deviceYStart,
int deviceXEnd,
int deviceYEnd,
const SbColor& color,
float alpha)
const;
82 void glRenderFadingOutLine(
int deviceXStart,
int deviceYStart,
int deviceXEnd,
int deviceYEnd,
const SbColor& color,
float alpha)
const;
84 void glVertex2fWithMagicOffset(
float x,
float y)
const;
88 SbVec3f _startPosition;
VoxelSnapMode
Extension for rendering, generating, and modifying a point CSO.
#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
SoSFTypedEnum< VoxelSnapMode > voxelSnapMode
Defines how an interactive position is snapped to the voxel grid.
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.
SoPointingAction * selectAndMoveEndPress(int clickCount) override
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 CSO represents a contour segmentation object.