VTK/3DConnexion Devices Support: Difference between revisions

From KitwarePublic
< VTK
Jump to navigationJump to search
Line 4: Line 4:


= How to use it=
= How to use it=
# Install the 3DConnexion Device driver
== Install the 3DConnexion Device driver ==
# Configure vtk by setting VTK_USE_TDx to TRUE
=== Linux ===
## on Windows, there is nothing else to set
## on Linux, set the advanced variables to
# Build VTK


=== Windows ===
Easy. Nothing to add about it.
== Install the 3DConnexion SDK ==
=== Linux ===
=== Windows ===
Easy. There is nothing to install
== Configure VTK ==
Launch cmake and set <tt>VTK_USE_TDx</tt> to <tt>TRUE</tt>
=== Linux ===
Set the advanced variables:
* <tt>VTK_TDX_INCLUDE_PATH</tt> to point to the path of <tt>xdrvlib.h</tt> (without mentioning <tt>xdrvlib.h</tt>)
* <tt>VTK_TDX_OBJECT_PATH</tt> to the full path to <tt>xdrvlib.a</tt> (mentioning <tt>xdrvlib.a</tt>)
=== Windows ==
Easy. There is nothing else to set.
== Build VTK ==
Just build vtk.
== Test it ==
Launch TestTDx in interactive mode
Launch TestTDx in interactive mode
1. Get the full command line of the test with:
1. Get the full command line of the test with:
<pre>
<pre>
$ ctest -R TestTDX -V -N
$ ctest -R TestTDx -V -N
</pre>
</pre>
2. Copy the full command line in the prompt and add -I at the end, to run the test in interactive mode
2. Copy the full command line in the prompt and add -I at the end, to run the test in interactive mode

Revision as of 18:07, 21 August 2009

Support for 3DConnexion Devices (SpaceNavigator, SpacePilot) inside VTK

THIS IS EXPERIMENTAL WORK

How to use it

Install the 3DConnexion Device driver

Linux

Windows

Easy. Nothing to add about it.

Install the 3DConnexion SDK

Linux

Windows

Easy. There is nothing to install

Configure VTK

Launch cmake and set VTK_USE_TDx to TRUE

Linux

Set the advanced variables:

  • VTK_TDX_INCLUDE_PATH to point to the path of xdrvlib.h (without mentioning xdrvlib.h)
  • VTK_TDX_OBJECT_PATH to the full path to xdrvlib.a (mentioning xdrvlib.a)

= Windows

Easy. There is nothing else to set.

Build VTK

Just build vtk.

Test it

Launch TestTDx in interactive mode 1. Get the full command line of the test with:

$ ctest -R TestTDx -V -N

2. Copy the full command line in the prompt and add -I at the end, to run the test in interactive mode

3. Enjoy

Linux

Windows

Mac

empty