EgtInterface 1.8d4 :

- aggiunte interfacce per EgtSetInfoBBox e EgtGetInfoBBox.
This commit is contained in:
Dario Sassi
2017-05-02 09:37:42 +00:00
parent 0aefbd3751
commit 46c5951a80
2 changed files with 25 additions and 0 deletions
+25
View File
@@ -294,6 +294,16 @@ __stdcall EgtSetInfoPoint( int nId, const wchar_t* wsKey, const double ptP[3])
return ( ExeSetInfo( nId, wstrztoA( wsKey), Point3d( ptP)) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSetInfoBBox( int nId, const wchar_t* wsKey, const double ptMin[3], const double ptMax[3])
{
// costruisco il BBox3d
BBox3d b3Box( ptMin, ptMax) ;
// eseguo
return ( ExeSetInfo( nId, wstrztoA( wsKey), b3Box) ? TRUE : FALSE) ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtSetInfoFrame( int nId, const wchar_t* wsKey, const double ptOrig[3],
@@ -381,6 +391,21 @@ __stdcall EgtGetInfoPoint( int nId, const wchar_t* wsKey, double ptP[3])
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetInfoBBox( int nId, const wchar_t* wsKey, double ptMin[3], double ptMax[3])
{
// recupero il box
BBox3d b3Box ;
if ( ! ExeGetInfo( nId, wstrztoA( wsKey), b3Box))
return FALSE ;
// assegno il minimo
VEC_FROM_3D( ptMin, b3Box.GetMin())
// assegno il massimo
VEC_FROM_3D( ptMax, b3Box.GetMax())
return TRUE ;
}
//-----------------------------------------------------------------------------
BOOL
__stdcall EgtGetInfoFrame( int nId, const wchar_t* wsKey, double ptOrig[3],