EgtInterface 1.8d4 :
- aggiunte interfacce per EgtSetInfoBBox e EgtGetInfoBBox.
This commit is contained in:
@@ -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],
|
||||
|
||||
Reference in New Issue
Block a user