-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathREADME
133 lines (84 loc) · 3.99 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
This software is a VTK data reader for the RealityGrid Steering Library.
Research Computing Services, IT Services, University of Manchester.
----------------------------------------------------------------------
Prerequisites:
RealityGrid Steering Library
CMake (see below) will find the Steering library on your machine if it
has been installed in /usr/local or if you set the environment
variable REG_HOME or REG_STEER_HOME to the path containing the lib and
bin directories of the install or build.
You can also input the path by hand into CMake.
Visualization Toolkit (VTK) 5.2 (or later)
CMake (see below) will find VTK if it is in your PATH or if an
environment variable called VTK_DIR is set to the path containing the
lib and bin directories of VTK.
You can also input the path by hand into CMake.
CMake
The Steering library wrappers are built with an Open Source tool
called CMake available from Kitware, Inc. It is available from here:
http://www.cmake.org/ and is provided in a number of different
flavours including Win32, Mac OS X, IRIX, AIX, Linux and source code.
The Steering Library Wrappers require CMake version 2.6 or later.
----------------------------------------------------------------------
How to build and install:
Please see the instructions that come with the Steering Library for
how to use CMake.
----------------------------------------------------------------------
The Steering Library VTK Module Options.
Some of these options will only be visible in "advanced mode".
REGVTK_INSTALL_TO_REG_DIR - default OFF
If this is set to ON CMake will set CMAKE_INSTALL_PREFIX to match that
which was used to install the Steering Library. This will ensure that
the wrappers are installed to the same locations as the Steering
Library.
REGVTK_WRAP_JAVA - default OFF
REGVTK_WRAP_PYTHON - default OFF
Set these options to ON to wrap the modules into other languages. Note
that this relies on the version of VTK that you are building against
to have support for these languages built in to it too.
REG_USE_MODULE_Samples - default sockets
Choose the transport over which sample data is moved. Current choices
are sockets, files or proxy - Only available if the Steering Library
has been built as a modular library.
REG_USE_MODULE_Steering - default sockets
Choose the transport which is used to pass steering messages. Current
choices are sockets, wsrf or files - Only available if the Steering
Library has been built as a modular library.
----------------------------------------------------------------------
Running the examples:
The examples have been designed to accept data from mini_app supplied
with the Steering Library.
Assuming the use of direct (sockets-based) data transport, firstly
you'll need to run mini_app and make a note of the port number that it
says that it's outputting data on. Set the environment variables that
will tell the visualization how to find mini_app:
* REG_CONNECTOR_HOSTNAME
* REG_CONNECTOR_PORT
Make sure that the VTK and RealityGrid VTK Module libraries are in
your library path.
Cxx
Simply run the mini_viz application from the bin directory of your
build directory:
$ ./bin/mini_viz
On Mac OS X a bundle will be produced so you will need to run it with
the 'open' command:
$ open ./bin/MiniViz.app
Or you can run the executable directly:
$ ./bin/MiniViz.app/Contents/MacOS/MiniViz
If you run MiniViz.app from Finder it will not pick up the required
environment variables.
Java
Make sure the the VTK and RealityGrid VTK Module jar files are listed
in your CLASSPATH. Compile and run the Java example:
$ cd Examples/Java
$ javac MiniViz.java
$ java MiniViz
Python
Make sure that the VTK and RealityGrid VTK Module packages are listed
in your PYTHONPATH. Run the example.
$ cd Examples/Python
$ python mini_viz.py
----------------------------------------------------------------------
Any comments, enquiries or pleas for explanation should be directed to
the comp-steering mailing list. Details available from:
http://listserv.manchester.ac.uk/cgi-bin/wa?A0=COMP-STEERING