Commit 28668f88 authored by Marcus D. Hanwell's avatar Marcus D. Hanwell
Browse files

ENH: Change location rather than use transform.

More efficient, and the API is being modified for the items - no
implicit transforms.
parent dbcd5c21
......@@ -130,7 +130,8 @@ bool vtkImageItem::MouseMoveEvent(const vtkContextMouseEvent &mouse)
if (mouse.Button == 0) // Left mouse button - translate
// Move the block by this amount
this->Translate(deltaX, deltaY);
this->Dimensions[0] += deltaX;
this->Dimensions[1] += deltaY;
return true;
else if (mouse.Button == 1)
Supports Markdown
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