EgtExecutor 1.8l3 :

- aggiunte funzioni Exe e Lua AddPicture
- migliorie alla gestione di Photo.
This commit is contained in:
Dario Sassi
2017-12-27 17:05:29 +00:00
parent 1f1c589f47
commit f33513bdc5
13 changed files with 657 additions and 26 deletions
+9 -5
View File
@@ -97,10 +97,14 @@ PhotoObj::Save( STRVECTOR& vString) const
string sFilePath ;
ExeGetCurrFilePath( sFilePath) ;
string sFileDir = GetDirectory( sFilePath) ;
ReplaceString( sFileDir, "/", "\\") ;
ToUpper( sFileDir) ;
string sFileTitle = GetFileTitleEgt( sFilePath) ;
// sostituzione degli eventuali riferimenti al direttorio e al nome del progetto nella path
string sPath = m_sPath ;
string sDir = GetDirectory( sPath) ;
ReplaceString( sDir, "/", "\\") ;
ToUpper( sDir) ;
string sName = GetFileName( sPath) ;
ReplaceString( sDir, sFileDir, SUB_PROJECT_DIR) ;
ReplaceString( sName, sFileTitle, SUB_PROJECT_TITLE) ;
@@ -250,7 +254,7 @@ PhotoObj::Set( const string& sName, const string& sPath,
//----------------------------------------------------------------------------
bool
PhotoObj::GetName( string& sName)
PhotoObj::GetName( string& sName) const
{
sName = m_sName ;
return true ;
@@ -258,7 +262,7 @@ PhotoObj::GetName( string& sName)
//----------------------------------------------------------------------------
bool
PhotoObj::GetPath( string& sPath)
PhotoObj::GetPath( string& sPath) const
{
sPath = m_sPath ;
return true ;
@@ -274,7 +278,7 @@ PhotoObj::ChangePath( const string& sPath)
//----------------------------------------------------------------------------
bool
PhotoObj::GetOrigin( Point3d& ptOri)
PhotoObj::GetOrigin( Point3d& ptOri) const
{
ptOri = m_ptOri ;
return true ;
@@ -290,7 +294,7 @@ PhotoObj::ChangeOrigin( const Point3d& ptOri)
//----------------------------------------------------------------------------
bool
PhotoObj::GetCenter( Point3d& ptCen)
PhotoObj::GetCenter( Point3d& ptCen) const
{
ptCen = m_ptCen ;
return true ;
@@ -306,7 +310,7 @@ PhotoObj::ChangeCenter( const Point3d& ptCen)
//----------------------------------------------------------------------------
bool
PhotoObj::GetDimensions( double& dDimX, double& dDimY)
PhotoObj::GetDimensions( double& dDimX, double& dDimY) const
{
dDimX = m_dDimX ;
dDimY = m_dDimY ;