Mercurial > hg > orthanc-stone
comparison Applications/Samples/Common/RtViewerApp.cpp @ 1975:5a434f5889f8
starting pixel probe
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Sat, 29 Oct 2022 11:57:00 +0200 |
parents | c7bc9e1776a6 |
children | 07964689cb0b |
comparison
equal
deleted
inserted
replaced
1974:446e0d3e9019 | 1975:5a434f5889f8 |
---|---|
97 | 97 |
98 void RtViewerApp::DisableTracker() | 98 void RtViewerApp::DisableTracker() |
99 { | 99 { |
100 if (activeTracker_) | 100 if (activeTracker_) |
101 { | 101 { |
102 activeTracker_->Cancel(); | 102 // Creating "dummyScene" is a HACK: It won't work with trackers |
103 // that probe the values of the textures. For such trackers, the | |
104 // actual underlying scene should be provided. | |
105 Scene2D dummyScene; | |
106 activeTracker_->Cancel(dummyScene); | |
107 | |
103 activeTracker_.reset(); | 108 activeTracker_.reset(); |
104 } | 109 } |
105 } | 110 } |
106 | 111 |
107 void RtViewerApp::CreateView(const std::string& canvasId, VolumeProjection projection) | 112 void RtViewerApp::CreateView(const std::string& canvasId, VolumeProjection projection) |