Class to manage machining tool. More...
Public Member Functions | |
GO2STool () | |
Create an empty tool object. | |
GO2STool | Copy (String new_name) |
Get a copy of the tool. | |
String | GetName () |
any | GetParam (Number key, Number noDevice=0) override |
GO2SEnum::GO2SError | LoadFromFile (Number typout, String name, String subdir="") |
GO2SEnum::GO2SError | LoadFromName (String name) |
GO2SEnum::GO2SError | SetParam (Number key, any value, Number noDevice=0) override |
String | toString () override |
void | Update () |
Update all machining operations using the tool. | |
Public Member Functions inherited from GO2SMachining | |
Array< String > | GetEditableParams () |
any | GetParam (Number key, Number noDevice=0) |
Boolean | IsParamEditable (Number key) |
GO2SEnum::GO2SError | SetParam (Number key, any value, Number noDevice=0) |
Class to manage machining tool.
GO2STool GO2STool::Copy | ( | String | new_name | ) |
Get a copy of the tool.
[in] | new_name | name of the copy |
String GO2STool::GetName | ( | ) |
|
override |
Get a parameter of a tool or an attachment if possible Use GetEditableParams() to get the list of parameters
[in] | key | the parameter key |
[in] | noDevice | the device number |
GO2SEnum::GO2SError GO2STool::LoadFromFile | ( | Number | typout, |
String | name, | ||
String | subdir = "" ) |
Load a tool from file
[in] | typout | type of the tool |
[in] | name | name of the tool |
[in] | subdir | directory to search, if empty the default GO2cam is used. |
GO2SEnum::GO2SError GO2STool::LoadFromName | ( | String | name | ) |
Load a tool from the database
[in] | name | name of the tool |
|
override |
Change the parameter of a tool or an attachment if possible Use GetEditableParams() to get the list of editable parameters
[in] | key | the parameter key |
[in] | value | the parameter value |
[in] | noDevice | the device number |
|
overridevirtual |
Implements GO2SMachining.