66 lines
2.9 KiB
C++
66 lines
2.9 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2013-2013
|
|
//----------------------------------------------------------------------------
|
|
// File : GdbExecutor.h Data : 25.11.13 Versione : 1.3a1
|
|
// Contenuto : Dichiarazione della classe GdbExecutor.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 27.03.13 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include "/EgtDev/Include/EgkGdbExecutor.h"
|
|
#include "GeomDB.h"
|
|
#include "OutScl.h"
|
|
|
|
//----------------------------------------------------------------------------
|
|
class GdbExecutor : public IGdbExecutor
|
|
{
|
|
public :
|
|
virtual bool Execute( const std::string& sCmd1, const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
virtual bool Init( IGeomDB* pGdb, ILogger* pLogger) ;
|
|
|
|
public :
|
|
GdbExecutor( void) ;
|
|
~GdbExecutor( void) ;
|
|
|
|
private :
|
|
bool AddGeoObj( const std::string& sId, const std::string& sIdParent, IGeoObj* pGeoObj) ;
|
|
int GetIdParam( const std::string& sParam) ;
|
|
bool GetNamesParam( const std::string& sParam, STRVECTOR& vsNames) ;
|
|
bool GetVectorParam( const std::string& sParam, Vector3d& vtV) ;
|
|
bool GetPointParam( const std::string& sParam, Point3d& ptP) ;
|
|
bool GetPointWParam( const std::string& sParam, Point3d& ptP, double& dW) ;
|
|
bool ExecuteAlias( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteGroup( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecutePoint( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteVector( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteFrame( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteCurveLine( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteCurveArc( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteCurveBez( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteCurveCompo( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteCopy( const STRVECTOR& vsParams) ;
|
|
bool ExecuteErase( const STRVECTOR& vsParams) ;
|
|
bool ExecuteTranslate( const STRVECTOR& vsParams) ;
|
|
bool ExecuteRotate( const STRVECTOR& vsParams) ;
|
|
bool ExecuteScale( const STRVECTOR& vsParams) ;
|
|
bool ExecuteMirror( const STRVECTOR& vsParams) ;
|
|
bool ExecuteTrimCurve( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteLoad( const STRVECTOR& vsParams) ;
|
|
bool ExecuteSave( const STRVECTOR& vsParams) ;
|
|
bool ExecuteOutScl( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool OutGroupScl( int nId) ;
|
|
|
|
private :
|
|
IGeomDB* m_pGDB ;
|
|
ILogger* m_pLogger ;
|
|
OutScl m_OutScl ;
|
|
typedef std::unordered_map<std::string, int> AliasMap ;
|
|
AliasMap m_AliasMap ;
|
|
} ;
|