Package mgui.io.domestic.shapes
Class VolumeFileDataSource
java.lang.Object
mgui.io.domestic.shapes.VolumeFileDataSource
- All Implemented Interfaces:
InterfaceDataSource<MguiDouble>
public class VolumeFileDataSource extends java.lang.Object implements InterfaceDataSource<MguiDouble>
Acts as a data source for volume files.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
-
Field Summary
Fields Modifier and Type Field Description protected VolumeFileLoader
loader
protected java.util.ArrayList<DataSourceListener>
sourceListeners
-
Constructor Summary
Constructors Constructor Description VolumeFileDataSource(VolumeFileLoader loader)
-
Method Summary
Modifier and Type Method Description void
addDataSourceListener(DataSourceListener l)
protected void
fireListeners()
java.util.List<MguiDouble>
getSourceSignal()
Returns a list of typeT
, representing a signal emission.byte[]
getSourceSignalAsBytes()
Returns an array of bytes, representing a signal emission.protected java.util.List<MguiDouble>
getSourceSignalAsDouble(Volume3DInt volume)
protected byte[]
getVolumeAsBytes(Volume3DInt volume)
void
removeDataSourceListener(DataSourceListener l)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
loader
-
sourceListeners
-
-
Constructor Details
-
VolumeFileDataSource
-
-
Method Details
-
addDataSourceListener
- Specified by:
addDataSourceListener
in interfaceInterfaceDataSource<MguiDouble>
-
removeDataSourceListener
- Specified by:
removeDataSourceListener
in interfaceInterfaceDataSource<MguiDouble>
-
getSourceSignalAsBytes
public byte[] getSourceSignalAsBytes()Description copied from interface:InterfaceDataSource
Returns an array of bytes, representing a signal emission.- Specified by:
getSourceSignalAsBytes
in interfaceInterfaceDataSource<MguiDouble>
- Returns:
-
getVolumeAsBytes
-
getSourceSignal
Description copied from interface:InterfaceDataSource
Returns a list of typeT
, representing a signal emission.- Specified by:
getSourceSignal
in interfaceInterfaceDataSource<MguiDouble>
- Returns:
-
getSourceSignalAsDouble
-
fireListeners
protected void fireListeners()
-