Hi,
We are very interested in using 3DConnexion’s 3d mice in our software. I was excited to find that it was supported in vtk. However, looking at the build files, it seems perhaps it is not supported on windows. Setting VTK_USE_TDX at the cmake level does not result in the corresponding compiler flag getting set.
vtkTDxConfigure.h ends up looking like this (note the last line):
/*=========================================================================
Program: Visualization Toolkit
Module: vtkTDxConfigure.h.in
Copyright © Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
/* The TDx support has not been ported, this header defines nothing. */
We are using OpenGL2. We see the following in CmakeLists.txt for Rendering/OpenGL2:
The TDx support has not been moved, this header is here to define nothing,
and so allow classes in other modules to safely include it and keep going.
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/vtkTDxConfigure.h.in
${CMAKE_CURRENT_BINARY_DIR}/vtkTDxConfigure.h)
as opposed to the file in Rendering/OpenGL, which presumably defines a value:
FIXME: The TDx support needs some refactoring before we can build it in a
modular fashion, for now it must remain an option on vtkRenderingOpenGL.
option(VTK_USE_TDX “Use TDx interaction devices” OFF)
mark_as_advanced(VTK_USE_TDX)
if (TDX_INCLUDE_DIR)
include_directories(${TDX_INCLUDE_DIR})
endif()
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/vtkTDxConfigure.h.in
${CMAKE_CURRENT_BINARY_DIR}/vtkTDxConfigure.h)
This page implies that it is supported:
https://vtk.org/Wiki/VTK/3DConnexion_Devices_Support
Can anyone shed some light on this?
thanks-
Geoff