fcs-core-viewer 0.43.0 → 0.45.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/fcs-core-editor@types/Editor3D/Network/SocketCommandsGateway.d.ts +2 -2
  2. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/Index.d.ts +8 -6
  3. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/OpBoundaryCondition.d.ts +10 -0
  4. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/OpConcentratedLoad.d.ts +10 -0
  5. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/OpDistributedLoad.d.ts +10 -0
  6. package/fcs-core-editor@types/Editor3D/Operations/CAE/AnalysisTools/OpMotionConstraint.d.ts +10 -0
  7. package/fcs-core-editor@types/Editor3D/Operations/CAE/Index.d.ts +9 -3
  8. package/fcs-core-editor@types/Editor3D/Operations/CAE/InspectionTools/Index.d.ts +9 -0
  9. package/fcs-core-editor@types/Editor3D/Operations/Index.d.ts +9 -3
  10. package/fcs-core-editor@types/Editor3D/Operations/ModelTree/TreeViewEventHandlerE3D.d.ts +1 -0
  11. package/fcs-core-editor@types/Editor3D/UserInterface/EditorUIData.d.ts +4 -1
  12. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/Index.d.ts +8 -6
  13. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UIBoundaryCondition.d.ts +57 -0
  14. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UIConcentratedLoad.d.ts +69 -0
  15. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UIDistributedLoad.d.ts +47 -0
  16. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/AnalysisTools/UIMotionConstraint.d.ts +76 -0
  17. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/InspectionTools/Index.d.ts +9 -0
  18. package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Toolboxes/CAEToolbox.d.ts +1 -0
  19. package/fcs-core-editor@types/Viewer3D/DataStorage/ModelData/Index.d.ts +17 -9
  20. package/fcs-core-editor@types/Viewer3D/DataStorage/ModelData/Items/Containers/Load.d.ts +8 -0
  21. package/fcs-core-editor@types/Viewer3D/DataStorage/ModelData/Items/Files/SetTypes/LoadGroup.d.ts +32 -0
  22. package/fcs-core-editor@types/Viewer3D/DataStorage/ModelData/ModelDataHelper.d.ts +11 -0
  23. package/fcs-core-editor@types/Viewer3D/DataStorage/ModelData/Shapes/Geometry/MainshapeTypes/TopoSolid.d.ts +1 -1
  24. package/fcs-core-editor@types/Viewer3D/DataStorage/SelectionData.d.ts +1 -0
  25. package/fcs-core-editor@types/Viewer3D/Loader/GEOMLoader/TempGeomLoader.d.ts +6 -3
  26. package/fcs-core-editor@types/Viewer3D/SelectionTools/SelectionHelpers.d.ts +5 -0
  27. package/fcs-core-editor@types/Viewer3D/ViewerCommands/CAD/AuxiliaryTools/CreateVectorByPoints.d.ts +7 -1
  28. package/fcs-core-editor@types/Viewer3D/ViewerEntities/Index.d.ts +1 -0
  29. package/fcs-core-editor@types/Viewer3D/ViewerEntities/VisibleEntities/Index.d.ts +2 -0
  30. package/fcs-core-editor@types/Viewer3D/ViewerEntities/VisibleEntities/TemporaryGeometricEntities.d.ts +81 -0
  31. package/package.json +1 -1
  32. /package/fcs-core-editor@types/Editor3D/Operations/CAE/{AnalysisTools → InspectionTools}/OpCheckNormals.d.ts +0 -0
  33. /package/fcs-core-editor@types/Editor3D/Operations/CAE/{AnalysisTools → InspectionTools}/OpCheckQuality2D.d.ts +0 -0
  34. /package/fcs-core-editor@types/Editor3D/Operations/CAE/{AnalysisTools → InspectionTools}/OpFreeBorders.d.ts +0 -0
  35. /package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/{AnalysisTools → InspectionTools}/UICheckNormals.d.ts +0 -0
  36. /package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/{AnalysisTools → InspectionTools}/UICheckQuality2D.d.ts +0 -0
  37. /package/fcs-core-editor@types/Editor3D/UserInterface/UIComponents/MainMenu/Operations/CAE/{AnalysisTools → InspectionTools}/UIFreeBorders.d.ts +0 -0
@@ -189,9 +189,9 @@ export declare class SocketCommandsGateway implements IBackendEvents {
189
189
  set_instance_color(data: BackendInstructions): Promise<CommandExecutionResponse>;
190
190
  /**
191
191
  * Sets the transparency of an object.
192
- * @param instructions Contains ID and opacity
192
+ * @param instructions Contains item IDs (shape_ids) and opacity
193
193
  */
194
- set_transparency(instructions: BackendInstructions): CommandExecutionResponse | "Finished: set_transparency";
194
+ set_transparency(instructions: BackendInstructions): CommandExecutionResponse;
195
195
  set_color_by_quality(data: BackendInstructions): CommandExecutionResponse;
196
196
  set_entity_representation(data: BackendInstructions): CommandExecutionResponse;
197
197
  set_instance_visibility(instructions: BackendInstructions): Promise<CommandExecutionResponse>;
@@ -1,9 +1,11 @@
1
- import * as FreeBorders from "./OpFreeBorders";
2
- import * as CheckNormals from "./OpCheckNormals";
3
- import * as CheckQuality2D from "./OpCheckQuality2D";
1
+ import * as BoundaryCondition from "./OpBoundaryCondition";
2
+ import * as ConcentratedLoad from "./OpConcentratedLoad";
3
+ import * as DistributedLoad from "./OpDistributedLoad";
4
+ import * as MotionConstraint from "./OpMotionConstraint";
4
5
  declare const CAEAnalysisToolsOperations: {
5
- CheckQuality2D: typeof CheckQuality2D.CheckQuality2D;
6
- CheckNormals: typeof CheckNormals.CheckNormals;
7
- FreeBorders: typeof FreeBorders.FreeBorders;
6
+ MotionConstraint: typeof MotionConstraint.MotionConstraint;
7
+ DistributedLoad: typeof DistributedLoad.DistributedLoad;
8
+ ConcentratedLoad: typeof ConcentratedLoad.ConcentratedLoad;
9
+ BoundaryCondition: typeof BoundaryCondition.BoundaryCondition;
8
10
  };
9
11
  export { CAEAnalysisToolsOperations };
@@ -0,0 +1,10 @@
1
+ export declare class BoundaryCondition {
2
+ data: {};
3
+ elementUIDs: number[];
4
+ showNormalsByColors: boolean;
5
+ showNormalsByVectors: boolean;
6
+ vectorSize: number;
7
+ constructor(data: {});
8
+ perform(): Promise<void>;
9
+ reverse(): Promise<boolean>;
10
+ }
@@ -0,0 +1,10 @@
1
+ export declare class ConcentratedLoad {
2
+ data: {};
3
+ elementUIDs: number[];
4
+ showNormalsByColors: boolean;
5
+ showNormalsByVectors: boolean;
6
+ vectorSize: number;
7
+ constructor(data: {});
8
+ perform(): Promise<boolean>;
9
+ reverse(): Promise<boolean>;
10
+ }
@@ -0,0 +1,10 @@
1
+ export declare class DistributedLoad {
2
+ data: {};
3
+ elementUIDs: number[];
4
+ showNormalsByColors: boolean;
5
+ showNormalsByVectors: boolean;
6
+ vectorSize: number;
7
+ constructor(data: {});
8
+ perform(): Promise<void>;
9
+ reverse(): Promise<boolean>;
10
+ }
@@ -0,0 +1,10 @@
1
+ export declare class MotionConstraint {
2
+ data: {};
3
+ elementUIDs: number[];
4
+ showNormalsByColors: boolean;
5
+ showNormalsByVectors: boolean;
6
+ vectorSize: number;
7
+ constructor(data: {});
8
+ perform(): Promise<boolean>;
9
+ reverse(): Promise<boolean>;
10
+ }
@@ -1,4 +1,9 @@
1
1
  declare const CAE: {
2
+ CAEInspectionToolsOperations: {
3
+ CheckQuality2D: typeof import("./InspectionTools/OpCheckQuality2D").CheckQuality2D;
4
+ CheckNormals: typeof import("./InspectionTools/OpCheckNormals").CheckNormals;
5
+ FreeBorders: typeof import("./InspectionTools/OpFreeBorders").FreeBorders;
6
+ };
2
7
  CAEEditingToolsOperations: {
3
8
  MergeByNodes: typeof import("./EditingTools/OpMerge").MergeByNodes;
4
9
  MergeByElements: typeof import("./EditingTools/OpMerge").MergeByElements;
@@ -34,9 +39,10 @@ declare const CAE: {
34
39
  TemporaryCreateNode: typeof import("./CreationTools_0D_1D/OpCreateNode").TemporaryCreateNode;
35
40
  };
36
41
  CAEAnalysisToolsOperations: {
37
- CheckQuality2D: typeof import("./AnalysisTools/OpCheckQuality2D").CheckQuality2D;
38
- CheckNormals: typeof import("./AnalysisTools/OpCheckNormals").CheckNormals;
39
- FreeBorders: typeof import("./AnalysisTools/OpFreeBorders").FreeBorders;
42
+ MotionConstraint: typeof import("./AnalysisTools/OpMotionConstraint").MotionConstraint;
43
+ DistributedLoad: typeof import("./AnalysisTools/OpDistributedLoad").DistributedLoad;
44
+ ConcentratedLoad: typeof import("./AnalysisTools/OpConcentratedLoad").ConcentratedLoad;
45
+ BoundaryCondition: typeof import("./AnalysisTools/OpBoundaryCondition").BoundaryCondition;
40
46
  };
41
47
  };
42
48
  export { CAE };
@@ -0,0 +1,9 @@
1
+ import * as FreeBorders from "./OpFreeBorders";
2
+ import * as CheckNormals from "./OpCheckNormals";
3
+ import * as CheckQuality2D from "./OpCheckQuality2D";
4
+ declare const CAEInspectionToolsOperations: {
5
+ CheckQuality2D: typeof CheckQuality2D.CheckQuality2D;
6
+ CheckNormals: typeof CheckNormals.CheckNormals;
7
+ FreeBorders: typeof FreeBorders.FreeBorders;
8
+ };
9
+ export { CAEInspectionToolsOperations };
@@ -24,6 +24,11 @@ declare const Operations: {
24
24
  };
25
25
  };
26
26
  CAE: {
27
+ CAEInspectionToolsOperations: {
28
+ CheckQuality2D: typeof import("./CAE/InspectionTools/OpCheckQuality2D").CheckQuality2D;
29
+ CheckNormals: typeof import("./CAE/InspectionTools/OpCheckNormals").CheckNormals;
30
+ FreeBorders: typeof import("./CAE/InspectionTools/OpFreeBorders").FreeBorders;
31
+ };
27
32
  CAEEditingToolsOperations: {
28
33
  MergeByNodes: typeof import("./CAE/EditingTools/OpMerge").MergeByNodes;
29
34
  MergeByElements: typeof import("./CAE/EditingTools/OpMerge").MergeByElements;
@@ -59,9 +64,10 @@ declare const Operations: {
59
64
  TemporaryCreateNode: typeof import("./CAE/CreationTools_0D_1D/OpCreateNode").TemporaryCreateNode;
60
65
  };
61
66
  CAEAnalysisToolsOperations: {
62
- CheckQuality2D: typeof import("./CAE/AnalysisTools/OpCheckQuality2D").CheckQuality2D;
63
- CheckNormals: typeof import("./CAE/AnalysisTools/OpCheckNormals").CheckNormals;
64
- FreeBorders: typeof import("./CAE/AnalysisTools/OpFreeBorders").FreeBorders;
67
+ MotionConstraint: typeof import("./CAE/AnalysisTools/OpMotionConstraint").MotionConstraint;
68
+ DistributedLoad: typeof import("./CAE/AnalysisTools/OpDistributedLoad").DistributedLoad;
69
+ ConcentratedLoad: typeof import("./CAE/AnalysisTools/OpConcentratedLoad").ConcentratedLoad;
70
+ BoundaryCondition: typeof import("./CAE/AnalysisTools/OpBoundaryCondition").BoundaryCondition;
65
71
  };
66
72
  };
67
73
  CAD: {
@@ -2,6 +2,7 @@ import { TreeViewEventHandler } from '../../../Viewer3D/ViewerCommands/ModelTree
2
2
  export declare class TreeViewEventHandlerE3D extends TreeViewEventHandler {
3
3
  constructor();
4
4
  edit(): void;
5
+ addLoadGroup(): Promise<void>;
5
6
  addMeshPart(): Promise<void>;
6
7
  private static _placedPartCounter;
7
8
  addGeomPart(): Promise<void>;
@@ -78,11 +78,14 @@ export declare class EditorUIData {
78
78
  editingTools: {
79
79
  merge: any[];
80
80
  };
81
- analysisTools: {
81
+ inspectionTools: {
82
82
  freeEdges: any[];
83
83
  checkNormals: any[];
84
84
  checkQuality: any[];
85
85
  };
86
+ analysisTools: {
87
+ loadsAndBCs: any[];
88
+ };
86
89
  };
87
90
  };
88
91
  /**
@@ -1,9 +1,11 @@
1
- import * as FreeBorders from './UIFreeBorders';
2
- import * as CheckNormals from './UICheckNormals';
3
- import * as CheckQuality2D from './UICheckQuality2D';
1
+ import * as BoundaryCondition from './UIBoundaryCondition';
2
+ import * as ConcentratedLoad from './UIConcentratedLoad';
3
+ import * as DistributedLoad from './UIDistributedLoad';
4
+ import * as MotionConstraint from './UIMotionConstraint';
4
5
  declare const AnalysisTools: {
5
- CheckQuality2D: typeof CheckQuality2D.CheckQuality2D;
6
- CheckNormals: typeof CheckNormals.CheckNormals;
7
- FreeBorders: typeof FreeBorders.FreeBorders;
6
+ MotionConstraint: typeof MotionConstraint.MotionConstraint;
7
+ DistributedLoad: typeof DistributedLoad.DistributedLoad;
8
+ ConcentratedLoad: typeof ConcentratedLoad.ConcentratedLoad;
9
+ BoundaryCondition: typeof BoundaryCondition.BoundaryCondition;
8
10
  };
9
11
  export { AnalysisTools };
@@ -0,0 +1,57 @@
1
+ import { Operation } from "../../../../../../../Viewer3D/UserInterface/UIComponents/BuildingBlocks/MainMenuComponents/Operation";
2
+ type OnUpdateHandler = (entity: string) => void;
3
+ type OnAcceptHandler = (data: {}) => Promise<void>;
4
+ type OnDeleteHandler = (entity: string) => void;
5
+ export declare class BoundaryCondition extends Operation {
6
+ private readonly onUpdateHandler;
7
+ private readonly onAcceptHandler;
8
+ private readonly onDeleteHandler;
9
+ private readonly buttonsContainer;
10
+ private availableEntities;
11
+ private entityDropDownMenu;
12
+ private entity;
13
+ private dof1;
14
+ private dof2;
15
+ private dof3;
16
+ private dof4;
17
+ private dof5;
18
+ private dof6;
19
+ private isConstrained1;
20
+ private isConstrained2;
21
+ private isConstrained3;
22
+ private isConstrained4;
23
+ private isConstrained5;
24
+ private isConstrained6;
25
+ private iBorders;
26
+ private scene;
27
+ private currentCamera;
28
+ private renderer;
29
+ private selectionData;
30
+ constructor(onUpdate?: OnUpdateHandler, onAccept?: OnAcceptHandler, onDelete?: OnDeleteHandler);
31
+ private setEnabledEntity;
32
+ private setActiveButton;
33
+ /**
34
+ * Add entity button
35
+ */
36
+ private addEntityButton;
37
+ /**
38
+ * Create dropdown list for entityButton
39
+ */
40
+ private createDropdownListItems;
41
+ private addCheckmarks;
42
+ private addActionButtons;
43
+ /**
44
+ * Initializes uiComponents on opening the operationUI
45
+ */
46
+ init(): void;
47
+ unselect(): void;
48
+ /**
49
+ * Unhighlight free edges
50
+ */
51
+ reset(): void;
52
+ /**
53
+ * Extracts the selected entities from dict 'selected' and starts the attached task
54
+ */
55
+ private onAccept;
56
+ }
57
+ export {};
@@ -0,0 +1,69 @@
1
+ import { Operation } from "../../../../../../../Viewer3D/UserInterface/UIComponents/BuildingBlocks/MainMenuComponents/Operation";
2
+ type OnUpdateHandler = (entity: string) => void;
3
+ type OnAcceptHandler = (data: {}) => Promise<boolean>;
4
+ type OnDeleteHandler = (entity: string) => void;
5
+ export declare class ConcentratedLoad extends Operation {
6
+ private readonly onUpdateHandler;
7
+ private readonly onAcceptHandler;
8
+ private readonly onDeleteHandler;
9
+ private readonly buttonsContainer;
10
+ private availableEntities;
11
+ private entityDropDownMenu_1;
12
+ private forceXInput;
13
+ private forceYInput;
14
+ private forceZInput;
15
+ private momentXInput;
16
+ private momentYInput;
17
+ private momentZInput;
18
+ private fx;
19
+ private fy;
20
+ private fz;
21
+ private mx;
22
+ private my;
23
+ private mz;
24
+ private modeSelector;
25
+ private iBorders;
26
+ private scene;
27
+ private currentCamera;
28
+ private renderer;
29
+ private modeOptions;
30
+ private dynamicComponents;
31
+ private selectionData;
32
+ static Modes: {
33
+ Force: number;
34
+ Moment: number;
35
+ };
36
+ constructor(onUpdate?: OnUpdateHandler, onAccept?: OnAcceptHandler, onDelete?: OnDeleteHandler);
37
+ private setEnabledEntity;
38
+ private setActiveButton;
39
+ private changeMode;
40
+ /**
41
+ * Add dropdown list
42
+ */
43
+ private addDropDownLists;
44
+ /**
45
+ * Add entity button
46
+ */
47
+ private buttons;
48
+ /**
49
+ * Create dropdown list for entityButton
50
+ */
51
+ private createDropdownListItems_1;
52
+ private fields;
53
+ private addActionButtons;
54
+ /**
55
+ * Initializes uiComponents on opening the operationUI
56
+ */
57
+ init(): void;
58
+ unselect(): void;
59
+ /**
60
+ * Reset initial state
61
+ */
62
+ reset(): void;
63
+ private onUpdate;
64
+ /**
65
+ * Extracts the selected entities from dict 'selected' and starts the attached task
66
+ */
67
+ private onAccept;
68
+ }
69
+ export {};
@@ -0,0 +1,47 @@
1
+ import { Operation } from "../../../../../../../Viewer3D/UserInterface/UIComponents/BuildingBlocks/MainMenuComponents/Operation";
2
+ type OnUpdateHandler = (entity: string) => void;
3
+ type OnAcceptHandler = (data: {}) => Promise<void>;
4
+ type OnDeleteHandler = (entity: string) => void;
5
+ export declare class DistributedLoad extends Operation {
6
+ private readonly onUpdateHandler;
7
+ private readonly onAcceptHandler;
8
+ private readonly onDeleteHandler;
9
+ private readonly buttonsContainer;
10
+ private availableEntities;
11
+ private entityDropDownMenu;
12
+ private entity;
13
+ private pressureInput;
14
+ private p;
15
+ private iBorders;
16
+ private scene;
17
+ private currentCamera;
18
+ private renderer;
19
+ private selectionData;
20
+ constructor(onUpdate?: OnUpdateHandler, onAccept?: OnAcceptHandler, onDelete?: OnDeleteHandler);
21
+ private setEnabledEntity;
22
+ private setActiveButton;
23
+ /**
24
+ * Add entity button
25
+ */
26
+ private addEntityButton;
27
+ /**
28
+ * Create dropdown list for entityButton
29
+ */
30
+ private createDropdownListItems;
31
+ private addField;
32
+ private addActionButtons;
33
+ /**
34
+ * Initializes uiComponents on opening the operationUI
35
+ */
36
+ init(): void;
37
+ unselect(): void;
38
+ /**
39
+ * Unhighlight free edges
40
+ */
41
+ reset(): void;
42
+ /**
43
+ * Extracts the selected entities from dict 'selected' and starts the attached task
44
+ */
45
+ private onAccept;
46
+ }
47
+ export {};
@@ -0,0 +1,76 @@
1
+ import { Operation } from "../../../../../../../Viewer3D/UserInterface/UIComponents/BuildingBlocks/MainMenuComponents/Operation";
2
+ type OnUpdateHandler = (entity: string) => void;
3
+ type OnAcceptHandler = (data: {}) => Promise<boolean>;
4
+ type OnDeleteHandler = (entity: string) => void;
5
+ export declare class MotionConstraint extends Operation {
6
+ private readonly onUpdateHandler;
7
+ private readonly onAcceptHandler;
8
+ private readonly onDeleteHandler;
9
+ private readonly buttonsContainer;
10
+ private availableEntities;
11
+ private entityDropDownMenu_1;
12
+ private displacementXInput;
13
+ private displacementYInput;
14
+ private displacementZInput;
15
+ private velocityXInput;
16
+ private velocityYInput;
17
+ private velocityZInput;
18
+ private accelerationXInput;
19
+ private accelerationYInput;
20
+ private accelerationZInput;
21
+ private dx;
22
+ private dy;
23
+ private dz;
24
+ private vx;
25
+ private vy;
26
+ private vz;
27
+ private ax;
28
+ private ay;
29
+ private az;
30
+ private modeSelector;
31
+ private iBorders;
32
+ private scene;
33
+ private currentCamera;
34
+ private renderer;
35
+ private modeOptions;
36
+ private dynamicComponents;
37
+ private selectionData;
38
+ static Modes: {
39
+ Displacement: number;
40
+ Velocity: number;
41
+ Acceleration: number;
42
+ };
43
+ constructor(onUpdate?: OnUpdateHandler, onAccept?: OnAcceptHandler, onDelete?: OnDeleteHandler);
44
+ private setEnabledEntity;
45
+ private setActiveButton;
46
+ private changeMode;
47
+ /**
48
+ * Add dropdown list
49
+ */
50
+ private addDropDownLists;
51
+ /**
52
+ * Add entity button
53
+ */
54
+ private buttons;
55
+ /**
56
+ * Create dropdown list for entityButton
57
+ */
58
+ private createDropdownListItems_1;
59
+ private fields;
60
+ private addActionButtons;
61
+ /**
62
+ * Initializes uiComponents on opening the operationUI
63
+ */
64
+ init(): void;
65
+ unselect(): void;
66
+ /**
67
+ * Reset initial state
68
+ */
69
+ reset(): void;
70
+ private onUpdate;
71
+ /**
72
+ * Extracts the selected entities from dict 'selected' and starts the attached task
73
+ */
74
+ private onAccept;
75
+ }
76
+ export {};
@@ -0,0 +1,9 @@
1
+ import * as FreeBorders from './UIFreeBorders';
2
+ import * as CheckNormals from './UICheckNormals';
3
+ import * as CheckQuality2D from './UICheckQuality2D';
4
+ declare const InspectionTools: {
5
+ CheckQuality2D: typeof CheckQuality2D.CheckQuality2D;
6
+ CheckNormals: typeof CheckNormals.CheckNormals;
7
+ FreeBorders: typeof FreeBorders.FreeBorders;
8
+ };
9
+ export { InspectionTools };
@@ -12,6 +12,7 @@ export declare class ViewerCAEToolbox implements IBaseToolbox {
12
12
  private buildCreation_2D_ToolsPanel;
13
13
  private buildCreation_3D_ToolsPanel;
14
14
  private buildEditingToolsPanel;
15
+ private buildInspectionToolsPanel;
15
16
  private buildAnalysisToolsPanel;
16
17
  show(): void;
17
18
  hide(): void;
@@ -42,10 +42,12 @@ import * as Thread from './Items/Files/Thread';
42
42
  import * as CoordinateSystem from './Items/Files/CoordinateSystem';
43
43
  import * as Nodeset from './Items/Files/SetTypes/Nodeset';
44
44
  import * as Elementset from './Items/Files/SetTypes/Elementset';
45
+ import * as LoadGroup from './Items/Files/SetTypes/LoadGroup';
45
46
  import * as Assembly from './Items/Folders/Assembly';
46
47
  import * as Geometry from './Items/Containers/Geometry';
47
48
  import * as Mesh from './Items/Containers/Mesh';
48
49
  import * as Set from './Items/Containers/Set';
50
+ import * as LoadContainer from './Items/Containers/Load';
49
51
  import * as Collaboration from './Items/Containers/Collaboration';
50
52
  import * as gmsh from '../MeshData/gmshData';
51
53
  import * as TempContainer0D from './Containers/TemporaryContainers/TempContainer0D';
@@ -284,6 +286,7 @@ export declare namespace ModelData {
284
286
  };
285
287
  const ItemTypes: {
286
288
  Files: {
289
+ LoadGroup: typeof LoadGroup.LoadGroup;
287
290
  CoordinateSystem: typeof CoordinateSystem.CoordinateSystem;
288
291
  Elementset: typeof Elementset.Elementset;
289
292
  Nodeset: typeof Nodeset.Nodeset;
@@ -296,6 +299,7 @@ export declare namespace ModelData {
296
299
  };
297
300
  Containers: {
298
301
  Collaboration: typeof Collaboration.Collaboration;
302
+ Load: typeof LoadContainer.Load;
299
303
  Set: typeof Set.Set;
300
304
  Mesh: typeof Mesh.Mesh;
301
305
  Geometry: typeof Geometry.Geometry;
@@ -325,11 +329,13 @@ export declare namespace ModelData {
325
329
  MeshPart = 20,
326
330
  Nodeset = 21,
327
331
  Elementset = 22,
328
- Assembly = 23,
329
- GeometryContainer = 24,
330
- MeshContainer = 25,
331
- Set = 26,
332
- CollaborationContainer = 27
332
+ LoadGroup = 23,
333
+ Assembly = 24,
334
+ GeometryContainer = 25,
335
+ MeshContainer = 26,
336
+ Set = 27,
337
+ LoadContainer = 28,
338
+ CollaborationContainer = 29
333
339
  }
334
340
  enum elementTopologies {
335
341
  Node_1N = 15,
@@ -400,10 +406,12 @@ export declare namespace ModelData {
400
406
  20: typeof MeshPart.MeshPart;
401
407
  21: typeof Nodeset.Nodeset;
402
408
  22: typeof Elementset.Elementset;
403
- 23: typeof Assembly.Assembly;
404
- 24: typeof Geometry.Geometry;
405
- 25: typeof Mesh.Mesh;
406
- 26: typeof Set.Set;
409
+ 23: typeof LoadGroup.LoadGroup;
410
+ 24: typeof Assembly.Assembly;
411
+ 25: typeof Geometry.Geometry;
412
+ 26: typeof Mesh.Mesh;
413
+ 27: typeof Set.Set;
414
+ 28: typeof LoadContainer.Load;
407
415
  };
408
416
  };
409
417
  const dataTypesCollector: dataTypes[];
@@ -0,0 +1,8 @@
1
+ import { Container } from "./Container";
2
+ export declare class Load extends Container {
3
+ static title: string;
4
+ static itemUID: number;
5
+ static instance: Load;
6
+ constructor(data: {});
7
+ static getInstance(): Load;
8
+ }
@@ -0,0 +1,32 @@
1
+ import { File } from "../File";
2
+ export declare class LoadGroup extends File {
3
+ static title: string;
4
+ private static nodesetIDs_used;
5
+ private static nodesetIDs_unused;
6
+ constructor(data: {});
7
+ private createVID;
8
+ /**
9
+ * Delete content from database and treeHTML
10
+ */
11
+ delete(): void;
12
+ unselect(): void;
13
+ /**
14
+ * Select and highlight all shapes in a file
15
+ */
16
+ select(): void;
17
+ /**
18
+ * Assign selected shapes to the Nodeset
19
+ * @param shapeUIDs
20
+ */
21
+ assign(shapeUIDs: number[]): void;
22
+ /**
23
+ * Assign selected shapes
24
+ */
25
+ unassign(shapeUIDs: number[]): void;
26
+ /**
27
+ * Unassign all shapes
28
+ */
29
+ unassignAll(): void;
30
+ hide(): void;
31
+ show(): void;
32
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Helper functions for working with ModelData
3
+ */
4
+ export declare class ModelDataHelper {
5
+ /**
6
+ * Gets all shape IDs that belong to a given item ID
7
+ * @param itemID The item ID (file-level ID)
8
+ * @returns Array of shape IDs belonging to that item
9
+ */
10
+ static getShapeIDsForItemID(itemID: number): number[];
11
+ }
@@ -30,7 +30,7 @@ export declare class TopoSolid extends Shape {
30
30
  * Show all subShapes
31
31
  */
32
32
  show(): void;
33
- setOpacity(): void;
33
+ setTransparency(opacity: number): void;
34
34
  setVisibility(): void;
35
35
  calculateBoundingBox(): {
36
36
  min: {
@@ -21,6 +21,7 @@ export declare class SelectionData {
21
21
  y: number;
22
22
  z: number;
23
23
  } | null;
24
+ lastIntersectionShapeID: number | null;
24
25
  selectionColors: SelectionColors;
25
26
  defaultColor: Color;
26
27
  static isSelectionEnabled: boolean;
@@ -1,5 +1,5 @@
1
1
  export declare class TempGeomLoader {
2
- private _fileUrl;
2
+ private _fileUrl?;
3
3
  private tempPointContainer;
4
4
  private tempVertexContainer;
5
5
  private tempLineContainer;
@@ -21,6 +21,9 @@ export declare class TempGeomLoader {
21
21
  facePosition: number[];
22
22
  faceColor: number[];
23
23
  faceIndices: number[];
24
- constructor(fileUrl: string);
25
- perform(): Promise<void>;
24
+ vectorIndices: number[];
25
+ vectorPosition: number[];
26
+ vectorColor: number[];
27
+ constructor(fileUrl?: string);
28
+ perform(geometryDirective?: string): Promise<void>;
26
29
  }
@@ -37,6 +37,11 @@ export declare class SelectionHelpers {
37
37
  y: number;
38
38
  z: number;
39
39
  } | null;
40
+ /**
41
+ * Returns the shape ID of the last recorded intersection from a selection ray.
42
+ * If no intersection has been recorded, returns null.
43
+ */
44
+ static getSelectionRayIntersectionShapeID(): number | null;
40
45
  /**
41
46
  * Enum -> canonical string name.
42
47
  */
@@ -8,7 +8,13 @@ export declare class CreateVectorByPoints {
8
8
  vectorColor: number[];
9
9
  vectorIndices: number[];
10
10
  pickingVectorColor: number[];
11
- constructor(iShape: any, position1: number[], position2: number[]);
11
+ color: {
12
+ r: number;
13
+ g: number;
14
+ b: number;
15
+ a: number;
16
+ };
17
+ constructor(iShape: any, position1: number[], position2: number[], color: number[]);
12
18
  /**
13
19
  * A Vector shape TopoEdge subshape-ekbol all - Ez a "VectorLoader"
14
20
  */
@@ -3,6 +3,7 @@ import * as ContainerEntities from './ContainerEntities';
3
3
  declare const ViewerEntities: {
4
4
  ContainerEntities: typeof ContainerEntities.ContainerEntities;
5
5
  VisibleEntities: {
6
+ TemporaryGeometricEntities: typeof import("./VisibleEntities/TemporaryGeometricEntities").TemporaryGeometricEntities;
6
7
  AnnotationEntities: typeof import("./VisibleEntities/AnnotationEntities").AnnotationEntities;
7
8
  GeometricEntities: typeof import("./VisibleEntities/GeometricEntities").GeometricEntities;
8
9
  TemporaryEntities: typeof import("./VisibleEntities/TemporaryEntities").TemporaryEntities;
@@ -2,7 +2,9 @@ import * as CollaborationEntities from "./CollaborationEntities";
2
2
  import * as TemporaryEntities from './TemporaryEntities';
3
3
  import * as GeometricEntities from './GeometricEntities';
4
4
  import * as AnnotationEntities from './AnnotationEntities';
5
+ import * as TemporaryGeometryEntities from './TemporaryGeometricEntities';
5
6
  declare const VisibleEntities: {
7
+ TemporaryGeometricEntities: typeof TemporaryGeometryEntities.TemporaryGeometricEntities;
6
8
  AnnotationEntities: typeof AnnotationEntities.AnnotationEntities;
7
9
  GeometricEntities: typeof GeometricEntities.GeometricEntities;
8
10
  TemporaryEntities: typeof TemporaryEntities.TemporaryEntities;
@@ -0,0 +1,81 @@
1
+ export declare namespace TemporaryGeometricEntities {
2
+ /**
3
+ * Cleans all temporary geometric entities from the scene.
4
+ */
5
+ function cleanTemporaryGeometryEntities(): void;
6
+ /**
7
+ * Creates a temporary point entity in the scene.
8
+ */
9
+ class TemporaryPoint {
10
+ x: number;
11
+ y: number;
12
+ z: number;
13
+ /**
14
+ * Constructs a temporary point at the specified coordinates.
15
+ * @param x - The x-coordinate of the point.
16
+ * @param y - The y-coordinate of the point.
17
+ * @param z - The z-coordinate of the point.
18
+ */
19
+ constructor(x: number, y: number, z: number);
20
+ /**
21
+ * Generates the geometry directive string for a point in the format expected by TempGeomLoader.
22
+ * @param x - The x-coordinate of the point.
23
+ * @param y - The y-coordinate of the point.
24
+ * @param z - The z-coordinate of the point.
25
+ * @returns The formatted geometry directive string.
26
+ */
27
+ private generatePointDirective;
28
+ }
29
+ /**
30
+ * Creates a temporary line entity in the scene.
31
+ */
32
+ class TemporaryLine {
33
+ /**
34
+ * Constructs a temporary line between two points.
35
+ * @param x1 - The x-coordinate of the first point.
36
+ * @param y1 - The y-coordinate of the first point.
37
+ * @param z1 - The z-coordinate of the first point.
38
+ * @param x2 - The x-coordinate of the second point.
39
+ * @param y2 - The y-coordinate of the second point.
40
+ * @param z2 - The z-coordinate of the second point.
41
+ */
42
+ constructor(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number);
43
+ /**
44
+ * Generates the geometry directive string for a line in the format expected by TempGeomLoader.
45
+ * @param x1 - The x-coordinate of the first point.
46
+ * @param y1 - The y-coordinate of the first point.
47
+ * @param z1 - The z-coordinate of the first point.
48
+ * @param x2 - The x-coordinate of the second point.
49
+ * @param y2 - The y-coordinate of the second point.
50
+ * @param z2 - The z-coordinate of the second point.
51
+ * @returns The formatted geometry directive string.
52
+ */
53
+ private generateLineDirective;
54
+ }
55
+ /**
56
+ * Creates a temporary vector entity in the scene.
57
+ */
58
+ class TemporaryVector {
59
+ /**
60
+ * Constructs a temporary vector from a start point to an end point.
61
+ * @param x1 - The x-coordinate of the start point.
62
+ * @param y1 - The y-coordinate of the start point.
63
+ * @param z1 - The z-coordinate of the start point.
64
+ * @param x2 - The x-coordinate of the end point.
65
+ * @param y2 - The y-coordinate of the end point.
66
+ * @param z2 - The z-coordinate of the end point.
67
+ */
68
+ constructor(x1: number, y1: number, z1: number, x2: number, y2: number, z2: number);
69
+ /**
70
+ * Generates the geometry directive string for a vector in the format expected by TempGeomLoader.
71
+ * @param x1 - The x-coordinate of the start point.
72
+ * @param y1 - The y-coordinate of the start point.
73
+ * @param z1 - The z-coordinate of the start point.
74
+ * @param x2 - The x-coordinate of the end point.
75
+ * @param y2 - The y-coordinate of the end point.
76
+ * @param z2 - The z-coordinate of the end point.
77
+ * @returns The formatted geometry directive string.
78
+ */
79
+ private generateVectorDirective;
80
+ }
81
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fcs-core-viewer",
3
- "version": "0.43.0",
3
+ "version": "0.45.0",
4
4
  "description": "3D Viewer in the Cloud",
5
5
  "author": {
6
6
  "name": "Femsolve Kft."