TestEGk : primo modifiche per uso DLL con interfacce.
This commit is contained in:
+16
-3
@@ -15,8 +15,8 @@
|
||||
#include "stdafx.h"
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
#include "\EgtDev\Include\EGKPoint3d.h"
|
||||
|
||||
#include "\EgtDev\Include\EGkGeoPoint3d.h"
|
||||
#include "\EgtDev\Include\EGnStringUtils.h"
|
||||
|
||||
|
||||
//--------------------------- Define -----------------------------------------
|
||||
@@ -66,7 +66,20 @@ wmain( int argc, wchar_t* argv[])
|
||||
vtV.Set( 1, 1, 1) ;
|
||||
ptP.Translate( vtV) ;
|
||||
|
||||
cout << "Point3d=" << ptP.x << "," << ptP.y << "," << ptP.z << endl ;
|
||||
cout << "Point3d=" << ToString( ptP) << endl ;
|
||||
|
||||
|
||||
IGeoPoint3d* pGPnt ;
|
||||
|
||||
pGPnt = GetGeoPoint3d( CreateGeoObj( KEY_GEO_PNT3D)) ;
|
||||
|
||||
if ( pGPnt != nullptr) {
|
||||
pGPnt->Set( ptP) ;
|
||||
pGPnt->Translate( vtV) ;
|
||||
cout << "GeoPoint3d=" << ToString( *(pGPnt->GetPoint())) << endl ;
|
||||
|
||||
delete pGPnt ;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user