source: osgVisual/include/extLink/dataIO_extLinkVCL.h @ 105

Last change on this file since 105 was 97, checked in by Torben Dannhauer, 14 years ago
File size: 3.6 KB
RevLine 
[32]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>
[97]19#include <osg/Notify>
[32]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" )
[50]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]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" )
[50]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" )
[32]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
56namespace 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 */ 
66class dataIO_extLinkVCL :       public dataIO_extLink
67{
[88]68#include <leakDetection.h>
[32]69public:
70        dataIO_extLinkVCL(std::vector<dataIO_slot>& dataSlots_);
71        virtual ~dataIO_extLinkVCL(void);
72
73        void init();
74        void shutdown();
75
76        bool readTO_OBJvalues();
77        bool writebackFROM_OBJvalues();
78
79private:
80        CVCLVariable<double> SAENGER1_POS_LAT;
81    CVCLVariable<double> SAENGER1_POS_LON;
82    CVCLVariable<double> SAENGER1_POS_ALT; 
83        CVCLVariable<double> SAENGER1_ROT_X;
84    CVCLVariable<double> SAENGER1_ROT_Y;
85    CVCLVariable<double> SAENGER1_ROT_Z;
86
87        CVCLVariable<double> SAENGER2_POS_LAT;
88    CVCLVariable<double> SAENGER2_POS_LON;
89    CVCLVariable<double> SAENGER2_POS_ALT; 
90        CVCLVariable<double> SAENGER2_ROT_X;
91    CVCLVariable<double> SAENGER2_ROT_Y;
92    CVCLVariable<double> SAENGER2_ROT_Z;
93
94        CVCLVariable<double> SAENGER_POS_LAT;
95    CVCLVariable<double> SAENGER_POS_LON;
96    CVCLVariable<double> SAENGER_POS_ALT; 
97        CVCLVariable<double> SAENGER_ROT_X;
98    CVCLVariable<double> SAENGER_ROT_Y;
99    CVCLVariable<double> SAENGER_ROT_Z;
100
101};
102
103}       // END NAMESPACE
Note: See TracBrowser for help on using the repository browser.