Constructor
new D3PlotHelper()
- Source:
Members
(static) MAX_WINDOWS :number
- Description:
- Maximum number of windows
- Source:
Maximum number of windows
Type:
Methods
(static) FirstWindowWithModel(model_id) → (nullable) {number}
- Description:
- Return the window id of the first window with the given model id.
Returns null if it's not in any windows.
- Source:
Example
let model_id = 1;
let window_id = D3PlotHelper.FirstWindowWithModel(model_id);
Parameters:
Name |
Type |
Description |
model_id |
number
|
Model Id to search for |
Returns:
Window Id of the first window with the given model id
-
Type
-
number
(static) OpenModel(filename) → (nullable) {number}
- Description:
- Opens a model, returning the model number or null if it failed
- Source:
Parameters:
Name |
Type |
Description |
filename |
string
|
Filename of model to open |
Returns:
-
Type
-
number
(static) PutModelsInWindow(window_id, model_ids) → {boolean}
- Description:
- Puts models into a window, returning true if successful, false otherwise
- Source:
Parameters:
Name |
Type |
Description |
window_id |
number
|
Window Id to put models in |
model_ids |
Array.<number>
|
Modle Ids to put in window |
Returns:
-
Type
-
boolean
- Description:
- Set the shift deformed nodes
- Source:
Parameters:
Name |
Type |
Description |
model_id |
number
|
Model nodes are in |
node1 |
number
|
First shift deformed node |
node2 |
number
|
Second shift deformed node |
node3 |
number
|
Third shift deformed node |