EgtExecutor 2.3k1 :
- aggiunta funzione ExeChangePhotoCenterAsFlatScan.
This commit is contained in:
@@ -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)
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user