use of com.willwinder.ugs.nbp.designer.model.Settings in project Universal-G-Code-Sender by winder.
the class SettingsV1 method toInternal.
public Settings toInternal() {
Settings settings = new Settings();
settings.setSafeHeight(safeHeight);
settings.setPreferredUnits(preferredUnits);
settings.setToolStepOver(toolStepOver);
settings.setToolDiameter(toolDiameter);
settings.setStockThickness(stockThickness);
settings.setPlungeSpeed(plungeSpeed);
settings.setDepthPerPass(depthPerPass);
settings.setFeedSpeed(feedSpeed);
settings.setSpindleSpeed(spindleSpeed);
return settings;
}
use of com.willwinder.ugs.nbp.designer.model.Settings in project Universal-G-Code-Sender by winder.
the class ToolSettingsPanel method getSettings.
public Settings getSettings() {
Settings settings = new Settings();
settings.applySettings(controller.getSettings());
settings.setSafeHeight(getSafeHeight());
settings.setDepthPerPass(getDepthPerPass());
settings.setFeedSpeed(getFeedSpeed());
settings.setToolDiameter(getToolDiameter());
settings.setToolStepOver(getStepOver());
settings.setPlungeSpeed(getPlungeSpeed());
settings.setSpindleSpeed(getSpindleSpeed());
return settings;
}
use of com.willwinder.ugs.nbp.designer.model.Settings in project Universal-G-Code-Sender by winder.
the class UgsDesignReaderTest method convertEntityToString.
private String convertEntityToString(Entity entity) {
when(controller.getSettings()).thenReturn(new Settings());
when(controller.getDrawing()).thenReturn(drawing);
EntityGroup group = new EntityGroup();
group.addChild(entity);
when(drawing.getRootEntity()).thenReturn(group);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
UgsDesignWriter writer = new UgsDesignWriter();
writer.write(baos, controller);
return new String(baos.toByteArray());
}
Aggregations