Commit 924c4449 authored by Christian Schulte zu Berge's avatar Christian Schulte zu Berge
Browse files

fixed endless loop in VolumeExplorer

parent ec04c28e
......@@ -37,7 +37,7 @@ namespace campvis {
: VisualizationPipeline()
, p_camera("Camera", "Camera")
, _reader()
, _renderer(_canvasSize)
, _renderer(&_canvasSize)
, _trackballEH(0)
{
addProcessor(&_reader);
......
......@@ -240,6 +240,9 @@ namespace campvis {
}
void VolumeExplorer::onProcessorInvalidated(AbstractProcessor* processor) {
// make sure to only invalidate ourself if the invalidation is not triggered by us
// => the _locked state is a trustworthy source for this information :)
if (! isLocked()) {
if (processor == &_raycaster) {
invalidate(VR_INVALID);
}
......@@ -249,6 +252,7 @@ namespace campvis {
invalidate(AbstractProcessor::INVALID_RESULT);
}
}
void VolumeExplorer::updateProperties(DataHandle img) {
_sliceExtractor.p_transferFunction.getTF()->setImageHandle(img);
......
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