
com.neuronrobotics.replicator.driver.StlSlicer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-bowler Show documentation
Show all versions of java-bowler Show documentation
A command line utility for accesing the bowler framework.
The newest version!
package com.neuronrobotics.replicator.driver;
import java.io.File;
import java.util.ArrayList;
// TODO: Auto-generated Javadoc
/**
* The Class StlSlicer.
*/
public class StlSlicer {
/** The listeners. */
private ArrayList listeners = new ArrayList();
/**
* Instantiates a new stl slicer.
*
* @param materialData the material data
*/
public StlSlicer(MaterialData materialData) {
//This is the stub class for the stl slicing system.
}
/**
* Slice.
*
* @param stl the stl
* @param gcode the gcode
* @return true, if successful
*/
public boolean slice(File stl,File gcode) {
return true;
}
/**
* Fire status.
*
* @param p the p
*/
protected void fireStatus(SliceStatusData p) {
for(PrinterStatusListener l: listeners) {
l.sliceStatus(p);
}
}
/**
* Adds the printer status listener.
*
* @param l the l
*/
public void addPrinterStatusListener(PrinterStatusListener l) {
if(!listeners.contains(l))
listeners.add(l);
}
/**
* Removes the printer status listener.
*
* @param l the l
*/
public void removePrinterStatusListener(PrinterStatusListener l) {
if(listeners.contains(l))
listeners.remove(l);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy