Manual Reference Source
public class | source

Tool

Tool is an abstract base class for all the tools in Modelo3d

Constructor Summary

Public Constructor
public

constructor(name: string, viewer: Viewer3D)

Constructor of the Tool class

Method Summary

Public Methods
public

addInput(input: *)

Add input to the tool

public

Destroy the tool and release all internal resources

public
public

setEnabled(enabled: boolean)

Enable/Disable the tool

Public Constructors

public constructor(name: string, viewer: Viewer3D) source

Constructor of the Tool class

Params:

NameTypeAttributeDescription
name string
viewer Viewer3D

Public Methods

public addInput(input: *) source

Add input to the tool

Params:

NameTypeAttributeDescription
input *

public destroy() source

Destroy the tool and release all internal resources

public isEnabled(): boolean source

Return:

boolean

true if the tool is enabled

public setEnabled(enabled: boolean) source

Enable/Disable the tool

Params:

NameTypeAttributeDescription
enabled boolean