0c41c8c631
- aggiunta gestione nome file di progetto e suo stato - aggiunta gestione pezzo e layer - riordino generale.
109 lines
4.5 KiB
C++
109 lines
4.5 KiB
C++
//----------------------------------------------------------------------------
|
|
// EgalTech 2014-2015
|
|
//----------------------------------------------------------------------------
|
|
// File : LUA.h Data : 16.01.15 Versione : 1.6a3
|
|
// Contenuto : Dichiarazioni locali per moduli LUA.
|
|
//
|
|
//
|
|
//
|
|
// Modifiche : 27.09.14 DS Creazione modulo.
|
|
//
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include "/EgtDev/Include/EgkGeoCollection.h"
|
|
|
|
struct lua_State ;
|
|
class Vector3d ;
|
|
class Point3d ;
|
|
class Frame3d ;
|
|
class Color ;
|
|
|
|
//-------------------------- General -----------------------------------------
|
|
bool LuaInit( void) ;
|
|
bool LuaExit( void) ;
|
|
bool LuaSetLuaLibsDir( const std::string& sDir) ;
|
|
bool LuaEvalNumExpr( const std::string& sExpr, double& dVal) ;
|
|
bool LuaEvalStringExpr( const std::string& sExpr, std::string& sVal) ;
|
|
bool LuaExecLine( const std::string& sLine) ;
|
|
bool LuaExecFile( const std::string& sFile) ;
|
|
bool LuaRequire( const std::string& sFile) ;
|
|
const std::string& LuaGetLastError( void) ;
|
|
bool LuaInstallGeneral( lua_State* L) ;
|
|
|
|
//-------------------------- Aux ---------------------------------------------
|
|
#define LuaCheckParam(L,I,P) { if ( ! LuaGetParam(L,I,P)) return luaL_error( L, " Invalid Parameter # " #I) ;}
|
|
bool LuaGetParam( lua_State* L, int nInd, bool& bPar) ;
|
|
bool LuaGetParam( lua_State* L, int nInd, int& nPar) ;
|
|
bool LuaGetParam( lua_State* L, int nInd, double& dPar) ;
|
|
bool LuaGetParam( lua_State* L, int nInd, std::string& sPar) ;
|
|
bool LuaGetParam( lua_State* L, int nInd, Vector3d& vtPar) ;
|
|
bool LuaGetParam( lua_State* L, int nInd, Point3d& ptPar) ;
|
|
bool LuaGetParam( lua_State* L, int nInd, POINTU& ptParW) ;
|
|
bool LuaGetParam( lua_State* L, int nInd, Frame3d& frPar) ;
|
|
bool LuaGetParam( lua_State* L, int nInd, Color& colPar) ;
|
|
bool LuaGetParam( lua_State* L, int nInd, INTVECTOR& vPar) ;
|
|
bool LuaGetParam( lua_State* L, int nInd, PNTVECTOR& vPar) ;
|
|
bool LuaGetParam( lua_State* L, int nInd, PNTUVECTOR& vParW) ;
|
|
bool LuaGetRefType( lua_State* L, int nInd, int& nRefType) ;
|
|
bool LuaGetRefId( lua_State* L, int nInd, int& nRefId) ;
|
|
bool LuaClearStack( lua_State* L) ;
|
|
//
|
|
bool LuaSetReturn( lua_State* L /*, nil */) ;
|
|
bool LuaSetReturn( lua_State* L, bool bPar) ;
|
|
bool LuaSetReturn( lua_State* L, int nPar) ;
|
|
bool LuaSetReturn( lua_State* L, double dPar) ;
|
|
bool LuaSetReturn( lua_State* L, const std::string& sPar) ;
|
|
bool LuaSetReturn( lua_State* L, const Vector3d& vtPar) ;
|
|
bool LuaSetReturn( lua_State* L, const Point3d& ptPar) ;
|
|
bool LuaSetReturn( lua_State* L, const Frame3d& frPar) ;
|
|
bool LuaSetReturn( lua_State* L, const Color& colPar) ;
|
|
|
|
//-------------------------- GeoBase -----------------------------------------
|
|
bool LuaInstallGeoBase( lua_State* L) ;
|
|
|
|
//-------------------------- GeomDB ------------------------------------------
|
|
bool LuaInstallGeomDB( lua_State* L) ;
|
|
|
|
//-------------------------- GdbCreate ---------------------------------------
|
|
bool LuaInstallGdbCreate( lua_State* L) ;
|
|
|
|
//-------------------------- GdbCreateCurve ----------------------------------
|
|
bool LuaInstallGdbCreateCurve( lua_State* L) ;
|
|
|
|
//-------------------------- GdbCreateSurf -----------------------------------
|
|
bool LuaInstallGdbCreateSurf( lua_State* L) ;
|
|
|
|
//-------------------------- GdbModify ---------------------------------------
|
|
bool LuaInstallGdbModify( lua_State* L) ;
|
|
|
|
//-------------------------- GdbModifyCurve ----------------------------------
|
|
bool LuaInstallGdbModifyCurve( lua_State* L) ;
|
|
|
|
//-------------------------- GdbPartLayer ------------------------------------
|
|
bool LuaInstallGdbPartLayer( lua_State* L) ;
|
|
|
|
//-------------------------- GdbObjects --------------------------------------
|
|
bool LuaInstallGdbObjects( lua_State* L) ;
|
|
|
|
//-------------------------- GdbObjSelection ---------------------------------
|
|
bool LuaInstallGdbObjSelection( lua_State* L) ;
|
|
|
|
//-------------------------- GdbObjAttribs -----------------------------------
|
|
bool LuaInstallGdbObjAttribs( lua_State* L) ;
|
|
|
|
//-------------------------- GeoSnap -----------------------------------------
|
|
bool LuaInstallGeoSnap( lua_State* L) ;
|
|
|
|
//-------------------------- GeoTransform ------------------------------------
|
|
bool LuaInstallGeoTransform( lua_State* L) ;
|
|
|
|
//-------------------------- Scene -------------------------------------------
|
|
bool LuaInstallScene( lua_State* L) ;
|
|
|
|
//-------------------------- Exchange ----------------------------------------
|
|
bool LuaInstallExchange( lua_State* L) ;
|