1 package mhr.appcore.tools.cancelable;
3 import mhr.appcore.bitmap.NBitmap;
4 import mhr.appcore.image.Image;
5 import mhr.appcore.image.ImageSelectedState;
6 import mhr.appcore.interpolators.InterpolatorType;
7 import mhr.appcore.tools.actiondata.CancelableToolActionData;
8 import mhr.appcore.tools.actiondata.ContrastLUTCancelableToolActionData;
9 import mhr.appcore.tools.actiondata.LinearTransformationToolActionData;
10 import mhr.appcore.tools.actiondata.ToolActionData;
11 import mhr.appcore.tools.exceptions.ToolNotApplicableException;
12 import mhr.appcore.transform.TM;
13 import mhr.appcore.transform.Transform;
14 import mhr.appcore.utils.Rect;
28 super.applyTo(img, data);
33 if (tMatrix != null) {
36 origLayer.
copyTo(tmpLayer, src, srcOrigX, srcOrigY);
42 if (tMatrix != null) {
43 origLayer.
copyTo(tmpLayer, src, srcOrigX, srcOrigY);
53 throw new IllegalArgumentException(
"Received data for different tool");
55 tMatrix = ((LinearTransformationToolActionData)data).m;