EgtExecutor 2.3k1 :

- aggiunta funzione ExeChangePhotoCenterAsFlatScan.
This commit is contained in:
DarioS
2021-11-16 06:26:02 +01:00
parent 5333f6415e
commit 36901494f9
2 changed files with 14 additions and 0 deletions
+14
View File
@@ -264,6 +264,20 @@ ExeGetPhotoCenter( int nId, Point3d& ptCen)
return pPhoto->GetCenter( ptCen) ;
}
//----------------------------------------------------------------------------
bool
ExeChangePhotoCenterAsFlatScan( int nId)
{
IGeomDB* pGeomDB = GetCurrGeomDB() ;
VERIFY_GEOMDB( pGeomDB, false)
// recupero il gestore dei dati della fotografia dell'oggetto
PhotoObj* pPhoto = dynamic_cast<PhotoObj*>( pGeomDB->GetUserObj( nId)) ;
if ( pPhoto == nullptr)
return false ;
// imposto il centro di ripresa della fotografia
return pPhoto->ChangeCenter( Point3d( 0, 0, INFINITO)) ;
}
//----------------------------------------------------------------------------
bool
ExeGetPhotoDimensions( int nId, double& dDimX, double& dDimY)
BIN
View File
Binary file not shown.