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

Last change on this file since 46 was 32, checked in by Torben Dannhauer, 15 years ago

Adding first version of osgVisual!!

File size: 3.1 KB
Line 
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/lib/VCL1_34.lib" )
29#endif
30#ifdef _DEBUG
31#pragma comment ( lib, "../VCL_1.0.3.4/source/3rdParty/expatpp/lib/debugmtdll/libexpatMT_d.lib" )
32#pragma comment ( lib, "../VCL_1.0.3.4/source/3rdParty/expatpp/lib/debugmtdll/expatpp_d.lib" )
33#pragma comment ( lib, "../VCL_1.0.3.4/source/lib/VCL1_34D.lib" )
34#endif
35//// include VCL header
36#ifdef WIN32
37#include <wtypes.h>
38#endif
39#include "VCLDefinitions.h"
40#include "VCLIO.h"
41#include "VCLIOChannel.h"
42#include "VCLIOChannelEntry.h"
43#include "VCLVariable.h"
44#include "VCLSocketDefs.h"
45#include <conio.h>
46#include "stdlib.h"
47#include <iostream>
48
49
50namespace osgVisual
51{ 
52
53/**
54 * \brief This class is a VCL-based implementation of the externalLink.
55
56 *
57 * @author Torben Dannhauer
58 * @date  Nov 2009
59 */ 
60class dataIO_extLinkVCL :       public dataIO_extLink
61{
62public:
63        dataIO_extLinkVCL(std::vector<dataIO_slot>& dataSlots_);
64        virtual ~dataIO_extLinkVCL(void);
65
66        void init();
67        void shutdown();
68
69        bool readTO_OBJvalues();
70        bool writebackFROM_OBJvalues();
71
72private:
73        CVCLVariable<double> SAENGER1_POS_LAT;
74    CVCLVariable<double> SAENGER1_POS_LON;
75    CVCLVariable<double> SAENGER1_POS_ALT; 
76        CVCLVariable<double> SAENGER1_ROT_X;
77    CVCLVariable<double> SAENGER1_ROT_Y;
78    CVCLVariable<double> SAENGER1_ROT_Z;
79
80        CVCLVariable<double> SAENGER2_POS_LAT;
81    CVCLVariable<double> SAENGER2_POS_LON;
82    CVCLVariable<double> SAENGER2_POS_ALT; 
83        CVCLVariable<double> SAENGER2_ROT_X;
84    CVCLVariable<double> SAENGER2_ROT_Y;
85    CVCLVariable<double> SAENGER2_ROT_Z;
86
87        CVCLVariable<double> SAENGER_POS_LAT;
88    CVCLVariable<double> SAENGER_POS_LON;
89    CVCLVariable<double> SAENGER_POS_ALT; 
90        CVCLVariable<double> SAENGER_ROT_X;
91    CVCLVariable<double> SAENGER_ROT_Y;
92    CVCLVariable<double> SAENGER_ROT_Z;
93
94};
95
96}       // END NAMESPACE
Note: See TracBrowser for help on using the repository browser.