Finishing
This page covers IGrind and IGrinds. These interfaces hold per-edge grind information attached to pieces.
Grinding is part of the published Desktop ABI, but it is currently not implemented in TonCut and the host ignores grind data.
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.
IGrind
Single grind definition with title and thickness. TonCut currently ignores grind data.
- IID
- None declared. The interface has no GUID, so it cannot be obtained through
QueryInterface; it is only passed and returned directly. - Parent
- IUnknown (implicit: a Delphi interface without a parent is IUnknown)
- Unit
- uIGrind
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 (6 methods, slots 3 to 8, after the three IUnknown slots)
- function GetId(): Int64;
- function GetTitle(): WideString;
- procedure SetTitle(const aTitle: WideString);
- function GetThickness(): Cardinal;
- procedure SetThickness(aThickness: Cardinal);
- procedure Assign(const aOther: IGrind);
Properties
- Property name
- Id
- Type
- Int64
- Description
Persistent numeric identifier used by TonCut to track the object.
Declaration
property Id: Int64 read GetId;
- Property name
- Title
- Type
- WideString
- Description
Human-readable title shown to users.
Declaration
property Title: WideString read GetTitle write SetTitle;
- Property name
- Thickness
- Type
- Cardinal
- Description
Thickness value stored on the object.
Declaration
property Thickness: Cardinal read GetThickness write SetThickness;
Methods
- Method name
- Assign()
- Type
- procedure
- Description
Copy values from another object of the same type.
Declaration
procedure Assign(const aOther: IGrind); safecall;Parameters
IGrinds
Four-edge grind assignment helper attached to a format. TonCut currently ignores grind data.
- IID
- None declared. The interface has no GUID, so it cannot be obtained through
QueryInterface; it is only passed and returned directly. - Parent
- IUnknown (implicit: a Delphi interface without a parent is IUnknown)
- Unit
- uIGrinds
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 (8 methods, slots 3 to 10, after the three IUnknown slots)
- function GetNorth(): IGrind;
- procedure SetNorth(const aNorth: IGrind);
- function GetSouth(): IGrind;
- procedure SetSouth(const aSouth: IGrind);
- function GetWest(): IGrind;
- procedure SetWest(const aWest: IGrind);
- function GetEast(): IGrind;
- procedure SetEast(const aEast: IGrind);
Properties
- Property name
- North
- Type
- IGrind
- Description
Signed value assigned to the north or top edge; a negative edge-distance value means inherited or unspecified.
Declaration
property North: IGrind read GetNorth write SetNorth;
- Property name
- South
- Type
- IGrind
- Description
Signed value assigned to the south or bottom edge; a negative edge-distance value means inherited or unspecified.
Declaration
property South: IGrind read GetSouth write SetSouth;
- Property name
- West
- Type
- IGrind
- Description
Signed value assigned to the west or left edge; a negative edge-distance value means inherited or unspecified.
Declaration
property West: IGrind read GetWest write SetWest;
- Property name
- East
- Type
- IGrind
- Description
Signed value assigned to the east or right edge; a negative edge-distance value means inherited or unspecified.
Declaration
property East: IGrind read GetEast write SetEast;
- Property name
- Top
- Type
- IGrind
- Description
Alias of
North; a negative edge-distance value means inherited or unspecified.Declaration
property Top: IGrind read GetNorth write SetNorth;
- Property name
- Bottom
- Type
- IGrind
- Description
Alias of
South; a negative edge-distance value means inherited or unspecified.Declaration
property Bottom: IGrind read GetSouth write SetSouth;
- Property name
- Left
- Type
- IGrind
- Description
Alias of
West; a negative edge-distance value means inherited or unspecified.Declaration
property Left: IGrind read GetWest write SetWest;
- Property name
- Right
- Type
- IGrind
- Description
Alias of
East; a negative edge-distance value means inherited or unspecified.Declaration
property Right: IGrind read GetEast write SetEast;