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

Revision 4, 2.8 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#include <stdio.h>
36#include <stdlib.h>
37#include <errno.h>
38#include <string.h>
39
40#include <sys/stat.h>
41#include <sys/types.h>
42#include <fcntl.h>
43
44#if defined(WIN32)
45#include <string.h>
46#else
47#include <strings.h>
48#include <unistd.h>
49#include <sys/time.h>
50#endif
51
52#define QUANTA_LITTLE_ENDIAN 1
53#define QUANTA_THREAD_SAFE   1
54#define QUANTA_USE_PTHREADS  1
55#include <QUANTA.hxx>
56
57#if !defined(WIN32)
58
59#define USE_RBUDP 1
60
61#if defined(USE_RBUDP)
62#define RBUDP_RATE (300*1000)
63#define RBUDP_FRAME 1452
64//#define RBUDP_FRAME 8800
65#include <QUANTAnet_rbudpSender_c.hxx>
66#include <QUANTAnet_rbudpReceiver_c.hxx>
67#endif
68
69#endif
70
71// NETWORK PROTOCOL
72#define Q_INIT     0
73#define Q_BYE      1
74#define Q_LIST     2
75#define Q_LOAD     3
76#define Q_CROP     4
77#define Q_SAMPLE   5
78#define Q_ISO      6
79#define Q_VOL      7
80#define Q_POINT    8
81#define Q_EXIT     9
82#define Q_HISTO   10
83#define Q_GRAD    11
84#define Q_HISTO2D 12
85
Note: See TracBrowser for help on using the repository browser.