org.simantics.ui;bundle-version="1.0.0",
vtk.rendering;bundle-version="8.2.0",
org.simantics.utils.thread.swt;bundle-version="1.1.0",
- org.slf4j.api
+ org.slf4j.api,
+ org.simantics.scenegraph;bundle-version="1.1.1"
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
Bundle-ActivationPolicy: lazy
Export-Package: org.simantics.g3d.vtk.action,
import org.simantics.g3d.scenegraph.RenderListener;
import org.simantics.g3d.vtk.action.vtkAction;
import org.simantics.g3d.vtk.common.VtkView;
+import org.simantics.scenegraph.utils.DPIUtil;
import org.simantics.utils.threads.AWTThread;
import org.simantics.utils.threads.IThreadWorkQueue;
}
public void setSize(int x, int y) {
+ super.setSize(x, y);
+ }
+
+ public void _setSize(int x, int y) {
+ System.out.println(this.getClass().getSimpleName() + " " + windowset + " setSize " +x + " " + y);
if (windowset == 1) {
+
Lock();
rw.SetSize(x, y);
iren.SetSize(x, y);
iren.ConfigureEvent();
UnLock();
+ } else {
+ if (x > 1000)
+ System.out.println();
}
}
+
+ @Override
+ public void setBounds(int x, int y, int width, int height) {
+ super.setBounds(x, y, width, height);
+ _setSize(width, height);
+ }
private vtkScenePicker scenePicker;
repaint();
}
+ @Override
+ public double upscale(double d) {
+ return DPIUtil.upscale(d);
+ }
+
+ @Override
+ public int upscale(int i) {
+ return DPIUtil.upscale(i);
+ }
+
}
import java.util.List;
import org.eclipse.core.runtime.Platform;
+import org.eclipse.swt.internal.DPIUtil;
import org.eclipse.swt.widgets.Composite;
import org.simantics.g3d.scenegraph.RenderListener;
import org.simantics.g3d.vtk.action.vtkAction;
return null;
}
+ @Override
+ public int upscale(int i) {
+ return DPIUtil.autoScaleUp(i);
+ }
+
+ @Override
+ public double upscale(double d) {
+ return (double)DPIUtil.autoScaleUp((float)d);
+ }
+
}