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.
- package/fcs-core-viewer@types/Addins/CustomScript.d.ts +11 -11
- package/fcs-core-viewer@types/Addins/Index.d.ts +1 -1
- package/fcs-core-viewer@types/Api.d.ts +10 -10
- package/fcs-core-viewer@types/BackendEvents/BackendEvents.d.ts +218 -218
- package/fcs-core-viewer@types/BackendEvents/TaskExecutionResponse.d.ts +22 -22
- package/fcs-core-viewer@types/CloudViewer/CoreInterfaces.d.ts +12 -12
- package/fcs-core-viewer@types/CloudViewer/FcsViewer.d.ts +379 -379
- package/fcs-core-viewer@types/CloudViewer/Index.d.ts +1 -1
- package/fcs-core-viewer@types/CloudViewer/Settings/CameraSettings.d.ts +44 -44
- package/fcs-core-viewer@types/CloudViewer/Settings/Index.d.ts +11 -11
- package/fcs-core-viewer@types/CloudViewer/Settings/SelectionSettings.d.ts +78 -78
- package/fcs-core-viewer@types/CloudViewer/Settings/StyleSettings.d.ts +71 -71
- package/fcs-core-viewer@types/CloudViewer/Settings/VisibilitySettings.d.ts +19 -19
- package/fcs-core-viewer@types/CloudViewer/TypesFcs.d.ts +12 -12
- package/fcs-core-viewer@types/Common/CommsChannels/BackendClient.d.ts +47 -47
- package/fcs-core-viewer@types/Common/CommsChannels/Socket.d.ts +34 -34
- package/fcs-core-viewer@types/Common/Diagnostics/Exceptions.d.ts +26 -26
- package/fcs-core-viewer@types/Common/Diagnostics/StatusDialog.d.ts +72 -72
- package/fcs-core-viewer@types/Common/Diagnostics/WebLogger.d.ts +21 -21
- package/fcs-core-viewer@types/Common/Index.d.ts +6 -6
- package/fcs-core-viewer@types/Common/LocalStorage/localStorage.d.ts +2 -2
- package/fcs-core-viewer@types/Common/UIDGenerator/UIDGenerator.d.ts +15 -15
- package/fcs-core-viewer@types/Foundations/Index.d.ts +5 -5
- package/fcs-core-viewer@types/Foundations/VectorGeometry.d.ts +30 -30
- package/fcs-core-viewer@types/FrontendEvents/MenuEvents.d.ts +132 -132
- package/fcs-core-viewer@types/FrontendEvents/OptionsEvents.d.ts +21 -21
- package/fcs-core-viewer@types/FrontendEvents/SidebarEvents.d.ts +23 -23
- package/fcs-core-viewer@types/FrontendEvents/TopbarEvents.d.ts +124 -124
- package/fcs-core-viewer@types/FrontendEvents/TreeEvents.d.ts +47 -47
- package/fcs-core-viewer@types/Loader/LoadEdge.d.ts +47 -47
- package/fcs-core-viewer@types/Loader/LoadSTEP.d.ts +68 -68
- package/fcs-core-viewer@types/Loader/LoadVertex.d.ts +41 -41
- package/fcs-core-viewer@types/Loader/Loader.d.ts +67 -67
- package/fcs-core-viewer@types/Loader/LoaderUtils.d.ts +234 -234
- package/fcs-core-viewer@types/Model/ActiveCloudDocument.d.ts +84 -84
- package/fcs-core-viewer@types/Model/Index.d.ts +9 -9
- package/fcs-core-viewer@types/Model/MeshWrapper.d.ts +87 -87
- package/fcs-core-viewer@types/Model/SceneWrapper.d.ts +171 -171
- package/fcs-core-viewer@types/SelectionTools/SelectEntities/SelectItem.d.ts +38 -38
- package/fcs-core-viewer@types/SelectionTools/Selection.d.ts +83 -83
- package/fcs-core-viewer@types/SelectionTools/SelectionEdge.d.ts +25 -25
- package/fcs-core-viewer@types/SelectionTools/SelectionEdgeByID.d.ts +29 -29
- package/fcs-core-viewer@types/SelectionTools/SelectionFace.d.ts +42 -42
- package/fcs-core-viewer@types/SelectionTools/SelectionFaceByID.d.ts +26 -26
- package/fcs-core-viewer@types/SelectionTools/SelectionUtils.d.ts +71 -71
- package/fcs-core-viewer@types/SelectionTools/SelectionValidation.d.ts +63 -63
- package/fcs-core-viewer@types/SelectionTools/SelectionVertex.d.ts +26 -26
- package/fcs-core-viewer@types/SelectionTools/SelectionVertexByID.d.ts +26 -26
- package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectActive.d.ts +12 -12
- package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectAll.d.ts +23 -23
- package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectEdge.d.ts +7 -7
- package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectFace.d.ts +7 -7
- package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectItem.d.ts +14 -14
- package/fcs-core-viewer@types/SelectionTools/UnselectEntities/UnselectVertex.d.ts +8 -8
- package/fcs-core-viewer@types/SelectionTools/Unselection.d.ts +81 -81
- package/fcs-core-viewer@types/StyleHandler/TreeStyle.d.ts +23 -23
- package/fcs-core-viewer@types/TaskHandler/Context/Context.d.ts +80 -80
- package/fcs-core-viewer@types/TaskHandler/Merge/Merge.d.ts +9 -9
- package/fcs-core-viewer@types/TaskHandler/Model/RequestHandler/CollaborationTool_req.d.ts +15 -15
- package/fcs-core-viewer@types/TaskHandler/Model/ResponseHandler/CollaborationTool_res.d.ts +11 -11
- package/fcs-core-viewer@types/TaskHandler/Options/Options.d.ts +31 -31
- package/fcs-core-viewer@types/TaskHandler/Output/Output.d.ts +14 -14
- package/fcs-core-viewer@types/TaskHandler/TaskHandler.d.ts +325 -325
- package/fcs-core-viewer@types/TaskHandler/TaskUtils.d.ts +54 -54
- package/fcs-core-viewer@types/TaskHandler/Topbar/Delete/Delete.d.ts +89 -89
- package/fcs-core-viewer@types/TaskHandler/Topbar/Display/Display.d.ts +31 -31
- package/fcs-core-viewer@types/TaskHandler/Topbar/Tools/Find.d.ts +86 -86
- package/fcs-core-viewer@types/TaskHandler/Topbar/Tools/Measurement.d.ts +26 -26
- package/fcs-core-viewer@types/TaskHandler/Topbar/Tools/Transformation.d.ts +35 -35
- package/fcs-core-viewer@types/TaskHandler/Topbar/View/CutView.d.ts +85 -85
- package/fcs-core-viewer@types/TaskHandler/Topbar/View/ExplodedView.d.ts +38 -38
- package/fcs-core-viewer@types/TaskHandler/Topbar/View/GeomVisualisation.d.ts +46 -46
- package/fcs-core-viewer@types/TaskHandler/Topbar/View/Rotate.d.ts +54 -54
- package/fcs-core-viewer@types/TaskHandler/Topbar/View/Screenshot.d.ts +41 -41
- package/fcs-core-viewer@types/TaskHandler/Topbar/View/Views.d.ts +22 -22
- package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/AddContainer.d.ts +16 -16
- package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/AddFile.d.ts +18 -18
- package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/AddFolder.d.ts +16 -16
- package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/ITaskDefinition.d.ts +5 -5
- package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/Interactions.d.ts +47 -47
- package/fcs-core-viewer@types/TaskHandler/Tree/RequestHandler/RemoveFile.d.ts +6 -6
- package/fcs-core-viewer@types/TaskHandler/Tree/ResponseHandler/AddTreeItem.d.ts +14 -14
- package/fcs-core-viewer@types/TaskHandler/Tree/ResponseHandler/Interactions.d.ts +3 -3
- package/fcs-core-viewer@types/TaskHandler/Tree/ResponseHandler/RemoveTreeItem.d.ts +10 -10
- package/fcs-core-viewer@types/TaskHandler/Tree/ResponseHandler.d.ts +5 -5
- package/fcs-core-viewer@types/TaskHandler/Tree/Tree.d.ts +236 -236
- package/fcs-core-viewer@types/Tree/TreeStructure/TreeStructure.d.ts +68 -68
- package/fcs-core-viewer@types/Tree/TreeView/TreeCore.d.ts +175 -175
- package/fcs-core-viewer@types/Tree/TreeView/TreeCoreUtils.d.ts +82 -82
- package/fcs-core-viewer@types/UserInterface/EventListeners/EventListeners.d.ts +32 -32
- package/fcs-core-viewer@types/UserInterface/EventListeners/ModelEvents.d.ts +13 -13
- package/fcs-core-viewer@types/UserInterface/EventListeners/TreeViewEvents.d.ts +15 -15
- package/fcs-core-viewer@types/UserInterface/UIComponents/Model.d.ts +33 -33
- package/fcs-core-viewer@types/UserInterface/UIComponents/TreeView.d.ts +52 -52
- package/fcs-core-viewer@types/UserInterface/UIComponents/UIComponents.d.ts +32 -32
- package/fcs-core-viewer@types/UserInterface/UIComponents.d.ts +44 -44
- package/fcs-core-viewer@types/UserInterface/UIDefinition.d.ts +37 -37
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiBaseComponent.d.ts +6 -6
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiFunctionGroup.d.ts +14 -14
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiInputCollector.d.ts +10 -10
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiPushButton.d.ts +8 -8
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiSlider.d.ts +3 -3
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiStatusBar.d.ts +27 -27
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/BaseComponents/FcsUiTreeView.d.ts +3 -3
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/CloudCAE.d.ts +48 -48
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/CloudCAEDummyActions.d.ts +10 -10
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/CloudCAEDummyAssets.d.ts +10 -10
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/ExclusiveComponents/FcsUiAdvancedHelp.d.ts +3 -3
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/ExclusiveComponents/FcsUiExclusiveComponent.d.ts +6 -6
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiContextMenu.d.ts +3 -3
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiDockPanel.d.ts +7 -7
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiDockedQuickMenu.d.ts +10 -10
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiDropButton.d.ts +5 -5
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiHowerPanel.d.ts +3 -3
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiMainComponent.d.ts +2 -2
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/MainComponents/FcsUiQuickOptionsMenu.d.ts +12 -12
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/Settings/FcsUiButtonStyle.d.ts +22 -22
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/Settings/FcsUiPositions.d.ts +20 -20
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/Settings/FcsUiSizing.d.ts +4 -4
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/Wrapper/FcsUiBinder.d.ts +6 -6
- package/fcs-core-viewer@types/UserInterface/UiApi_deprecated/Wrapper/FcsUiDefinition.d.ts +8 -8
- package/fcs-core-viewer@types/ViewerEntities/AbstractEntities.d.ts +76 -76
- package/fcs-core-viewer@types/ViewerEntities/ContainerEntities.d.ts +27 -27
- package/fcs-core-viewer@types/ViewerEntities/Index.d.ts +11 -11
- package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/AnnotationEntities.d.ts +79 -79
- package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/CollaborationEntities.d.ts +125 -125
- package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/GeometricEntities.d.ts +20 -20
- package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/Index.d.ts +7 -7
- package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/TemporaryEntities.d.ts +15 -15
- package/fcs-core-viewer@types/ViewerEntities/VisibleEntities/VisibleBaseEntities.d.ts +38 -38
- package/fcs-core-viewer@types/ViewerSetup.d.ts +5 -5
- package/fcs-core-viewer@types/Workspace/StyleHandler.d.ts +133 -133
- package/fcs-core-viewer@types/Workspace/ThreeJsExtensions.d.ts +47 -47
- package/fcs-core-viewer@types/Workspace/ViewerWrapper.d.ts +215 -215
- package/package.json +1 -1
- package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiBaseComponent.d.ts +0 -6
- package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiFunctionGroup.d.ts +0 -14
- package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiInputCollector.d.ts +0 -10
- package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiPushButton.d.ts +0 -8
- package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiSlider.d.ts +0 -3
- package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiStatusBar.d.ts +0 -27
- package/fcs-core-viewer@types/UserInterface/UiApi/BaseComponents/FcsUiTreeView.d.ts +0 -3
- package/fcs-core-viewer@types/UserInterface/UiApi/CloudCAE.d.ts +0 -48
- package/fcs-core-viewer@types/UserInterface/UiApi/CloudCAEDummyActions.d.ts +0 -10
- package/fcs-core-viewer@types/UserInterface/UiApi/CloudCAEDummyAssets.d.ts +0 -10
- package/fcs-core-viewer@types/UserInterface/UiApi/ExclusiveComponents/FcsUiAdvancedHelp.d.ts +0 -3
- package/fcs-core-viewer@types/UserInterface/UiApi/ExclusiveComponents/FcsUiExclusiveComponent.d.ts +0 -6
- package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiContextMenu.d.ts +0 -3
- package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiDockPanel.d.ts +0 -7
- package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiDockedQuickMenu.d.ts +0 -10
- package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiDropButton.d.ts +0 -5
- package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiHowerPanel.d.ts +0 -3
- package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiMainComponent.d.ts +0 -2
- package/fcs-core-viewer@types/UserInterface/UiApi/MainComponents/FcsUiQuickOptionsMenu.d.ts +0 -12
- package/fcs-core-viewer@types/UserInterface/UiApi/Settings/FcsUiButtonStyle.d.ts +0 -22
- package/fcs-core-viewer@types/UserInterface/UiApi/Settings/FcsUiPositions.d.ts +0 -20
- package/fcs-core-viewer@types/UserInterface/UiApi/Settings/FcsUiSizing.d.ts +0 -4
- package/fcs-core-viewer@types/UserInterface/UiApi/Wrapper/FcsUiBinder.d.ts +0 -6
- package/fcs-core-viewer@types/UserInterface/UiApi/Wrapper/FcsUiDefinition.d.ts +0 -8
|
@@ -1,325 +1,325 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 1) Task-ok inditasa es bezarasa
|
|
3
|
-
* - megjeloli az eppen futo task-ot (melyik gombot nyomtuk meg) (active / inactive) --> pl. a_id(a gomb neve) is active
|
|
4
|
-
* - Ha elindítunk egy task-ot, akkor az eppen futo task-ot leallitja es elinditja az ujat
|
|
5
|
-
*
|
|
6
|
-
* - inditas alatt azt ertem, hogy csak akkor jelolhetunk ki egy entity-t, hogy ha az indikatora active:
|
|
7
|
-
* - pl. csak akkor jelolhetunk ki vertex-et, ha indicatorVertex = active --> ezt elkuldjuk a selectionToolnak
|
|
8
|
-
*
|
|
9
|
-
* 2) Kovetelmenyeket tartalmaz
|
|
10
|
-
* - Milyen entity-t jelolhetunk ki
|
|
11
|
-
* - Mennyi entity-t jelolhetunk ki
|
|
12
|
-
*
|
|
13
|
-
* - ez lehet egy json dict, melyben minden gomb nevehez (key) hozzarendelunk kovetelmenyeket (value)
|
|
14
|
-
*
|
|
15
|
-
* - a selectionTool-ba kell egy counter, ami folyamatosan minden kijelolest kovetoen elkuldi az eppen kijelolt entity-k szamat a hitelesito tool-nak:
|
|
16
|
-
* pl. counterVertex = N
|
|
17
|
-
*
|
|
18
|
-
* 3) Hitelesiti a kijelolest mielott elkuldjuk a backend-nek
|
|
19
|
-
* - A hitelesito osszehasonlitja az N szamot a json dict-ben találhato elvart ertekkel es ha megfelelt akkor a statusbna kiirja, hogy kijeloles kesz
|
|
20
|
-
* - Uzenet a status bar-ban: N = elvart --> zolddel kiirja hogy sikeres kijeloles! Nyomja meg a middle mouse button-t hogy jovahagyja a muveletet
|
|
21
|
-
* N < elvart --> feketevel kiirja hogy mibol mennyit kell kijelolni
|
|
22
|
-
* N > elvart --> Hibauzenet: valamibol tul sokat jelolt ki, torolje a kijelolest!
|
|
23
|
-
*
|
|
24
|
-
* - A Hitelesito folyamatosan track-eli a kijelolt entityk fuggvenyeben valtozo N ertekeket (N_vertex, N_edge, N_face) + regisztraljuk az ID-kat is
|
|
25
|
-
*
|
|
26
|
-
* A teljes folyamat:
|
|
27
|
-
* Megnyomom a gombot --> adott task activva valik --> adott entity-k kijelolese lehetsegesse valik --> elkezdek kijelolni --> select/unselect fuggvenyeben valtoznak itt az N_vertex, N_edge, N_face ertekek --> a hitelesito folyamatosan track-eli az N ertekeket es uzen a statusbarban --> ha minden jo MMB lenyomasa utan elkuldju ka backendnek a kijelolt ID-kat
|
|
28
|
-
* --> ESC vagy masik task inditasaval inactive-va tesszuk az epen futo task-ot
|
|
29
|
-
*
|
|
30
|
-
*/
|
|
31
|
-
import { MeshWrapper } from "../Model/MeshWrapper";
|
|
32
|
-
import { SceneWrapper } from "../Model/SceneWrapper";
|
|
33
|
-
import { Unselection } from "../SelectionTools/Unselection";
|
|
34
|
-
import { SelectionValidation } from "../SelectionTools/SelectionValidation";
|
|
35
|
-
import { ExplodedView } from "./Topbar/View/ExplodedView";
|
|
36
|
-
import { CutView } from "./Topbar/View/CutView";
|
|
37
|
-
import { TreeView } from "../UserInterface/UIComponents/TreeView";
|
|
38
|
-
/**
|
|
39
|
-
* A task elindulasahoz es befejezesehez szukseges kiegeszito/tamogato funkciok
|
|
40
|
-
*/
|
|
41
|
-
export declare class TaskHandler {
|
|
42
|
-
static instance: TaskHandler;
|
|
43
|
-
setButtons(namesToObjects: any): void;
|
|
44
|
-
a_entity1: HTMLElement;
|
|
45
|
-
meshWrapper: MeshWrapper;
|
|
46
|
-
sceneWrapper: SceneWrapper;
|
|
47
|
-
unselection: Unselection;
|
|
48
|
-
selectionValidation: SelectionValidation;
|
|
49
|
-
explodedView: ExplodedView;
|
|
50
|
-
cutView: CutView;
|
|
51
|
-
treeView: any;
|
|
52
|
-
readonly currentCamera: any;
|
|
53
|
-
readonly scene: any;
|
|
54
|
-
readonly renderer: any;
|
|
55
|
-
readonly status: HTMLElement;
|
|
56
|
-
readonly a_vertex: HTMLElement;
|
|
57
|
-
readonly a_edge: HTMLElement;
|
|
58
|
-
readonly a_face: HTMLElement;
|
|
59
|
-
readonly menuSections: any[];
|
|
60
|
-
readonly topbarSections_L1: any[];
|
|
61
|
-
image: HTMLImageElement;
|
|
62
|
-
a_toolbarButtons: any[];
|
|
63
|
-
selected: any;
|
|
64
|
-
grMesh: any;
|
|
65
|
-
grLine: any;
|
|
66
|
-
grPoint: any;
|
|
67
|
-
method: any;
|
|
68
|
-
mode: any;
|
|
69
|
-
entityType: any;
|
|
70
|
-
buttonActive: any;
|
|
71
|
-
taskActive: any;
|
|
72
|
-
entityButtons: any;
|
|
73
|
-
section_geom: HTMLElement;
|
|
74
|
-
input_id: any;
|
|
75
|
-
input_disp: any;
|
|
76
|
-
input_text_explode: HTMLInputElement;
|
|
77
|
-
input_range_explode: HTMLInputElement;
|
|
78
|
-
/**
|
|
79
|
-
* Constructor.
|
|
80
|
-
* @param meshWrapper
|
|
81
|
-
* @param sceneWrapper
|
|
82
|
-
* @param unselection
|
|
83
|
-
* @param selectionValidation
|
|
84
|
-
* @param explodedView
|
|
85
|
-
*/
|
|
86
|
-
constructor(meshWrapper: MeshWrapper, sceneWrapper: SceneWrapper, explodedView: ExplodedView, treeView: TreeView);
|
|
87
|
-
static getInstance(): TaskHandler;
|
|
88
|
-
setPrerequisites(selectionValidation: SelectionValidation, unselector: Unselection, cutView: CutView): void;
|
|
89
|
-
/**
|
|
90
|
-
* Get selection method (byID, byClick)
|
|
91
|
-
* @returns
|
|
92
|
-
*/
|
|
93
|
-
getMethod(): any;
|
|
94
|
-
/**
|
|
95
|
-
* Set selection method (byID, byClick)
|
|
96
|
-
* @param value
|
|
97
|
-
*/
|
|
98
|
-
setMethod(value: string): void;
|
|
99
|
-
/**
|
|
100
|
-
* Set selection method equal to "null"
|
|
101
|
-
* @param buttonObject
|
|
102
|
-
* @param caption
|
|
103
|
-
*/
|
|
104
|
-
resetMethod(buttonObject: any, caption: any): void;
|
|
105
|
-
/**
|
|
106
|
-
* Get enabled entity (vertex, edge, face)
|
|
107
|
-
* @returns
|
|
108
|
-
*/
|
|
109
|
-
getEntity(): any;
|
|
110
|
-
/**
|
|
111
|
-
* Set enabled entity (vertex, edge, face)
|
|
112
|
-
* @param entType
|
|
113
|
-
*/
|
|
114
|
-
setEntity(entType: any): void;
|
|
115
|
-
/**
|
|
116
|
-
* Get selection mode (visibleOnly, throughAll)
|
|
117
|
-
* @returns
|
|
118
|
-
*/
|
|
119
|
-
getMode(): any;
|
|
120
|
-
/**
|
|
121
|
-
* Set preferred selection mode (visibleOnly, throughAll)
|
|
122
|
-
* @param slctnMode
|
|
123
|
-
*/
|
|
124
|
-
setMode(slctnMode: any): void;
|
|
125
|
-
/**
|
|
126
|
-
* Get running task
|
|
127
|
-
* @returns
|
|
128
|
-
*/
|
|
129
|
-
getTaskActive(): any;
|
|
130
|
-
/**
|
|
131
|
-
* Set task active
|
|
132
|
-
* @param taskName
|
|
133
|
-
*/
|
|
134
|
-
setTaskActive(taskName: any): void;
|
|
135
|
-
/**
|
|
136
|
-
* Get current button
|
|
137
|
-
* @returns
|
|
138
|
-
*/
|
|
139
|
-
getButtonActive(): any;
|
|
140
|
-
/**
|
|
141
|
-
* Set button active
|
|
142
|
-
* @param buttonActive
|
|
143
|
-
*/
|
|
144
|
-
setButtonActive(buttonActive: any): void;
|
|
145
|
-
/**
|
|
146
|
-
* Visszaallitja a GUI elemeket, miutan bezartuk a task-ot
|
|
147
|
-
*/
|
|
148
|
-
reset(): void;
|
|
149
|
-
/**
|
|
150
|
-
* Hide all sections in the menu
|
|
151
|
-
* @param section
|
|
152
|
-
*/
|
|
153
|
-
menuHide(section: any): void;
|
|
154
|
-
/**
|
|
155
|
-
* Hide all topbar dropdown sections
|
|
156
|
-
* @param section
|
|
157
|
-
*/
|
|
158
|
-
topbarHide(section: any): void;
|
|
159
|
-
/**
|
|
160
|
-
* Enable selection methods
|
|
161
|
-
*/
|
|
162
|
-
enableMethods(): void;
|
|
163
|
-
/**
|
|
164
|
-
* Enable selection modes
|
|
165
|
-
*/
|
|
166
|
-
enableModes(): void;
|
|
167
|
-
/**
|
|
168
|
-
* Engedelyeezuk az entity valaszto gombokat
|
|
169
|
-
*/
|
|
170
|
-
enableEntities(): void;
|
|
171
|
-
/**
|
|
172
|
-
*
|
|
173
|
-
* @param button disable buttons
|
|
174
|
-
*/
|
|
175
|
-
disableButtons(button: any): void;
|
|
176
|
-
/**
|
|
177
|
-
*
|
|
178
|
-
* @param button Enable buttons
|
|
179
|
-
*/
|
|
180
|
-
enableButtons(button: any): void;
|
|
181
|
-
}
|
|
182
|
-
export declare class Task {
|
|
183
|
-
taskName: any;
|
|
184
|
-
section: any;
|
|
185
|
-
taskHandler: TaskHandler;
|
|
186
|
-
entityButtons: any;
|
|
187
|
-
acceptButtons: any;
|
|
188
|
-
cancelButton: any;
|
|
189
|
-
args: any;
|
|
190
|
-
treeCore: any;
|
|
191
|
-
constructor(taskName: string, // A task neve
|
|
192
|
-
section: Element, // A megjelenitendo section
|
|
193
|
-
taskHandler: TaskHandler, // A TaskHandler class instance-e
|
|
194
|
-
entityButtons: any, // Az 'entity' button-ok object-jei (ami a findelementByID visszaad)
|
|
195
|
-
acceptButtons?: any, // Az 'accept' button-ok object-jei (ami a findelementByID visszaad)
|
|
196
|
-
cancelButton?: any, // Az 'cancel' button-ok object-jei (ami a findelementByID visszaad)
|
|
197
|
-
defaultMethod?: any, // Elore beallitott selection method
|
|
198
|
-
defaultMode?: any, // Elore beallitott selection mode
|
|
199
|
-
defaultEntity?: any, // Elore beallitott selection entity
|
|
200
|
-
args?: any);
|
|
201
|
-
/**
|
|
202
|
-
* Enable all buttons
|
|
203
|
-
* @param object
|
|
204
|
-
*/
|
|
205
|
-
enableButtons(object: any): void;
|
|
206
|
-
/**
|
|
207
|
-
* Disable all buttons
|
|
208
|
-
* @param object
|
|
209
|
-
*/
|
|
210
|
-
disableButtons(object: any): void;
|
|
211
|
-
/**
|
|
212
|
-
* Set tak active
|
|
213
|
-
* @param taskName
|
|
214
|
-
*/
|
|
215
|
-
setTaskActive(taskName: any): void;
|
|
216
|
-
/**
|
|
217
|
-
* Minden dropdown es egyeb menut eltuntet es csak a task kezelofeluletet jeleniti meg
|
|
218
|
-
* @param section
|
|
219
|
-
*/
|
|
220
|
-
showSection(section: any): void;
|
|
221
|
-
/**
|
|
222
|
-
* Hide all sections in the menu
|
|
223
|
-
* @param section
|
|
224
|
-
*/
|
|
225
|
-
menuHide(section: any): void;
|
|
226
|
-
/**
|
|
227
|
-
* Hide all topbar dropdown sections
|
|
228
|
-
* @param section
|
|
229
|
-
*/
|
|
230
|
-
topbarHide(section: any): void;
|
|
231
|
-
/**
|
|
232
|
-
* Set default method
|
|
233
|
-
* @param method
|
|
234
|
-
*/
|
|
235
|
-
setDefaultMethod(method: any): void;
|
|
236
|
-
/**
|
|
237
|
-
* Set default mode
|
|
238
|
-
* @param mode
|
|
239
|
-
*/
|
|
240
|
-
setDefaultMode(mode: any): void;
|
|
241
|
-
/**
|
|
242
|
-
* Set default entity
|
|
243
|
-
* @param entity
|
|
244
|
-
*/
|
|
245
|
-
setDefaultEntity(entity: any): void;
|
|
246
|
-
/**
|
|
247
|
-
* Megjeloli a treeView-ban azt az item-et, amelyikre rakattintottunk
|
|
248
|
-
* @param className
|
|
249
|
-
*/
|
|
250
|
-
markSelected(className: any): void;
|
|
251
|
-
/**
|
|
252
|
-
* Unselect all
|
|
253
|
-
*/
|
|
254
|
-
unselectAll(): void;
|
|
255
|
-
/**
|
|
256
|
-
* Az "Accept" gomb megnyomasara lefuttatja a task-hoz tartozo fuggvenyt a kivalasztott entity-kel
|
|
257
|
-
* @param targetFunction
|
|
258
|
-
* @param args
|
|
259
|
-
* @param validateOnAccept
|
|
260
|
-
*/
|
|
261
|
-
run(targetFunction: any, args?: any, validateOnAccept?: boolean): Promise<void>;
|
|
262
|
-
}
|
|
263
|
-
export declare class Entity {
|
|
264
|
-
button: any;
|
|
265
|
-
requirement: any;
|
|
266
|
-
taskHandler: TaskHandler;
|
|
267
|
-
buttonName: any;
|
|
268
|
-
newTask: Task;
|
|
269
|
-
/**
|
|
270
|
-
* Entity button
|
|
271
|
-
*/
|
|
272
|
-
constructor(button: any, requirement: any, taskHandler: TaskHandler);
|
|
273
|
-
/**
|
|
274
|
-
* Visszaallitja a gombot normal nezetbe
|
|
275
|
-
* @param button
|
|
276
|
-
*/
|
|
277
|
-
resetButton(button: any): void;
|
|
278
|
-
/**
|
|
279
|
-
* Aktivalja a gombot. Ezt kovetoen a kijelolt entity-k emoge a gomb moge leszenk regisztralva
|
|
280
|
-
* @param disableButtons
|
|
281
|
-
*/
|
|
282
|
-
setButtonActive(disableButtons?: any): void;
|
|
283
|
-
/**
|
|
284
|
-
* Mindn gombhoz definialhatunk a kijelolt entity-k szamaval kapcsolatos limiteket. Itt ezt a limitet lehet lekerni.
|
|
285
|
-
* @returns
|
|
286
|
-
*/
|
|
287
|
-
getRequirement(): any;
|
|
288
|
-
/**
|
|
289
|
-
* Ha RMB-vel kattintunk a gombra...
|
|
290
|
-
*/
|
|
291
|
-
context(): void;
|
|
292
|
-
/**
|
|
293
|
-
* Ha LMB-vel kattintunk a gombra...
|
|
294
|
-
*/
|
|
295
|
-
click(): void;
|
|
296
|
-
}
|
|
297
|
-
export declare class Accept {
|
|
298
|
-
taskHandler: TaskHandler;
|
|
299
|
-
/**
|
|
300
|
-
* Accept button
|
|
301
|
-
*/
|
|
302
|
-
constructor(taskHandler: TaskHandler);
|
|
303
|
-
/**
|
|
304
|
-
* Futtatja a taskhoz tartozo fv-t
|
|
305
|
-
* @param anyFunction
|
|
306
|
-
* @param args
|
|
307
|
-
* @param validateOnAccept
|
|
308
|
-
*/
|
|
309
|
-
run(anyFunction: any, args?: any, validateOnAccept?: boolean): Promise<void>;
|
|
310
|
-
/**
|
|
311
|
-
* Validalja a gomb-hoz tartozo kijelolest
|
|
312
|
-
* @returns
|
|
313
|
-
*/
|
|
314
|
-
validate(): any;
|
|
315
|
-
/**
|
|
316
|
-
* Unselectalja a tashoz tartozo osszes gomb mogotti kijelolest
|
|
317
|
-
*/
|
|
318
|
-
unselectButtons(): void;
|
|
319
|
-
}
|
|
320
|
-
export declare class Cancel {
|
|
321
|
-
/**
|
|
322
|
-
* Cancel button
|
|
323
|
-
*/
|
|
324
|
-
constructor();
|
|
325
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* 1) Task-ok inditasa es bezarasa
|
|
3
|
+
* - megjeloli az eppen futo task-ot (melyik gombot nyomtuk meg) (active / inactive) --> pl. a_id(a gomb neve) is active
|
|
4
|
+
* - Ha elindítunk egy task-ot, akkor az eppen futo task-ot leallitja es elinditja az ujat
|
|
5
|
+
*
|
|
6
|
+
* - inditas alatt azt ertem, hogy csak akkor jelolhetunk ki egy entity-t, hogy ha az indikatora active:
|
|
7
|
+
* - pl. csak akkor jelolhetunk ki vertex-et, ha indicatorVertex = active --> ezt elkuldjuk a selectionToolnak
|
|
8
|
+
*
|
|
9
|
+
* 2) Kovetelmenyeket tartalmaz
|
|
10
|
+
* - Milyen entity-t jelolhetunk ki
|
|
11
|
+
* - Mennyi entity-t jelolhetunk ki
|
|
12
|
+
*
|
|
13
|
+
* - ez lehet egy json dict, melyben minden gomb nevehez (key) hozzarendelunk kovetelmenyeket (value)
|
|
14
|
+
*
|
|
15
|
+
* - a selectionTool-ba kell egy counter, ami folyamatosan minden kijelolest kovetoen elkuldi az eppen kijelolt entity-k szamat a hitelesito tool-nak:
|
|
16
|
+
* pl. counterVertex = N
|
|
17
|
+
*
|
|
18
|
+
* 3) Hitelesiti a kijelolest mielott elkuldjuk a backend-nek
|
|
19
|
+
* - A hitelesito osszehasonlitja az N szamot a json dict-ben találhato elvart ertekkel es ha megfelelt akkor a statusbna kiirja, hogy kijeloles kesz
|
|
20
|
+
* - Uzenet a status bar-ban: N = elvart --> zolddel kiirja hogy sikeres kijeloles! Nyomja meg a middle mouse button-t hogy jovahagyja a muveletet
|
|
21
|
+
* N < elvart --> feketevel kiirja hogy mibol mennyit kell kijelolni
|
|
22
|
+
* N > elvart --> Hibauzenet: valamibol tul sokat jelolt ki, torolje a kijelolest!
|
|
23
|
+
*
|
|
24
|
+
* - A Hitelesito folyamatosan track-eli a kijelolt entityk fuggvenyeben valtozo N ertekeket (N_vertex, N_edge, N_face) + regisztraljuk az ID-kat is
|
|
25
|
+
*
|
|
26
|
+
* A teljes folyamat:
|
|
27
|
+
* Megnyomom a gombot --> adott task activva valik --> adott entity-k kijelolese lehetsegesse valik --> elkezdek kijelolni --> select/unselect fuggvenyeben valtoznak itt az N_vertex, N_edge, N_face ertekek --> a hitelesito folyamatosan track-eli az N ertekeket es uzen a statusbarban --> ha minden jo MMB lenyomasa utan elkuldju ka backendnek a kijelolt ID-kat
|
|
28
|
+
* --> ESC vagy masik task inditasaval inactive-va tesszuk az epen futo task-ot
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
import { MeshWrapper } from "../Model/MeshWrapper";
|
|
32
|
+
import { SceneWrapper } from "../Model/SceneWrapper";
|
|
33
|
+
import { Unselection } from "../SelectionTools/Unselection";
|
|
34
|
+
import { SelectionValidation } from "../SelectionTools/SelectionValidation";
|
|
35
|
+
import { ExplodedView } from "./Topbar/View/ExplodedView";
|
|
36
|
+
import { CutView } from "./Topbar/View/CutView";
|
|
37
|
+
import { TreeView } from "../UserInterface/UIComponents/TreeView";
|
|
38
|
+
/**
|
|
39
|
+
* A task elindulasahoz es befejezesehez szukseges kiegeszito/tamogato funkciok
|
|
40
|
+
*/
|
|
41
|
+
export declare class TaskHandler {
|
|
42
|
+
static instance: TaskHandler;
|
|
43
|
+
setButtons(namesToObjects: any): void;
|
|
44
|
+
a_entity1: HTMLElement;
|
|
45
|
+
meshWrapper: MeshWrapper;
|
|
46
|
+
sceneWrapper: SceneWrapper;
|
|
47
|
+
unselection: Unselection;
|
|
48
|
+
selectionValidation: SelectionValidation;
|
|
49
|
+
explodedView: ExplodedView;
|
|
50
|
+
cutView: CutView;
|
|
51
|
+
treeView: any;
|
|
52
|
+
readonly currentCamera: any;
|
|
53
|
+
readonly scene: any;
|
|
54
|
+
readonly renderer: any;
|
|
55
|
+
readonly status: HTMLElement;
|
|
56
|
+
readonly a_vertex: HTMLElement;
|
|
57
|
+
readonly a_edge: HTMLElement;
|
|
58
|
+
readonly a_face: HTMLElement;
|
|
59
|
+
readonly menuSections: any[];
|
|
60
|
+
readonly topbarSections_L1: any[];
|
|
61
|
+
image: HTMLImageElement;
|
|
62
|
+
a_toolbarButtons: any[];
|
|
63
|
+
selected: any;
|
|
64
|
+
grMesh: any;
|
|
65
|
+
grLine: any;
|
|
66
|
+
grPoint: any;
|
|
67
|
+
method: any;
|
|
68
|
+
mode: any;
|
|
69
|
+
entityType: any;
|
|
70
|
+
buttonActive: any;
|
|
71
|
+
taskActive: any;
|
|
72
|
+
entityButtons: any;
|
|
73
|
+
section_geom: HTMLElement;
|
|
74
|
+
input_id: any;
|
|
75
|
+
input_disp: any;
|
|
76
|
+
input_text_explode: HTMLInputElement;
|
|
77
|
+
input_range_explode: HTMLInputElement;
|
|
78
|
+
/**
|
|
79
|
+
* Constructor.
|
|
80
|
+
* @param meshWrapper
|
|
81
|
+
* @param sceneWrapper
|
|
82
|
+
* @param unselection
|
|
83
|
+
* @param selectionValidation
|
|
84
|
+
* @param explodedView
|
|
85
|
+
*/
|
|
86
|
+
constructor(meshWrapper: MeshWrapper, sceneWrapper: SceneWrapper, explodedView: ExplodedView, treeView: TreeView);
|
|
87
|
+
static getInstance(): TaskHandler;
|
|
88
|
+
setPrerequisites(selectionValidation: SelectionValidation, unselector: Unselection, cutView: CutView): void;
|
|
89
|
+
/**
|
|
90
|
+
* Get selection method (byID, byClick)
|
|
91
|
+
* @returns
|
|
92
|
+
*/
|
|
93
|
+
getMethod(): any;
|
|
94
|
+
/**
|
|
95
|
+
* Set selection method (byID, byClick)
|
|
96
|
+
* @param value
|
|
97
|
+
*/
|
|
98
|
+
setMethod(value: string): void;
|
|
99
|
+
/**
|
|
100
|
+
* Set selection method equal to "null"
|
|
101
|
+
* @param buttonObject
|
|
102
|
+
* @param caption
|
|
103
|
+
*/
|
|
104
|
+
resetMethod(buttonObject: any, caption: any): void;
|
|
105
|
+
/**
|
|
106
|
+
* Get enabled entity (vertex, edge, face)
|
|
107
|
+
* @returns
|
|
108
|
+
*/
|
|
109
|
+
getEntity(): any;
|
|
110
|
+
/**
|
|
111
|
+
* Set enabled entity (vertex, edge, face)
|
|
112
|
+
* @param entType
|
|
113
|
+
*/
|
|
114
|
+
setEntity(entType: any): void;
|
|
115
|
+
/**
|
|
116
|
+
* Get selection mode (visibleOnly, throughAll)
|
|
117
|
+
* @returns
|
|
118
|
+
*/
|
|
119
|
+
getMode(): any;
|
|
120
|
+
/**
|
|
121
|
+
* Set preferred selection mode (visibleOnly, throughAll)
|
|
122
|
+
* @param slctnMode
|
|
123
|
+
*/
|
|
124
|
+
setMode(slctnMode: any): void;
|
|
125
|
+
/**
|
|
126
|
+
* Get running task
|
|
127
|
+
* @returns
|
|
128
|
+
*/
|
|
129
|
+
getTaskActive(): any;
|
|
130
|
+
/**
|
|
131
|
+
* Set task active
|
|
132
|
+
* @param taskName
|
|
133
|
+
*/
|
|
134
|
+
setTaskActive(taskName: any): void;
|
|
135
|
+
/**
|
|
136
|
+
* Get current button
|
|
137
|
+
* @returns
|
|
138
|
+
*/
|
|
139
|
+
getButtonActive(): any;
|
|
140
|
+
/**
|
|
141
|
+
* Set button active
|
|
142
|
+
* @param buttonActive
|
|
143
|
+
*/
|
|
144
|
+
setButtonActive(buttonActive: any): void;
|
|
145
|
+
/**
|
|
146
|
+
* Visszaallitja a GUI elemeket, miutan bezartuk a task-ot
|
|
147
|
+
*/
|
|
148
|
+
reset(): void;
|
|
149
|
+
/**
|
|
150
|
+
* Hide all sections in the menu
|
|
151
|
+
* @param section
|
|
152
|
+
*/
|
|
153
|
+
menuHide(section: any): void;
|
|
154
|
+
/**
|
|
155
|
+
* Hide all topbar dropdown sections
|
|
156
|
+
* @param section
|
|
157
|
+
*/
|
|
158
|
+
topbarHide(section: any): void;
|
|
159
|
+
/**
|
|
160
|
+
* Enable selection methods
|
|
161
|
+
*/
|
|
162
|
+
enableMethods(): void;
|
|
163
|
+
/**
|
|
164
|
+
* Enable selection modes
|
|
165
|
+
*/
|
|
166
|
+
enableModes(): void;
|
|
167
|
+
/**
|
|
168
|
+
* Engedelyeezuk az entity valaszto gombokat
|
|
169
|
+
*/
|
|
170
|
+
enableEntities(): void;
|
|
171
|
+
/**
|
|
172
|
+
*
|
|
173
|
+
* @param button disable buttons
|
|
174
|
+
*/
|
|
175
|
+
disableButtons(button: any): void;
|
|
176
|
+
/**
|
|
177
|
+
*
|
|
178
|
+
* @param button Enable buttons
|
|
179
|
+
*/
|
|
180
|
+
enableButtons(button: any): void;
|
|
181
|
+
}
|
|
182
|
+
export declare class Task {
|
|
183
|
+
taskName: any;
|
|
184
|
+
section: any;
|
|
185
|
+
taskHandler: TaskHandler;
|
|
186
|
+
entityButtons: any;
|
|
187
|
+
acceptButtons: any;
|
|
188
|
+
cancelButton: any;
|
|
189
|
+
args: any;
|
|
190
|
+
treeCore: any;
|
|
191
|
+
constructor(taskName: string, // A task neve
|
|
192
|
+
section: Element, // A megjelenitendo section
|
|
193
|
+
taskHandler: TaskHandler, // A TaskHandler class instance-e
|
|
194
|
+
entityButtons: any, // Az 'entity' button-ok object-jei (ami a findelementByID visszaad)
|
|
195
|
+
acceptButtons?: any, // Az 'accept' button-ok object-jei (ami a findelementByID visszaad)
|
|
196
|
+
cancelButton?: any, // Az 'cancel' button-ok object-jei (ami a findelementByID visszaad)
|
|
197
|
+
defaultMethod?: any, // Elore beallitott selection method
|
|
198
|
+
defaultMode?: any, // Elore beallitott selection mode
|
|
199
|
+
defaultEntity?: any, // Elore beallitott selection entity
|
|
200
|
+
args?: any);
|
|
201
|
+
/**
|
|
202
|
+
* Enable all buttons
|
|
203
|
+
* @param object
|
|
204
|
+
*/
|
|
205
|
+
enableButtons(object: any): void;
|
|
206
|
+
/**
|
|
207
|
+
* Disable all buttons
|
|
208
|
+
* @param object
|
|
209
|
+
*/
|
|
210
|
+
disableButtons(object: any): void;
|
|
211
|
+
/**
|
|
212
|
+
* Set tak active
|
|
213
|
+
* @param taskName
|
|
214
|
+
*/
|
|
215
|
+
setTaskActive(taskName: any): void;
|
|
216
|
+
/**
|
|
217
|
+
* Minden dropdown es egyeb menut eltuntet es csak a task kezelofeluletet jeleniti meg
|
|
218
|
+
* @param section
|
|
219
|
+
*/
|
|
220
|
+
showSection(section: any): void;
|
|
221
|
+
/**
|
|
222
|
+
* Hide all sections in the menu
|
|
223
|
+
* @param section
|
|
224
|
+
*/
|
|
225
|
+
menuHide(section: any): void;
|
|
226
|
+
/**
|
|
227
|
+
* Hide all topbar dropdown sections
|
|
228
|
+
* @param section
|
|
229
|
+
*/
|
|
230
|
+
topbarHide(section: any): void;
|
|
231
|
+
/**
|
|
232
|
+
* Set default method
|
|
233
|
+
* @param method
|
|
234
|
+
*/
|
|
235
|
+
setDefaultMethod(method: any): void;
|
|
236
|
+
/**
|
|
237
|
+
* Set default mode
|
|
238
|
+
* @param mode
|
|
239
|
+
*/
|
|
240
|
+
setDefaultMode(mode: any): void;
|
|
241
|
+
/**
|
|
242
|
+
* Set default entity
|
|
243
|
+
* @param entity
|
|
244
|
+
*/
|
|
245
|
+
setDefaultEntity(entity: any): void;
|
|
246
|
+
/**
|
|
247
|
+
* Megjeloli a treeView-ban azt az item-et, amelyikre rakattintottunk
|
|
248
|
+
* @param className
|
|
249
|
+
*/
|
|
250
|
+
markSelected(className: any): void;
|
|
251
|
+
/**
|
|
252
|
+
* Unselect all
|
|
253
|
+
*/
|
|
254
|
+
unselectAll(): void;
|
|
255
|
+
/**
|
|
256
|
+
* Az "Accept" gomb megnyomasara lefuttatja a task-hoz tartozo fuggvenyt a kivalasztott entity-kel
|
|
257
|
+
* @param targetFunction
|
|
258
|
+
* @param args
|
|
259
|
+
* @param validateOnAccept
|
|
260
|
+
*/
|
|
261
|
+
run(targetFunction: any, args?: any, validateOnAccept?: boolean): Promise<void>;
|
|
262
|
+
}
|
|
263
|
+
export declare class Entity {
|
|
264
|
+
button: any;
|
|
265
|
+
requirement: any;
|
|
266
|
+
taskHandler: TaskHandler;
|
|
267
|
+
buttonName: any;
|
|
268
|
+
newTask: Task;
|
|
269
|
+
/**
|
|
270
|
+
* Entity button
|
|
271
|
+
*/
|
|
272
|
+
constructor(button: any, requirement: any, taskHandler: TaskHandler);
|
|
273
|
+
/**
|
|
274
|
+
* Visszaallitja a gombot normal nezetbe
|
|
275
|
+
* @param button
|
|
276
|
+
*/
|
|
277
|
+
resetButton(button: any): void;
|
|
278
|
+
/**
|
|
279
|
+
* Aktivalja a gombot. Ezt kovetoen a kijelolt entity-k emoge a gomb moge leszenk regisztralva
|
|
280
|
+
* @param disableButtons
|
|
281
|
+
*/
|
|
282
|
+
setButtonActive(disableButtons?: any): void;
|
|
283
|
+
/**
|
|
284
|
+
* Mindn gombhoz definialhatunk a kijelolt entity-k szamaval kapcsolatos limiteket. Itt ezt a limitet lehet lekerni.
|
|
285
|
+
* @returns
|
|
286
|
+
*/
|
|
287
|
+
getRequirement(): any;
|
|
288
|
+
/**
|
|
289
|
+
* Ha RMB-vel kattintunk a gombra...
|
|
290
|
+
*/
|
|
291
|
+
context(): void;
|
|
292
|
+
/**
|
|
293
|
+
* Ha LMB-vel kattintunk a gombra...
|
|
294
|
+
*/
|
|
295
|
+
click(): void;
|
|
296
|
+
}
|
|
297
|
+
export declare class Accept {
|
|
298
|
+
taskHandler: TaskHandler;
|
|
299
|
+
/**
|
|
300
|
+
* Accept button
|
|
301
|
+
*/
|
|
302
|
+
constructor(taskHandler: TaskHandler);
|
|
303
|
+
/**
|
|
304
|
+
* Futtatja a taskhoz tartozo fv-t
|
|
305
|
+
* @param anyFunction
|
|
306
|
+
* @param args
|
|
307
|
+
* @param validateOnAccept
|
|
308
|
+
*/
|
|
309
|
+
run(anyFunction: any, args?: any, validateOnAccept?: boolean): Promise<void>;
|
|
310
|
+
/**
|
|
311
|
+
* Validalja a gomb-hoz tartozo kijelolest
|
|
312
|
+
* @returns
|
|
313
|
+
*/
|
|
314
|
+
validate(): any;
|
|
315
|
+
/**
|
|
316
|
+
* Unselectalja a tashoz tartozo osszes gomb mogotti kijelolest
|
|
317
|
+
*/
|
|
318
|
+
unselectButtons(): void;
|
|
319
|
+
}
|
|
320
|
+
export declare class Cancel {
|
|
321
|
+
/**
|
|
322
|
+
* Cancel button
|
|
323
|
+
*/
|
|
324
|
+
constructor();
|
|
325
|
+
}
|