41 int cursorShape()
const override {
return createCursor.getValue(); }
102 std::string
getModuleType()
const override {
return moduleCreatorString.getValue().getString(); }
127 SbVec3f color = defaultPathPointColor.getValue();
140 SbVec3f color = defaultSeedPointColor.getValue();
#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...
SoSFFloat defaultSeedPointSize
Sets the default seed point size.
std::string getModuleType() const override
Returns the module's type string.
SoSFBool shouldEmptyGroupBeforeGenerating
Should the CSO group be emptied before generating new CSOs into it?
static void initClass()
init class in inventor runtime
int getAddCSOToGroupMode() const override
Returns the group generation mode.
SoSFEnum defaultPathPointStyle
Sets the default path point style.
float getDefaultPathPointAlpha() const override
Returns the set default path point alpha for a new CSO.
ml::Vector3 getDefaultSeedPointColor() const override
Returns the set default seed point color for a new CSO.
int cursorShape() const override
Returns the cursor shape that indicates the next creation.
void initMembers() override
SoSFString labelPrefixString
Sets a label prefix string.
int getAddCSOToGroupId() const override
Returns the id of a target group.
SoSFInt32 pointerPositionEpsilonForCreatingCSO
The pointer position movement epsilon distance in pixel to trigger CSO creation.
SoSFInt32 moduleCreatorId
Sets the module's creator id.
ml::CSO * _newCSO
Created CSO.
SoSFString moduleCreatorString
Sets the module's type string.
float getDefaultPathPointWidth() const override
Returns the set default path point width for a new CSO.
SoSFColor defaultSeedPointColor
Sets the default seed point color.
ml::CSO * getActiveCSO() const override
Returns the currently active CSO.
SoSFFloat defaultPathPointAlpha
Sets the default path point alpha.
bool getShouldEmptyBeforeGeneration() const override
Returns whether the module should empty a group before generating CSOs into it.
std::string getAddCSOToGroupLabel() const override
Returns the label string of a target group.
SoSFInt32 addCSOToGroupId
Sets the group's id for CSO generation.
SoSFFloat defaultSeedPointAlpha
Sets the default seed point alpha.
ml::Vector3 getDefaultPathPointColor() const override
Returns the set default path point color for a new CSO.
float getDefaultSeedPointSize() const override
Returns the set default seed point size for a new CSO.
int getDefaultVoxelWriteMode() const override
Returns the set default voxel write mode for a new CSO.
float getDefaultSeedPointAlpha() const override
Returns the set default seed point alpha for a new CSO.
SoSFEnum addCSOToGroupMode
Sets whether the group's label or its id should be used for cso-into-group generation.
int getModuleCreatorId() const override
Returns the module's creator id.
SoSFEnum defaultVoxelWriteMode
Sets the default voxel write mode.
int getDefaultSeedPointStyle() const override
Returns the set default seed point style for a new CSO.
SoSFFloat defaultPathPointWidth
Sets the default path point width.
int getMaxAvailableId()
Returns the current id for CSOs created by this editor. It is the maximum available id.
SoSFEnum defaultSeedPointStyle
Sets the default seed point style.
void setCreationData(const SoPointerPosition &pos, ml::CSO *newCSO) override
Sets creation data to a newly created CSO.
float getDefaultVoxelWriteValue() const override
Returns the set default voxel write value for a new CSO.
SoSFFloat defaultVoxelWriteValue
Sets the default voxel write value.
int getDefaultPathPointStyle() const override
Returns the set default path point style for a new CSO.
SoSFColor defaultPathPointColor
Sets the default path point color.
SoSFEnum createCursor
Cursor shapes.
SoSFString addCSOToGroupLabel
Sets the group's label for CSO generation.
bool isFartherThanEpsilon(const SoPointerPosition &pos) const
Returns whether the given position is farther away from the start position than the epsilon in pixel.
SoCSOCreatorEditorExtension()
Hidden constructor.
bool canCreateCSOs() const override
Returns whether the editor can create a CSO.
SoSFBool requirePointerPositionMovementToCreateCSO
Should the mouse have to be moved a bit before creating a CSO?
SbVec2f _startDevicePointerPosition
The device position of the pointer at creation start.
Base class for an editor extension for the SoView2DCSOExtensibleEditor.
SoPointerPosition manages the current position of the mouse cursor.
The CSO represents a contour segmentation object.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
Tvec3< MLdouble > Vector3
A vector with 3 components of type double.