1 | #pragma once |
---|
2 | /* -*-c++-*- osgVisual - Copyright (C) 2009-2010 Torben Dannhauer |
---|
3 | * |
---|
4 | * This library is based on OpenSceneGraph, open source and may be redistributed and/or modified under |
---|
5 | * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or |
---|
6 | * (at your option) any later version. The full license is in LICENSE file |
---|
7 | * included with this distribution, and on the openscenegraph.org website. |
---|
8 | * |
---|
9 | * osgVisual requires for some proprietary modules a license from the correspondig manufacturer. |
---|
10 | * You have to aquire licenses for all used proprietary modules. |
---|
11 | * |
---|
12 | * This library is distributed in the hope that it will be useful, |
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
15 | * OpenSceneGraph Public License for more details. |
---|
16 | */ |
---|
17 | |
---|
18 | #include <dataIO_extLink.h> |
---|
19 | #include <osg/notify> |
---|
20 | #include <osgDB/FileUtils> |
---|
21 | #include <winsock2.h> |
---|
22 | |
---|
23 | // VCL |
---|
24 | //// To keep the VS 2005 Solution file clean from VCL dependencies: Link dependencies here: |
---|
25 | #ifndef _DEBUG |
---|
26 | #pragma comment ( lib, "../VCL_1.0.3.4/source/3rdParty/expatpp/lib/releasemtdll/libexpatMT.lib" ) |
---|
27 | #pragma comment ( lib, "../VCL_1.0.3.4/source/3rdParty/expatpp/lib/releasemtdll/expatpp.lib" ) |
---|
28 | #pragma comment ( lib, "../VCL_1.0.3.4/source/3rdParty/expatpp/lib.x64/releasemtdll/libexpatMT.lib" ) |
---|
29 | #pragma comment ( lib, "../VCL_1.0.3.4/source/3rdParty/expatpp/lib.x64/releasemtdll/expatpp.lib" ) |
---|
30 | #pragma comment ( lib, "../VCL_1.0.3.4/source/lib/x86/VCL1_34.lib" ) |
---|
31 | #pragma comment ( lib, "../VCL_1.0.3.4/source/lib/x64/VCL1_34.lib" ) |
---|
32 | #endif |
---|
33 | #ifdef _DEBUG |
---|
34 | #pragma comment ( lib, "../VCL_1.0.3.4/source/3rdParty/expatpp/lib/debugmtdll/libexpatMT_d.lib" ) |
---|
35 | #pragma comment ( lib, "../VCL_1.0.3.4/source/3rdParty/expatpp/lib/debugmtdll/expatpp_d.lib" ) |
---|
36 | #pragma comment ( lib, "../VCL_1.0.3.4/source/3rdParty/expatpp/lib.x64/debugmtdll/libexpatMT_d.lib" ) |
---|
37 | #pragma comment ( lib, "../VCL_1.0.3.4/source/3rdParty/expatpp/lib.x64/debugmtdll/expatpp_d.lib" ) |
---|
38 | #pragma comment ( lib, "../VCL_1.0.3.4/source/lib/x86/VCL1_34D.lib" ) |
---|
39 | #pragma comment ( lib, "../VCL_1.0.3.4/source/lib/x64/VCL1_34D.lib" ) |
---|
40 | #endif |
---|
41 | //// include VCL header |
---|
42 | #ifdef WIN32 |
---|
43 | #include <wtypes.h> |
---|
44 | #endif |
---|
45 | #include "VCLDefinitions.h" |
---|
46 | #include "VCLIO.h" |
---|
47 | #include "VCLIOChannel.h" |
---|
48 | #include "VCLIOChannelEntry.h" |
---|
49 | #include "VCLVariable.h" |
---|
50 | #include "VCLSocketDefs.h" |
---|
51 | #include <conio.h> |
---|
52 | #include "stdlib.h" |
---|
53 | #include <iostream> |
---|
54 | |
---|
55 | |
---|
56 | namespace osgVisual |
---|
57 | { |
---|
58 | |
---|
59 | /** |
---|
60 | * \brief This class is a VCL-based implementation of the externalLink. |
---|
61 | |
---|
62 | * |
---|
63 | * @author Torben Dannhauer |
---|
64 | * @date Nov 2009 |
---|
65 | */ |
---|
66 | class dataIO_extLinkVCL : public dataIO_extLink |
---|
67 | { |
---|
68 | public: |
---|
69 | dataIO_extLinkVCL(std::vector<dataIO_slot>& dataSlots_); |
---|
70 | virtual ~dataIO_extLinkVCL(void); |
---|
71 | |
---|
72 | void init(); |
---|
73 | void shutdown(); |
---|
74 | |
---|
75 | bool readTO_OBJvalues(); |
---|
76 | bool writebackFROM_OBJvalues(); |
---|
77 | |
---|
78 | private: |
---|
79 | CVCLVariable<double> SAENGER1_POS_LAT; |
---|
80 | CVCLVariable<double> SAENGER1_POS_LON; |
---|
81 | CVCLVariable<double> SAENGER1_POS_ALT; |
---|
82 | CVCLVariable<double> SAENGER1_ROT_X; |
---|
83 | CVCLVariable<double> SAENGER1_ROT_Y; |
---|
84 | CVCLVariable<double> SAENGER1_ROT_Z; |
---|
85 | |
---|
86 | CVCLVariable<double> SAENGER2_POS_LAT; |
---|
87 | CVCLVariable<double> SAENGER2_POS_LON; |
---|
88 | CVCLVariable<double> SAENGER2_POS_ALT; |
---|
89 | CVCLVariable<double> SAENGER2_ROT_X; |
---|
90 | CVCLVariable<double> SAENGER2_ROT_Y; |
---|
91 | CVCLVariable<double> SAENGER2_ROT_Z; |
---|
92 | |
---|
93 | CVCLVariable<double> SAENGER_POS_LAT; |
---|
94 | CVCLVariable<double> SAENGER_POS_LON; |
---|
95 | CVCLVariable<double> SAENGER_POS_ALT; |
---|
96 | CVCLVariable<double> SAENGER_ROT_X; |
---|
97 | CVCLVariable<double> SAENGER_ROT_Y; |
---|
98 | CVCLVariable<double> SAENGER_ROT_Z; |
---|
99 | |
---|
100 | }; |
---|
101 | |
---|
102 | } // END NAMESPACE |
---|