VR-Exchange 2.4 API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
ddsUtils.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2013 VT MAK
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vlOpenSplice/dllExport.h>
13 #include <vlOpenSplice/simpleOM.h>
14 #include <matrix/vlTaitBryan.h>
15 #include <matrix/vlVector.h>
16 
17 namespace MAKVrExchange
18 {
19 
20  namespace DtDdsBroker
21  {
22 
23  DT_DLL_OPENSPLICE void DtDdsCopyVector( const simpleOM::SpatialVector& src, DtVector& dest );
24  DT_DLL_OPENSPLICE void DtDdsCopyVector( const DtVector& src, simpleOM::SpatialVector& dest );
25  DT_DLL_OPENSPLICE void DtDdsCopyTaitBryan( const simpleOM::TaitBryan& src, DtTaitBryan& dest );
26  DT_DLL_OPENSPLICE void DtDdsCopyTaitBryan( const DtTaitBryan& src, simpleOM::TaitBryan& dest );
27 
28  inline void DtDdsCopyVector( const simpleOM::SpatialVector& src, DtVector& dest )
29  {
30  dest.setX( src.x );
31  dest.setY( src.y );
32  dest.setZ( src.z );
33  }
34 
35  inline void DtDdsCopyVector( const DtVector& src, simpleOM::SpatialVector& dest )
36  {
37  dest.x = src.x();
38  dest.y = src.y();
39  dest.z = src.z();
40  }
41 
42  inline void DtDdsCopyTaitBryan( const simpleOM::TaitBryan& src, DtTaitBryan& dest )
43  {
44  dest.setPsi( src.psi );
45  dest.setTheta( src.theta );
46  dest.setPhi( src.phi );
47  }
48 
49  inline void DtDdsCopyTaitBryan( const DtTaitBryan& src, simpleOM::TaitBryan& dest )
50  {
51  dest.psi = src.psi();
52  dest.theta = src.theta();
53  dest.phi = src.phi();
54  }
55 
56  }
57 }

Document ID: Generated on Thu Jul 23 10:25:22 EDT 2015 from SVN revision 155065
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)