Package mgui.io.foreign.caret
Class CaretPaintWriter
java.lang.Object
mgui.io.FileWriter
mgui.io.domestic.shapes.SurfaceDataFileWriter
mgui.io.foreign.caret.CaretPaintWriter
- All Implemented Interfaces:
InterfaceIO,IconObject
public class CaretPaintWriter extends SurfaceDataFileWriter
Writes a set of vertex-wise data columns to Caret paint files, binary format version 1.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields inherited from class mgui.io.FileWriter
dataFile, dataURL, failure_message, options, success_message -
Constructor Summary
Constructors Constructor Description CaretPaintWriter() -
Method Summary
Modifier and Type Method Description protected NameMapgetDefaultNameMap(Mesh3DInt mesh, java.lang.String column)voidsetFormat(java.lang.String format)booleanwrite(InterfaceIOOptions options, ProgressUpdater progress_bar)Writes this object according to the givenoptions.protected booleanwriteHeader(SurfaceDataOutputOptions options, java.lang.String column)booleanwriteValues(java.util.ArrayList<MguiNumber> values, ProgressUpdater progressBar)Overridden fromSurfaceDataFileWriter.booleanwriteValues(SurfaceDataOutputOptions options, java.lang.String column, ProgressUpdater progressBar)Methods inherited from class mgui.io.domestic.shapes.SurfaceDataFileWriter
getFailureMessage, getObjectIcon, getSuccessMessage, getSupportedObjects, getTitle, writeValuesMethods inherited from class mgui.io.FileWriter
getComplementIOType, getFile, getIOType, getLoaderComplement, getOptions, getProgressMessage, getURL, setFile, setOptions, setURL, toString, write, writeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
CaretPaintWriter
public CaretPaintWriter()
-
-
Method Details
-
setFormat
public void setFormat(java.lang.String format)- Specified by:
setFormatin classSurfaceDataFileWriter
-
write
Description copied from class:FileWriterWrites this object according to the givenoptions. If loaded object is of typePersistentObject, this method should also set the file writer and reference URL for the object.- Overrides:
writein classSurfaceDataFileWriter- Returns:
-
writeValues
public boolean writeValues(SurfaceDataOutputOptions options, java.lang.String column, ProgressUpdater progressBar) -
writeValues
Overridden fromSurfaceDataFileWriter. In the case of this writer, however, one should only use thewriteValues(SurfaceDataOutputOptions options, String column, ProgressUpdater progressBar)andwrite(InterfaceIOOptions options, ProgressUpdater progress_bar)methods, as this format requires a header to be written in additional to vertex values. Used on its own, this method will do nothing and will always returnfalse.- Specified by:
writeValuesin classSurfaceDataFileWriter- Parameters:
values- the values to writeprogressBar- the progress updater (not utilized here)
-
writeHeader
-
getDefaultNameMap
-