Constructor
new PlanePointsHelperComponent(param)
The helper of base points object in plane.
Parameters:
Name | Type | Description |
---|---|---|
param |
Object | The initial parameters. |
Extends
Members
active :Boolean
Active or deactive component.
Type:
- Boolean
- Overrides:
- Source:
app :THING.App
Get application.
Type:
- Overrides:
- Source:
axes :Boolean
Show/Hide axes helper.
Type:
- Boolean
- Overrides:
- Source:
Example
let box = new THING.Box();
box.helper.axes = true;
box.waitForComplete().then(()=>{
let ret = box.helper.axes;
// @expect(ret == true);
})
axesLength :Number
Get/Set axes helper length.
Type:
- Number
- Overrides:
- Source:
Example
let box = new THING.Box();
box.helper.axesLength = 10;
// @expect(box.helper.axesLength == 10);
boundingBox :BoxHelperResult
Get bounding box.
Type:
- Overrides:
- Source:
Example
let component = new THING.HelperComponent();
let bounding = component.boundingBox;
// @expect(bounding.mode == 'All')
colors :Array.<Array.<Number>>
Get colors of line(s).
Type:
- Array.<Array.<Number>>
- Overrides:
- Source:
lights :Array.<Object>
Get the light(s)'s config.
Type:
- Array.<Object>
- Overrides:
- Source:
Example
let box = new THING.Box();
let count = box.helper.lights.length;
// @expect(count == 0);
object :THING.BaseObject
Get object.
Type:
- Overrides:
- Source:
onActiveChange :OnActiveChangeComponentCallback
When active change callback function.
Type:
- Overrides:
- Source:
onAfterAdd :OnAfterAddComponentCallback
After add.
Type:
- Overrides:
- Source:
onAfterAddChild :OnAddChildComponentCallback
When after add child callback function.
Type:
- Overrides:
- Source:
onAfterRemove :OnAfterRemoveComponentCallback
After remove.
Type:
- Overrides:
- Source:
onAfterRemoveChild :OnRemoveChildComponentCallback
When after remove child callback function.
Type:
- Overrides:
- Source:
onBeforeAdd :OnBeforeAddComponentCallback
Before add.
Type:
- Overrides:
- Source:
onBeforeAddChild :OnAddChildComponentCallback
When before add child callback function.
Type:
- Overrides:
- Source:
onBeforeRemove :OnBeforeRemoveComponentCallback
Before remove.
Type:
- Overrides:
- Source:
onBeforeRemoveChild :OnRemoveChildComponentCallback
When before remove child callback function.
Type:
- Overrides:
- Source:
onCopy :OnCopyComponentCallback
When copy callback function.
Type:
- Overrides:
- Source:
onExport :OnExportComponentCallback
When export data.
Type:
- Overrides:
- Source:
onImport :OnImportComponentCallback
When import data.
Type:
- Overrides:
- Source:
onInit :OnInitComponentCallback
When initialize callback function.
Type:
- Overrides:
- Source:
onLoadResource :OnLoadResourceComponentCallback
When load resource callback function.
Type:
- Overrides:
- Source:
onParentChange :OnParentChangeComponentCallback
When change parent callback function.
Type:
- Overrides:
- Source:
onRefresh :OnRefreshComponentCallback
When refresh callback function.
Type:
- Overrides:
- Source:
onResize :OnResizeComponentCallback
When resize callback function.
Type:
- Overrides:
- Source:
onUnloadResource :OnUnloadResourceComponentCallback
When unload resource callback function.
Type:
- Overrides:
- Source:
onUpdate :OnUpdateComponentCallback
When update callback function.
Type:
- Overrides:
- Source:
onVisibleChange :OnVisibleChangeComponentCallback
When visible change callback function.
Type:
- Overrides:
- Source:
orientedBox :BoxHelperResult
Get oriented box.
Type:
- Overrides:
- Source:
Example
let component = new THING.HelperComponent();
let bounding = component.orientedBox;
// @expect(bounding.mode == 'All')
points :Array.<Array.<Number>>
Get points of line(s).
Type:
- Array.<Array.<Number>>
- Overrides:
- Source:
visible :Boolean
Show/Hide helper.
Type:
- Boolean
- Overrides:
- Source:
Methods
onAdd(object)
When add component.
Parameters:
Name | Type | Description |
---|---|---|
object |
THING.BaseObject | The object. |
- Overrides:
- Source:
onRemove()
When remove component.
- Overrides:
- Source: