2 Commits

Author SHA1 Message Date
Riccardo Elitropi e5eb2e811f EgtExchange 2.4j1 :
- Modifica e aggiunta funzioni per ExportThreeJS.
2022-10-20 16:07:48 +02:00
Riccardo Elitropi 09bdbe99d6 EgtExchange :
- modifica selezione qrcode e gestione delle mesh
- aggiunta comandi da tastiera.
2022-10-12 14:24:10 +02:00
3 changed files with 1069 additions and 658 deletions
BIN
View File
Binary file not shown.
+848 -448
View File
File diff suppressed because it is too large Load Diff
+17 -6
View File
@@ -1,12 +1,12 @@
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
// EgalWare 2022-2022 // EgalWare 2022-2022
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
// File : ExportThreeJS.h Data : 05.07.22 Versione : 1.5h2 // File : ExportThreeJS.h Data : 05.07.22 Versione : 2.4j1
// Contenuto : Dichiarazione della classe ExportThreeJS. // Contenuto : Dichiarazione della classe ExportThreeJS.
// //
// //
// //
// Modifiche : 08.07.22 // Modifiche : 19.10.22
// //
// //
//---------------------------------------------------------------------------- //----------------------------------------------------------------------------
@@ -41,13 +41,15 @@ public:
ExportThreeJS( void) : m_nFilter( EEXFLT_DEFAULT) {} ExportThreeJS( void) : m_nFilter( EEXFLT_DEFAULT) {}
private: private:
bool CreateFolderSpace( const std::string& SFileName, const std::string& sUserPath, const std::string& sLibPath) ;
bool HeadAmbient( IEGrScene* pScene, IGeomDB* pGDB, int nId) ; bool HeadAmbient( IEGrScene* pScene, IGeomDB* pGDB, int nId) ;
bool FinishAmbient() ; bool FinishAmbient() ;
bool CompressAll( const std::string& sFile) ;
bool ExportVector3D( const std::string& sName, const IGeoObj* pGeoObj, const Frame3d& frFrame, const Color& cCol, const int nIdGroup) ; bool ExportVector3D( const std::string& sName, const IGeoObj* pGeoObj, const Frame3d& frFrame, const Color& cCol, const int nIdGroup) ;
bool ExportPoint3D( const std::string& sName, const IGeoObj* pGeoObj, const Frame3d& frFrame, const Color& cCol, const int nIdGroup) ; bool ExportPoint3D( const std::string& sName, const IGeoObj* pGeoObj, const Frame3d& frFrame, const Color& cCol, const int nIdGroup) ;
bool ExportFrame3D( const std::string& sName, const IGeoObj* pGeoObj, const Frame3d& frFrame, const Color& cCol, const int nIdGroup) ; bool ExportFrame3D( const std::string& sName, const IGeoObj* pGeoObj, const Frame3d& frFrame, const Color& cCol, const int nIdGroup) ;
bool ExportLine3D( const std::string& sName, const IGeoObj* pGeoObj, const Frame3d& frFrame, const Color& cCol, const int nIdGroup) ; bool ExportLine3D( const std::string& sName, const IGeoObj* pGeoObj, const Frame3d& frFrame, const Color& cCol, const int nIdGroup) ;
bool ExportCurveComp3D( const std::string& sName, const IGeoObj* pGeoObj, const Frame3d& frFrame, const Color& cCol, const int nIdGroup) ; //archi e curve composite bool ExportCurveComp3D( const std::string& sName, const IGeoObj* pGeoObj, const Frame3d& frFrame, const Color& cCol, const int nIdGroup) ;
bool ExportSTM( const std::string& sName, const IGeoObj* pGeoObj, const Frame3d& frFrame, const Color& cCol, const int nIdGroup) ; bool ExportSTM( const std::string& sName, const IGeoObj* pGeoObj, const Frame3d& frFrame, const Color& cCol, const int nIdGroup) ;
bool ExportSFR( const std::string& sName, const IGeoObj* pGeoObj, const Frame3d& frFrame, const Color& cCol, const int nIdGroup) ; bool ExportSFR( const std::string& sName, const IGeoObj* pGeoObj, const Frame3d& frFrame, const Color& cCol, const int nIdGroup) ;
bool ExportSBezier(const std::string& sName, const IGeoObj* pGeoObj, const Frame3d& frFrame, const Color& cCol, const int nIdGroup) ; bool ExportSBezier(const std::string& sName, const IGeoObj* pGeoObj, const Frame3d& frFrame, const Color& cCol, const int nIdGroup) ;
@@ -60,8 +62,8 @@ private:
private: private:
int m_nFilter ; // filtro su livello, modo e stato int m_nFilter ; // filtro su livello, modo e stato
Writer m_Writer ; // scrittore di file di testo oggetto Writer m_Writer ; // scrittore di file di testo oggetto
std::string m_sUdm ; // udm della scena
Point3d m_ptMin ; // punto minimo del box3d Point3d m_ptMin ; // punto minimo del box3d
bool m_bUdm_mm; // se l'unità di misura è in mm
double m_dimX ; // dimX Box3d Global double m_dimX ; // dimX Box3d Global
double m_dimY ; // dimY Box3d Global double m_dimY ; // dimY Box3d Global
double m_dimZ ; // dimZ Box3d Global double m_dimZ ; // dimZ Box3d Global
@@ -73,11 +75,20 @@ private:
double m_dHalfHeight ; // Altezza/2 piano di proiezione (culling) double m_dHalfHeight ; // Altezza/2 piano di proiezione (culling)
double m_ZNear ; // Distanza (lungo Z) piano di proiezione da origine (culling) double m_ZNear ; // Distanza (lungo Z) piano di proiezione da origine (culling)
double m_ZFar ; // Distanza (lungo Z) piano di culling da origine (culling) double m_ZFar ; // Distanza (lungo Z) piano di culling da origine (culling)
double m_dCameraPhi ; // [0,180] angolo phi in coordinate polari della telecamera
double m_dCameraTheta ; // [0, 360) angolo Theta in coordinate polari della telecamera
int m_ANG_TOL_STD_DEG = 15 ; // Interpolazione testo int m_ANG_TOL_STD_DEG = 15 ; // Interpolazione testo
Frame3d m_frTHREEJSFrame ; // frame di ThreeJS Frame3d m_frTHREEJSFrame ; // frame di ThreeJS
std::list< sSurfDist> m_lTranspSurf ; // Lista di superfici trasparenti std::list< sSurfDist> m_lTranspSurf ; // Lista di superfici trasparenti
int m_nGroupCount = -1 ; // Contatore del gruppo int m_nGroupCount = -1 ; // Contatore del gruppo
std::string m_sCodMenu ; // Stringa per la creazione del menu laterale della scena std::string m_sCodMenu ; // Stringa per la creazione del menu laterale della scena
std::string m_spath; // Path dove salvare il file
std::string m_sUdm; // udm della scena // Parametri...
bool m_bShowGrid = true ; // se esportare o meno la griglia dalla scena
bool m_bUdm_mm ; // se l'unità di misura è in mm
std::string m_sPath ; // Path aggiuntivo dove salvare il file (il vero path è nel LUA)
public:
static std::string m_sThreeJSAuxDir ; // direttorio librerie
}; };