Package mgui.io.foreign.caret
Class CaretPaintLoader
java.lang.Object
mgui.io.FileLoader
mgui.io.domestic.shapes.SurfaceDataFileLoader
mgui.io.foreign.caret.CaretPaintLoader
- All Implemented Interfaces:
InterfaceIO
,IconObject
public class CaretPaintLoader extends SurfaceDataFileLoader
Loads a Caret Paint file
From Caret site:
tag-version 1
tag-number-of-nodes 71723
tag-number-of-columns 5
tag-title
tag-number-of-paint-names 148
tag-column-name 0 Lobes
tag-column-name 1 Geography
tag-column-name 2 Functional Stuff
tag-column-name 3 Brodmann
tag-column-name 4 Modality
tag-BEGIN-DATA
0 ???
1 SUL
2 DEEP_SUL
...
147 AREA.MTplus
0 58 0 0 100 42
1 58 0 0 100 42
2 58 0 0 82 134
...
71722 21 0 0 0 128
TODO: accommodate versions
- Version:
- 1.0
- Author:
- Andrew Reid
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
CaretPaintLoader.Header
-
Field Summary
Fields inherited from class mgui.io.FileLoader
dataFile, dataURL, options
-
Constructor Summary
Constructors Constructor Description CaretPaintLoader()
CaretPaintLoader(java.io.File file)
CaretPaintLoader(java.net.URL url)
-
Method Summary
Modifier and Type Method Description CaretPaintLoader.Header
getHeader()
boolean
load(InterfaceIOOptions options, ProgressUpdater progress_bar)
Loads data from the set of files or URLs specified byoptions
.java.util.ArrayList<java.util.ArrayList<MguiNumber>>
loadAllValues()
protected void
loadHeader()
java.util.ArrayList<MguiNumber>
loadValues(ProgressUpdater progress_bar)
Methods inherited from class mgui.io.domestic.shapes.SurfaceDataFileLoader
getFailureMessage, getObjectIcon, getSuccessMessage, getSupportedObjects, getTitle, loadObject, loadValues
Methods inherited from class mgui.io.FileLoader
getComplementIOType, getFile, getIOType, getOptions, getProgressMessage, getWriterComplement, load, load, loadObject, loadObject, loadObject, setFile, setOptions, setURL, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Constructor Details
-
CaretPaintLoader
public CaretPaintLoader() -
CaretPaintLoader
public CaretPaintLoader(java.io.File file) -
CaretPaintLoader
public CaretPaintLoader(java.net.URL url)
-
-
Method Details
-
getHeader
-
loadValues
- Specified by:
loadValues
in classSurfaceDataFileLoader
-
load
Description copied from class:FileLoader
Loads data from the set of files or URLs specified byoptions
. Loading is controlled by the specifications ofoptions
. If loaded object is of typePersistentObject
, this method should also set the file loader and reference URL for the object.This method should also set the URL reference and writer and loader attributes to match this one and its complement.
- Overrides:
load
in classSurfaceDataFileLoader
progress_bar
- An optional progress updater. Can benull
.- Returns:
-
loadAllValues
-
loadHeader
protected void loadHeader()
-