Purpose

The module CSOPrimitiveProcessor allows for a generating and editing of elliptical and rectangular contours.

Usage

Attach the module’s output to the inProcessor input of a SoView2DCSOEditor.

Details

If a primitive (ellipse or rectangle) is generated, four seed points are available in each case which always lie directly on the contours. If any of those seed points is dragged, the other three seed points are moved automatically according to the chosen creation scheme.

The parameter Primitive Type influences the appearance of a newly generated CSO. If, for example, a rectangular contour is already generated, and this parameter is turned to Ellipse, the first generated rectangle stays a rectangle even if it is edited with this module being in a different mode.

Windows

Default Panel

../../../Modules/Inventor/SoCSO/mhelp/Images/Screenshots/CSOPrimitiveProcessor._default.png

Output Fields

outProcessorData

name: outProcessorData, type: CSOProcessorData(MLBase)

None. The output is used to establish a connection between this module and a SoView2DCSOEditor module.

Parameter Fields

Field Index

addCSOToGroupMode: Enum Isotropic primitives: Bool
addCSOToGroupWithId: Integer Primitive Type: Enum
apply: Trigger updateMode: Enum
autoApply: Bool  
done: Trigger  
emptyGroupBeforeGeneration: Bool  
From center: Bool  
Is Processing: Bool  

Visible Fields

Is Processing

name: isProcessing, type: Bool, persistent: no

Shows whether the module is processing which is when the user interacts.

Primitive Type

name: primitiveType, type: Enum, default: Rectangle

Defines the primitive type of a newly generated CSO.

Values:

Title Name Description
Rectangle Rectangle Rectangle or a square.
Ellipse Ellipse Ellipse or circle.

Isotropic primitives

name: createIsotropicPrimitives, type: Bool, default: FALSE

If checked, the newly generated primitive is either a square or a circle. If unchecked, arbitrary rectangles or ellipses can be generated.

From center

name: createFromCenter, type: Bool, default: FALSE

If checked, the newly generated primitive has its center at the position of the first mouse click.

If unchecked, the new primitive is generated in such a way that one of its seed points lies at the position of the first mouse click.

Hidden Fields

updateMode

name: updateMode, type: Enum, default: AutoClear

Values:

Title Name
Off Off
Auto Update AutoUpdate
Auto Clear AutoClear

autoApply

name: autoApply, type: Bool, default: FALSE

apply

name: apply, type: Trigger

done

name: done, type: Trigger, persistent: no

emptyGroupBeforeGeneration

name: emptyGroupBeforeGeneration, type: Bool, default: FALSE

addCSOToGroupMode

name: addCSOToGroupMode, type: Enum, default: AddToGroupByLabel

Values:

Title Name
None AddToGroupNone
By Label AddToGroupByLabel
By Id AddToGroupById

addCSOToGroupWithId

name: addCSOToGroupWithId, type: Integer, default: -1