Commit a8159f69 authored by jcfr's avatar jcfr
Browse files

COMP: Rename Slicer3_USE_OPENTRACKER into Slicer_USE_OPENTRACKER

Note that there is no associated option

git-svn-id: http://svn.slicer.org/Slicer4/trunk@15101 3bd1e089-480b-0410-8dfb-8563597acbee
parent cf302914
......@@ -111,7 +111,7 @@ void vtkSlicerIGTDemoLogic::SetNumberOfPoints(int no)
void vtkSlicerIGTDemoLogic::Init(char *configfile)
{
#ifdef Slicer3_USE_OPENTRACKER
#ifdef Slicer_USE_OPENTRACKER
fprintf(stderr,"config file: %s\n",configfile);
this->context = new Context(1);
// get callback module from the context
......@@ -133,7 +133,7 @@ void vtkSlicerIGTDemoLogic::Init(char *configfile)
void vtkSlicerIGTDemoLogic::CloseConnection()
{
#ifdef Slicer3_USE_OPENTRACKER
#ifdef Slicer_USE_OPENTRACKER
context->close();
#endif
......@@ -163,7 +163,7 @@ void vtkSlicerIGTDemoLogic::quaternion2xyz(float* orientation, float *normal, fl
void vtkSlicerIGTDemoLogic::PollRealtime()
{
#ifdef Slicer3_USE_OPENTRACKER
#ifdef Slicer_USE_OPENTRACKER
context->pushEvents(); // push event and
context->pullEvents(); // pull event
context->stop();
......@@ -171,7 +171,7 @@ void vtkSlicerIGTDemoLogic::PollRealtime()
}
#ifdef Slicer3_USE_OPENTRACKER
#ifdef Slicer_USE_OPENTRACKER
void vtkSlicerIGTDemoLogic::callbackF(const Node&, const Event &event, void *data)
{
float position[3];
......
......@@ -30,7 +30,7 @@
#include "vtkSlicerConfigure.h" /* Slicer3_USE_* */
#ifdef Slicer3_USE_OPENTRACKER
#ifdef Slicer_USE_OPENTRACKER
#include "OpenTracker/OpenTracker.h"
#include "OpenTracker/common/CallbackModule.h"
using namespace ot;
......@@ -62,7 +62,7 @@ public:
void CloseConnection();
void PollRealtime();
#ifdef Slicer3_USE_OPENTRACKER
#ifdef Slicer_USE_OPENTRACKER
static void callbackF(const Node&, const Event &event, void *data);
#endif
......@@ -88,7 +88,7 @@ protected:
vtkSlicerIGTDemoLogic(const vtkSlicerIGTDemoLogic&);
void operator=(const vtkSlicerIGTDemoLogic&);
#ifdef Slicer3_USE_OPENTRACKER
#ifdef Slicer_USE_OPENTRACKER
Context *context;
#endif
......
......@@ -34,7 +34,7 @@ set(Slicer_USE_MIDAS "@Slicer_USE_MIDAS@")
set(Slicer3_USE_NAVITRACK "@Slicer3_USE_NAVITRACK@")
set(Slicer_USE_NUMPY "@Slicer_USE_NUMPY@")
set(Slicer_USE_PYTHON "@Slicer_USE_PYTHON@")
set(Slicer3_USE_OPENTRACKER "@Slicer3_USE_OPENTRACKER@")
set(Slicer_USE_OPENTRACKER "@Slicer_USE_OPENTRACKER@")
# Slicer could be installed anywhere, so set all paths based on where
# this file was found (which should be the lib/Slicer3 directory of the
......
......@@ -27,7 +27,7 @@
#cmakedefine Slicer_USE_PYTHON
#cmakedefine Slicer_USE_PYTHONQT
#cmakedefine Slicer_USE_PYTHONQT_WITH_TCL
#cmakedefine Slicer3_USE_OPENTRACKER
#cmakedefine Slicer_USE_OPENTRACKER
#cmakedefine Slicer_USE_QT
#cmakedefine Slicer_USE_KWWIDGETS
#cmakedefine Slicer3_USE_VTK_CVSHEAD
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment