public class ImportSTLTool extends Tool implements FileDialogDelegate
application, objectContainer, view
Constructor and Description |
---|
ImportSTLTool(CutCADApplet application,
ObjectContainer container) |
Modifier and Type | Method and Description |
---|---|
boolean |
canStaySelected()
Return whether this tool can be selected for a longer time (such as the drawing tools or select tool)
or whether it is a click-and-forget-tool (such as the save, load or new tool).
|
void |
fileWasSelected(java.io.File theFile) |
java.lang.String |
getIconName()
Return the name of the SVG for the icon for the tool.
|
private toxi.geom.mesh.TriangleMesh |
importMeshFromPath(java.lang.String thePath) |
void |
toolWasSelected()
Will be called by the application when this tool was selected.
|
draw2D, getButton, mouseButtonPressed, mouseButtonReleased, mouseMoved, toolWasUnselected
public ImportSTLTool(CutCADApplet application, ObjectContainer container)
application
- the main class of the projectcontainer
- the currently loaded ObjectContainerpublic java.lang.String getIconName()
Tool
getIconName
in class Tool
public void toolWasSelected()
Tool
toolWasSelected
in class Tool
public boolean canStaySelected()
Tool
canStaySelected
in class Tool
public void fileWasSelected(java.io.File theFile)
fileWasSelected
in interface FileDialogDelegate
private toxi.geom.mesh.TriangleMesh importMeshFromPath(java.lang.String thePath)