source: trunk/src/testing/app/volvis/vTF.h @ 4

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

Added modified SAGE sources

Line 
1/********************************************************************************
2 * Volatile - Volume Visualization Software for SAGE
3 * Copyright (C) 2004 Electronic Visualization Laboratory,
4 * University of Illinois at Chicago
5 *
6 * All rights reserved.
7 *
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions are met:
10 *
11 *  * Redistributions of source code must retain the above copyright
12 *    notice, this list of conditions and the following disclaimer.
13 *  * Redistributions in binary form must reproduce the above
14 *    copyright notice, this list of conditions and the following disclaimer
15 *    in the documentation and/or other materials provided with the distribution.
16 *  * Neither the name of the University of Illinois at Chicago nor
17 *    the names of its contributors may be used to endorse or promote
18 *    products derived from this software without specific prior written permission.
19 *
20 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
24 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
25 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
26 * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
27 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
28 * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
29 * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
30 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31 *
32 * Direct questions, comments etc about Volatile to www.evl.uic.edu/cavern/forum
33 *********************************************************************************/
34
35//Class to handle the networking to get the transfer functions
36//vTF.h
37#if defined(V_NETTF)
38#ifndef _vTF_h_
39#define _vTF_h_
40
41#include <iostream.h>
42#include <sstream>
43#include <fstream>
44#include <string>
45#include <vector>
46#include <stdio.h>
47#include <stdlib.h>
48#include <string.h>
49#include <math.h>
50#include <time.h>
51#include "private.h"
52
53//size of each command from the master
54#define COMMAND_SIZE 2048
55
56using namespace std;
57
58#define int32 cint32
59#define uint32 cuint32
60#undef int32
61#undef uint32
62
63//class that handles the transfer functions from the network
64//QUANTAts_mutex_c tfmutex;
65class vTF {
66public:
67        //default constructor - provide the rank, total # processors and if master processor should display the image
68        vTF();
69        void init();
70        ~vTF();
71        void process();
72        void checkForConnections();
73
74        QUANTAnet_tcpServer_c* tcpServer ;
75        QUANTAnet_tcpClient_c *tcpClient;//the tcp client to receive data from
76        char clientIP[256]; //name of client
77        void sendHistogram() ;
78
79};
80
81#endif
82#endif
Note: See TracBrowser for help on using the repository browser.