Skip to content

Commit

Permalink
Refactor LibLaserCut: Move properties into separate package (#725)
Browse files Browse the repository at this point in the history
Move laser properties into separate package

This cleanup makes working with them more convenient.
  • Loading branch information
TheAssassin authored Apr 26, 2024
1 parent b407646 commit f6ca970
Show file tree
Hide file tree
Showing 13 changed files with 19 additions and 17 deletions.
2 changes: 1 addition & 1 deletion LibLaserCut
Submodule LibLaserCut updated 45 files
+4 −0 src/main/java/de/thomas_oster/liblasercut/LaserCutter.java
+2 −0 src/main/java/de/thomas_oster/liblasercut/Raster3dPart.java
+2 −0 src/main/java/de/thomas_oster/liblasercut/RasterBuilder.java
+2 −0 src/main/java/de/thomas_oster/liblasercut/RasterPart.java
+2 −0 src/main/java/de/thomas_oster/liblasercut/RasterizableJobPart.java
+2 −0 src/main/java/de/thomas_oster/liblasercut/VectorCommand.java
+2 −0 src/main/java/de/thomas_oster/liblasercut/VectorPart.java
+2 −2 src/main/java/de/thomas_oster/liblasercut/drivers/Dummy.java
+4 −1 src/main/java/de/thomas_oster/liblasercut/drivers/EpilogCutter.java
+1 −1 src/main/java/de/thomas_oster/liblasercut/drivers/EpilogEngraveProperty.java
+1 −1 src/main/java/de/thomas_oster/liblasercut/drivers/FloatPowerSpeedProperty.java
+1 −1 src/main/java/de/thomas_oster/liblasercut/drivers/FullSpectrumCutter.java
+71 −10 src/main/java/de/thomas_oster/liblasercut/drivers/GenericGcodeDriver.java
+1 −1 src/main/java/de/thomas_oster/liblasercut/drivers/GoldCutHPGL.java
+1 −1 src/main/java/de/thomas_oster/liblasercut/drivers/IModelaMill.java
+1 −1 src/main/java/de/thomas_oster/liblasercut/drivers/IModelaProperty.java
+3 −3 src/main/java/de/thomas_oster/liblasercut/drivers/K3EngraverDriver.java
+3 −3 src/main/java/de/thomas_oster/liblasercut/drivers/K40NanoDriver.java
+1 −1 src/main/java/de/thomas_oster/liblasercut/drivers/LaosCutter.java
+1 −1 src/main/java/de/thomas_oster/liblasercut/drivers/LaosCutterProperty.java
+1 −1 src/main/java/de/thomas_oster/liblasercut/drivers/LaosEngraveProperty.java
+1 −2 src/main/java/de/thomas_oster/liblasercut/drivers/LaserToolsTechnicsCutter.java
+1 −1 src/main/java/de/thomas_oster/liblasercut/drivers/Lasersaur.java
+1 −1 src/main/java/de/thomas_oster/liblasercut/drivers/MakeBlockXYPlotterProperty.java
+53 −51 src/main/java/de/thomas_oster/liblasercut/drivers/Ruida.java
+2 −2 src/main/java/de/thomas_oster/liblasercut/drivers/SampleDriver.java
+2 −2 src/main/java/de/thomas_oster/liblasercut/examples/PhotoPrint.java
+1 −1 src/main/java/de/thomas_oster/liblasercut/laserscript/VectorPartScriptInterface.java
+1 −1 src/main/java/de/thomas_oster/liblasercut/properties/AbstractLaserProperty.java
+2 −3 src/main/java/de/thomas_oster/liblasercut/properties/FloatMinMaxPowerSpeedFrequencyProperty.java
+1 −1 src/main/java/de/thomas_oster/liblasercut/properties/FloatPowerSpeedFocusFrequencyProperty.java
+1 −1 src/main/java/de/thomas_oster/liblasercut/properties/FloatPowerSpeedFocusProperty.java
+1 −1 src/main/java/de/thomas_oster/liblasercut/properties/FloatPowerSpeedFrequencyProperty.java
+3 −1 src/main/java/de/thomas_oster/liblasercut/properties/LaserProperty.java
+1 −1 src/main/java/de/thomas_oster/liblasercut/properties/PowerSpeedFocusFrequencyProperty.java
+1 −1 src/main/java/de/thomas_oster/liblasercut/properties/PowerSpeedFocusProperty.java
+1 −1 src/main/java/de/thomas_oster/liblasercut/vectoroptimizers/OptimizerUtils.java
+1 −1 src/main/java/de/thomas_oster/liblasercut/vectoroptimizers/VectorOptimizer.java
+3 −0 src/test/java/de/thomas_oster/liblasercut/RasterizableJobPartTest.java
+1 −1 src/test/java/de/thomas_oster/liblasercut/drivers/AllDriversTest.java
+1 −1 src/test/java/de/thomas_oster/liblasercut/drivers/EpilogHelixCutterTest.java
+1 −1 src/test/java/de/thomas_oster/liblasercut/drivers/EpilogZingCutterTest.java
+1 −1 src/test/java/de/thomas_oster/liblasercut/drivers/LaserCutterTest.java
+2 −4 src/test/java/de/thomas_oster/liblasercut/laserscript/ScriptInterpreterTest.java
+1 −1 src/test/java/de/thomas_oster/liblasercut/vectoroptimizers/InnerFirstVectorOptimizerTest.java
2 changes: 1 addition & 1 deletion src/main/java/de/thomas_oster/visicut/VisicutModel.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import de.thomas_oster.liblasercut.IllegalJobException;
import de.thomas_oster.liblasercut.LaserCutter;
import de.thomas_oster.liblasercut.LaserJob;
import de.thomas_oster.liblasercut.LaserProperty;
import de.thomas_oster.liblasercut.properties.LaserProperty;
import de.thomas_oster.liblasercut.ProgressListener;
import de.thomas_oster.liblasercut.ProgressListenerDummy;
import de.thomas_oster.liblasercut.VectorPart;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

import de.thomas_oster.liblasercut.LaserCutter;
import de.thomas_oster.liblasercut.LaserJob;
import de.thomas_oster.liblasercut.LaserProperty;
import de.thomas_oster.liblasercut.properties.LaserProperty;
import de.thomas_oster.liblasercut.VectorPart;
import de.thomas_oster.liblasercut.platform.Util;
import de.thomas_oster.visicut.VisicutModel;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/thomas_oster/visicut/gui/MainView.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import com.frochr123.periodictasks.RefreshCameraThread;
import de.thomas_oster.liblasercut.IllegalJobException;
import de.thomas_oster.liblasercut.LaserCutter;
import de.thomas_oster.liblasercut.LaserProperty;
import de.thomas_oster.liblasercut.properties.LaserProperty;
import de.thomas_oster.liblasercut.ProgressListener;
import de.thomas_oster.liblasercut.platform.Util;
import de.thomas_oster.uicomponents.PlatformIcon;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/de/thomas_oster/visicut/gui/VisicutApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
package de.thomas_oster.visicut.gui;

import de.thomas_oster.liblasercut.LaserCutter;
import de.thomas_oster.liblasercut.LaserProperty;
import de.thomas_oster.liblasercut.properties.LaserProperty;
import de.thomas_oster.liblasercut.LibInfo;
import de.thomas_oster.liblasercut.ProgressListener;
import de.thomas_oster.visicut.VisicutModel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
**/
package de.thomas_oster.visicut.gui.propertypanel;

import de.thomas_oster.liblasercut.LaserProperty;
import de.thomas_oster.liblasercut.properties.LaserProperty;
import de.thomas_oster.liblasercut.platform.Util;
import java.util.List;
import javax.swing.table.DefaultTableModel;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
**/
package de.thomas_oster.visicut.gui.propertypanel;

import de.thomas_oster.liblasercut.LaserProperty;
import de.thomas_oster.liblasercut.properties.LaserProperty;
import de.thomas_oster.visicut.VisicutModel;
import de.thomas_oster.visicut.managers.LaserPropertyManager;
import de.thomas_oster.visicut.model.LaserDevice;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
**/
package de.thomas_oster.visicut.gui.propertypanel;

import de.thomas_oster.liblasercut.LaserProperty;
import de.thomas_oster.liblasercut.properties.LaserProperty;
import de.thomas_oster.uicomponents.EditableTableProvider;
import de.thomas_oster.visicut.VisicutModel;
import de.thomas_oster.visicut.model.LaserDevice;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
**/
package de.thomas_oster.visicut.managers;

import de.thomas_oster.liblasercut.LaserProperty;
import de.thomas_oster.liblasercut.PowerSpeedFocusProperty;
import de.thomas_oster.liblasercut.properties.LaserProperty;
import de.thomas_oster.liblasercut.properties.PowerSpeedFocusProperty;
import de.thomas_oster.liblasercut.properties.FloatPowerSpeedFocusFrequencyProperty;
import de.thomas_oster.liblasercut.properties.PowerSpeedFocusFrequencyProperty;
import de.thomas_oster.visicut.misc.Helper;
import de.thomas_oster.visicut.model.LaserDevice;
import de.thomas_oster.visicut.model.LaserProfile;
Expand Down Expand Up @@ -169,9 +171,9 @@ protected XStream getXStream()
//fix old class references
xstream.aliasPackage("com.t_oster", "de.thomas_oster");
xstream.alias("LaosCutterProperty", de.thomas_oster.liblasercut.drivers.LaosCutterProperty.class);
xstream.alias("FloatPowerSpeedFocusFrequencyProperty", de.thomas_oster.liblasercut.FloatPowerSpeedFocusFrequencyProperty.class);
xstream.alias("PowerSpeedFocusFrequencyProperty", de.thomas_oster.liblasercut.PowerSpeedFocusFrequencyProperty.class);
xstream.alias("PowerSpeedFocusProperty", de.thomas_oster.liblasercut.PowerSpeedFocusProperty.class);
xstream.alias("FloatPowerSpeedFocusFrequencyProperty", FloatPowerSpeedFocusFrequencyProperty.class);
xstream.alias("PowerSpeedFocusFrequencyProperty", PowerSpeedFocusFrequencyProperty.class);
xstream.alias("PowerSpeedFocusProperty", PowerSpeedFocusProperty.class);
}
return xstream;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import de.thomas_oster.liblasercut.LaserCutter;
import de.thomas_oster.liblasercut.LaserJob;
import de.thomas_oster.liblasercut.LaserProperty;
import de.thomas_oster.liblasercut.properties.LaserProperty;
import de.thomas_oster.liblasercut.platform.Util;
import de.thomas_oster.uicomponents.ImageListable;
import de.thomas_oster.visicut.misc.Helper;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import de.thomas_oster.liblasercut.LaserCutter;
import de.thomas_oster.liblasercut.LaserJob;
import de.thomas_oster.liblasercut.LaserProperty;
import de.thomas_oster.liblasercut.properties.LaserProperty;
import de.thomas_oster.liblasercut.ProgressListener;
import de.thomas_oster.liblasercut.Raster3dPart;
import de.thomas_oster.liblasercut.platform.Point;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
import de.thomas_oster.liblasercut.BlackWhiteRaster;
import de.thomas_oster.liblasercut.LaserCutter;
import de.thomas_oster.liblasercut.LaserJob;
import de.thomas_oster.liblasercut.LaserProperty;
import de.thomas_oster.liblasercut.properties.LaserProperty;
import de.thomas_oster.liblasercut.ProgressListener;
import de.thomas_oster.liblasercut.RasterPart;
import de.thomas_oster.liblasercut.dithering.DitheringAlgorithm;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

import de.thomas_oster.liblasercut.LaserCutter;
import de.thomas_oster.liblasercut.LaserJob;
import de.thomas_oster.liblasercut.LaserProperty;
import de.thomas_oster.liblasercut.properties.LaserProperty;
import de.thomas_oster.liblasercut.VectorPart;
import de.thomas_oster.liblasercut.platform.Util;
import de.thomas_oster.liblasercut.utils.ShapeConverter;
Expand Down

0 comments on commit f6ca970

Please sign in to comment.