Purpose¶
The node SoBorderMenu shows a menu of SoMenuItem items arranged at a border or corner of the view.
Usage¶
Interaction¶
The default mouse button is the left mouse button.
This can be overridden with SoInteractionMapping.
Tips¶
You should place this node before any other node that reacts to the same mouse/key button combination, so that this node has the chance to react to the mouse button first. This is because the menu is always displayed on top of the other scene, and a user would expect a mouse click on the menu to act on the menu and not on something that is shown behind the menu.
Windows¶
Default Panel¶
Output Fields¶
self¶
- name: self, type: SoNode¶
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Visible Fields¶
On¶
- name: on, type: Bool, default: TRUE¶
Enabled¶
- name: enabled, type: Bool, default: TRUE¶
Icon Blend Mode¶
- name: iconBlendMode, type: Enum, default: IconReplace¶
Color¶
- name: color, type: Color, default: 1 1 1¶
Color Selected¶
- name: colorSelected, type: Color, default: 1 1 1¶
Background Color¶
- name: backgroundColor, type: Color, default: 0.5 0.5 0.5¶
Alpha (backgroundAlpha)¶
- name: backgroundAlpha, type: Float, default: 0.80000001, minimum: 0, maximum: 1¶
Background Color Selected¶
- name: backgroundColorSelected, type: Color, default: 0.699999988079071 0.699999988079071 0.699999988079071¶
Alpha (backgroundAlphaSelected)¶
- name: backgroundAlphaSelected, type: Float, default: 0.80000001, minimum: 0, maximum: 1¶
Mouse Over Color Factor¶
- name: mouseOverColorFactor, type: Float, default: 0.80000001, minimum: 0, maximum: 1¶
Disable ZBuffer¶
- name: disableZBuffer, type: Bool, default: TRUE¶
Font Size¶
- name: fontSize, type: Integer, default: 10, minimum: 0¶
Text Shadow¶
- name: textShadow, type: Bool, default: TRUE¶
Outer Border¶
- name: itemOuterBorder, type: Float, default: 1, minimum: 0¶
Inner Border¶
- name: itemInnerBorder, type: Float, default: 3, minimum: 0¶
Gap Between Icon and Text¶
- name: textIconGap, type: Integer, default: 4, minimum: 0¶
Border Alignment¶
- name: borderAlignment, type: Enum, default: BORDER_LEFT¶
Where to put the menu.
Values:
Title |
Name |
|---|---|
Top Left |
BORDER_TOP_LEFT |
Top Right |
BORDER_TOP_RIGHT |
Bottom Left |
BORDER_BOTTOM_LEFT |
Bottom Right |
BORDER_BOTTOM_RIGHT |
Top |
BORDER_TOP |
Left |
BORDER_LEFT |
Right |
BORDER_RIGHT |
Bottom |
BORDER_BOTTOM |
Vertical Border Offset¶
- name: verticalBorderOffset, type: Float, default: 4, minimum: 0¶
Sets a vertical border offset.
Horizontal Border Offset¶
- name: horizontalBorderOffset, type: Float, default: 4, minimum: 0¶
Sets a horizontal border offset.