Merge remote-tracking branch 'origin/HEAD' into Bezier_trim&mesh
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//----------------------------------------------------------------------------
|
||||
// EgalTech 2020-2020
|
||||
// EgalTech 2020-2023
|
||||
//----------------------------------------------------------------------------
|
||||
// File : EGkCDeSurfTmSurfTm.h Data : 13.11.20 Versione :
|
||||
// File : EGkCDeClosedSurfTmClosedSurfTm.h Data : 14.06.23 Versione : 2.5f3
|
||||
// Contenuto : Dichiarazione funzione verifica collisione tra
|
||||
// SurfTm e SurfTm.
|
||||
//
|
||||
@@ -27,4 +27,4 @@
|
||||
// di collisione o inconsistenza dei parametri di input.
|
||||
// Le due superfici devono essere espresse nel medesimo sistema di riferimento.
|
||||
// La distanza di sicurezza ha effetto solo se maggiore di EPS_SMALL.
|
||||
EGK_EXPORT bool CDeClosedSurfTmClosedSurfTm( const SurfTriMesh& SurfA, const SurfTriMesh& SurfB, double dSafeDist) ;
|
||||
EGK_EXPORT bool CDeClosedSurfTmClosedSurfTm( const ISurfTriMesh& SurfA, const ISurfTriMesh& SurfB, double dSafeDist) ;
|
||||
|
||||
+1
-1
@@ -47,4 +47,4 @@ EGK_EXPORT const std::string& GetNfeFontDir( void) ;
|
||||
// restituisce il nome del font di default
|
||||
EGK_EXPORT const std::string& GetDefaultFont( void) ;
|
||||
// imposto il gestore eventi
|
||||
EGK_EXPORT bool SetEGkProcessEvents( pfProcEvents pFun) ;
|
||||
EGK_EXPORT bool SetEGkProcessEvents( pfProcEvents pFun) ;
|
||||
|
||||
@@ -28,3 +28,9 @@ class ILogger ;
|
||||
EGN_EXPORT const char* GetEGnVersion( void) ;
|
||||
// permette di impostare il logger per la Dll
|
||||
EGN_EXPORT void SetEGnLogger( ILogger* pLogger) ;
|
||||
// imposta la chiave di protezione
|
||||
EGN_EXPORT void SetEGnKey( const std::string& sKey) ;
|
||||
// imposta il tipo di chiave di protezione
|
||||
EGN_EXPORT void SetEGnKeyType( int nType) ;
|
||||
// imposta se chiave hardware di rete
|
||||
EGN_EXPORT void SetEGnNetHwKey( bool bNetHwKey) ;
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
//----------------------------------------------------------------------------
|
||||
// EgalTech 2023-2023
|
||||
//----------------------------------------------------------------------------
|
||||
// File : EGnGetKeyData.h Data : 29.05.23 Versione : 2.5e3
|
||||
// Contenuto : Prototipo funzioni gestione dati chiavi di protezione.
|
||||
//
|
||||
//
|
||||
//
|
||||
// Modifiche : 29.05.23 DS Creazione modulo.
|
||||
//
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#pragma once
|
||||
|
||||
#define NOMINMAX
|
||||
#include <windows.h>
|
||||
#include <string>
|
||||
|
||||
|
||||
//----------------------- Macro per import/export ----------------------------
|
||||
#undef EGN_EXPORT
|
||||
#if defined( I_AM_EGN) // da definirsi solo nella DLL
|
||||
#define EGN_EXPORT __declspec( dllexport)
|
||||
#else
|
||||
#define EGN_EXPORT __declspec( dllimport)
|
||||
#endif
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
EGN_EXPORT bool SetEGnKeyLevel( int nRet, int nKeyLev, int nKeyExpDays) ;
|
||||
EGN_EXPORT int GetEGnKeyLevel( int nProd, int nVer, int nLev, int& nKeyLev, int& nKeyExpDays) ;
|
||||
EGN_EXPORT bool SetEGnKeyOptions( int nRet, int nKeyOpt1, int nKeyOpt2, int nKeyOptExpDays) ;
|
||||
EGN_EXPORT int GetEGnKeyOptions( int nProd, int nVer, int nLev, unsigned int& nKeyOpt1, unsigned int& nKeyOpt2, int& nKeyOptExpDays) ;
|
||||
// Interpretazione della stringa di LockId
|
||||
EGN_EXPORT bool GetLockIdStringInfo( const std::string& sLockId, int& nKeyType, bool& bNetKey, int& nUserId) ;
|
||||
@@ -50,6 +50,7 @@ EIN_EXPORT void __stdcall EgtDisableCommandLogger( void) ;
|
||||
EIN_EXPORT BOOL __stdcall EgtGetVersionInfo( wchar_t*& wsVer) ;
|
||||
EIN_EXPORT BOOL __stdcall EgtGetKeyInfo( wchar_t*& wsKey) ;
|
||||
EIN_EXPORT BOOL __stdcall EgtSetLockType( int nType) ;
|
||||
EIN_EXPORT BOOL __stdcall EgtSetLockId( const wchar_t* wsLockId) ;
|
||||
EIN_EXPORT BOOL __stdcall EgtSetNetHwKey( BOOL bNetHwKey) ;
|
||||
EIN_EXPORT BOOL __stdcall EgtGetKeyLevel( int nProd, int nVer, int nLev, int* pnKLev) ;
|
||||
EIN_EXPORT BOOL __stdcall EgtGetKeyOptions( int nProd, int nVer, int nLev, unsigned int* pnOpt2) ;
|
||||
|
||||
+2
-1
@@ -35,7 +35,8 @@ enum SimCollObjType { MCH_SIM_COB_NULL = 0,
|
||||
MCH_SIM_COB_BOX = 1,
|
||||
MCH_SIM_COB_CYL = 2,
|
||||
MCH_SIM_COB_SPHE = 3,
|
||||
MCH_SIM_COB_CONE = 4} ;
|
||||
MCH_SIM_COB_CONE = 4,
|
||||
MCH_SIM_COB_POLY = 101} ;
|
||||
|
||||
//------------------------ Stato di visualizzazione della macchina ------------
|
||||
enum MachLook { MCH_LOOK_NONE = -1,
|
||||
|
||||
+3
-1
@@ -55,7 +55,8 @@ EXE_EXPORT bool ExeGetExecutableVersion( std::string& sVer) ;
|
||||
EXE_EXPORT bool ExeGetVersionInfo( std::string& sVer, const char* szNewLine) ;
|
||||
EXE_EXPORT bool ExeGetKeyInfo( std::string& sKey) ;
|
||||
EXE_EXPORT bool ExeSetLockType( int nType) ;
|
||||
EXE_EXPORT bool ExeSetNetHwKey( bool bNetHwKey) ;
|
||||
EXE_EXPORT bool ExeSetLockId( const std::string& sLockId) ;
|
||||
EXE_EXPORT bool ExeSetNetHwKey( bool bNetHwKey, int nUserId = 0) ;
|
||||
EXE_EXPORT bool ExeGetKeyLevel( int nProd, int nVer, int nLev, int& nKLev) ;
|
||||
EXE_EXPORT bool ExeGetKeyOptions( int nProd, int nVer, int nLev, unsigned int& nOpt2) ;
|
||||
EXE_EXPORT bool ExeGetKeyLeftDays( int& nLeftDays) ;
|
||||
@@ -793,6 +794,7 @@ EXE_EXPORT int ExeCDeRectPrismoidSolid( const Frame3d& frPrismoid, double dBase
|
||||
EXE_EXPORT int ExeCDeCylSolid( const Frame3d& frCyl, double dR, double dH, int nSolidId, double dSafeDist, int nRefType) ;
|
||||
EXE_EXPORT int ExeCDeConeSolid( const Frame3d& frCone, double dR1, double dR2, double dH, int nSolidId, double dSafeDist, int nRefType) ;
|
||||
EXE_EXPORT int ExeCDeSpheSolid( const Point3d& ptCen, double dR, int nSolidId, double dSafeDist, int nRefType) ;
|
||||
EXE_EXPORT int ExeCDeSolidSolid( int nSolid1Id, int nSolid2Id, double dSafeDist) ;
|
||||
|
||||
// Maximum Filler
|
||||
EXE_EXPORT bool ExeMaxFillerStart( void) ;
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
const int KEY_BASELIB_PROD = 207 ;
|
||||
const int KEY_BASELIB_VER = 2505 ;
|
||||
const int KEY_BASELIB_VER = 2506 ;
|
||||
const int KEY_BASELIB_LEV = 1 ;
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
@@ -28,6 +28,7 @@ int GetKeyLevel( const std::string& sKey, int nProd, int nVer, int nLev,
|
||||
int GetKeyOptions( const std::string& sKey, int nProd, int nVer, int nLev,
|
||||
unsigned int& nKOpt1, unsigned int& nKOpt2, int& nKOptExpDays) ;
|
||||
int GetCurrDay( void) ;
|
||||
int GetMinDay( void) ;
|
||||
|
||||
//-------------------------- Constants ----------------------------------------
|
||||
// Codici di ritorno
|
||||
|
||||
+8
-5
@@ -1,13 +1,14 @@
|
||||
//----------------------------------------------------------------------------
|
||||
// EgalTech 2014-2022
|
||||
// EgalTech 2014-2023
|
||||
//----------------------------------------------------------------------------
|
||||
// File : SELkLockId.cpp Data : 16.05.22 Versione : 2.4e3
|
||||
// File : SELkLockId.cpp Data : 30.05.23 Versione : 2.5e5
|
||||
// Contenuto : Dichiarazione funzioni per gestione/calcolo Id protezione,
|
||||
// da macchina o da chiave hardware.
|
||||
//
|
||||
//
|
||||
// Modifiche : 10.09.14 DS Creazione modulo.
|
||||
// 16.05.22 DS Aggiunta gestione chiave di rete.
|
||||
// 30.05.23 DS Aggiunta gestione utente di rete e rilascio chiave di rete.
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
@@ -16,10 +17,12 @@
|
||||
#include <string>
|
||||
|
||||
//-------------------------------------------------------------------------------
|
||||
// Imposto il tipo di protezione
|
||||
// Imposto il tipo di protezione ammessa (ANY, HW, SW)
|
||||
bool SetLockType( int nType) ;
|
||||
// Forzo chiave di rete (se prevista protezione hardware)
|
||||
bool SetNetHwKey( bool bNetHwKey) ;
|
||||
// Imposto chiave di rete e identificativo utente (0-9)
|
||||
bool SetNetHwKey( bool bNetHwKey, int nUserId) ;
|
||||
// Libero chiave di rete (da eseguire al termine del programma)
|
||||
bool CloseNetHwKey( void) ;
|
||||
// Recupero l'identificativo in chiaro della protezione
|
||||
bool GetLockId( std::string& sLockId) ;
|
||||
// Recupero l'identificativo cifrato della protezione
|
||||
|
||||
Reference in New Issue
Block a user