EgtInterface 1.6i4 :

- Set e Get per InfoDouble su entità
- aggiunte EgtGetFirstNameInGroup e sue derivate
- modificata EgtPackPart.
This commit is contained in:
Dario Sassi
2015-09-07 08:24:30 +00:00
parent fa39f868d0
commit 10e170916e
4 changed files with 48 additions and 2 deletions
+18
View File
@@ -266,6 +266,13 @@ __stdcall EgtSetInfoInt( int nId, const wchar_t* wsKey, int nInfo)
return ( ExeSetInfo( nId, wstrztoA( wsKey), nInfo) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSetInfoDouble( int nId, const wchar_t* wsKey, double dInfo)
{
return ( ExeSetInfo( nId, wstrztoA( wsKey), dInfo) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetInfo( int nId, const wchar_t* wsKey, wchar_t*& wsInfo)
@@ -288,6 +295,17 @@ __stdcall EgtGetInfoInt( int nId, const wchar_t* wsKey, int* pnInfo)
return ( ExeGetInfo( nId, wstrztoA( wsKey), *pnInfo) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetInfoDouble( int nId, const wchar_t* wsKey, double* pdInfo)
{
// verifico il parametro
if ( pdInfo == nullptr)
return FALSE ;
// recupero info
return ( ExeGetInfo( nId, wstrztoA( wsKey), *pdInfo) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtExistsInfo( int nId, const wchar_t* wsKey)
+28
View File
@@ -113,6 +113,34 @@ __stdcall EgtGetPrevGroup( int nId)
return ExeGetPrevGroup( nId) ;
}
//-----------------------------------------------------------------------------
int
__stdcall EgtGetFirstNameInGroup( int nGroupId, const wchar_t* wsName)
{
return ExeGetFirstNameInGroup( nGroupId, wstrztoA( wsName)) ;
}
//-----------------------------------------------------------------------------
int
__stdcall EgtGetNextName( int nId, const wchar_t* wsName)
{
return ExeGetNextName( nId, wstrztoA( wsName)) ;
}
//-----------------------------------------------------------------------------
int
__stdcall EgtGetLastNameInGroup( int nGroupId, const wchar_t* wsName)
{
return ExeGetLastNameInGroup( nGroupId, wstrztoA( wsName)) ;
}
//-----------------------------------------------------------------------------
int
__stdcall EgtGetPrevName( int nId, const wchar_t* wsName)
{
return ExeGetPrevName( nId, wstrztoA( wsName)) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetBBox( int nId, int nFlag, double ptMin[3], double ptMax[3])
+2 -2
View File
@@ -28,7 +28,7 @@ __stdcall EgtCreateFlatParts( int nType)
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtPackPart( int nId, double dXmax, double dOffs)
__stdcall EgtPackPart( int nId, double dXmin, double dYmin, double dXmax, double dOffs)
{
return ( ExePackPart( nId, dXmax, dOffs) ? TRUE : FALSE) ;
return ( ExePackPart( nId, dXmin, dYmin, dXmax, dOffs) ? TRUE : FALSE) ;
}
BIN
View File
Binary file not shown.