Skip to content

Commit

Permalink
Clean up another obsolete property
Browse files Browse the repository at this point in the history
  • Loading branch information
TheAssassin committed Apr 20, 2024
1 parent 8869625 commit f26c6c9
Showing 1 changed file with 6 additions and 24 deletions.
30 changes: 6 additions & 24 deletions src/main/java/de/thomas_oster/liblasercut/drivers/Ruida.java
Original file line number Diff line number Diff line change
Expand Up @@ -180,36 +180,18 @@ public boolean canEstimateJobDuration()
return false;
}

@Override
public double getRasterPadding() {
return 0;
}

@Override
public boolean getRasterPaddingAllowOutsideMachineSpace() {
return false;
}

/**
* When rastering, whether to always cut from left to right, or to cut in both
* directions? (i.e. use the return stroke to raster as well)
*/
// Kept to retain compatibility with older configs
@Deprecated
protected transient boolean useBidirectionalRastering = true;
@Deprecated
private transient Double rasterPadding = 0.;
@Deprecated
private transient boolean allowOutsidePadding;

public boolean getUseBidirectionalRastering()
{
// currently only bidirectional rastering is supported (work mode has to be tested for unidirectional rastering)
return true;
}

public void setUseBidirectionalRastering(boolean useBidirectionalRastering)
{
this.useBidirectionalRastering = useBidirectionalRastering;
// fixed value of 0 because the sweep move adds all necessary padding
@Override
public double getRasterPadding() {
return 0;
}

private void find_and_write_bounding_box(LaserJob job) throws IOException
Expand Down Expand Up @@ -587,7 +569,7 @@ public void writeJobCode(LaserJob job, ProgressListener pl) throws IOException {
if ((p instanceof RasterPart) || (p instanceof Raster3dPart))
{
engrave = true;
p = convertRasterizableToVectorPart((RasterizableJobPart)p, job, getUseBidirectionalRastering(), true, true);
p = convertRasterizableToVectorPart((RasterizableJobPart)p, job, true, true, true);
}
/* FALLTHRU */
if (p instanceof VectorPart)
Expand Down

0 comments on commit f26c6c9

Please sign in to comment.