source: trunk/src/testing/app/JuxtaView/JuxtaUIServer.h @ 4

Revision 4, 2.8 KB checked in by ajaworski, 13 years ago (diff)

Added modified SAGE sources

Line 
1/*=============================================================================
2
3  Program: JuxtaView for SAGE
4  Module:  JuxtaUIServer.h - Part of JuxtaView's UI
5  Authors: Arun Rao, arao@evl.uic.edu,
6           Ratko Jagodic, rjagodic@evl.uic.edu,
7           Nicholas Schwarz, schwarz@evl.uic.edu,
8           et al.
9  Date:    30 September 2004
10  Modified: 28 October 2004
11
12  Copyright (C) 2004 Electronic Visualization Laboratory,
13 * University of Illinois at Chicago
14 *
15 * All rights reserved.
16 *
17 * Redistribution and use in source and binary forms, with or without
18 * modification, are permitted provided that the following conditions are met:
19 *
20 *  * Redistributions of source code must retain the above copyright
21 *    notice, this list of conditions and the following disclaimer.
22 *  * Redistributions in binary form must reproduce the above
23 *    copyright notice, this list of conditions and the following disclaimer
24 *    in the documentation and/or other materials provided with the distribution.
25 *  * Neither the name of the University of Illinois at Chicago nor
26 *    the names of its contributors may be used to endorse or promote
27 *    products derived from this software without specific prior written permission.
28 *
29 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
30 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
31 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
32 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
33 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
34 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
35 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
36 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
37 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
38 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
39 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
40 *
41 * Direct questions, comments etc to schwarz@evl.uic.edu or
42 * http://www.evl.uic.edu/cavern/forum/
43
44  Direct questions, comments, etc. to schwarz@evl.uic.edu or
45  http://www.evl.uic.edu/cavern/forum/
46
47=============================================================================*/
48
49#ifndef JUXTAUI_SERVER_H
50#define JUXTAUI_SERVER_H
51
52#include <QUANTA/QUANTAinit.hxx>
53#include <QUANTA/QUANTAnet_tcp_c.hxx>
54#include "JuxtaSCUICommon.h"
55
56
57class JuxtaUIServer
58{
59private:
60        QUANTAnet_tcpServer_c* server;
61        QUANTAnet_tcpClient_c* client;
62        char* recmsg;
63public:
64        JuxtaUIServer();
65        ~JuxtaUIServer();
66        bool Init(char*); //pass the config file name
67        char* WaitForMessage();
68        void SendNormalizedExtents( float x, float y, float w, float h);
69        void SendOverview(int w, int h, unsigned char* bmp);
70        void GetNormalizedFreeTranslation( float* x, float* y);
71};
72
73#endif
74
Note: See TracBrowser for help on using the repository browser.