a9291a0cd6
- in Tsc sostituita OutScl con OutTsc - in Tsc aggiunti nomi predefiniti per vettori, punti e riferimenti.
87 lines
4.4 KiB
C++
87 lines
4.4 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 "OutTsc.h"
|
|
#include "/EgtDev/Include/EgkGdbExecutor.h"
|
|
#include "/EgtDev/Include/EgtPerfCounter.h"
|
|
#include "/EgtDev/Include/EgtExecMgr.h"
|
|
|
|
class Vector3d ;
|
|
class Color ;
|
|
|
|
//----------------------------------------------------------------------------
|
|
typedef std::vector<int> INTVECTOR ;
|
|
|
|
//----------------------------------------------------------------------------
|
|
class GdbExecutor : public IGdbExecutor
|
|
{
|
|
public : // ICmdExecutor
|
|
virtual bool SetCmdParser( ICmdParser* pParser) ;
|
|
virtual bool AddStandardVariables( void) ;
|
|
virtual int Execute( const std::string& sCmd1, const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
|
|
public : // IGdbExecutor
|
|
~GdbExecutor( void) ;
|
|
virtual bool SetGeomDB( IGeomDB* pGdb) ;
|
|
|
|
public :
|
|
GdbExecutor( void) ;
|
|
|
|
private :
|
|
bool AddGeoObj( const std::string& sId, const std::string& sIdParent, IGeoObj* pGeoObj) ;
|
|
int GetIdParam( const std::string& sParam, bool bNewAllowed = false) ;
|
|
bool GetNamesParam( const std::string& sParam, INTVECTOR& vnNames) ;
|
|
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 GetFrameParam( const std::string& sParam, Frame3d& frF) ;
|
|
bool GetColorParam( const std::string& sParam, bool& bByParent, Color& cCol) ;
|
|
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 ExecuteLevel( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteMode( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteStatus( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteSelect( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteDeselect( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteMaterial( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteName( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteInfo( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteCopy( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteErase( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteTranslate( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteRotate( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteScale( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteMirror( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteInvertCurve( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteTrimCurve( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteNew( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteLoad( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteSave( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool ExecuteOutTsc( const std::string& sCmd2, const STRVECTOR& vsParams) ;
|
|
bool OutGroupTsc( int nId, int nFlag, int nLev = 0) ;
|
|
|
|
private :
|
|
IGeomDB* m_pGDB ;
|
|
ICmdParser* m_pParser ;
|
|
ExecManager<GdbExecutor> m_ExecMgr ;
|
|
OutTsc m_OutTsc ;
|
|
} ;
|