Files
EgtExchange/ImportBtl.h
T
Dario Sassi 0ea6d12b92 EgtExchange 1.6k3 :
- in import BTL aggiunta gestione trim del pezzo con features di lavorazione
- in import BTL aggiunto flag per trim pezzo speciale per pareti.
2015-11-09 10:29:10 +00:00

57 lines
2.2 KiB
C++

//----------------------------------------------------------------------------
// EgalTech 2015-2015
//----------------------------------------------------------------------------
// File : ImportBtl.h Data : 22.08.15 Versione : 1.6h5
// Contenuto : Dichiarazione della classe ImportBtl.
//
//
//
// Modifiche : 22.08.15 DS Creazione modulo.
//
//
//----------------------------------------------------------------------------
#pragma once
#include "BtlGeom.h"
#include "/EgtDev/Include/EExImportBtl.h"
#include "/EgtDEv/Include/EGnScanner.h"
//----------------------------------------------------------------------------
class ImportBtl : public IImportBtl
{
public :
virtual bool Import( const std::string& sFile, IGeomDB* pGDB,
bool bFlatPos = false, bool bSpecialTrim = false) ;
public :
ImportBtl( void) ;
private :
bool ReadHeader( void) ;
bool ReadGeneral( void) ;
bool ReadRawPart( bool& bEnd) ;
bool ReadPart( bool& bEnd) ;
bool ReadComposite( bool& bEnd) ;
bool ReadTransformation( const std::string& sVal, Frame3d& frRef) ;
bool ReadOutline( void) ;
bool ReadAperture( void) ;
bool ReadProcess( bool& bProcEnd) ;
bool SkipCurrSection( void) ;
bool SkipCurrProcess( void) ;
bool GetProcessParams( const std::string& sText, const INTVECTOR& vnDPar, int nSPar,
DBLVECTOR& vdPar, std::string& sPar) ;
bool GetInfo( const std::string& sText, const std::string& sPar, int& nVal) ;
bool GetParam( const std::string& sText, const std::string& sPar, double& dVal) ;
bool GetParam( const std::string& sText, const std::string& sPar, std::string& sVal) ;
bool GetParamP( const std::string& sText, int nInd, int& nVal) ;
bool GetParamP( const std::string& sText, int nInd, double& dVal) ;
bool GetParamP( const std::string& sText, int nInd, std::string& sVal) ;
private :
Scanner m_theScanner ;
int m_nBuild ; // versione BTL
double m_dScale ; // fattore di scalatura dei parametri
BtlGeom m_BtlGeom ; // gestore geometria pezzi Btl
} ;