ab83b689ba
- aggiunta esportazione in formato SVG - in ExportDxf e ExportStl ora si usa il Writer.
44 lines
1.5 KiB
C++
44 lines
1.5 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2014-2014
|
|
//----------------------------------------------------------------------------
|
|
// File : ExportStl.h Data : 07.08.14 Versione : 1.5h2
|
|
// Contenuto : Dichiarazione della classe ExportStl.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 07.08.14 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "/EgtDev/Include/EExExportStl.h"
|
|
#include "/EgtDev/Include/EGnWriter.h"
|
|
|
|
class IGdbIterator ;
|
|
class IGeoObj ;
|
|
class Frame3d ;
|
|
|
|
//----------------------------------------------------------------------------
|
|
class ExportStl : public IExportStl
|
|
{
|
|
public :
|
|
virtual bool SetOptions( int nFilter) ;
|
|
virtual bool Export( IGeomDB* pGDB, int nId, const std::string& sFile) ;
|
|
|
|
public :
|
|
ExportStl( void) : m_nFilter( EEXFLT_DEFAULT) {}
|
|
|
|
private :
|
|
bool ExportObject( const IGdbIterator& iIter) ;
|
|
bool ScanGroup( const IGdbIterator& iIter) ;
|
|
bool TestFilter( int nLev, int nMode, int nStat) ;
|
|
bool ExportSFR( const std::string& sName, const IGeoObj* pGeoObj, const Frame3d& frFrame) ;
|
|
bool ExportSTM( const std::string& sName, const IGeoObj* pGeoObj, const Frame3d& frFrame) ;
|
|
|
|
private :
|
|
int m_nFilter ; // filtro su livello, modo e stato
|
|
Writer m_Writer ; // scrittore di file di testo
|
|
} ;
|