EgtInterface 1.6i4 :
- Set e Get per InfoDouble su entità - aggiunte EgtGetFirstNameInGroup e sue derivate - modificata EgtPackPart.
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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
@@ -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) ;
|
||||
}
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user