import {ModelInterface} from './scripts/path-controller/controller/controller_abstract.js'
ModelInterface
Direct Subclass:
Static Method Summary
Static Public Methods | ||
public static |
registerTool(tool: *) |
|
public static |
toolRegistered(tool: *) |
Constructor Summary
Public Constructor | ||
public |
|
Method Summary
Public Methods | ||
public |
createTool(path: *, inputs: {}, constructor_argument: *) |
|
public |
execOrRedo(compareInputs: *): * runs .undo,.redo if toolstack head is same as tool |
|
public |
execTool(ctx: *, path: *, inputs: {}, constructor_argument: *): * |
|
public |
getDescription(ctx: *, path: *): * |
|
public |
getPropName(ctx: *, path: *): * |
|
public |
getToolDef(path: *) |
|
public |
getToolPathHotkey(ctx: *, path: *): * |
|
public |
getValue(ctx: *, path: *, rootStruct: *): * |
|
public |
massSetProp(ctx: *, mass_set_path: *, value: *) |
|
public |
parseToolPath(path: *) |
|
public |
|
|
public |
pushReportContext(name: *) |
|
public |
resolveMassSetPaths(ctx: *, mass_set_path: *) takes a mass_set_path and returns an array of individual paths |
|
public |
resolvePath(ctx: *, path: *, ignoreExistence: *, rootStruct: *) |
|
public |
setValue(ctx: *, path: *, val: *, rootStruct: *) |
|
public |
|
Static Public Methods
public static registerTool(tool: *) source
Params:
Name | Type | Attribute | Description |
tool | * |
public static toolRegistered(tool: *) source
Params:
Name | Type | Attribute | Description |
tool | * |
Public Constructors
public constructor() source
Public Methods
public createTool(path: *, inputs: {}, constructor_argument: *) source
Params:
Name | Type | Attribute | Description |
path | * | ||
inputs | {} |
|
|
constructor_argument | * |
|
public execOrRedo(compareInputs: *): * source
runs .undo,.redo if toolstack head is same as tool
otherwise, .execTool(ctx, tool) is called.
Params:
Name | Type | Attribute | Description |
compareInputs | * | : check if toolstack head has identical input values, defaults to false |
Return:
* |
public execTool(ctx: *, path: *, inputs: {}, constructor_argument: *): * source
Params:
Name | Type | Attribute | Description |
ctx | * | ||
path | * | ||
inputs | {} |
|
|
constructor_argument | * |
|
Return:
* |
public getDescription(ctx: *, path: *): * source
Params:
Name | Type | Attribute | Description |
ctx | * | ||
path | * |
Return:
* |
public getPropName(ctx: *, path: *): * source
Params:
Name | Type | Attribute | Description |
ctx | * | ||
path | * |
Return:
* |
public getToolDef(path: *) source
Params:
Name | Type | Attribute | Description |
path | * |
public getToolPathHotkey(ctx: *, path: *): * source
Params:
Name | Type | Attribute | Description |
ctx | * | ||
path | * |
Return:
* |
public getValue(ctx: *, path: *, rootStruct: *): * source
Params:
Name | Type | Attribute | Description |
ctx | * | ||
path | * | ||
rootStruct | * |
|
Return:
* |
public massSetProp(ctx: *, mass_set_path: *, value: *) source
Params:
Name | Type | Attribute | Description |
ctx | * | ||
mass_set_path | * | ||
value | * |
public parseToolPath(path: *) source
Params:
Name | Type | Attribute | Description |
path | * |
public popReportContext() source
public pushReportContext(name: *) source
Params:
Name | Type | Attribute | Description |
name | * |
public resolveMassSetPaths(ctx: *, mass_set_path: *) source
takes a mass_set_path and returns an array of individual paths
Params:
Name | Type | Attribute | Description |
ctx | * | ||
mass_set_path | * |
public resolvePath(ctx: *, path: *, ignoreExistence: *, rootStruct: *) source
Params:
Name | Type | Attribute | Description |
ctx | * | ||
path | * | ||
ignoreExistence | * | ||
rootStruct | * |
Example:
return {
obj : [object owning property key]
parent : [parent of obj]
key : [property key]
subkey : used by flag properties, represents a key within the property
value : [value of property]
prop : [optional toolprop.ToolProperty representing the property definition]
struct : [optional datastruct representing the type, if value is an object]
mass_set : mass setter string, if controller implementation supports it
}
public setValue(ctx: *, path: *, val: *, rootStruct: *) source
Params:
Name | Type | Attribute | Description |
ctx | * | ||
path | * | ||
val | * | ||
rootStruct | * |