public class STLMeshIO extends AbstractIOPlugin<Mesh> implements MeshIOPlugin
| Modifier and Type | Field and Description |
|---|---|
static int |
COUNT_BYTES |
static int |
FACET_BYTES |
static int |
FACET_START |
static String |
HEADER |
static int |
HEADER_BYTES |
| Constructor and Description |
|---|
STLMeshIO() |
| Modifier and Type | Method and Description |
|---|---|
Mesh |
open(String source) |
void |
read(Mesh mesh,
byte[] data) |
void |
read(Mesh mesh,
File stlFile) |
void |
save(Mesh data,
String destination) |
boolean |
supports(File file) |
boolean |
supportsOpen(String source) |
boolean |
supportsSave(String source) |
byte[] |
write(Mesh mesh)
Writes the facets into a byte[] that can then be saved into a file
|
supportsgetInfo, getPriority, setInfo, setPriority, toStringcontext, getContextclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetDataTypegetType, open, save, supports, supportsOpen, supportsSave, supportsSave, supportsSavegetIdentifier, logcontext, getContext, setContextcompareTo, getPriority, setPrioritygetInfo, setInfogetLocationgetVersionpublic static final int HEADER_BYTES
public static final String HEADER
public static final int COUNT_BYTES
public static final int FACET_START
public static final int FACET_BYTES
public void read(Mesh mesh, byte[] data)
public byte[] write(Mesh mesh)
public void read(Mesh mesh, File stlFile) throws IOException
IOExceptionpublic boolean supports(File file)
public boolean supportsOpen(String source)
supportsOpen in interface IOPlugin<Mesh>supportsOpen in class AbstractIOPlugin<Mesh>public boolean supportsSave(String source)
supportsSave in interface IOPlugin<Mesh>supportsSave in class AbstractIOPlugin<Mesh>public Mesh open(String source) throws IOException
open in interface IOPlugin<Mesh>open in class AbstractIOPlugin<Mesh>IOExceptionpublic void save(Mesh data, String destination) throws IOException
save in interface IOPlugin<Mesh>save in class AbstractIOPlugin<Mesh>IOExceptionCopyright © 2014–2022 ImageJ. All rights reserved.