130 Commits

Author SHA1 Message Date
Dario Sassi 9da749521e EgtUILib 3.1d1 :
- aggiunta interfaccia per funzione EgtRedraw.
2026-04-08 19:31:26 +02:00
Dario Sassi 4c7c851394 EgtUILib :
- aggiornata interfaccia di EgtSurfBezierParamsFromPoint
- aggiunta interfaccia di EgtSurfBezierGetPointNrmD1
- in Scene ora l'evento OnMouseAnalyzedEx restituisce anche lo stato dei tasti (SHIFT, CTRL e ALT).
2026-03-13 13:36:06 +01:00
Daniele Bariletti 977f82ce26 EgtInterface :
- cambiata la restituzione di valori per EgtSurfBezParamsFromPoint.
2026-03-12 18:16:54 +01:00
Daniele Bariletti bab91a1bc3 EgtUILib :
- aggiunte funzioni per le isoparametriche di una surf bezier.
- cambio versione.
2026-03-11 16:11:22 +01:00
Daniele Bariletti 32a4faf865 EgtUILib :
- aggiunta operazione per taglio di surfTm con curva chiusa.
2026-03-11 13:02:10 +01:00
Daniele Bariletti f80713f319 EgtUILib :
- aggiunta analisi per le superficie di Bezier.
2026-03-10 17:28:59 +01:00
Dario Sassi c88a08b184 EgtUILib 3.1c1 :
- aggiunta interfaccia per EgtChangePreviewMachiningToolShow
- aggiunta costante MCH_LOOK.NONE (-1).
2026-03-03 18:36:49 +01:00
Dario Sassi ffb8a286d3 EgtUILib 3.1b1 :
- aggiunta costante NGE.CMPBIN.
2026-02-22 16:29:21 +01:00
Dario Sassi c8d2ecbdf4 EgtUILib 3.1a2 :
- aggiunte a Scene le funzioni Enable e IsEnabled per poter abilitare (default) e disabilitare la scena.
2026-01-20 12:05:16 +01:00
Dario Sassi 29b1b3015b EgtUILib 3.1a1 :
- ricompilazione con cambio major version.
2026-01-02 18:27:36 +01:00
Dario Sassi b0ec70e41b EgtUILib 2.7l2 :
- aggiunta gestione selezione per colore.
2025-12-15 16:55:10 +01:00
Dario Sassi 8855baee98 EgtUILib 2.7k3 :
- in Controller dopo Open, Insert e Import prima si chiama la funzione di gestione del risultato e poi si lancia l'evento per l'aggiornamento.
2025-11-28 12:26:47 +01:00
Dario Sassi 7f65ab2f3c EgtUILib :
- in Controller alla PrepareInputBox per Info passato metacomando nel titolo.
2025-11-09 22:53:44 +01:00
Dario Sassi e5bac5efd0 EgtUILib 2.7k2 :
- aggiunta interfaccia per funzione EgtGetAllCurrAxesNames.
2025-11-07 18:00:43 +01:00
Dario Sassi b292501937 EgtUILib :
- aggiornamento interfaccia di EgtSaveObjToFile.
2025-10-29 19:32:34 +01:00
Dario Sassi f6849544c7 EgtUILib 2.7j3 :
- aggiornato prototipo di EgtSaveMachGroupToFile per permettere un nuovo parametro (identificativi di oggetti aggiuntivi).
2025-10-28 15:22:39 +01:00
Dario Sassi 3d6a7029c0 EgtUILib :
- aggiunta interfaccia per EgtBeamCalcAllSolids e EgtBeamShowAllSolids.
2025-10-13 09:48:40 +02:00
Dario Sassi 63ba7a28b9 EgtUILib 2.7j2 :
- aggiornamento prototipi per assemblaggi BTL.
2025-10-11 10:14:21 +02:00
Dario Sassi 58d8b6d5ac EgtUILib 2.7j1 :
- aggiunte interfacce per funzioni EgtCopyEx e EgtCopyGlobEx.
2025-10-08 18:34:22 +02:00
Dario Sassi ce64550938 EgtUILib 2.7i1 :
- ricompilazione con cambio versione.
2025-09-17 12:46:21 +02:00
Daniele Bariletti cd8d77bb81 EgtUILib :
- aggiunta modalità bonus per analizza su una trimesh: visualizzazione del triangolo selezionato e del suo id
2025-09-17 11:24:06 +02:00
Dario Sassi 2d45e514f7 EgtUILib 2.7h2 :
- aggiunta interfaccia per funzione EgtGetPartCount.
2025-08-29 09:38:40 +02:00
Dario Sassi bc9617ce5b EgtUILib :
- aggiunti prototipi EgtSetShowSurfBezierTol e EgtGetShowSurfBezierTol.
2025-08-24 19:17:09 +02:00
SaraP 7276832d88 EgtUILib 2.7h1 :
- aggiunte nuove costanti per sgrossatura con lama.
2025-08-22 12:35:06 +02:00
Dario Sassi c838f991a5 EgtUILib :
- correzione a EgtCreateCurveBezier con coefficienti quando distanza tra estremi nulla.
2025-07-22 10:39:44 +02:00
Dario Sassi 3d6b9178d5 EgtUILib :
- aggiunta interfaccia per EgtCreateCurveBezier.
2025-07-21 13:13:20 +02:00
Dario Sassi 0800f5fcc8 EgtUILib :
- in Controller aggiunto comando per creazione Biarco.
2025-07-18 18:45:16 +02:00
Dario Sassi 5a836adfcc EgtUILib 2.7g1 :
- piccola correzione in ModifyCurve di controller (non chiamava alla fine DisableCommandLog).
2025-07-18 10:41:06 +02:00
Dario Sassi 5a3ec874d1 EgtUILib 2.7f3 :
- correzioni a Trim/Extend con punto intersezione su curve non piane.
2025-06-26 16:26:59 +02:00
Dario Sassi 0cf1126602 EgtUILib 2.7f2 :
- aggiunte costanti MCH_TF.PROBE, MCH_TY.PROBE, MCH_OY.PROBING, MCH_MY.PROBING per utensile di tipo Probe e lavorazione Probing
- modifiche a IsValidMachiningType per considerare lavorazione valida la tastatura.
2025-06-10 18:32:39 +02:00
Dario Sassi 87467f9bc7 EgtUILib 2.7f1 :
- aggiunta interfaccia per EgtSimEnableToolTipTrace.
2025-06-08 19:22:47 +02:00
Dario Sassi 07354d2812 EgtUILib 2.7e2 :
- aggiornamento interfacce
- aggiunte costanti MCH_EMPTY per tipo controllo lavorazione vuota.
2025-05-12 09:53:40 +02:00
Dario Sassi 64e7c0fa87 EgtUILib 2.7e1 :
- aggiunta costante SUPPORT.
2025-05-05 08:05:56 +02:00
Dario Sassi c7db73f7a4 EgtUILib 2.7d1 :
- aggiunta interfaccia per funzione EgtCreateSurfTmSphere.
2025-04-07 11:56:13 +02:00
Dario Sassi 5cb20f7e75 EgtUILib :
- aggiunta interfaccia per funzione EgtGetBBoxRef
- in Controller corretta gestione tolleranza di creazione faccia piana.
2025-03-28 16:54:21 +01:00
Dario Sassi 985bf10cdc EgtUILib 2.7c4 :
- ricompilazione con cambio versione.
2025-03-27 16:46:21 +01:00
Daniele Bariletti b55bdf06a4 - aggiunta interfaccia per EgtCopyCompoSubCurve e EgtCopyParamRange.
- cambio versione.
2025-03-27 10:21:43 +01:00
Dario Sassi 55d3693387 EgtUILib 2.7c2 :
- aggiunta interfaccia funzione EgtGetAllInfo.
2025-03-22 18:08:19 +01:00
Dario Sassi aa60d08779 EgtUILib 2.7c1 :
- ricompilazione con cambio versione.
2025-03-07 08:38:45 +01:00
Dario Sassi 3660656932 EgtUILib 2.7b3 :
- aggiunta interfaccia per funzione EgtImportPly
- aggiunta costante FT.PLY
- in Controller aggiunta in Import e Insert gestione formato PLY.
2025-03-02 19:46:59 +01:00
Dario Sassi 8d24eabf9d EgtUILib 2.7a4 :
- aggiunta interfaccia per funzione EgtSetFixtureLink
- in Controller separato Epsilon di Importazione da quello standard.
2025-01-31 09:02:43 +01:00
Dario Sassi e1980d26f4 EgtUILib :
- aggiunte costanti ZP.STD e ZP.DOLLY per tipo di zoom prospettico.
2025-01-23 12:09:12 +01:00
SaraP 97a75b9603 EgtUILib 2.7a2 :
- aggiunte funzioni per gestione camera prospettica.
2025-01-23 10:12:30 +01:00
Dario Sassi fcba4bd03b EgtUILib :
- aggiunta costante MCH_SURFFIN_SUB.PROJECT.
2025-01-20 10:50:37 +01:00
Dario Sassi 37fb3d89a0 EgtUILib 2.7a1 :
- ricompilazione con cambio versione.
2025-01-10 17:31:20 +01:00
Dario Sassi 98d3329d16 EgtUILib 2.6l3 :
- aggiornamento interfaccia funzione EgtImport3MF
- aggiunte costanti per nuovo flag di EgtImport3MF
- aggiunta gestione nuovo flag di EgtImport3MF in Controller.
2024-12-17 10:25:55 +01:00
Dario Sassi 8ad5743130 EgUILib 2.6l2 :
- aggiunte costanti MCH_SURFFIN_SUB.Z_CONST e MCH_SURFFIN_SUB.OPTIMAL.
2024-12-04 10:09:04 +01:00
Dario Sassi 4324c8ffc5 EgtUILib 2.6l1 :
- aggiunta interfaccia per funzione EgtImportOff
- aggiunta gestione e costante per import formato OFF
- in Controller aggiunta impostazione multipla info di entità su più righe.
2024-11-29 18:59:27 +01:00
Dario Sassi 3b1fc3053d EgtUILib 2.6j4 :
- aggiunta interfaccia per funzione EgtSetFixtureMobile.
2024-10-31 18:33:58 +01:00
Dario Sassi be8ae7194a EgtUILib :
- aggiunta interfaccia per funzione EgtKeepAllDispAxes.
2024-10-16 19:51:08 +02:00
Dario Sassi cc6a7f18ca EgtUILib 2.6j3 :
- aggiunte in interfaccia funzioni EgtMoveDispAxis, EgtRemoveDispAxis, EgtGetAxisType e EgtGetAxisDir.
2024-10-15 17:38:25 +02:00
Dario Sassi 22aa652e6b EgtUILib 2.6j1 :
- aggiunta interfaccia per EgtSurfTmSetFaceColor
- aggiunta interfaccia per EgtSetMark con secondo parametro nMark.
2024-10-01 15:24:08 +02:00
Dario Sassi a3fd1fdab0 EgtUILib 2.6i2 :
- migliorato controllo path file in SaveAsProject di Controller.
2024-09-26 17:22:09 +02:00
Dario Sassi 01c515a388 EgtUILib 2.6i1 :
- aggiunte costanti per svuotature e sgrossature conformi.
2024-09-20 14:22:52 +02:00
Dario Sassi 62d273b31f EgtUILib :
- corretta gestione copia in trasla, ruota, mirror e scala con pezzi e layer.
2024-08-27 09:40:14 +02:00
Dario Sassi bd1578164f EgtUILib :
- modifica a interfaccia di EgtSetMarkAttribs (ora con due colori), e funzione .Net con uno o due colori
- aggiunta a Scene funzione SetMark2Material.
2024-08-22 09:21:10 +02:00
Dario Sassi 78fedd53cd EgtUILib 2.6h2 :
- aggiunta interfaccia per funzione EgtSurfFrChunkCenter.
2024-08-21 14:41:36 +02:00
Dario Sassi 1bdc394bfb EgtUILib 2.6g7 :
- aggiunta costante MCH_SURFROU_SUB.CONFORMAL_ZIGZAG.
2024-07-30 10:18:10 +02:00
Dario Sassi 71088b86b2 EgtUILib 2.6g5 :
- ricompilazione con cambio versione.
2024-07-22 18:18:53 +02:00
Dario Sassi 6ca35150b7 EgtUILib 2.6g1 :
- aggiunta costante MCH_WATERJET_IC.SLOW_FULL (2) per i corner interni.
2024-07-17 14:50:31 +02:00
Dario Sassi c4a046a81b EgtUILib :
- aggiunte interfacce per EgtCurveIsACircle, EgtCurveIsARectangle e EgtCurveIsATrapezoid.
2024-06-26 17:39:28 +02:00
Dario Sassi a3ca678c43 EgtUILib 2.6f1 :
- aggiunte costanti per lavorazioni di superficie.
2024-06-05 17:16:38 +02:00
Dario Sassi fb69d909e1 EgtUILib 2.6e6 :
- aggiunta interfaccia per funzione EgtGetPreviewMachiningToolStepCount.
2024-05-30 15:21:55 +02:00
Dario Sassi e5b439ab10 EgtUILib :
- aggiornata IsValidMachiningType per lavorazione 5assi.
2024-05-24 10:17:08 +02:00
Dario Sassi 79c9f685c9 EgtUILib 2.6e5 :
- sistemazione costanti per lavorazione fresatura 5 assi (FiveAxisMilling).
2024-05-23 11:50:40 +02:00
Dario Sassi e9c6e20b74 EgtUILib :
- aggiunto comando CMD.GRID_INVERT per Controller (e sua gestione).
2024-04-26 17:51:57 +02:00
Dario Sassi 72561f52a7 EgtUILib :
- aggiunta interfaccia per funzione EgtCreateArc2PR
- in Controller aggiunto comando CMD.ARC2PR (con relativa gestione).
2024-04-19 17:53:22 +02:00
Dario Sassi 3e5ee6f046 EgtUILib 2.6d4 :
- aggiunta gestione comando di Controller CMD.CHANGESTATUS
- aggiunte costanti GDB_ID.SELPART e GDB_ID.SELLAYER (per pezzo e layer di ultima entità selezionata).
2024-04-19 11:26:25 +02:00
Dario Sassi 0717bb0961 EgtUILib :
- aggiunto evento OnInsertingProject.
2024-04-12 08:53:13 +02:00
Dario Sassi d4cac86654 EgtUILib :
- aggiornata interfaccia di EgtAdvancedImport per gestire parametro Flag
- aggiornata ImportProject di Controller per gestire Flag su formati avanzati.
2024-04-11 00:25:58 +02:00
Dario Sassi a43bada11d EgtUILib 2.6d2 :
- aggiunta interfaccia per EgtGetNetHwKey.
2024-04-09 14:51:13 +02:00
Dario Sassi 9f49f4e4e1 EgtUILib :
- in Interfaccia aggiornata EgtCreateSurfTmSwept con possibilità di nuovo parametro vettore normale al piano di giacitura asse X
- in Controller aggiunta gestione swept in 3d con opzione Rotation X plane o Rotation Minimizing.
2024-04-05 16:59:49 +02:00
Dario Sassi 42f60adb81 EgtUILib 2.6d1 :
- aggiunta costante MCH_GP.APPROXLINTOL.
2024-04-02 15:39:32 +02:00
Dario Sassi 33251d50da EgtUILib 2.6c3 :
- aggiunta interfaccia EgtGetCalcAnglesEx
- aggiunte nuove interfacce per EgtGetCalcPositions, EgtGetCalcTipFromPositions e EgtGetCalcToolDirFromAngles.
2024-03-27 16:23:02 +01:00
Dario Sassi ad28068f95 EgtUILib :
- aggiunte interfacce per EgtCreateAngularDimension, EgtCreateAngularDimensionEx, EgtCreateDiametralDimension e EgtCreateRadialDimension
- aggiunta gestione comandi Controller CMD.ANGULARDIMENSION, CMD.ANGULARDIMENSIONPLUS, CMD.DIAMETRALDIMENSION e CMD.RADIALDIMENSION.
2024-03-14 20:05:48 +01:00
Dario Sassi b13126475b EgtUILib 2.6c2 :
- aggiunte interfacce per EgtSurfTmGetVertex, EgtSurfTmGetNearestVertex, EgtSurfTmMoveVertex e EgtSurfTmMoveFacet
- aggiunta gestione comandi movimento vertice e movimento faccia di superficie trimesh.
2024-03-13 09:27:28 +01:00
Dario Sassi ca700c0ecd EgtUILib :
- ricompilazione dopo aggiornamento configurazione.
2024-02-19 14:56:00 +01:00
Dario Sassi d696eecf24 EgtUILib 2.6a3 :
- migliorata gestione drag di Offset in Controller (eliminate copie inutili della curva di partenza).
2024-01-29 15:35:17 +01:00
Dario Sassi 85aab4b5c3 EgtUILib 2.6a2 :
- aggiunta interfaccia per funzione EgtGetKeyAssLeftDays (numero di giorni mancanti al termine dell'assistenza).
2024-01-25 18:22:08 +01:00
Dario Sassi b4d9f24352 EgtUILib :
- aggiunta interfaccia di funzione EgtChangeMachGroupName.
2024-01-16 19:43:47 +01:00
Dario Sassi 087069c464 EgtUILib 2.6a1 :
- ricompilazione con cambio versione.
2024-01-16 15:53:54 +01:00
Dario Sassi d46ca6b22c EgtUILib 2.5l6 :
- aggiunta interfaccia funzione EgtSetGridGeoAdv
- a SetFocusOnMove di Scene aggiunti parametri opzionali di margine in pu sui bordi dei quattro lati.
2024-01-09 18:33:47 +01:00
Dario Sassi af8c623219 Merge branch 'master' of https://gitlab.steamware.net/egaltech/EgtUILib 2023-12-29 13:11:25 +01:00
Dario Sassi 2182ea7363 EgtUILib 2.5l4 :
- griglia da sotto senza inutile rotazione di 180° attorno a Z (allineata con nuova vista da sotto).
2023-12-29 13:10:18 +01:00
Emmanuele Sassi 0201399559 - aggiunte classi e costanti per gestione plugin in EgtCAM5 2023-12-27 11:33:02 +01:00
Dario Sassi b65a76e42b EgtUILib 2.5l3 :
- aggiunte interfacce per funzioni EgtDuploInRawCount e EgtDuploWithoutRawList.
2023-12-14 20:28:36 +01:00
Dario Sassi cfbc31cd5c EgtUILib 2.5l1 :
- ricompilazione con cambio versione.
2023-12-01 16:52:31 +01:00
Dario Sassi c693b67751 EgtUILib 2.5k5 :
- aggiunta interfaccia per EgtSetOnTerminateProcess (installa callback chiamata prima di terminare il processo con comando lua EgtCloseExe).
2023-11-23 10:51:03 +01:00
SaraP 0b86c4f9b6 EgtUILib :
- piccola modifica al FilterIndex dell'importazione progetto.
2023-11-13 15:30:07 +01:00
Daniele Bariletti 5d99adaaf9 EgtUILib 2.5k1 :
- aggiunta la funzione Import3dm.
- cambio versione.
2023-11-08 10:51:21 +01:00
Dario Sassi 02199c0d06 EgtUILib 2.5j2 :
- gestione export 3dm (file Rhino con OpenNurbs).
2023-10-24 13:09:10 +02:00
Emmanuele Sassi c455321b66 - aggiunta funzione nel controller per esportare un particolare Id geometrico 2023-10-24 11:04:24 +02:00
Dario Sassi 4001f95c8a EgtUILib 2.5j1 :
- ricompilazione con cambio versione.
2023-10-09 13:01:21 +02:00
Dario Sassi f753bdc786 EgtUILib 2.5i1 :
- aggiunta costante MCH_MGR_DBL.
2023-09-11 10:52:13 +02:00
Dario Sassi 8231d0dd46 EgtUILib 2.5h3 :
- aggiunta interfaccia per funzione EgtCopyMachGroup
2023-08-27 18:32:23 +02:00
DarioS b7e8c8bdaf EgtUILib 2.5g1 :
- aggiunto metodo ToString a Vector3d, Point3d, Frame3d e BBox3d.
2023-07-25 09:14:16 +02:00
DarioS f337dd28d9 EgtUILib :
- a Scene aggiunto evento OnStartingMouseSelectingObj sempre emesso primo di chiamare una serie di OnMouseSelectingObj.
2023-06-05 17:06:09 +02:00
DarioS 927f874604 EgtUILib :
- aggiunto a Scene l'evento OnStartingMouseDownScene che permette di gestire il MouseDown completamente.
2023-06-05 14:29:43 +02:00
DarioS f27a3ae198 EgtUILib 2.5f1 :
- ricompilazione con cambio versione.
2023-06-05 08:13:53 +02:00
DarioS 50cded7910 EgtUILib 2.5e5 :
- aggiunta in interfaccia funzione EgtSetLockId.
2023-05-30 17:08:22 +02:00
DarioS 9a8fc10e24 EgtUILib 2.5e1 :
- in Controller si accettano impostazioni di Info di entità con il carattere '=' nel valore.
2023-05-10 16:07:42 +02:00
DarioS 57dbf6bd0b EgtUILib 2.5d3 :
- aggiunto assegnamento tipo di Offset all'inizio del comando Offset di Controller (per ora sempre Fillet = 0).
2023-04-24 15:40:36 +02:00
DarioS 4dcf4a13b0 EgtUILib 2.5b3 :
- a EgtLuaExecFile aggiunto parametro bLogInfo (opzionale nelle chiamate da VB).
2023-02-27 17:25:01 +01:00
DarioS d430b6b282 EgtUILib :
- aggiunta funzione AdjustAngleInRange.
2023-02-10 11:27:44 +01:00
DarioS 36adf113b8 EgtUILib 2.5b1 :
- migliorata gestione dialogo esportazione file in Controller.
2023-02-09 10:40:24 +01:00
DarioS 6cbdf8da4b EgtUILib 2.5a2 :
- aggiunto parametro nFilter a tutte le funzioni di esportazione
- aggiunta funzione SetDefaultFilterForExport di Controller.
2023-01-11 14:52:38 +01:00
Emmanuele Sassi 11a84b6e76 - introdotto export da file senza finestra di dialogo 2023-01-10 10:07:47 +01:00
DarioS d9c24e0f45 EgtUILib 2.5a1 :
- ricompilazione con cambio versione.
2023-01-03 08:56:42 +01:00
DarioS 3451e90aaa EgtUILib 2.4l1 :
- ricompilazione con cambio versione.
2022-12-05 08:16:01 +01:00
DarioS abd44f85d3 EgtUILib 2.4k3 :
- piccola miglioria a EgtSetInfo con bVerify a true quando lavora su double.
2022-11-09 13:15:44 +01:00
DarioS 3d2c9d5bef EgtUILib :
- aggiunte interfacce per funzioni EgtBeamShowFacesName e EgtBeamShowLoadingSide.
2022-11-08 16:44:01 +01:00
DarioS 006fb21fd6 EgtUILib 2.4k2 :
- aggiunte interfacce per funzioni EgtApproxSurface e EgtSurfTmToTriangles
- aggiunti a Controller comandi SURFTMTOTRIANGLES e APPROXSURF.
2022-11-04 19:23:32 +01:00
DarioS fd5bb683a1 EgtUILib 2.4j2 :
- aggiunte interfacce per funzioni EgtSurfArea, EgtSurfIsClosed, EgtSurfVolume e EgtSurfTmPartCount.
2022-10-26 18:07:18 +02:00
DarioS bf7048c660 EgtUILib 2.4j1 :
- aggiunte interfacce EgtSetThreeJSLibDir e EgtExportThreeJS
- aggiunta costante FT.HTML (=51) per file formato Html (usato per ThreeJS)
- in esportazione si accetta estensione Html per ThreeJS senza proporla nell'elenco.
2022-10-24 08:41:55 +02:00
DarioS 25976f7ed0 EgtUILib 2.4i4 :
- correzione a EgtGetMachines per evitare crash nel caso di assenza di macchine.
2022-10-04 12:21:50 +02:00
DarioS 2aa6c8d90f EgtUILib 2.4i3 :
- aggiunta interfaccia per funzione EgtGetAxisOffset.
2022-09-24 18:49:59 +02:00
DarioS 9a84ad59be EgtUILib :
- in InsertProject di Controller aggiunta gestione altri formati di file.
2022-09-14 11:21:46 +02:00
DarioS 21bdc31c96 EgtUILib :
- migliorate allocazioni parametri di ritorno in EgtGetMachines, EgtTdbToBeImported e EgtTdbImport
- piccola modifica estetica in Controller.
2022-09-13 15:04:55 +02:00
Emmanuele Sassi 5da51a5944 Merge branch 'master' of https://gitlab.steamware.net/egaltech/EgtUILib 2022-09-13 09:14:55 +02:00
Emmanuele Sassi 00ae3924d3 - aggiunto evento OnExecCmdEnd 2022-09-13 09:09:41 +02:00
DarioS a9f7954d23 EgtUILib 2.4i2 :
- aggiunte interfacce EgtGetMachines e EgtGetCurrMachineDir.
2022-09-13 08:55:52 +02:00
DarioS d43129324d EgtUILib :
- aggiunte costanti CREGC.* .
2022-08-31 17:44:37 +02:00
DarioS 5410e0fa02 EgtUILib 2.4h5 :
- aggiunto prototipo per funzione EgtCurveWithRegionClassify.
2022-08-31 15:35:19 +02:00
DarioS f2533d3422 EgtUILib 2.4h4 :
- aggiunto prototipo per EgtLuaExistsFunction.
2022-08-29 07:26:04 +02:00
DarioS 3f8f669ad8 EgtUILib 2.4h2 :
- aggiunta interfaccia per EgtCreateCircle2P
- in Controller se circonferenza per tre punti ne ha solo due distinti chiama EgtCreateCircle2P
- in Controller aggiunta gestione comando CMD.MODIFYARCRADIUS.
2022-08-21 16:25:57 +02:00
DarioS 94574534fd EgtUILib :
- modifica menù su tasto destro per selezione (a Deseleziona Tutto associato bottone End).
2022-08-17 19:22:36 +02:00
DarioS 0967d02374 EgtUILib 2.4h1 :
- aggiunta costante RUL_TYPE.ISOPAR_SMOOTH
- a funzione MouseDeselectedAll di Controller aggiunto parametro opzionale per controllo stato.
2022-08-13 23:54:01 +02:00
DarioS 3e28a8ee4b EgtUILib :
- aggiunta funzione Invert a Frame3d.
2022-07-06 19:28:30 +02:00
DarioS 2e1f0d0361 EgtUILib 2.4g1 :
- aggiunta interfaccia per funzione EgtBeamGetSideData.
2022-07-06 17:46:48 +02:00
Samuele Locatelli 032c78a195 Merge branch 'develop' 2022-06-19 11:43:04 +02:00
9 changed files with 3588 additions and 497 deletions
+1546 -245
View File
File diff suppressed because it is too large Load Diff
+1809 -213
View File
File diff suppressed because it is too large Load Diff
+3
View File
@@ -234,6 +234,8 @@
<Compile Include="btnZoomOut.vb">
<SubType>Component</SubType>
</Compile>
<Compile Include="PluginUtility\ConstPlugin.vb" />
<Compile Include="PluginUtility\IControl.vb" />
<Compile Include="Controller.vb" />
<Compile Include="EgtInterface.vb" />
<Compile Include="gbLookFrom.Designer.vb">
@@ -258,6 +260,7 @@
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
<Compile Include="PluginUtility\IPluginConfigData.vb" />
<Compile Include="rbtnHiddenLine.Designer.vb">
<DependentUpon>rbtnHiddenLine.vb</DependentUpon>
</Compile>
+3 -3
View File
@@ -17,7 +17,7 @@ Imports System.Runtime.InteropServices
<Assembly: AssemblyDescription("")>
<Assembly: AssemblyCompany("Egalware s.r.l.")>
<Assembly: AssemblyProduct("EgtUILib")>
<Assembly: AssemblyCopyright("Copyright © 2014-2022 by Egalware s.r.l.")>
<Assembly: AssemblyCopyright("Copyright © 2014-2026 by Egalware s.r.l.")>
<Assembly: AssemblyTrademark("")>
<Assembly: ComVisible(False)>
@@ -35,5 +35,5 @@ Imports System.Runtime.InteropServices
' È possibile specificare tutti i valori oppure impostare valori predefiniti per i numeri relativi alla revisione e alla build
' utilizzando l'asterisco (*) come descritto di seguito:
<Assembly: AssemblyVersion("2.4.6.1")>
<Assembly: AssemblyFileVersion("2.4.6.1")>
<Assembly: AssemblyVersion("3.1.4.1")>
<Assembly: AssemblyFileVersion("3.1.4.1")>
+8
View File
@@ -0,0 +1,8 @@
Public Module ConstPlugin
Public Const PLUGIN_CONFIGURATION_DATA As String = "ConfigurationData"
Public Const PLUGIN_LEFT_TRAY As String = "LeftTray"
Public Const PLUGIN_RIGHT_TRAY As String = "RightTray"
End Module
+8
View File
@@ -0,0 +1,8 @@
Public Interface IPluginControl
ReadOnly Property DockSide As DockStyle
Event UpdateProjectName(ProjectName As String)
Event UpdateUI()
End Interface
+38
View File
@@ -0,0 +1,38 @@
Imports System.Collections.Generic
Public Interface IPluginConfigData
ReadOnly Property ControlList As List(Of PluginControl)
End Interface
' visibilita' dei pannelli grafici
Public Enum ViewPanelStates As Integer
NEVER = 0
ONLYDRAW = 1
ONLYMACHINING = 2
ALWAYS = 3
End Enum
Public Class PluginControl
Private m_ViewPanelState As ViewPanelStates
Public ReadOnly Property ViewPanelState As ViewPanelStates
Get
Return m_ViewPanelState
End Get
End Property
Private m_Name As String
Public ReadOnly Property Name As String
Get
Return m_Name
End Get
End Property
Sub New(Name As String, ViewPanelState As ViewPanelStates)
m_Name = Name
m_ViewPanelState = ViewPanelState
End Sub
End Class
+25 -17
View File
@@ -24,11 +24,12 @@ Partial Class Scene
Private Sub InitializeComponent()
Me.components = New System.ComponentModel.Container()
Me.MenuScene = New System.Windows.Forms.ContextMenuStrip(Me.components)
Me.cmdSelectAll = New System.Windows.Forms.ToolStripMenuItem()
Me.cmdSelectAllVisible = New System.Windows.Forms.ToolStripMenuItem()
Me.cmdSelectAll = New System.Windows.Forms.ToolStripMenuItem()
Me.cmdDeselectAll = New System.Windows.Forms.ToolStripMenuItem()
Me.sepSel1 = New System.Windows.Forms.ToolStripSeparator()
Me.cmdWinSelect = New System.Windows.Forms.ToolStripMenuItem()
Me.cmdColorSelect = New System.Windows.Forms.ToolStripMenuItem()
Me.cmdSelectPart = New System.Windows.Forms.ToolStripMenuItem()
Me.cmdSelectLayer = New System.Windows.Forms.ToolStripMenuItem()
Me.cmdSelectPath = New System.Windows.Forms.ToolStripMenuItem()
@@ -51,23 +52,17 @@ Partial Class Scene
Me.cmdExcludeSurfFromSnap = New System.Windows.Forms.ToolStripMenuItem()
Me.sepSelPnt2 = New System.Windows.Forms.ToolStripSeparator()
Me.cmdStopDrag = New System.Windows.Forms.ToolStripMenuItem()
Me.MenuScene.SuspendLayout()
Me.SuspendLayout()
Me.MenuScene.SuspendLayout
Me.SuspendLayout
'
'MenuScene
'
Me.MenuScene.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.cmdSelectAllVisible, Me.cmdSelectAll, Me.cmdDeselectAll, Me.sepSel1, Me.cmdWinSelect, Me.cmdSelectPart, Me.cmdSelectLayer, Me.cmdSelectPath, Me.cmdSelectPathAuto, Me.cmdSelectEntity, Me.cmdRestartDrag, Me.cmdSketchPoint, Me.cmdGridPoint, Me.cmdEndPoint, Me.cmdMidPoint, Me.cmdCenterPoint, Me.cmdCentroid, Me.cmdNearPoint, Me.cmdIntersectionPoint, Me.cmdTangentPoint, Me.cmdPerpendicularPoint, Me.cmdMinDistPoint, Me.sepSelPnt1, Me.cmdExcludeSurfFromSel, Me.cmdExcludeSurfFromSnap, Me.sepSelPnt2, Me.cmdStopDrag})
Me.MenuScene.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.cmdSelectAllVisible, Me.cmdSelectAll, Me.cmdDeselectAll, Me.sepSel1, Me.cmdWinSelect, Me.cmdSelectPart, Me.cmdSelectLayer, Me.cmdSelectPath, Me.cmdSelectPathAuto, Me.cmdColorSelect, Me.cmdSelectEntity, Me.cmdRestartDrag, Me.cmdSketchPoint, Me.cmdGridPoint, Me.cmdEndPoint, Me.cmdMidPoint, Me.cmdCenterPoint, Me.cmdCentroid, Me.cmdNearPoint, Me.cmdIntersectionPoint, Me.cmdTangentPoint, Me.cmdPerpendicularPoint, Me.cmdMinDistPoint, Me.sepSelPnt1, Me.cmdExcludeSurfFromSel, Me.cmdExcludeSurfFromSnap, Me.sepSelPnt2, Me.cmdStopDrag})
Me.MenuScene.Name = "ContextMenuStrip1"
Me.MenuScene.RenderMode = System.Windows.Forms.ToolStripRenderMode.Professional
Me.MenuScene.ShowCheckMargin = True
Me.MenuScene.ShowImageMargin = False
Me.MenuScene.Size = New System.Drawing.Size(193, 572)
'
'cmdSelectAll
'
Me.cmdSelectAll.Name = "cmdSelectAll"
Me.cmdSelectAll.Size = New System.Drawing.Size(192, 22)
Me.cmdSelectAll.Text = "Select All"
Me.MenuScene.ShowCheckMargin = true
Me.MenuScene.ShowImageMargin = false
Me.MenuScene.Size = New System.Drawing.Size(193, 594)
'
'cmdSelectAllVisible
'
@@ -75,9 +70,16 @@ Partial Class Scene
Me.cmdSelectAllVisible.Size = New System.Drawing.Size(192, 22)
Me.cmdSelectAllVisible.Text = "Select All Visible"
'
'cmdSelectAll
'
Me.cmdSelectAll.Name = "cmdSelectAll"
Me.cmdSelectAll.Size = New System.Drawing.Size(192, 22)
Me.cmdSelectAll.Text = "Select All"
'
'cmdDeselectAll
'
Me.cmdDeselectAll.Name = "cmdDeselectAll"
Me.cmdDeselectAll.ShortcutKeyDisplayString = "End"
Me.cmdDeselectAll.Size = New System.Drawing.Size(192, 22)
Me.cmdDeselectAll.Text = "Deselect All"
'
@@ -93,6 +95,12 @@ Partial Class Scene
Me.cmdWinSelect.Size = New System.Drawing.Size(192, 22)
Me.cmdWinSelect.Text = "Select Window"
'
'cmdColorSelect
'
Me.cmdColorSelect.Name = "cmdColorSelect"
Me.cmdColorSelect.Size = New System.Drawing.Size(192, 22)
Me.cmdColorSelect.Text = "Select Color"
'
'cmdSelectPart
'
Me.cmdSelectPart.Name = "cmdSelectPart"
@@ -239,14 +247,14 @@ Partial Class Scene
'
'Scene
'
Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!)
Me.AutoScaleDimensions = New System.Drawing.SizeF(6!, 13!)
Me.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font
Me.ContextMenuStrip = Me.MenuScene
Me.Cursor = System.Windows.Forms.Cursors.Cross
Me.Margin = New System.Windows.Forms.Padding(0)
Me.Name = "Scene"
Me.MenuScene.ResumeLayout(False)
Me.ResumeLayout(False)
Me.MenuScene.ResumeLayout(false)
Me.ResumeLayout(false)
End Sub
Friend WithEvents MenuScene As System.Windows.Forms.ContextMenuStrip
@@ -277,5 +285,5 @@ End Sub
Friend WithEvents cmdExcludeSurfFromSel As System.Windows.Forms.ToolStripMenuItem
Friend WithEvents cmdSelectEntity As System.Windows.Forms.ToolStripMenuItem
Friend WithEvents cmdSelectAllVisible As System.Windows.Forms.ToolStripMenuItem
Friend WithEvents cmdColorSelect As ToolStripMenuItem
End Class
+148 -19
View File
@@ -20,9 +20,16 @@ Public Class Scene
'---- Constants -------
Public Const DIM_SEL As Integer = 13
Public Enum MODKEY As Integer
NONE = 0
SHIFT = 1
CTRL = 2
ALT = 3
End Enum
'---- Members ---------
Private m_nGseContext As Integer
Private m_bEnabled As Boolean = True
Private m_nStatus As ST = ST.NULL
Private m_nOldStatus As ST = ST.NULL
Private Enum ST As Integer
@@ -41,6 +48,7 @@ Public Class Scene
GETDIST2
SELPOINT
SELPOINTZ
SELCOLOR
End Enum
Private m_nSnapType As SP = SP.PT_GRID ' tipo di snap in selezione punto
Private m_bAlsoSelDir As Boolean = False ' abilita anche selezione direzione quando selezione punto
@@ -69,6 +77,7 @@ Public Class Scene
Private m_DefColor As Color3d
Private m_nLineWidth As Integer
Private m_MarkColor As Color3d
Private m_Mark2Color As Color3d
Private m_SelSurfColor As Color3d
Private m_bZwOutline As Boolean
Private m_ZwColor As Color3d
@@ -84,6 +93,7 @@ Public Class Scene
SetStyle(ControlStyles.UserPaint, True)
SetStyle(ControlStyles.AllPaintingInWmPaint, True)
m_nGseContext = 0
m_bEnabled = True
m_nStatus = ST.SEL
m_nOldStatus = ST.SEL
m_nSnapType = SP.PT_GRID
@@ -110,6 +120,7 @@ Public Class Scene
m_DefColor.Setup(255, 165, 0)
m_nLineWidth = 1
m_MarkColor.Setup(255, 255, 0)
m_Mark2Color.Setup(255, 96, 96)
m_SelSurfColor.Setup(255, 255, 192)
m_bZwOutline = True
m_ZwColor.Setup(0, 0, 0)
@@ -164,6 +175,10 @@ Public Class Scene
m_MarkColor = DefColor
End Sub
Public Sub SetMark2Material(ByRef DefColor As Color3d)
m_Mark2Color = DefColor
End Sub
Public Sub SetSelSurfMaterial(ByRef DefColor As Color3d)
m_SelSurfColor = DefColor
End Sub
@@ -190,7 +205,7 @@ Public Class Scene
EgtInitScene( Handle, m_nDriver, m_b2Buff, m_nColorBits, m_nDepthBits)
EgtSetBackground( m_BackTopColor, m_BackBotColor)
EgtSetLineAttribs( m_nLineWidth)
EgtSetMarkAttribs( m_MarkColor)
EgtSetMarkAttribs( m_MarkColor, m_Mark2Color)
EgtSetSelSurfAttribs( m_SelSurfColor)
EgtSetWinRectAttribs( m_bZwOutline, m_ZwColor)
EgtSetGeoLineAttribs( m_DstLnColor)
@@ -208,16 +223,24 @@ Public Class Scene
End If
End Sub
Public Sub Enable( bEnable As Boolean)
m_bEnabled = bEnable
End Sub
Public Function IsEnabled() As Boolean
Return m_bEnabled
End Function
Public Function GetCtx() As Integer
Return m_nGseContext
End Function
Protected Overrides Sub OnPaint(e As PaintEventArgs)
MyBase.OnPaint(e)
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Se contesto non valido, esco subito
If m_nGseContext = 0 Then
Return
End If
If m_nGseContext = 0 Then Return
' Salvo il contesto corrente e imposto quello della scena
Dim nOldGseCtx = EgtGetCurrentContext()
If nOldGseCtx <> m_nGseContext Then
@@ -237,10 +260,10 @@ Public Class Scene
Protected Overrides Sub OnResize(e As System.EventArgs)
MyBase.OnResize(e)
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Se contesto non valido, esco subito
If m_nGseContext = 0 Then
Return
End If
If m_nGseContext = 0 Then Return
' Salvo il contesto corrente e imposto quello della scena
Dim nOldGseCtx = EgtGetCurrentContext()
If nOldGseCtx <> m_nGseContext Then
@@ -260,12 +283,14 @@ Public Class Scene
Public Event OnMouseSelectedAll(sender As Object, bOnlyVisible As Boolean)
Public Event OnMouseDeselectedAll(sender As Object)
Public Event OnMouseSelectedObj(sender As Object, nId As Integer, bLast As Boolean)
Public Event OnMouseSelectedColor(sender As Object, nId As Integer)
Public Event OnMouseSelectedPart(sender As Object, nId As Integer)
Public Event OnMouseSelectedLayer(sender As Object, nId As Integer)
Public Event OnMouseSelectedPath(sender As Object, nId As Integer, bHaltOnFork As Boolean)
Public Event OnMouseAnalyzed(sender As Object, nId As Integer)
Public Event OnMouseAnalyzedEx(sender As Object, nId As Integer, nSub As Integer, ptP As Point3d)
Public Event OnMouseAnalyzedEx(sender As Object, nId As Integer, nSub As Integer, ptP As Point3d, nModKey As Integer)
Public Event OnMousePointFromSelection(sender As Object, nId As Integer, PtP As Point3d, nAux As Integer)
Public Event OnStartingMouseDownScene(sender As Object, e As System.Windows.Forms.MouseEventArgs, ByRef bContinue As Boolean)
Public Event OnMouseDownScene(sender As Object, e As System.Windows.Forms.MouseEventArgs)
Public Event OnMouseUpScene(sender As Object, e As System.Windows.Forms.MouseEventArgs)
Public Event OnMouseMoveScene(sender As Object, e As System.Windows.Forms.MouseEventArgs)
@@ -279,18 +304,42 @@ Public Class Scene
Public Event OnMouseSelectedDir(sender As Object, VtDir As Vector3d)
Public Event OnMouseMoveSelPoint(sender As Object, PtP As Point3d)
Public Event OnChangedSnapPointType(sender As Object, nSpType As SP, bForced As Boolean)
Public Event OnStartingMouseSelectingObj(sender As Object)
Public Event OnMouseSelectingObj(sender As Object, nId As Integer, ByRef bOk As Boolean)
'---- Mouse -----------
Private m_bSetFocusOnMove As Boolean = True
Private m_dSfBordPuXm As Double = 0.15
Private m_dSfBordPuXp As Double = 0.15
Private m_dSfBordPuYm As Double = 0.15
Private m_dSfBordPuYp As Double = 0.15
Public Sub SetFocusOnMove(bVal As Boolean)
Public Sub SetFocusOnMove(bVal As Boolean, Optional dBordPuXm As Double = 0.15, Optional dBordPuXp As Double = 0.15,
Optional dBordPuYm As Double = 0.15, Optional dBordPuYp As Double = 0.15)
m_bSetFocusOnMove = bVal
m_dSfBordPuXm = dBordPuXm
m_dSfBordPuXp = dBordPuXp
m_dSfBordPuYm = dBordPuYm
m_dSfBordPuYp = dBordPuYp
End Sub
Protected Overrides Sub OnMouseDown(e As System.Windows.Forms.MouseEventArgs)
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Imposto il contesto della scena
EgtSetCurrentContext(m_nGseContext)
' Evento preliminare che può essere gestito da altri
Dim bContinue As Boolean = True
RaiseEvent OnStartingMouseDownScene(Me, e, bContinue)
if Not bContinue Then
if e.Button <> Windows.Forms.MouseButtons.Left AndAlso
e.Button <> Windows.Forms.MouseButtons.Middle AndAlso
e.Button <> Windows.Forms.MouseButtons.Right Then
MyBase.OnMouseDown(e)
End If
Focus()
Return
End If
' --- Pressione tasto sinistro ---
If e.Button = Windows.Forms.MouseButtons.Left Then
' se stato WINSEL oppure SEL e premuto SHIFT allora inizio selezione a finestra
@@ -315,8 +364,8 @@ Public Class Scene
End If
m_nStatus = ST.SEL
End If
' se stato SEL, SELPART, SELLAYER
ElseIf m_nStatus = ST.SEL Or m_nStatus = ST.SELPART Or m_nStatus = ST.SELLAYER Then
' se stato SEL, SELCOLOR, SELPART, SELLAYER
ElseIf m_nStatus = ST.SEL Or m_nStatus = ST.SELCOLOR Or m_nStatus = ST.SELPART Or m_nStatus = ST.SELLAYER Then
' SEL + Ctrl + Alt --> SELLAYER
If m_nStatus = ST.SEL And (ModifierKeys And Keys.Control) = Keys.Control And (ModifierKeys And Keys.Alt) = Keys.Alt Then m_nStatus = ST.SELLAYER
' SEL + Alt --> SELPART
@@ -328,6 +377,8 @@ Public Class Scene
Select Case m_nStatus
Case ST.SEL
RaiseEvent OnMouseSelectedObj(Me, nId, True)
Case ST.SELCOLOR
RaiseEvent OnMouseSelectedColor(Me, nId)
Case ST.SELPART
RaiseEvent OnMouseSelectedPart(Me, nId)
Case ST.SELLAYER
@@ -358,6 +409,14 @@ Public Class Scene
m_PrevPoint = e.Location
' se stato ANALYZE
ElseIf m_nStatus = ST.ANALYZE Then
Dim nModKey As Integer = MODKEY.NONE
If (ModifierKeys And Keys.Shift) = Keys.Shift Then
nModKey = MODKEY.SHIFT
ElseIf (ModifierKeys And Keys.Control) = Keys.Control Then
nModKey = MODKEY.CTRL
ElseIf (ModifierKeys And Keys.Alt) = Keys.Alt Then
nModKey = MODKEY.ALT
End If
EgtSetObjFilterForSelWin(m_bZeroDimForSel, m_bCurveForSel, m_bSurfForSel, m_bVolumeForSel, m_bExtraForSel)
Dim nId As Integer = ChooseOneSelectedObj(e.Location, m_nStatus)
If nId <> GDB_ID.NULL Then
@@ -367,7 +426,7 @@ Public Class Scene
Dim PtTemp As Point3d
Dim nAux As Integer = -1
EgtGetPointFromSelect(nId, e.Location, PtTemp, nAux)
RaiseEvent OnMouseAnalyzedEx( Me, nId, nAux, PtTemp)
RaiseEvent OnMouseAnalyzedEx( Me, nId, nAux, PtTemp, nModKey)
End If
' se stato GETDIST (primo punto per misura di distanza)
ElseIf m_nStatus = ST.GETDIST Then
@@ -512,6 +571,8 @@ Public Class Scene
End Sub
Protected Overrides Sub OnMouseUp(e As System.Windows.Forms.MouseEventArgs)
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' salvo il contesto corrente e imposto quello della scena
Dim nOldGseCtx = EgtGetCurrentContext()
If nOldGseCtx <> m_nGseContext Then EgtSetCurrentContext(m_nGseContext)
@@ -530,6 +591,7 @@ Public Class Scene
Dim nSel As Integer
EgtSelect(Center, nH, nW, nSel)
' filtro custom e notifico per ogni entità selezionata
RaiseEvent OnStartingMouseSelectingObj(Me)
Dim nLastId = GDB_ID.NULL
Dim nId = EgtGetFirstObjInSelWin()
While nId <> GDB_ID.NULL
@@ -577,16 +639,17 @@ Public Class Scene
End Sub
Protected Overrides Sub OnMouseMove(e As System.Windows.Forms.MouseEventArgs)
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Salvo il contesto corrente e imposto quello della scena
Dim nOldGseCtx = EgtGetCurrentContext()
If nOldGseCtx <> m_nGseContext Then
EgtSetCurrentContext(m_nGseContext)
End If
' Se sono abbastanza all'interno della scena (15% della dimensione), imposto il focus
' Se sono abbastanza all'interno della scena (default 15% della dimensione), imposto il focus
If m_bSetFocusOnMove Then
Const BordPu As Double = 0.15
If e.Location.X > BordPu * Size.Width AndAlso e.Location.X < (1 - BordPu) * Size.Width AndAlso
e.Location.Y > BordPu * Size.Height AndAlso e.Location.Y < (1 - BordPu) * Size.Height Then
If e.Location.X > m_dSfBordPuXm * Size.Width AndAlso e.Location.X < (1 - m_dSfBordPuXp) * Size.Width AndAlso
e.Location.Y > m_dSfBordPuYm * Size.Height AndAlso e.Location.Y < (1 - m_dSfBordPuYp) * Size.Height Then
Focus()
End If
End If
@@ -667,6 +730,8 @@ Public Class Scene
End Sub
Protected Overrides Sub OnMouseWheel(e As System.Windows.Forms.MouseEventArgs)
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' devo essere in uno stato ripristinabile
If Not IsRestorableCurrStatus() Then
Return
@@ -700,6 +765,7 @@ Public Class Scene
EgtSelect(WinXY, DIM_SEL, DIM_SEL, nSel)
' Filtro le entità nel mirino e le inserisco in lista
Dim vId As New List(Of Integer)
RaiseEvent OnStartingMouseSelectingObj(Me)
Dim nId = EgtGetFirstObjInSelWin()
While nId <> GDB_ID.NULL
Dim bOk As Boolean = True
@@ -916,7 +982,8 @@ Public Class Scene
Private Sub PrepareMenuScene()
' per selezione oggetti
If m_nStatus = ST.SEL Or m_nStatus = ST.WINSEL Or m_nStatus = ST.SELPART Or m_nStatus = ST.SELLAYER Or m_nStatus = ST.SELPATH Or m_nStatus = ST.SELPATHAUTO Then
If m_nStatus = ST.SEL Or m_nStatus = ST.WINSEL Or m_nStatus = ST.SELCOLOR Or
m_nStatus = ST.SELPART Or m_nStatus = ST.SELLAYER Or m_nStatus = ST.SELPATH Or m_nStatus = ST.SELPATHAUTO Then
For Each i As ToolStripItem In MenuScene.Items
Select Case i.Name
Case "cmdSelectAllVisible"
@@ -934,6 +1001,10 @@ Public Class Scene
i.Text = EgtMsg(1005) ' Select Window
i.Visible = True
DirectCast(i, ToolStripMenuItem).Checked = (m_nStatus = ST.WINSEL)
Case "cmdColorSelect"
i.Text = EgtMsg(1006) ' Select Color
i.Visible = True
DirectCast(i, ToolStripMenuItem).Checked = (m_nStatus = ST.SELCOLOR)
Case "cmdSelectPart"
i.Text = EgtMsg(1007) ' Select Part
i.Visible = True
@@ -1074,6 +1145,8 @@ Public Class Scene
RaiseEvent OnMouseDeselectedAll(Me)
ElseIf e.ClickedItem.Name = "cmdWinSelect" Then
m_nStatus = ST.WINSEL
ElseIf e.ClickedItem.Name = "cmdColorSelect" Then
m_nStatus = ST.SELCOLOR
ElseIf e.ClickedItem.Name = "cmdSelectPart" Then
m_nStatus = ST.SELPART
ElseIf e.ClickedItem.Name = "cmdSelectLayer" Then
@@ -1154,6 +1227,8 @@ Public Class Scene
'-------------------------------- KeyDown --------------------------------------------------------
Private Sub Scene_KeyDown(sender As System.Object, e As KeyEventArgs) Handles MyBase.KeyDown
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Con selezione punti e drag abilitato
If (m_nStatus = ST.GETDIST Or m_nStatus = ST.GETDIST2 Or m_nStatus = ST.SELPOINT) And m_bDragOn Then
' Con 'S' imposto Punto Sketch
@@ -1214,7 +1289,7 @@ Public Class Scene
Private Function IsRestorableCurrStatus() As Boolean
Select Case m_nStatus
Case ST.NULL, ST.SEL, ST.ANALYZE, ST.SELPART, ST.SELLAYER,
ST.SELPATH, ST.SELPATHAUTO, ST.GETDIST, ST.GETDIST2, ST.SELPOINT, ST.SELPOINTZ
ST.SELPATH, ST.SELPATHAUTO, ST.GETDIST, ST.GETDIST2, ST.SELPOINT, ST.SELPOINTZ, ST.SELCOLOR
Return True
Case Else
Return False
@@ -1234,7 +1309,7 @@ Public Class Scene
Cursor = Cursors.Default
Return True
ElseIf m_nOldStatus = ST.SEL Or m_nOldStatus = ST.SELPART Or m_nOldStatus = ST.SELLAYER Or
m_nOldStatus = ST.SELPATH Or m_nOldStatus = ST.SELPATHAUTO Then
m_nOldStatus = ST.SELPATH Or m_nOldStatus = ST.SELPATHAUTO Or m_nOldStatus = ST.SELCOLOR Then
m_nStatus = m_nOldStatus
Cursor = New Cursor(Me.GetType(), "Select.cur")
Return True
@@ -1456,76 +1531,130 @@ Public Class Scene
'---- Zoom Buttons ----
Public Sub ZoomAll()
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Eseguo
EgtZoom(ZM.ALL)
End Sub
Public Sub ZoomIn()
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Eseguo
EgtZoom(ZM.IN_)
End Sub
Public Sub ZoomOut()
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Eseguo
EgtZoom(ZM.OUT)
End Sub
Public Sub ZoomSel()
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Eseguo
EgtZoomObject(GDB_ID.SEL)
End Sub
'---- Rendering Buttons ----
Public Sub WireFrame()
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Eseguo
EgtSetShowMode(SM.WIREFRAME)
End Sub
Public Sub HiddenLine()
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Eseguo
EgtSetShowMode(SM.HIDDENLINE)
End Sub
Public Sub Shading()
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Eseguo
EgtSetShowMode(SM.SHADING)
End Sub
'---- LookFrom Buttons ----
Public Sub TopView()
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Eseguo
EgtSetView(VT.TOP)
End Sub
Public Sub FrontView()
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Eseguo
EgtSetView(VT.FRONT)
End Sub
Public Sub BackView()
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Eseguo
EgtSetView(VT.BACK)
End Sub
Public Sub LeftView()
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Eseguo
EgtSetView(VT.LEFT)
End Sub
Public Sub RightView()
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Eseguo
EgtSetView(VT.RIGHT)
End Sub
Public Sub BottomView()
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Eseguo
EgtSetView(VT.BOTTOM)
End Sub
Public Sub IsoViewSW()
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Eseguo
EgtSetView(VT.ISO_SW)
End Sub
Public Sub IsoViewSE()
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Eseguo
EgtSetView(VT.ISO_SE)
End Sub
Public Sub IsoViewNE()
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Eseguo
EgtSetView(VT.ISO_NE)
End Sub
Public Sub IsoViewNW()
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Eseguo
EgtSetView(VT.ISO_NW)
End Sub
Public Sub CPlaneView()
' Verifico abilitazione scena
if Not m_bEnabled Then Return
' Eseguo
EgtSetView(VT.CPLANE)
End Sub