Class Curve2DModelItemWithBridgesHelper
Inheritance
Curve2DModelItemWithBridgesHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class Curve2DModelItemWithBridgesHelper
Methods
Append a new bridge at the given Position (percent along curve, 0..100)
with size/height = By default. Returns the new bridge wrapper.
Declaration
public static ComWrapper<ICamApiCurveBridgeModelItem> AddBridge(this ComWrapper<ICamApiCurve2DModelItemWithBridges> com, double position)
Parameters
Returns
QueryInterface on a generic ICamApiModelItem that is a 2D curve item.
Check .IsNull if the item does not support bridges (i.e. it is not a curve
on a TSTCurveOp descendant).
Declaration
public static ComWrapper<ICamApiCurve2DModelItemWithBridges> AsWithBridges(this ComWrapper<ICamApiModelItem> itemCom)
Parameters
Returns
Number of bridges currently placed on this curve.
Declaration
public static int BridgesCount(this ComWrapper<ICamApiCurve2DModelItemWithBridges> com)
Parameters
Returns
Remove all bridges from this curve. Equivalent of ClearBridges(true)
on the former for a single curve.
Declaration
public static void ClearBridges(this ComWrapper<ICamApiCurve2DModelItemWithBridges> com)
Parameters
Remove the bridge at the given 0-based index.
Declaration
public static void DeleteBridge(this ComWrapper<ICamApiCurve2DModelItemWithBridges> com, int index)
Parameters
Get bridge by 0-based index. Throws if index is out of range.
Declaration
public static ComWrapper<ICamApiCurveBridgeModelItem> GetBridge(this ComWrapper<ICamApiCurve2DModelItemWithBridges> com, int index)
Parameters
Returns
Reverse bridge order and mirror each Position to 100-Position.
Matches UI "invert curve" behavior.
Declaration
public static void InverseBridges(this ComWrapper<ICamApiCurve2DModelItemWithBridges> com)
Parameters