Difference between revisions of "API Panel.LinkBar.SetEndAdjustment"
From Flowcode Help
Jump to navigationJump to searchLine 43: | Line 43: | ||
===Calling in a calculation=== | ===Calling in a calculation=== | ||
* Add to a calculation icon: <pre class="brush:[cpp]">::Panel.LinkBar.SetEndAdjustment(linkbar, ::Panel.LinkBar.Adjust_None, offset)</pre> | * Add to a calculation icon: <pre class="brush:[cpp]">::Panel.LinkBar.SetEndAdjustment(linkbar, ::Panel.LinkBar.Adjust_None, offset)</pre> | ||
− | |||
− |
Latest revision as of 11:54, 16 January 2023
Detailed description
This causes the link end to clip to an offset from the center of the end position.
The Adjustment is the clipping mode for the end of the link. This is the position the link will end when considering the bounding box of the end position. The default is Adjust_Box. Adjust_Sphere will assume a spherical area around the position, and Adjust_None will end the link at the center of the position. All modes may be adjusted by Offset.
The Offset is always a positive value to reduce the length of the link. That is, Offset is from the end position in the direction of the start position. Specifying 10 units will reduce the link length by 10 world units.
Examples
Calling in a calculation
- Add to a calculation icon:
::Panel.LinkBar.SetEndAdjustment(linkbar, ::Panel.LinkBar.Adjust_None, offset)