public class LaserJobCreator
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
(package private) LaserCutter |
device
Stores the lasercutter to be used for this print job
|
private com.t_oster.liblasercut.VectorPart |
engravevp
Stores the engrave vector part of the laserjob.
|
private com.t_oster.liblasercut.drivers.EpilogHelix |
epilogHelix
If an Epilog Helix is used, this object is instantiated and used to send to print job
|
private com.t_oster.liblasercut.drivers.EpilogZing |
epilogZing
If an Epilog Zing is used, this object is instantiated and used to send to print job
|
private com.t_oster.liblasercut.drivers.LaosCutter |
laosCutter
If a Laos cutter is used, this object is instantiated and used to send to print job
|
private com.t_oster.liblasercut.drivers.Lasersaur |
lasersaur
If a lasersaur is used, this object is instantiated and used to send to print job
|
private com.t_oster.liblasercut.RasterPart |
rp
Stores the vector part of the laserjob, not yet used.
|
private com.t_oster.liblasercut.VectorPart |
vp
Stores the cut through vector part of the laserjob.
|
| Constructor and Description |
|---|
LaserJobCreator() |
| Modifier and Type | Method and Description |
|---|---|
void |
addVerticesToVectorPart(java.util.List<Vector2D> newVertices)
Adds the vertices to the cut through vector part of the laser job.
|
void |
newEngraveVectorPart(int DPI,
int power,
int speed,
float focus,
int frequency)
Creates a new object that entails vector commands which can be send to a laser cutter
to engrave material.
|
void |
newVectorPart(int DPI,
int power,
int speed,
float focus,
int frequency)
Creates a new object that entails vector commands which can be send to a laser cutter
to cut through material.
|
void |
sendLaserjob(java.lang.String name)
Sends the laserjob to the lasercutter.
|
void |
setLaserCutter(LaserCutter device,
java.lang.String ipAddress)
This method sets the lasercutter and its address for the printjob.
|
private com.t_oster.liblasercut.drivers.EpilogZing epilogZing
private com.t_oster.liblasercut.drivers.EpilogHelix epilogHelix
private com.t_oster.liblasercut.drivers.LaosCutter laosCutter
private com.t_oster.liblasercut.drivers.Lasersaur lasersaur
LaserCutter device
private com.t_oster.liblasercut.RasterPart rp
private com.t_oster.liblasercut.VectorPart vp
private com.t_oster.liblasercut.VectorPart engravevp
public void setLaserCutter(LaserCutter device, java.lang.String ipAddress)
device - A simulation of an enum containing the lasercutter to be usedipAddress - This is the address of the lasercutter. This can be an hostname, ipaddress or an portpublic void newVectorPart(int DPI,
int power,
int speed,
float focus,
int frequency)
DPI - the DPI setting with which this vectorpart will be cutpower - the power needed to cut through the materialspeed - the speed suitable for the material to be cutfocus - the focus setting suitable for the material to be cutfrequency - the frequency of the laser suitable to cut through the materialpublic void newEngraveVectorPart(int DPI,
int power,
int speed,
float focus,
int frequency)
DPI - the DPI setting with which this vectorpart will be engravedpower - the power suitable for engraving the materialspeed - the speed suitable for the material to be engravedfocus - the focus setting suitable for the material to be engravedfrequency - the frequency of the laser suitable to engrave the materialpublic void addVerticesToVectorPart(java.util.List<Vector2D> newVertices)
newVertices - A list of vertices which will be added to the cut through vector part as close shapepublic void sendLaserjob(java.lang.String name)
name - the name of the laser job as displayed on the laser cutter