VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
4.12 - Using Independent VR-Link Objects in Multiple Threads

You can use independent VR-Link objects in multiple threads.

If you are using VR-Link in multi-threaded applications, note the following:

For example:

DtDegMinSec latRef = {35.0, 0.0, 0.0, DtNorth};
DtDegMinSec lonRef = {122.0, 0.0, 0.0, DtWest};
DtUtmInit(latRef, lonRef, 1); // this will use the global map datum
DtGeodeticCoord geod(DtDeg2Rad(30.0), DtDeg2Rad(100.0), 1000.0);
DtUtmCoord utm(geod);

is equivalent to the following code segment:

DtUtmReferencePoint refUtm(latRef, lonRef, 1, 0, DtWGS84);
DtGeodeticCoord geod(DtDeg2Rad(30.0), DtDeg2Rad(100.0), 1000.0, &ellipse);
DtUtmCoord utm(geod, &refUtm);

[<< Attached Parts] [Home] [Top of Page] [Controlling MAK Products Remotely >>]


Document ID: Generated on Thu Feb 22 04:26:36 EST 2018 from SVN revision 186468
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)