Stock
This page covers ISheet, ISheets, ISheetChangeEvent, ISheetChangeEventHandler, ISheetDefect, ISheetDefects, ISheetDefectChangeEvent, and ISheetDefectChangeEventHandler. These interfaces describe available stock items and the rectangular regions attached to them, which are either defects or holes (see below).
An ISheet exposes its original Defects separately from
Holes, plus per-edge MinEdgeDistance and mutable
ITcAlgorithmData. Its payload is opaque and
implementation-defined; no public key/value schema or compatibility guarantee is
provided. Preserve the stock-property distinctions when importing or exporting
stock.
Defects and holes are different things. Both are exposed through the same
ISheetDefects collection type, but the meaning differs.
A defect (ISheet.Defects) is damaged material in the stock, for example a
scratch. It is still material: it can be cut through and may end up inside a
remnant or waste, but pieces must not be placed on it. A hole
(ISheet.Holes, and ISolutionWaste.Holes for a remnant) is no material at
all. The stock already comes with it, TonCut never creates holes, there is
nothing to cut, and it is neither waste nor usable or available area. Hole
support is currently limited.
Breaking change: ISheet.Priority changed from an enum to a plain
integer, cStockPriorityMin..cStockPriorityMax (0..100); a higher
value is consumed earlier, cStockPriorityLow (0) is "low", and
cStockPriorityNormal (10) is the default "normal". It is a soft signal
that only breaks ties in consumption order. GetPriority and SetPriority
keep their existing vtable slots and interface GUID, but the signature
changed in place — this is not merely a recompile notice. A plugin built
against the previous enum is unsafe to load: every plugin binary that reads
or sets ISheet.Priority must be rebuilt against the current SDK before it
runs again.
ISheet.PricePerSqM lets one stock item override its material's
PricePerSqM for that item alone. cStockPriceAbsent (-1) means no
override is set, so the material price applies; any other value, including
an explicit 0, must be finite and >= 0. GetPricePerSqM and
SetPricePerSqM are new vtable slots appended at the end of the
interface, after EndUpdate, under the same interface GUID, so no existing
slot moves; every class that implements ISheet must add both methods.
Engine version 24 carries these slots together with the Priority change
above, and the host refuses a plugin whose EngineVersion does not match,
so rebuild every plugin against the current SDK.
Interfaces
Declarations are shown in Pascal and, where the SDK's generated language-support manifest lists the member for C++, in C++; the build fails if that manifest no longer matches TonCutPluginSdk.hpp. There is no C# declaration: C# plugins are native-shim-only, so a C++ shim owns every interface on this page. Methods are listed with their accessors folded into properties; open Vtable order for the exact slot sequence, and see ABI and marshalling for type sizes and ownership rules.
ISheet
Stock sheet definition including material, edging, defect list, reuse constraints, and extraction cost.
- IID
- {3D92A70F-6B18-45C4-A8E1-7C204F6B9D35}
- Parent
- IUnknown (implicit: a Delphi interface without a parent is IUnknown)
- Unit
- uISheet
Vtable order (49 methods, slots 3 to 51, after the three IUnknown slots)
- function GetId(): Int64;
- procedure SetId(aId: Int64);
- function GetWidth(): Cardinal;
- procedure SetWidth(aWidth: Cardinal);
- function GetLength(): Cardinal;
- procedure SetLength(aLength: Cardinal);
- function GetQuantity(): Integer;
- procedure SetQuantity(aQuantity: Integer);
- function GetStackSize(): Cardinal;
- procedure SetStackSize(aSize: Cardinal);
- function GetOrnament(): TOrnament;
- procedure SetOrnament(aOrnament: TOrnament);
- function GetIdentifier(): WideString;
- procedure SetIdentifier(const aIdentifier: WideString);
- function GetDescription(): WideString;
- procedure SetDescription(const aDescription: WideString);
- function GetMaterial(): IMaterial;
- procedure SetMaterial(const aMaterial: IMaterial);
- function GetEdging(): IRectangle;
- function GetMinEdgeDistance(): IRectangle;
- function GetPriority(): Integer;
- procedure SetPriority(aPriority: Integer);
- function GetCutShiftHorzLimit(): Integer;
- procedure SetCutShiftHorzLimit(aLimit: Integer);
- function GetCutShiftVertLimit(): Integer;
- procedure SetCutShiftVertLimit(aLimit: Integer);
- function GetEffectiveCutShiftHorzLimit(): Integer;
- function GetEffectiveCutShiftVertLimit(): Integer;
- function GetExtractionCost(): TTcPrice;
- procedure SetExtractionCost(aCost: TTcPrice);
- function GetCustomData(): WideString;
- procedure SetCustomData(const aData: WideString);
- function GetAlgorithmData(): ITcAlgorithmData;
- function GetDefects(): ISheetDefects;
- function GetHoles(): ISheetDefects;
- function GetAvailableQuantity(): Cardinal;
- function GetField(): TField;
- function GetFieldOfAll(): TField;
- function IsStandard(): Boolean;
- procedure Assign(const aSheet: ISheet);
- function GetOnChange(): INotifyEvent;
- function GetOnIdChange(): IIdChangeEvent;
- function GetOnDefectAdd(): ISheetDefectChangeEvent;
- function GetOnDefectRemove(): ISheetDefectChangeEvent;
- function GetOnDefectChange(): ISheetDefectChangeEvent;
- procedure BeginUpdate();
- procedure EndUpdate();
- function GetPricePerSqM(): TTcPrice;
- procedure SetPricePerSqM(aPrice: TTcPrice);
Properties
- Property name
- Id
- Type
- Int64
- Description
Persistent numeric identifier used by TonCut to track the object.
Declaration
property Id: Int64 read GetId write SetId;
- Property name
- Width
- Type
- Cardinal
- Description
Width value stored on the object.
Declaration
property Width: Cardinal read GetWidth write SetWidth;
- Property name
- Length
- Type
- Cardinal
- Description
Length value stored on the object.
Declaration
property Length: Cardinal read GetLength write SetLength;
- Property name
- Quantity
- Type
- Integer
- Description
Number of sheets of this stock item.
Declaration
property Quantity: Integer read GetQuantity write SetQuantity;
- Property name
- StackSize
- Type
- Cardinal
- Description
Maximum stack size or batch size.
Declaration
property StackSize: Cardinal read GetStackSize write SetStackSize;
- Property name
- Ornament
- Type
- Description
Grain or ornament direction associated with the stock item.
Declaration
property Ornament: TOrnament read GetOrnament write SetOrnament;
- Property name
- Identifier
- Type
- WideString
- Description
Code stored with the object, such as a part number.
Declaration
property Identifier: WideString read GetIdentifier write SetIdentifier;
- Property name
- Description
- Type
- WideString
- Description
Name or descriptive text shown to the user.
Declaration
property Description: WideString read GetDescription write SetDescription;
- Property name
- Material
- Type
- IMaterial
- Description
Material linked to the object.
Declaration
property Material: IMaterial read GetMaterial write SetMaterial;
- Property name
- Edging
- Type
- IRectangle
- Description
Rectangle-like edging or margin helper attached to the object.
Declaration
property Edging: IRectangle read GetEdging;
- Property name
- MinEdgeDistance
- Type
- IRectangle
- Description
Per-edge minimum distance exposed as a signed rectangle; a negative side means inherited or unspecified.
Declaration
property MinEdgeDistance: IRectangle read GetMinEdgeDistance;
- Property name
- Priority
- Type
- Integer
- Description
Gets or sets the stock priority for this sheet: an integer from
cStockPriorityMintocStockPriorityMax(0 to 100); a higher value is consumed earlier.cStockPriorityLow(0) is the "low" label andcStockPriorityNormal(10) is the default "normal" label. It is a soft signal that factors into the sheet score and only breaks ties in consumption order. ThecStockPriority*constants are defined inuICommonand inTonCutPluginSdk.hpp. Breaking change: this property used to be theTOldStockPriorityenum.GetPriority/SetPrioritykeep the same vtable slots and interface GUID, but the signature changed in place, so a plugin built against the previous enum must be rebuilt against the current SDK.Declaration
property Priority: Integer read GetPriority write SetPriority;
- Property name
- CutShiftHorzLimit
- Type
- Integer
- Description
Horizontal limit for cut shifting.
Declaration
property CutShiftHorzLimit: Integer read GetCutShiftHorzLimit write SetCutShiftHorzLimit;
- Property name
- CutShiftVertLimit
- Type
- Integer
- Description
Vertical limit for cut shifting.
Declaration
property CutShiftVertLimit: Integer read GetCutShiftVertLimit write SetCutShiftVertLimit;
- Property name
- EffectiveCutShiftHorzLimit
- Type
- Integer
- Description
Gets effective cut shift horz limit.
Declaration
property EffectiveCutShiftHorzLimit: Integer read GetEffectiveCutShiftHorzLimit;
- Property name
- EffectiveCutShiftVertLimit
- Type
- Integer
- Description
Effective vertical cut-shift limit after host rules are applied.
Declaration
property EffectiveCutShiftVertLimit: Integer read GetEffectiveCutShiftVertLimit;
- Property name
- ExtractionCost
- Type
- TTcPrice
- Description
Gets or sets extraction cost.
Declaration
property ExtractionCost: TTcPrice read GetExtractionCost write SetExtractionCost;
- Property name
- PricePerSqM
- Type
- TTcPrice
- Description
Gets or sets this stock item’s own price per square metre, overriding its material’s
PricePerSqMfor this item alone.cStockPriceAbsent(-1, defined inuICommonandTonCutPluginSdk.hpp) means no override is set, so the material price applies; any other value, including an explicit 0, must be finite and >= 0.GetPricePerSqM/SetPricePerSqMare new vtable slots appended at the end of the interface, afterEndUpdate, under the same interface GUID, so no existing slot moves. TonCut implementsISheet; a plugin only calls these accessors. Engine version 24 carries these slots, and the host refuses a plugin whoseEngineVersiondoes not match, so rebuild plugins against the current SDK.Declaration
property PricePerSqM: TTcPrice read GetPricePerSqM write SetPricePerSqM;
- Property name
- CustomData
- Type
- WideString
- Description
Opaque custom text payload stored with the object.
Declaration
property CustomData: WideString read GetCustomData write SetCustomData;
- Property name
- AlgorithmData
- Type
- ITcAlgorithmData
- Description
Mutable access to opaque, implementation-defined algorithm data owned by the current device, material, piece, or stock sheet. No public payload schema or compatibility guarantee is provided.
Declaration
property AlgorithmData: ITcAlgorithmData read GetAlgorithmData;No C++ declaration in the SDK's language-support manifest. If your
TonCutPluginSdk.hpplacks it, declare it in the vtable order shown above.
- Property name
- Defects
- Type
- ISheetDefects
- Description
Read-only collection of the stock sheet’s defects: damaged material, such as a scratch. A defect is still material, so it can be cut through and may end up inside a remnant or waste, but pieces must not be placed on it. Holes are exposed separately through
Holes; both use theISheetDefectscollection type.Declaration
property Defects: ISheetDefects read GetDefects;
- Property name
- Holes
- Type
- ISheetDefects
- Description
Read-only collection of holes: areas where the stock (or a remnant, on
ISolutionWaste) has no material at all. A hole comes with the stock, is never created by TonCut, is not waste, and is not usable or available area. Support is currently limited. Holes use the sameISheetDefectscollection type as defects, but their meaning differs.Declaration
property Holes: ISheetDefects read GetHoles;
- Property name
- AvailableQuantity
- Type
- Cardinal
- Description
Remaining quantity currently available.
Declaration
property AvailableQuantity: Cardinal read GetAvailableQuantity;
- Property name
- Field
- Type
- TField
- Description
Area-like value stored on the object.
Declaration
property Field: TField read GetField;
- Property name
- FieldOfAll
- Type
- TField
- Description
Gets field of all.
Declaration
property FieldOfAll: TField read GetFieldOfAll;
- Property name
- OnChange
- Type
- INotifyEvent
- Description
Event fired when the object or collection changes.
Declaration
property OnChange: INotifyEvent read GetOnChange;
- Property name
- OnIdChange
- Type
- IIdChangeEvent
- Description
Event fired when an identifier changes.
Declaration
property OnIdChange: IIdChangeEvent read GetOnIdChange;
- Property name
- OnDefectAdd
- Type
- ISheetDefectChangeEvent
- Description
Event exposed through OnDefectAdd.
Declaration
property OnDefectAdd: ISheetDefectChangeEvent read GetOnDefectAdd;
- Property name
- OnDefectRemove
- Type
- ISheetDefectChangeEvent
- Description
Event exposed through OnDefectRemove.
Declaration
property OnDefectRemove: ISheetDefectChangeEvent read GetOnDefectRemove;
- Property name
- OnDefectChange
- Type
- ISheetDefectChangeEvent
- Description
Event exposed through OnDefectChange.
Declaration
property OnDefectChange: ISheetDefectChangeEvent read GetOnDefectChange;
Methods
- Method name
- IsStandard()
- Type
- Boolean
- Description
Return is standard.
Declaration
function IsStandard(): Boolean; safecall;ReturnsReturnstrueif the sheet comes from a standard-sheet definition.
- Method name
- Assign()
- Type
- procedure
- Description
Copy values from another object of the same type.
Declaration
procedure Assign(const aSheet: ISheet); safecall;Parameters
- Method name
- BeginUpdate()
- Type
- procedure
- Description
Start a batched update so change notifications can be delayed.
Declaration
procedure BeginUpdate(); safecall;
- Method name
- EndUpdate()
- Type
- procedure
- Description
Finish a batched update and allow deferred notifications to resume.
Declaration
procedure EndUpdate(); safecall;
ISheets
Collection interface used to create, enumerate, query, and reload a shared Desktop object set.
- IID
- {66C5F864-69D6-43A0-846B-C8AF73DA21E3}
- Parent
- IUnknown (implicit: a Delphi interface without a parent is IUnknown)
- Unit
- uISheets
Vtable order (22 methods, slots 3 to 24, after the three IUnknown slots)
- function CreateSheet(): ISheet;
- procedure Add(aSheet: ISheet);
- procedure DeleteByIndex(aIndex: Cardinal);
- procedure DeleteById(aId: Int64);
- procedure Remove(const aSheet: ISheet);
- function IndexOf(const aSheet: ISheet): Integer; overload;
- function IndexOf(aId: Int64): Integer; overload;
- function IndexOf(const aOtherSheet: ISheet; aSkipId: Int64; var aRotated: Boolean): Integer; overload;
- function CreateDefect(): ISheetDefect;
- function GetCount(): Integer;
- function GetByIndex(aIndex: Cardinal): ISheet;
- function GetById(aId: Int64): ISheet;
- function CalcMaxLength(): Cardinal;
- function GetField(): TField;
- function GetAvailableQuantity(): Cardinal;
- function GetOnAdd(): ISheetChangeEvent;
- function GetOnRemove(): ISheetChangeEvent;
- function GetOnChange(): INotifyEvent;
- procedure BeginUpdate();
- procedure EndUpdate();
- function IsUpdating(): Boolean;
- procedure Reload();
Properties
- Property name
- Count
- Type
- Integer
- Description
Number of items currently exposed by the interface.
Declaration
property Count: Integer read GetCount;
- Property name
- Items
- Type
- ISheet
- Description
Indexed property used to read one item from the collection.
Declaration
property Items[aIndex: Cardinal]: ISheet read GetByIndex; default;Index ParametersaIndexCardinalZero-based position within a collection.ValueThe collection item located at the supplied index.
- Property name
- Field
- Type
- TField
- Description
Area-like value stored on the object.
Declaration
property Field: TField read GetField;
- Property name
- AvailableQuantity
- Type
- Cardinal
- Description
Remaining quantity currently available.
Declaration
property AvailableQuantity: Cardinal read GetAvailableQuantity;
- Property name
- OnAdd
- Type
- ISheetChangeEvent
- Description
Event fired when an item is added.
Declaration
property OnAdd: ISheetChangeEvent read GetOnAdd;
- Property name
- OnRemove
- Type
- ISheetChangeEvent
- Description
Event fired when an item is removed.
Declaration
property OnRemove: ISheetChangeEvent read GetOnRemove;
- Property name
- OnChange
- Type
- INotifyEvent
- Description
Event fired when the object or collection changes.
Declaration
property OnChange: INotifyEvent read GetOnChange;
Methods
- Method name
- CreateSheet()
- Type
- ISheet
- Description
Create a new, empty sheet. No dialog opens, the result is never
null, and the object is not in the collection until you pass it toAdd. A new object has a temporary negativeId.Declaration
function CreateSheet(): ISheet; safecall;ReturnsA new, empty sheet that is not yet in the collection; nevernull.
- Method name
- Add()
- Type
- procedure
- Description
Add an object created by this collection’s factory method. In
LoadFile, add to the staging collection you received.Adddoes not check title uniqueness, and adding an object that is already in the collection raises an error.Declaration
procedure Add(aSheet: ISheet); safecall;Parameters
- Method name
- DeleteByIndex()
- Type
- procedure
- Description
Delete the item at the specified zero-based index.
Declaration
procedure DeleteByIndex(aIndex: Cardinal); safecall;ParametersaIndexCardinalZero-based position within a collection.
- Method name
- DeleteById()
- Type
- procedure
- Description
Delete the item with the specified TonCut identifier.
Declaration
procedure DeleteById(aId: Int64); safecall;ParametersaIdInt64TonCut object identifier.
- Method name
- Remove()
- Type
- procedure
- Description
Remove an item or handler.
Declaration
procedure Remove(const aSheet: ISheet); safecall;Parameters
- Method name
- IndexOf()
- Type
- Integer
- Description
Return the zero-based index of the matching item.
Declaration
function IndexOf(const aSheet: ISheet): Integer; overload; safecall;C++ name:
IndexOfByObject. The C++ header gives each Pascal overload its own name; the vtable slot is the same.ParametersReturnsZero-based index of the matching item, or-1when no match exists.
- Method name
- IndexOf()
- Type
- Integer
- Description
Return the zero-based index of the matching item.
Declaration
function IndexOf(aId: Int64): Integer; overload; safecall;C++ name:
IndexOfById. The C++ header gives each Pascal overload its own name; the vtable slot is the same.ParametersaIdInt64TonCut object identifier.ReturnsZero-based index of the matching item, or-1when no match exists.
- Method name
- IndexOf()
- Type
- Integer
- Description
Return the zero-based index of the matching item.
Declaration
function IndexOf(const aOtherSheet: ISheet; aSkipId: Int64; var aRotated: Boolean): Integer; overload; safecall;C++ name:
IndexOfByOther. The C++ header gives each Pascal overload its own name; the vtable slot is the same.ParametersaSkipIdInt64skip id value used to identify an object.aRotatedvarBooleanBooleanflag controlling rotated. Passed by reference and may be updated by the callee.ReturnsZero-based index of the matching item, or-1when no match exists.
- Method name
- CreateDefect()
- Type
- ISheetDefect
- Description
Create a new defect instance.
Declaration
function CreateDefect(): ISheetDefect; safecall;ReturnsA new sheet defect interface instance.
- Method name
- GetById()
- Type
- ISheet
- Description
Return the item stored under the specified TonCut identifier.
Declaration
function GetById(aId: Int64): ISheet; safecall;ParametersaIdInt64TonCut object identifier.ReturnsThe matching sheet interface instance.
- Method name
- CalcMaxLength()
- Type
- Cardinal
- Description
Calculate max length.
Declaration
function CalcMaxLength(): Cardinal; safecall;ReturnsThe calculated max length value.
- Method name
- BeginUpdate()
- Type
- procedure
- Description
Start a batched update so change notifications can be delayed.
Declaration
procedure BeginUpdate(); safecall;
- Method name
- EndUpdate()
- Type
- procedure
- Description
Finish a batched update and allow deferred notifications to resume.
Declaration
procedure EndUpdate(); safecall;
- Method name
- IsUpdating()
- Type
- Boolean
- Description
Report whether the interface is currently inside an update batch.
Declaration
function IsUpdating(): Boolean; safecall;ReturnsReturnstruewhile the interface is inside aBeginUpdate/EndUpdatebatch.
- Method name
- Reload()
- Type
- procedure
- Description
Reload the underlying data from the host or storage layer.
Declaration
procedure Reload(); safecall;
ISheetChangeEventHandler
Callback sink consumed by the matching change-event interface.
- IID
- {F6388A56-8F89-4635-BFAC-BAA45913138B}
- Parent
- IUnknown
- Unit
- uISheetChangeEvent
The SDK's language-support manifest lists no C++ member of this interface. If your TonCutPluginSdk.hpp leaves it opaque, declare the interface yourself in the vtable order below.
Vtable order (1 methods, slots 3 to 3, after the three IUnknown slots)
- procedure Invoke(aSender: IUnknown; aSheet: ISheet; aIndex: Integer);
Methods
- Method name
- Invoke()
- Type
- procedure
- Description
Handle the event callback when the owning event interface invokes it.
Declaration
procedure Invoke(aSender: IUnknown; aSheet: ISheet; aIndex: Integer); safecall;ParametersaSenderIUnknownObject that raised the event.aIndexIntegerZero-based position within a collection.
ISheetChangeEvent
Event interface with Add, Remove, and Invoke hooks for collection or entity change notifications.
- IID
- {A740ABB2-3DA4-4DA8-904E-893B9AD65CFB}
- Parent
- IUnknown
- Unit
- uISheetChangeEvent
The SDK's language-support manifest lists no C++ member of this interface. If your TonCutPluginSdk.hpp leaves it opaque, declare the interface yourself in the vtable order below.
Vtable order (3 methods, slots 3 to 5, after the three IUnknown slots)
- procedure Add(aHandler: ISheetChangeEventHandler);
- procedure Remove(aHandler: ISheetChangeEventHandler);
- procedure Invoke(aSender: IUnknown; aSheet: ISheet; aIndex: Integer);
Methods
- Method name
- Add()
- Type
- procedure
- Description
Add an item or handler.
Declaration
procedure Add(aHandler: ISheetChangeEventHandler); safecall;Parameters
- Method name
- Remove()
- Type
- procedure
- Description
Remove an item or handler.
Declaration
procedure Remove(aHandler: ISheetChangeEventHandler); safecall;Parameters
- Method name
- Invoke()
- Type
- procedure
- Description
Raise the typed change event for the current payload.
Declaration
procedure Invoke(aSender: IUnknown; aSheet: ISheet; aIndex: Integer); safecall;ParametersaSenderIUnknownObject that raised the event.aIndexIntegerEvent payload field for index.
ISheetDefect
Rectangular region tracked on a stock sheet, either a defect (damaged material) or a hole (no material), depending on the collection that holds it.
- IID
- {3F5E61BF-595F-4213-92C4-040A9F8949C2}
- Parent
- IUnknown (implicit: a Delphi interface without a parent is IUnknown)
- Unit
- uISheetDefect
The SDK's language-support manifest lists no C++ member of this interface. If your TonCutPluginSdk.hpp leaves it opaque, declare the interface yourself in the vtable order below.
Vtable order (12 methods, slots 3 to 14, after the three IUnknown slots)
- function GetPosX(): Cardinal;
- procedure SetPosX(aPosX: Cardinal);
- function GetPosY(): Cardinal;
- procedure SetPosY(aPosY: Cardinal);
- function GetLength(): Cardinal;
- procedure SetLength(aLength: Cardinal);
- function GetWidth(): Cardinal;
- procedure SetWidth(aWidth: Cardinal);
- function GetOnChange(): INotifyEvent;
- procedure Assign(const aSheetDefect: ISheetDefect);
- procedure BeginUpdate();
- procedure EndUpdate();
Properties
- Property name
- PosX
- Type
- Cardinal
- Description
X position of the object within solution space.
Declaration
property PosX: Cardinal read GetPosX write SetPosX;
- Property name
- PosY
- Type
- Cardinal
- Description
Y position of the object within solution space.
Declaration
property PosY: Cardinal read GetPosY write SetPosY;
- Property name
- Length
- Type
- Cardinal
- Description
Length value stored on the object.
Declaration
property Length: Cardinal read GetLength write SetLength;
- Property name
- Width
- Type
- Cardinal
- Description
Width value stored on the object.
Declaration
property Width: Cardinal read GetWidth write SetWidth;
- Property name
- OnChange
- Type
- INotifyEvent
- Description
Event fired when the object or collection changes.
Declaration
property OnChange: INotifyEvent read GetOnChange;
Methods
- Method name
- Assign()
- Type
- procedure
- Description
Copy values from another object of the same type.
Declaration
procedure Assign(const aSheetDefect: ISheetDefect); safecall;Parameters
- Method name
- BeginUpdate()
- Type
- procedure
- Description
Start a batched update so change notifications can be delayed.
Declaration
procedure BeginUpdate(); safecall;
- Method name
- EndUpdate()
- Type
- procedure
- Description
Finish a batched update and allow deferred notifications to resume.
Declaration
procedure EndUpdate(); safecall;
ISheetDefects
Collection of rectangular regions. The type is shared by ISheet.Defects (damaged material) and by Holes (no material), and the meaning differs between them.
- IID
- {0761BD5F-0F91-47E8-AA25-EDEFEEC7BEC4}
- Parent
- IUnknown (implicit: a Delphi interface without a parent is IUnknown)
- Unit
- uISheetDefects
The SDK's language-support manifest lists no C++ member of this interface. If your TonCutPluginSdk.hpp leaves it opaque, declare the interface yourself in the vtable order below.
Vtable order (11 methods, slots 3 to 13, after the three IUnknown slots)
- procedure Assign(const aOther: ISheetDefects);
- procedure Clear();
- procedure Add(aSheetDefect: ISheetDefect);
- procedure DeleteByIndex(aIndex: Cardinal);
- procedure Remove(const aSheetDefect: ISheetDefect);
- function IndexOf(const aSheetDefect: ISheetDefect): Integer; overload;
- function Find(aPosX, aPosY, aLength, aWidth: Cardinal): ISheetDefect; overload;
- function GetCount(): Integer;
- function GetByIndex(aIndex: Cardinal): ISheetDefect;
- function GetOnAdd(): ISheetDefectChangeEvent;
- function GetOnRemove(): ISheetDefectChangeEvent;
Properties
- Property name
- Count
- Type
- Integer
- Description
Number of items currently exposed by the interface.
Declaration
property Count: Integer read GetCount;
- Property name
- Items
- Type
- ISheetDefect
- Description
Indexed property used to read one item from the collection.
Declaration
property Items[aIndex: Cardinal]: ISheetDefect read GetByIndex; default;Index ParametersaIndexCardinalZero-based position within a collection.ValueThe collection item located at the supplied index.
- Property name
- OnAdd
- Type
- ISheetDefectChangeEvent
- Description
Event fired when an item is added.
Declaration
property OnAdd: ISheetDefectChangeEvent read GetOnAdd;
- Property name
- OnRemove
- Type
- ISheetDefectChangeEvent
- Description
Event fired when an item is removed.
Declaration
property OnRemove: ISheetDefectChangeEvent read GetOnRemove;
Methods
- Method name
- Assign()
- Type
- procedure
- Description
Copy values from another object of the same type.
Declaration
procedure Assign(const aOther: ISheetDefects); safecall;Parameters
- Method name
- Clear()
- Type
- procedure
- Description
Remove all items from the collection.
Declaration
procedure Clear(); safecall;
- Method name
- Add()
- Type
- procedure
- Description
Add an item or handler.
Declaration
procedure Add(aSheetDefect: ISheetDefect); safecall;Parameters
- Method name
- DeleteByIndex()
- Type
- procedure
- Description
Delete the item at the specified zero-based index.
Declaration
procedure DeleteByIndex(aIndex: Cardinal); safecall;ParametersaIndexCardinalZero-based position within a collection.
- Method name
- Remove()
- Type
- procedure
- Description
Remove an item or handler.
Declaration
procedure Remove(const aSheetDefect: ISheetDefect); safecall;Parameters
- Method name
- IndexOf()
- Type
- Integer
- Description
Return the zero-based index of the matching item.
Declaration
function IndexOf(const aSheetDefect: ISheetDefect): Integer; overload; safecall;ParametersReturnsZero-based index of the matching item, or-1when no match exists.
- Method name
- Find()
- Type
- ISheetDefect
- Description
Find an item matching the supplied criteria.
Declaration
function Find(aPosX: Cardinal; aPosY: Cardinal; aLength: Cardinal; aWidth: Cardinal): ISheetDefect; overload; safecall;ParametersaPosXCardinalX position in solution space.aPosYCardinalY position in solution space.aLengthCardinalLength value in hundredths of a millimeter.aWidthCardinalWidth value in hundredths of a millimeter.ReturnsThe matching sheet defect interface instance, ornullwhen not found.
ISheetDefectChangeEventHandler
Callback sink consumed by the matching change-event interface.
- IID
- {E0280F1A-F065-4CDF-8AF6-99898C55BBD4}
- Parent
- IUnknown
- Unit
- uISheetDefectChangeEvent
The SDK's language-support manifest lists no C++ member of this interface. If your TonCutPluginSdk.hpp leaves it opaque, declare the interface yourself in the vtable order below.
Vtable order (1 methods, slots 3 to 3, after the three IUnknown slots)
- procedure Invoke(aSender: IUnknown; aSheetDefect: ISheetDefect; aIndex: Integer);
Methods
- Method name
- Invoke()
- Type
- procedure
- Description
Handle the event callback when the owning event interface invokes it.
Declaration
procedure Invoke(aSender: IUnknown; aSheetDefect: ISheetDefect; aIndex: Integer); safecall;ParametersaSenderIUnknownObject that raised the event.aIndexIntegerZero-based position within a collection.
ISheetDefectChangeEvent
Event interface with Add, Remove, and Invoke hooks for collection or entity change notifications.
- IID
- {EF2DD7A4-1957-4C72-AC8F-EC6D6793E30D}
- Parent
- IUnknown
- Unit
- uISheetDefectChangeEvent
The SDK's language-support manifest lists no C++ member of this interface. If your TonCutPluginSdk.hpp leaves it opaque, declare the interface yourself in the vtable order below.
Vtable order (3 methods, slots 3 to 5, after the three IUnknown slots)
- procedure Add(aHandler: ISheetDefectChangeEventHandler);
- procedure Remove(aHandler: ISheetDefectChangeEventHandler);
- procedure Invoke(aSender: IUnknown; aSheetDefect: ISheetDefect; aIndex: Integer);
Methods
- Method name
- Add()
- Type
- procedure
- Description
Add an item or handler.
Declaration
procedure Add(aHandler: ISheetDefectChangeEventHandler); safecall;Parameters
- Method name
- Remove()
- Type
- procedure
- Description
Remove an item or handler.
Declaration
procedure Remove(aHandler: ISheetDefectChangeEventHandler); safecall;Parameters
- Method name
- Invoke()
- Type
- procedure
- Description
Raise the typed change event for the current payload.
Declaration
procedure Invoke(aSender: IUnknown; aSheetDefect: ISheetDefect; aIndex: Integer); safecall;ParametersaSenderIUnknownObject that raised the event.aIndexIntegerEvent payload field for index.