fcs-core-viewer 0.2.2 → 0.3.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 (159) hide show
  1. package/fcs-core-viewer@types/Addins/CustomScript.d.ts +11 -11
  2. package/fcs-core-viewer@types/Addins/Index.d.ts +1 -1
  3. package/fcs-core-viewer@types/Api.d.ts +10 -10
  4. package/fcs-core-viewer@types/BackendEvents/BackendEvents.d.ts +218 -218
  5. package/fcs-core-viewer@types/BackendEvents/TaskExecutionResponse.d.ts +22 -22
  6. package/fcs-core-viewer@types/CloudViewer/CoreInterfaces.d.ts +12 -12
  7. package/fcs-core-viewer@types/CloudViewer/FcsViewer.d.ts +379 -379
  8. package/fcs-core-viewer@types/CloudViewer/Index.d.ts +1 -1
  9. package/fcs-core-viewer@types/CloudViewer/Settings/CameraSettings.d.ts +44 -44
  10. package/fcs-core-viewer@types/CloudViewer/Settings/Index.d.ts +11 -11
  11. package/fcs-core-viewer@types/CloudViewer/Settings/SelectionSettings.d.ts +78 -78
  12. package/fcs-core-viewer@types/CloudViewer/Settings/StyleSettings.d.ts +71 -71
  13. package/fcs-core-viewer@types/CloudViewer/Settings/VisibilitySettings.d.ts +19 -19
  14. package/fcs-core-viewer@types/CloudViewer/TypesFcs.d.ts +12 -12
  15. package/fcs-core-viewer@types/Common/CommsChannels/BackendClient.d.ts +47 -47
  16. package/fcs-core-viewer@types/Common/CommsChannels/Socket.d.ts +34 -34
  17. package/fcs-core-viewer@types/Common/Diagnostics/Exceptions.d.ts +26 -26
  18. package/fcs-core-viewer@types/Common/Diagnostics/StatusDialog.d.ts +72 -72
  19. package/fcs-core-viewer@types/Common/Diagnostics/WebLogger.d.ts +21 -21
  20. package/fcs-core-viewer@types/Common/Index.d.ts +6 -6
  21. package/fcs-core-viewer@types/Common/LocalStorage/localStorage.d.ts +2 -2
  22. package/fcs-core-viewer@types/Common/UIDGenerator/UIDGenerator.d.ts +15 -15
  23. package/fcs-core-viewer@types/Foundations/Index.d.ts +5 -5
  24. package/fcs-core-viewer@types/Foundations/VectorGeometry.d.ts +30 -30
  25. package/fcs-core-viewer@types/FrontendEvents/MenuEvents.d.ts +132 -132
  26. package/fcs-core-viewer@types/FrontendEvents/OptionsEvents.d.ts +21 -21
  27. package/fcs-core-viewer@types/FrontendEvents/SidebarEvents.d.ts +23 -23
  28. package/fcs-core-viewer@types/FrontendEvents/TopbarEvents.d.ts +124 -124
  29. package/fcs-core-viewer@types/FrontendEvents/TreeEvents.d.ts +47 -47
  30. package/fcs-core-viewer@types/Loader/LoadEdge.d.ts +47 -47
  31. package/fcs-core-viewer@types/Loader/LoadSTEP.d.ts +68 -68
  32. package/fcs-core-viewer@types/Loader/LoadVertex.d.ts +41 -41
  33. package/fcs-core-viewer@types/Loader/Loader.d.ts +67 -67
  34. package/fcs-core-viewer@types/Loader/LoaderUtils.d.ts +234 -234
  35. package/fcs-core-viewer@types/Model/ActiveCloudDocument.d.ts +84 -84
  36. package/fcs-core-viewer@types/Model/Index.d.ts +9 -9
  37. package/fcs-core-viewer@types/Model/MeshWrapper.d.ts +87 -87
  38. package/fcs-core-viewer@types/Model/SceneWrapper.d.ts +171 -171
  39. package/fcs-core-viewer@types/SelectionTools/SelectEntities/SelectItem.d.ts +38 -38
  40. package/fcs-core-viewer@types/SelectionTools/Selection.d.ts +83 -83
  41. package/fcs-core-viewer@types/SelectionTools/SelectionEdge.d.ts +25 -25
  42. package/fcs-core-viewer@types/SelectionTools/SelectionEdgeByID.d.ts +29 -29
  43. package/fcs-core-viewer@types/SelectionTools/SelectionFace.d.ts +42 -42
  44. package/fcs-core-viewer@types/SelectionTools/SelectionFaceByID.d.ts +26 -26
  45. package/fcs-core-viewer@types/SelectionTools/SelectionUtils.d.ts +71 -71
  46. package/fcs-core-viewer@types/SelectionTools/SelectionValidation.d.ts +63 -63
  47. package/fcs-core-viewer@types/SelectionTools/SelectionVertex.d.ts +26 -26
  48. package/fcs-core-viewer@types/SelectionTools/SelectionVertexByID.d.ts +26 -26
  49. package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectActive.d.ts +12 -12
  50. package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectAll.d.ts +23 -23
  51. package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectEdge.d.ts +7 -7
  52. package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectFace.d.ts +7 -7
  53. package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectItem.d.ts +14 -14
  54. package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectVertex.d.ts +8 -8
  55. package/fcs-core-viewer@types/SelectionTools/Unselection.d.ts +81 -81
  56. package/fcs-core-viewer@types/StyleHandler/TreeStyle.d.ts +23 -23
  57. package/fcs-core-viewer@types/TaskHandler/Context/Context.d.ts +80 -80
  58. package/fcs-core-viewer@types/TaskHandler/Merge/Merge.d.ts +9 -9
  59. package/fcs-core-viewer@types/TaskHandler/Model/RequestHandler/CollaborationTool_req.d.ts +15 -15
  60. package/fcs-core-viewer@types/TaskHandler/Model/ResponseHandler/CollaborationTool_res.d.ts +11 -11
  61. package/fcs-core-viewer@types/TaskHandler/Options/Options.d.ts +31 -31
  62. package/fcs-core-viewer@types/TaskHandler/Output/Output.d.ts +14 -14
  63. package/fcs-core-viewer@types/TaskHandler/TaskHandler.d.ts +325 -325
  64. package/fcs-core-viewer@types/TaskHandler/TaskUtils.d.ts +54 -54
  65. package/fcs-core-viewer@types/TaskHandler/Topbar/Delete/Delete.d.ts +89 -89
  66. package/fcs-core-viewer@types/TaskHandler/Topbar/Display/Display.d.ts +31 -31
  67. package/fcs-core-viewer@types/TaskHandler/Topbar/Tools/Find.d.ts +86 -86
  68. package/fcs-core-viewer@types/TaskHandler/Topbar/Tools/Measurement.d.ts +26 -26
  69. package/fcs-core-viewer@types/TaskHandler/Topbar/Tools/Transformation.d.ts +35 -35
  70. package/fcs-core-viewer@types/TaskHandler/Topbar/View/CutView.d.ts +85 -85
  71. package/fcs-core-viewer@types/TaskHandler/Topbar/View/ExplodedView.d.ts +38 -38
  72. package/fcs-core-viewer@types/TaskHandler/Topbar/View/GeomVisualisation.d.ts +46 -46
  73. package/fcs-core-viewer@types/TaskHandler/Topbar/View/Rotate.d.ts +54 -54
  74. package/fcs-core-viewer@types/TaskHandler/Topbar/View/Screenshot.d.ts +41 -41
  75. package/fcs-core-viewer@types/TaskHandler/Topbar/View/Views.d.ts +22 -22
  76. package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/AddContainer.d.ts +16 -16
  77. package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/AddFile.d.ts +18 -18
  78. package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/AddFolder.d.ts +16 -16
  79. package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/ITaskDefinition.d.ts +5 -5
  80. package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/Interactions.d.ts +47 -47
  81. package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/RemoveFile.d.ts +6 -6
  82. package/fcs-core-viewer@types/TaskHandler/Tree/ResponseHandler/AddTreeItem.d.ts +14 -14
  83. package/fcs-core-viewer@types/TaskHandler/Tree/ResponseHandler/Interactions.d.ts +3 -3
  84. package/fcs-core-viewer@types/TaskHandler/Tree/ResponseHandler/RemoveTreeItem.d.ts +10 -10
  85. package/fcs-core-viewer@types/TaskHandler/Tree/ResponseHandler.d.ts +5 -5
  86. package/fcs-core-viewer@types/TaskHandler/Tree/Tree.d.ts +236 -236
  87. package/fcs-core-viewer@types/Tree/TreeStructure/TreeStructure.d.ts +68 -68
  88. package/fcs-core-viewer@types/Tree/TreeView/TreeCore.d.ts +175 -175
  89. package/fcs-core-viewer@types/Tree/TreeView/TreeCoreUtils.d.ts +82 -82
  90. package/fcs-core-viewer@types/UserInterface/EventListeners/EventListeners.d.ts +32 -32
  91. package/fcs-core-viewer@types/UserInterface/EventListeners/ModelEvents.d.ts +13 -13
  92. package/fcs-core-viewer@types/UserInterface/EventListeners/TreeViewEvents.d.ts +15 -15
  93. package/fcs-core-viewer@types/UserInterface/UIComponents/Model.d.ts +33 -33
  94. package/fcs-core-viewer@types/UserInterface/UIComponents/TreeView.d.ts +52 -52
  95. package/fcs-core-viewer@types/UserInterface/UIComponents/UIComponents.d.ts +32 -32
  96. package/fcs-core-viewer@types/UserInterface/UIComponents.d.ts +44 -44
  97. package/fcs-core-viewer@types/UserInterface/UIDefinition.d.ts +37 -37
  98. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiBaseComponent.d.ts +6 -6
  99. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiFunctionGroup.d.ts +14 -14
  100. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiInputCollector.d.ts +10 -10
  101. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiPushButton.d.ts +8 -8
  102. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiSlider.d.ts +3 -3
  103. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiStatusBar.d.ts +27 -27
  104. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiTreeView.d.ts +3 -3
  105. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/CloudCAE.d.ts +48 -48
  106. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/CloudCAEDummyActions.d.ts +10 -10
  107. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/CloudCAEDummyAssets.d.ts +10 -10
  108. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/ExclusiveComponents/FcsUiAdvancedHelp.d.ts +3 -3
  109. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/ExclusiveComponents/FcsUiExclusiveComponent.d.ts +6 -6
  110. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiContextMenu.d.ts +3 -3
  111. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiDockPanel.d.ts +7 -7
  112. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiDockedQuickMenu.d.ts +10 -10
  113. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiDropButton.d.ts +5 -5
  114. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiHowerPanel.d.ts +3 -3
  115. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiMainComponent.d.ts +2 -2
  116. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiQuickOptionsMenu.d.ts +12 -12
  117. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/Settings/FcsUiButtonStyle.d.ts +22 -22
  118. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/Settings/FcsUiPositions.d.ts +20 -20
  119. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/Settings/FcsUiSizing.d.ts +4 -4
  120. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/Wrapper/FcsUiBinder.d.ts +6 -6
  121. package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/Wrapper/FcsUiDefinition.d.ts +8 -8
  122. package/fcs-core-viewer@types/ViewerEntities/AbstractEntities.d.ts +76 -76
  123. package/fcs-core-viewer@types/ViewerEntities/ContainerEntities.d.ts +27 -27
  124. package/fcs-core-viewer@types/ViewerEntities/Index.d.ts +11 -11
  125. package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/AnnotationEntities.d.ts +79 -79
  126. package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/CollaborationEntities.d.ts +125 -125
  127. package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/GeometricEntities.d.ts +20 -20
  128. package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/Index.d.ts +7 -7
  129. package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/TemporaryEntities.d.ts +15 -15
  130. package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/VisibleBaseEntities.d.ts +38 -38
  131. package/fcs-core-viewer@types/ViewerSetup.d.ts +5 -5
  132. package/fcs-core-viewer@types/Workspace/StyleHandler.d.ts +133 -133
  133. package/fcs-core-viewer@types/Workspace/ThreeJsExtensions.d.ts +47 -47
  134. package/fcs-core-viewer@types/Workspace/ViewerWrapper.d.ts +215 -215
  135. package/package.json +1 -1
  136. package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiBaseComponent.d.ts +0 -6
  137. package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiFunctionGroup.d.ts +0 -14
  138. package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiInputCollector.d.ts +0 -10
  139. package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiPushButton.d.ts +0 -8
  140. package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiSlider.d.ts +0 -3
  141. package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiStatusBar.d.ts +0 -27
  142. package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiTreeView.d.ts +0 -3
  143. package/fcs-core-viewer@types/UserInterface/UiApi/CloudCAE.d.ts +0 -48
  144. package/fcs-core-viewer@types/UserInterface/UiApi/CloudCAEDummyActions.d.ts +0 -10
  145. package/fcs-core-viewer@types/UserInterface/UiApi/CloudCAEDummyAssets.d.ts +0 -10
  146. package/fcs-core-viewer@types/UserInterface/UiApi/ExclusiveComponents/FcsUiAdvancedHelp.d.ts +0 -3
  147. package/fcs-core-viewer@types/UserInterface/UiApi/ExclusiveComponents/FcsUiExclusiveComponent.d.ts +0 -6
  148. package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiContextMenu.d.ts +0 -3
  149. package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiDockPanel.d.ts +0 -7
  150. package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiDockedQuickMenu.d.ts +0 -10
  151. package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiDropButton.d.ts +0 -5
  152. package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiHowerPanel.d.ts +0 -3
  153. package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiMainComponent.d.ts +0 -2
  154. package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiQuickOptionsMenu.d.ts +0 -12
  155. package/fcs-core-viewer@types/UserInterface/UiApi/Settings/FcsUiButtonStyle.d.ts +0 -22
  156. package/fcs-core-viewer@types/UserInterface/UiApi/Settings/FcsUiPositions.d.ts +0 -20
  157. package/fcs-core-viewer@types/UserInterface/UiApi/Settings/FcsUiSizing.d.ts +0 -4
  158. package/fcs-core-viewer@types/UserInterface/UiApi/Wrapper/FcsUiBinder.d.ts +0 -6
  159. package/fcs-core-viewer@types/UserInterface/UiApi/Wrapper/FcsUiDefinition.d.ts +0 -8
@@ -1,234 +1,234 @@
1
- import * as THREE from '../three/build/three.module.js';
2
- import { MeshWrapper } from '../Model/MeshWrapper';
3
- import { SceneWrapper } from '../Model/SceneWrapper';
4
- export declare class LoaderUtils {
5
- sceneWrapper: SceneWrapper;
6
- meshWrapper: MeshWrapper;
7
- uniqueToViewer: {};
8
- components: {};
9
- cntMesh: THREE.Mesh;
10
- cntLine: THREE.Line;
11
- cntPoint: THREE.Point;
12
- generalMeshMaterial: THREE.MeshPhongMaterial;
13
- generalLineMaterial: THREE.LineMaterial;
14
- generalPointMaterial: THREE.ShaderMaterial;
15
- /**
16
- *
17
- * @param sceneWrapper
18
- * @param meshWrapper
19
- */
20
- constructor(sceneWrapper: SceneWrapper, meshWrapper: MeshWrapper);
21
- addToScene(mesh?: any, line?: any, point?: any): void;
22
- /**
23
- * Ide jon minden, ami mesh, de nem modell, pl. szerkeszteshez hasznalt seged geometriak (plane, (bounding) sphere, (bounding) box, cone, cylinder, ...)
24
- */
25
- addCntAuxMesh(): void;
26
- /**
27
- * Ide jon minden, ami line, de nem modell, pl. szerkeszteshez hasznalt seged geometriak (szerkesztesi seged vonal, nyil szara, annotato elyet jelolo vonal, ...)
28
- */
29
- addCntAuxLine(): void;
30
- /**
31
- * Ide jon minden, ami line, de nem modell, pl. szerkeszteshez hasznalt seged geometriak (szerkesztesi seged vonal, nyil szara, annotato elyet jelolo vonal, ...)
32
- */
33
- addCntAuxPoint(): void;
34
- /**
35
- * Kigeneralja a "cntMesh" container-t, ami a component-ek THREE.Mesh objektumait tartalmazza omlesztve
36
- */
37
- addCntMesh(): any;
38
- /**
39
- * Importalasnal hozzaadjuk a component THREE.Mesh objektumait a cntMesh container-hez
40
- * @param mesh
41
- */
42
- addToCntMesh(mesh: THREE.Mesh): void;
43
- /**
44
- * Kitorli a modellt alkoto THREE.Mesh objektumot a container-bol
45
- * @param mesh
46
- */
47
- removeFromCntMesh(mesh: THREE.Mesh): void;
48
- /**
49
- * Show/Hide mesh
50
- * Megkeresi az adott THREE.Mesh objektumot a container-ben es modositja a hozza tartozo vertex-ek visibility attributumait
51
- * @param mesh_arr
52
- * @param isVisible
53
- */
54
- setMeshVisibility(mesh_arr: THREE.Mesh[], isVisible: boolean): void;
55
- /**
56
- * Kigeneralja a "cntMesh" container-t, ami a component-ek THREE.Line2 objektumait tartalmazza omlesztve
57
- * @returns
58
- */
59
- addCntLine(): any;
60
- /**
61
- * Importalasnal hozzaadjuk a component THREE.Line2 objektumait a cntLine container-hez
62
- * @param line
63
- */
64
- addToCntLine(line: THREE.Line2): void;
65
- /**
66
- * Kitorli a modellt alkoto THREE.Line2 objektumot a container-bol
67
- * @param line
68
- */
69
- removeFromCntLine(line: THREE.Line2): void;
70
- /**
71
- * Show/Hide line
72
- * Megkeresi az adott THREE.Line2 objektumot a container-ben es modositja a hozza tartozo vertex-ek visibility attributumait
73
- * @param line_arr
74
- * @param isVisible
75
- */
76
- setLineVisibility(line_arr: THREE.Line2[], isVisible: boolean): void;
77
- /**
78
- * Kigeneralja a "cntPoint" container-t, ami a component-ek THREE.Point objektumait tartalmazza omlesztve
79
- * @returns
80
- */
81
- addCntPoint(): any;
82
- /**
83
- * Importalasnal hozzaadjuk a component THREE.Point objektumait a cntPoint container-hez
84
- */
85
- addToCntPoint(point: THREE.Point): void;
86
- /**
87
- * Kitorli a modellt alkoto THREE.Point objektumot a container-bol
88
- * @param point
89
- */
90
- removeFromCntPoint(point: THREE.Point): void;
91
- /**
92
- * Show/Hide point
93
- * Megkeresi az adott THREE.Point objektumot a container-ben es modositja a hozza tartozo vertex-ek visibility attributumait
94
- * @param point_arr
95
- * @param isVisible
96
- */
97
- setPointVisibility(point_arr: THREE.Point[], isVisible: boolean): void;
98
- }
99
- export declare class LoaderTools {
100
- sceneWrapper: SceneWrapper;
101
- meshWrapper: MeshWrapper;
102
- positions: any[];
103
- alpha: number;
104
- components: {};
105
- constructor(sceneWrapper: SceneWrapper, meshWrapper: MeshWrapper);
106
- /**
107
- * Itt definialunk a THREE.Mesh objektumoknak material-t
108
- */
109
- setMeshMaterial(): void;
110
- /**
111
- * Itt definialunk a THREE.Line2 objektumoknak material-t
112
- */
113
- setLineMaterial(): void;
114
- /**
115
- * Itt definialunk a THREE.Point objektumoknak material-t
116
- */
117
- setPointMaterial(): void;
118
- /**
119
- * Kigeneralja a custom shader-t, amit argumentumknet beadunk a THREE.ShaderMaterial-nak
120
- * @param currentCamera
121
- * @param graySphereTexture
122
- * @param yellowSphereTexture
123
- * @param violetSphereTexture
124
- * @returns
125
- */
126
- createShader(currentCamera: THREE.OrthographicCamera, graySphereTexture: THREE.Texture, yellowSphereTexture: THREE.Texture, violetSphereTexture: THREE.Texture): {
127
- uniforms: {
128
- graySphereTexture: {
129
- value: THREE.Texture;
130
- };
131
- yellowSphereTexture: {
132
- value: THREE.Texture;
133
- };
134
- violetSphereTexture: {
135
- value: THREE.Texture;
136
- };
137
- pointSize: {
138
- value: number;
139
- };
140
- alphaTest_gray: {
141
- value: number;
142
- };
143
- alphaTest_yellow: {
144
- value: number;
145
- };
146
- alphaTest_violet: {
147
- value: number;
148
- };
149
- near: {
150
- value: any;
151
- };
152
- far: {
153
- value: any;
154
- };
155
- pixelWidth: {
156
- value: number;
157
- };
158
- pixelHeight: {
159
- value: number;
160
- };
161
- };
162
- vertexShader: string;
163
- fragmentShader: string;
164
- transparent: boolean;
165
- depthTest: boolean;
166
- visible: boolean;
167
- depthWrite: boolean;
168
- uniformsNeedUpdate: boolean;
169
- };
170
- /**
171
- * Custom shader-t general THREE.Mesh objektumnak
172
- * @returns
173
- */
174
- meshCustomShader(): {
175
- uniforms: {};
176
- vertexShader: string;
177
- fragmentShader: string;
178
- vertexColors: boolean;
179
- visible: boolean;
180
- depthTest: boolean;
181
- depthWrite: boolean;
182
- colorWrite: boolean;
183
- alphaToCoverage: boolean;
184
- transparent: boolean;
185
- side: any;
186
- };
187
- }
188
- export declare class Face {
189
- type: string;
190
- itemVID: number;
191
- itemUID: string;
192
- componentVID: number;
193
- componentUID: number;
194
- faceVID: number;
195
- faceUIDs: number[];
196
- polygonsXYZ: number[];
197
- startIndex: number;
198
- count: number;
199
- edges: Edge[];
200
- isVisible: number;
201
- isSelected: boolean;
202
- constructor(itemVID: number, itemUID: string, componentVID: number, componentUID: number, faceVID: number, faceUIDs: number[], polygonsXYZ: number[], startIndex: number, count: number);
203
- }
204
- export declare class Edge {
205
- type: string;
206
- itemVID: number;
207
- componentVID: number;
208
- edgeVID: number;
209
- edgeUIDs: number[];
210
- segmentsXYZ: number[];
211
- startIndex: number;
212
- count: number;
213
- faces: Face[];
214
- vertices: Vertex[];
215
- lineWidth: number;
216
- isVisible: number;
217
- isSelected: boolean;
218
- constructor(itemVID: number, componentVID: number, edgeVID: number, edgeUIDs: number[], segmentsXYZ: number[], startIndex: number, count: number, faces?: Face[]);
219
- }
220
- export declare class Vertex {
221
- type: string;
222
- itemVID: number;
223
- componentVID: number;
224
- vertexVID: number;
225
- vertexUIDs: number[];
226
- vertexXYZ: number[];
227
- startIndex: number;
228
- edges: Edge[];
229
- faces: Face[];
230
- textureID: number;
231
- isVisible: number;
232
- isSelected: boolean;
233
- constructor(itemVID: number, componentVID: number, vertexVID: number, vertexUIDs: number[], vertexXYZ: number[], startIndex: number, edges?: Edge[], faces?: Face[]);
234
- }
1
+ import * as THREE from '../three/build/three.module.js';
2
+ import { MeshWrapper } from '../Model/MeshWrapper';
3
+ import { SceneWrapper } from '../Model/SceneWrapper';
4
+ export declare class LoaderUtils {
5
+ sceneWrapper: SceneWrapper;
6
+ meshWrapper: MeshWrapper;
7
+ uniqueToViewer: {};
8
+ components: {};
9
+ cntMesh: THREE.Mesh;
10
+ cntLine: THREE.Line;
11
+ cntPoint: THREE.Point;
12
+ generalMeshMaterial: THREE.MeshPhongMaterial;
13
+ generalLineMaterial: THREE.LineMaterial;
14
+ generalPointMaterial: THREE.ShaderMaterial;
15
+ /**
16
+ *
17
+ * @param sceneWrapper
18
+ * @param meshWrapper
19
+ */
20
+ constructor(sceneWrapper: SceneWrapper, meshWrapper: MeshWrapper);
21
+ addToScene(mesh?: any, line?: any, point?: any): void;
22
+ /**
23
+ * Ide jon minden, ami mesh, de nem modell, pl. szerkeszteshez hasznalt seged geometriak (plane, (bounding) sphere, (bounding) box, cone, cylinder, ...)
24
+ */
25
+ addCntAuxMesh(): void;
26
+ /**
27
+ * Ide jon minden, ami line, de nem modell, pl. szerkeszteshez hasznalt seged geometriak (szerkesztesi seged vonal, nyil szara, annotato elyet jelolo vonal, ...)
28
+ */
29
+ addCntAuxLine(): void;
30
+ /**
31
+ * Ide jon minden, ami line, de nem modell, pl. szerkeszteshez hasznalt seged geometriak (szerkesztesi seged vonal, nyil szara, annotato elyet jelolo vonal, ...)
32
+ */
33
+ addCntAuxPoint(): void;
34
+ /**
35
+ * Kigeneralja a "cntMesh" container-t, ami a component-ek THREE.Mesh objektumait tartalmazza omlesztve
36
+ */
37
+ addCntMesh(): any;
38
+ /**
39
+ * Importalasnal hozzaadjuk a component THREE.Mesh objektumait a cntMesh container-hez
40
+ * @param mesh
41
+ */
42
+ addToCntMesh(mesh: THREE.Mesh): void;
43
+ /**
44
+ * Kitorli a modellt alkoto THREE.Mesh objektumot a container-bol
45
+ * @param mesh
46
+ */
47
+ removeFromCntMesh(mesh: THREE.Mesh): void;
48
+ /**
49
+ * Show/Hide mesh
50
+ * Megkeresi az adott THREE.Mesh objektumot a container-ben es modositja a hozza tartozo vertex-ek visibility attributumait
51
+ * @param mesh_arr
52
+ * @param isVisible
53
+ */
54
+ setMeshVisibility(mesh_arr: THREE.Mesh[], isVisible: boolean): void;
55
+ /**
56
+ * Kigeneralja a "cntMesh" container-t, ami a component-ek THREE.Line2 objektumait tartalmazza omlesztve
57
+ * @returns
58
+ */
59
+ addCntLine(): any;
60
+ /**
61
+ * Importalasnal hozzaadjuk a component THREE.Line2 objektumait a cntLine container-hez
62
+ * @param line
63
+ */
64
+ addToCntLine(line: THREE.Line2): void;
65
+ /**
66
+ * Kitorli a modellt alkoto THREE.Line2 objektumot a container-bol
67
+ * @param line
68
+ */
69
+ removeFromCntLine(line: THREE.Line2): void;
70
+ /**
71
+ * Show/Hide line
72
+ * Megkeresi az adott THREE.Line2 objektumot a container-ben es modositja a hozza tartozo vertex-ek visibility attributumait
73
+ * @param line_arr
74
+ * @param isVisible
75
+ */
76
+ setLineVisibility(line_arr: THREE.Line2[], isVisible: boolean): void;
77
+ /**
78
+ * Kigeneralja a "cntPoint" container-t, ami a component-ek THREE.Point objektumait tartalmazza omlesztve
79
+ * @returns
80
+ */
81
+ addCntPoint(): any;
82
+ /**
83
+ * Importalasnal hozzaadjuk a component THREE.Point objektumait a cntPoint container-hez
84
+ */
85
+ addToCntPoint(point: THREE.Point): void;
86
+ /**
87
+ * Kitorli a modellt alkoto THREE.Point objektumot a container-bol
88
+ * @param point
89
+ */
90
+ removeFromCntPoint(point: THREE.Point): void;
91
+ /**
92
+ * Show/Hide point
93
+ * Megkeresi az adott THREE.Point objektumot a container-ben es modositja a hozza tartozo vertex-ek visibility attributumait
94
+ * @param point_arr
95
+ * @param isVisible
96
+ */
97
+ setPointVisibility(point_arr: THREE.Point[], isVisible: boolean): void;
98
+ }
99
+ export declare class LoaderTools {
100
+ sceneWrapper: SceneWrapper;
101
+ meshWrapper: MeshWrapper;
102
+ positions: any[];
103
+ alpha: number;
104
+ components: {};
105
+ constructor(sceneWrapper: SceneWrapper, meshWrapper: MeshWrapper);
106
+ /**
107
+ * Itt definialunk a THREE.Mesh objektumoknak material-t
108
+ */
109
+ setMeshMaterial(): void;
110
+ /**
111
+ * Itt definialunk a THREE.Line2 objektumoknak material-t
112
+ */
113
+ setLineMaterial(): void;
114
+ /**
115
+ * Itt definialunk a THREE.Point objektumoknak material-t
116
+ */
117
+ setPointMaterial(): void;
118
+ /**
119
+ * Kigeneralja a custom shader-t, amit argumentumknet beadunk a THREE.ShaderMaterial-nak
120
+ * @param currentCamera
121
+ * @param graySphereTexture
122
+ * @param yellowSphereTexture
123
+ * @param violetSphereTexture
124
+ * @returns
125
+ */
126
+ createShader(currentCamera: THREE.OrthographicCamera, graySphereTexture: THREE.Texture, yellowSphereTexture: THREE.Texture, violetSphereTexture: THREE.Texture): {
127
+ uniforms: {
128
+ graySphereTexture: {
129
+ value: THREE.Texture;
130
+ };
131
+ yellowSphereTexture: {
132
+ value: THREE.Texture;
133
+ };
134
+ violetSphereTexture: {
135
+ value: THREE.Texture;
136
+ };
137
+ pointSize: {
138
+ value: number;
139
+ };
140
+ alphaTest_gray: {
141
+ value: number;
142
+ };
143
+ alphaTest_yellow: {
144
+ value: number;
145
+ };
146
+ alphaTest_violet: {
147
+ value: number;
148
+ };
149
+ near: {
150
+ value: any;
151
+ };
152
+ far: {
153
+ value: any;
154
+ };
155
+ pixelWidth: {
156
+ value: number;
157
+ };
158
+ pixelHeight: {
159
+ value: number;
160
+ };
161
+ };
162
+ vertexShader: string;
163
+ fragmentShader: string;
164
+ transparent: boolean;
165
+ depthTest: boolean;
166
+ visible: boolean;
167
+ depthWrite: boolean;
168
+ uniformsNeedUpdate: boolean;
169
+ };
170
+ /**
171
+ * Custom shader-t general THREE.Mesh objektumnak
172
+ * @returns
173
+ */
174
+ meshCustomShader(): {
175
+ uniforms: {};
176
+ vertexShader: string;
177
+ fragmentShader: string;
178
+ vertexColors: boolean;
179
+ visible: boolean;
180
+ depthTest: boolean;
181
+ depthWrite: boolean;
182
+ colorWrite: boolean;
183
+ alphaToCoverage: boolean;
184
+ transparent: boolean;
185
+ side: any;
186
+ };
187
+ }
188
+ export declare class Face {
189
+ type: string;
190
+ itemVID: number;
191
+ itemUID: string;
192
+ componentVID: number;
193
+ componentUID: number;
194
+ faceVID: number;
195
+ faceUIDs: number[];
196
+ polygonsXYZ: number[];
197
+ startIndex: number;
198
+ count: number;
199
+ edges: Edge[];
200
+ isVisible: number;
201
+ isSelected: boolean;
202
+ constructor(itemVID: number, itemUID: string, componentVID: number, componentUID: number, faceVID: number, faceUIDs: number[], polygonsXYZ: number[], startIndex: number, count: number);
203
+ }
204
+ export declare class Edge {
205
+ type: string;
206
+ itemVID: number;
207
+ componentVID: number;
208
+ edgeVID: number;
209
+ edgeUIDs: number[];
210
+ segmentsXYZ: number[];
211
+ startIndex: number;
212
+ count: number;
213
+ faces: Face[];
214
+ vertices: Vertex[];
215
+ lineWidth: number;
216
+ isVisible: number;
217
+ isSelected: boolean;
218
+ constructor(itemVID: number, componentVID: number, edgeVID: number, edgeUIDs: number[], segmentsXYZ: number[], startIndex: number, count: number, faces?: Face[]);
219
+ }
220
+ export declare class Vertex {
221
+ type: string;
222
+ itemVID: number;
223
+ componentVID: number;
224
+ vertexVID: number;
225
+ vertexUIDs: number[];
226
+ vertexXYZ: number[];
227
+ startIndex: number;
228
+ edges: Edge[];
229
+ faces: Face[];
230
+ textureID: number;
231
+ isVisible: number;
232
+ isSelected: boolean;
233
+ constructor(itemVID: number, componentVID: number, vertexVID: number, vertexUIDs: number[], vertexXYZ: number[], startIndex: number, edges?: Edge[], faces?: Face[]);
234
+ }
@@ -1,84 +1,84 @@
1
- import { CollaborationEntities } from "../ViewerEntities/VisibleEntities/CollaborationEntities";
2
- import { VectorGeometry } from "../Foundations/VectorGeometry";
3
- /**
4
- * This class will provide a common and singleton data storage for fast queries
5
- * about SOME document information.
6
- *
7
- * The 'active document' encompasses persistent and temporary data. Persistent
8
- * data can be saved and exported as a model file. Persistent data are, for example:
9
- * 1. HEADER informations (only platform context derived data -> author, last edited, different chunk sizes)
10
- * 2. MODEL - typically visible data OR reference-like informations that bind
11
- * visualizable data. Can always exported as a model file:
12
- * 2.1 Geometry and Construction
13
- * 2.2 Discrete Elements (mesh)
14
- * 2.3 Results (vector and scalar fields)
15
- * 2.3 Annotations
16
- * 2.4 Visualization Settings (filters, clipping planes)
17
- * 2.5 Extensible Storage (custom data structures)
18
- * 2.6 References (assembly hierarchy, containers, positioning)
19
- * 3. TEMPORARY DATA - typically session-bound data, that is never saved to the model file
20
- * 3.1 Logged in users data (collaboration data, such as camera position, and/or selection)
21
- * 3.2 Temporarily visible entities (on selection highlighters)
22
- *
23
- * When the active cloud document is serialized to a binary model file (.cbf), it will only
24
- * persist to the 'Model data'. The header informations are filled in for the model based on
25
- * its surrounding context in the Femsolve Cloud Services platform. Temporary data, as the name
26
- * suggests are only temporary objects that will seize to exist as soon as their 'guardian' user
27
- * exits the active document's session.
28
- */
29
- export declare class ActiveCloudDocument {
30
- private static _instance;
31
- private _modelPath;
32
- private _pushPinCollection;
33
- private _cameraPushPinCollection;
34
- /**
35
- * Private singleton constructor.
36
- */
37
- private constructor();
38
- /**
39
- * Constructs a default instance if there were no instances created yet.
40
- * @returns Singleton active document instance
41
- */
42
- static getActiveCloudDocument(): ActiveCloudDocument;
43
- /**
44
- * Generates random styling for pushpin
45
- * @param posVector X,Y,Z coordinates of the pushpin
46
- * @param viewNameAssociation The title set in the camera pushpin, that associates a specific view with it.
47
- * @param fireOnCreationEvent If set to true and a static event handler for all push pins is set, it will be triggered.
48
- */
49
- placeCameraPushPin(posVector: VectorGeometry.Vector3D, viewNameAssociation: string, fireOnCreationEvent?: boolean): CollaborationEntities.CameraPushPin | null;
50
- /**
51
- * Removes camera push pins by their ID.
52
- * @param uniqueId Unique ID of camera pushpin
53
- */
54
- removeCameraPushPinById(uniqueId: number): void;
55
- /**
56
- * If no push pin is found with the given ID, return null.
57
- * @param uniqueId Unique identifier of the push pin.
58
- */
59
- getCameraPushPinById(uniqueId: number): CollaborationEntities.CameraPushPin | null;
60
- /**
61
- * Returns all currently available push-pins.
62
- */
63
- getAllCameraPushPins(): CollaborationEntities.CameraPushPin[];
64
- /**
65
- * Places a push pin in a provided location.
66
- */
67
- placePushPin(x: number, y: number, z: number, fireOnCreationEvent?: boolean): CollaborationEntities.PushPin | null;
68
- /**
69
- * If no push pin is found with the given ID, return null.
70
- * @param uniqueId Unique identifier of the push pin.
71
- */
72
- getPushPinById(uniqueId: number): CollaborationEntities.PushPin | null;
73
- /**
74
- * Returns all currently available push-pins.
75
- */
76
- getAllPushPins(): CollaborationEntities.PushPin[];
77
- /**
78
- * If we load an existing model file, we need to override the set model
79
- * file's path to point to the new model file.
80
- * @param modelPath Overridden path
81
- */
82
- setActiveModelPath(modelPath: string): void;
83
- getActiveModelPath(): string;
84
- }
1
+ import { CollaborationEntities } from "../ViewerEntities/VisibleEntities/CollaborationEntities";
2
+ import { VectorGeometry } from "../Foundations/VectorGeometry";
3
+ /**
4
+ * This class will provide a common and singleton data storage for fast queries
5
+ * about SOME document information.
6
+ *
7
+ * The 'active document' encompasses persistent and temporary data. Persistent
8
+ * data can be saved and exported as a model file. Persistent data are, for example:
9
+ * 1. HEADER informations (only platform context derived data -> author, last edited, different chunk sizes)
10
+ * 2. MODEL - typically visible data OR reference-like informations that bind
11
+ * visualizable data. Can always exported as a model file:
12
+ * 2.1 Geometry and Construction
13
+ * 2.2 Discrete Elements (mesh)
14
+ * 2.3 Results (vector and scalar fields)
15
+ * 2.3 Annotations
16
+ * 2.4 Visualization Settings (filters, clipping planes)
17
+ * 2.5 Extensible Storage (custom data structures)
18
+ * 2.6 References (assembly hierarchy, containers, positioning)
19
+ * 3. TEMPORARY DATA - typically session-bound data, that is never saved to the model file
20
+ * 3.1 Logged in users data (collaboration data, such as camera position, and/or selection)
21
+ * 3.2 Temporarily visible entities (on selection highlighters)
22
+ *
23
+ * When the active cloud document is serialized to a binary model file (.cbf), it will only
24
+ * persist to the 'Model data'. The header informations are filled in for the model based on
25
+ * its surrounding context in the Femsolve Cloud Services platform. Temporary data, as the name
26
+ * suggests are only temporary objects that will seize to exist as soon as their 'guardian' user
27
+ * exits the active document's session.
28
+ */
29
+ export declare class ActiveCloudDocument {
30
+ private static _instance;
31
+ private _modelPath;
32
+ private _pushPinCollection;
33
+ private _cameraPushPinCollection;
34
+ /**
35
+ * Private singleton constructor.
36
+ */
37
+ private constructor();
38
+ /**
39
+ * Constructs a default instance if there were no instances created yet.
40
+ * @returns Singleton active document instance
41
+ */
42
+ static getActiveCloudDocument(): ActiveCloudDocument;
43
+ /**
44
+ * Generates random styling for pushpin
45
+ * @param posVector X,Y,Z coordinates of the pushpin
46
+ * @param viewNameAssociation The title set in the camera pushpin, that associates a specific view with it.
47
+ * @param fireOnCreationEvent If set to true and a static event handler for all push pins is set, it will be triggered.
48
+ */
49
+ placeCameraPushPin(posVector: VectorGeometry.Vector3D, viewNameAssociation: string, fireOnCreationEvent?: boolean): CollaborationEntities.CameraPushPin | null;
50
+ /**
51
+ * Removes camera push pins by their ID.
52
+ * @param uniqueId Unique ID of camera pushpin
53
+ */
54
+ removeCameraPushPinById(uniqueId: number): void;
55
+ /**
56
+ * If no push pin is found with the given ID, return null.
57
+ * @param uniqueId Unique identifier of the push pin.
58
+ */
59
+ getCameraPushPinById(uniqueId: number): CollaborationEntities.CameraPushPin | null;
60
+ /**
61
+ * Returns all currently available push-pins.
62
+ */
63
+ getAllCameraPushPins(): CollaborationEntities.CameraPushPin[];
64
+ /**
65
+ * Places a push pin in a provided location.
66
+ */
67
+ placePushPin(x: number, y: number, z: number, fireOnCreationEvent?: boolean): CollaborationEntities.PushPin | null;
68
+ /**
69
+ * If no push pin is found with the given ID, return null.
70
+ * @param uniqueId Unique identifier of the push pin.
71
+ */
72
+ getPushPinById(uniqueId: number): CollaborationEntities.PushPin | null;
73
+ /**
74
+ * Returns all currently available push-pins.
75
+ */
76
+ getAllPushPins(): CollaborationEntities.PushPin[];
77
+ /**
78
+ * If we load an existing model file, we need to override the set model
79
+ * file's path to point to the new model file.
80
+ * @param modelPath Overridden path
81
+ */
82
+ setActiveModelPath(modelPath: string): void;
83
+ getActiveModelPath(): string;
84
+ }
@@ -1,9 +1,9 @@
1
- import * as Mesh from './MeshWrapper';
2
- import * as Scene from './SceneWrapper';
3
- import * as ActiveCloudDocument from './ActiveCloudDocument';
4
- declare const Model: {
5
- ActiveCloudDocument: typeof ActiveCloudDocument.ActiveCloudDocument;
6
- SceneWrapper: typeof Scene.SceneWrapper;
7
- MeshWrapper: typeof Mesh.MeshWrapper;
8
- };
9
- export { Model };
1
+ import * as Mesh from './MeshWrapper';
2
+ import * as Scene from './SceneWrapper';
3
+ import * as ActiveCloudDocument from './ActiveCloudDocument';
4
+ declare const Model: {
5
+ ActiveCloudDocument: typeof ActiveCloudDocument.ActiveCloudDocument;
6
+ SceneWrapper: typeof Scene.SceneWrapper;
7
+ MeshWrapper: typeof Mesh.MeshWrapper;
8
+ };
9
+ export { Model };