Commit 7757c5d3 authored by Christian Schulte zu Berge's avatar Christian Schulte zu Berge
Browse files

Merge branch 'VolumeExplorer-MouseEvent' into 'development'

Volume explorer mouse event - Y coordinates

Small correction:  Y coordinates of the render size should be used instead of X coordinates when subtracting from me->y().

See merge request !85
parents 3b2492a9 3aaf715a
......@@ -339,7 +339,7 @@ namespace campvis {
else if (me->y() <= 2*p_sliceRenderSize.getValue().y) {
_sliceExtractor.p_sliceOrientation.selectByOption(SliceExtractor::XZ_PLANE);
tgt::MouseEvent adjustedMe(
me->x(), me->y() - p_sliceRenderSize.getValue().x,
me->x(), me->y() - p_sliceRenderSize.getValue().y,
me->action(), me->modifiers(), me->button(),
p_sliceRenderSize.getValue()
);
......@@ -348,7 +348,7 @@ namespace campvis {
else {
_sliceExtractor.p_sliceOrientation.selectByOption(SliceExtractor::YZ_PLANE);
tgt::MouseEvent adjustedMe(
me->x(), me->y() - (2 * p_sliceRenderSize.getValue().x),
me->x(), me->y() - (2 * p_sliceRenderSize.getValue().y),
me->action(), me->modifiers(), me->button(),
p_sliceRenderSize.getValue()
);
......
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