Files
EgtGeomKernel/GdbExecutor.h
T
Dario Sassi 41a38fef3b EgtGeomKernel 1.5f1 :
- aggiunta entità testo (con font Nfe e di sistema)
- in tutte le rotate ora l'angolo è in gradi
- aggiunta trasformazione Shear (scorrimento)
- aggiunta trsformazione LocToLoc
- Set/GetInfo specializzate per i diversi tipi di informazioni
- Copy e Relocate con possibilità di indicare l'entità di riferimento rispetto a cui inserire
- aggiunte trasformazioni a PolyLine.
2014-06-03 13:19:54 +00:00

137 lines
7.8 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"
#include "/EgtDev/Include/EgkGeoCollection.h"
class PolyLine ;
//----------------------------------------------------------------------------
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, const Frame3d& frVect, Vector3d& vtV) ;
bool GetPointParam( const std::string& sParam, const Frame3d& frPnt, Point3d& ptP) ;
bool GetPointsParam( const std::string& sParam, const Frame3d& frPnt, PNTVECTOR& vPoints) ;
bool GetPointWParam( const std::string& sParam, const Frame3d& frPnt, Point3d& ptP, double& dW) ;
bool GetPointWsParam( const std::string& sParam, const Frame3d& frPnt, UPNTVECTOR& vPointWs) ;
bool GetLengthParam( const std::string& sParam, double& dLen) ;
bool GetDirParam( const std::string& sParam, const Frame3d& frDir, double& dDir) ;
bool GetFrameParam( const std::string& sParam, const Frame3d& frRef, Frame3d& frF) ;
bool GetColorParam( const std::string& sParam, bool& bByParent, Color& cCol) ;
bool GetPolylineFromCurve( int nId, const Frame3d& frDest, double dLinTol, PolyLine& PL) ;
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 CurveLineMake( const STRVECTOR& vsParams) ;
bool CurveLineVersorLength( const STRVECTOR& vsParams) ;
bool CurveLineDirLength( const STRVECTOR& vsParams) ;
bool CurveLineMinPointCurve( const STRVECTOR& vsParams) ;
bool ExecuteCurveArc( const std::string& sCmd2, const STRVECTOR& vsParams) ;
bool CurveArcMake( const STRVECTOR& vsParams) ;
bool CurveArcPlaneXY( const STRVECTOR& vsParams) ;
bool CurveArcCircle( const STRVECTOR& vsParams) ;
bool CurveArcCircleXY( const STRVECTOR& vsParams) ;
bool CurveArc3P( const STRVECTOR& vsParams, bool bCirc) ;
bool CurveArc2PDi( const STRVECTOR& vsParams) ;
bool CurveArc2PRS( const STRVECTOR& vsParams) ;
bool CurveArcC2P( const STRVECTOR& vsParams) ;
bool CurveArcInvertNormal( const STRVECTOR& vsParams) ;
bool CurveArcChangeRadius( const STRVECTOR& vsParams) ;
bool CurveArcChangeDeltaN( const STRVECTOR& vsParams) ;
bool CurveArcToAdditional( const STRVECTOR& vsParams) ;
bool CurveArcFlip( const STRVECTOR& vsParams) ;
bool ExecuteCurveBez( const std::string& sCmd2, const STRVECTOR& vsParams) ;
bool ExecuteCurveCompo( const std::string& sCmd2, const STRVECTOR& vsParams) ;
bool CurveCompoMake( const STRVECTOR& vsParams) ;
bool CurveCompoFromPoints( const STRVECTOR& vsParams) ;
bool CurveCompoFromPointBulges( const STRVECTOR& vsParams) ;
bool CurveCompoFromSplit( const STRVECTOR& vsParams) ;
bool CurveCompoAddCurve( const STRVECTOR& vsParams) ;
bool ExecuteSurfTriMesh( const std::string& sCmd2, const STRVECTOR& vsParams) ;
bool SurfTriMeshBegin( const STRVECTOR& vsParams) ;
bool SurfTriMeshAddVertex( const STRVECTOR& vsParams) ;
bool SurfTriMeshAddTriangle( const STRVECTOR& vsParams) ;
bool SurfTriMeshEnd( const STRVECTOR& vsParams) ;
bool SurfTriMeshByTriangleSoup( const STRVECTOR& vsParams) ;
bool SurfTriMeshByContour( const STRVECTOR& vsParams) ;
bool SurfTriMeshByExtrusion( const STRVECTOR& vsParams) ;
bool SurfTriMeshByTwoPaths( const STRVECTOR& vsParams) ;
bool SurfTriMeshByScrewing( bool bMove, const STRVECTOR& vsParams) ;
bool SurfTriMeshChangeSmoothAng( const STRVECTOR& vsParams) ;
bool SurfTriMeshDoCompacting( const STRVECTOR& vsParams) ;
bool SurfTriMeshDoSewing( const STRVECTOR& vsParams) ;
bool ExecuteText( const std::string& sCmd2, const STRVECTOR& vsParams) ;
bool TextSimple( const STRVECTOR& vsParams) ;
bool TextComplete( const STRVECTOR& vsParams) ;
bool TextFlip( const STRVECTOR& vsParams) ;
bool TextMir( const STRVECTOR& vsParams) ;
bool TextOutline( 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 ExecuteMatLibrary( const std::string& sCmd2, const STRVECTOR& vsParams) ;
bool ExecuteCopy( const std::string& sCmd2, const STRVECTOR& vsParams) ;
bool ExecuteRelocate( 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 ExecuteShear( const std::string& sCmd2, const STRVECTOR& vsParams) ;
bool ExecuteInvertCurve( const std::string& sCmd2, const STRVECTOR& vsParams) ;
bool ExecuteInvertSurf( 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 ;
std::string m_sId ;
std::string m_sParentId ;
IGeoObj* m_pGeoObj ;
} ;