|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.jhu.ece.iacl.jist.pipeline.PipePort<T> edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel<java.util.List> edu.jhu.ece.iacl.jist.pipeline.parameter.ParamFileCollection edu.jhu.ece.iacl.jist.pipeline.parameter.ParamVolumeCollection edu.jhu.ece.iacl.jist.pipeline.parameter.ParamWeightedVolumeCollection<T>
public class ParamWeightedVolumeCollection<T>
Weighted volumes stores a collection of cubic volumes and weights associated with each volume.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort |
---|
PipePort.PortListener, PipePort.type |
Field Summary | |
---|---|
protected java.util.ArrayList<ParamFile> |
cachedParams
Cache of old weighted volumes |
protected ParamModel<T> |
prototype
Prototype class for weights |
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamVolumeCollection |
---|
cols, components, rows, slices, type |
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamFileCollection |
---|
extensionFilter, fileParams, mandatory, readerWriter |
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel |
---|
cliTag, description, factory, hidden, label, loadAndSaveOnValidate, shortLabel |
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort |
---|
connectible, gport, incomingConnectors, listeners, maxIncoming, maxOutgoing, outgoingConnectors, owner, portType, useWire |
Constructor Summary | |
---|---|
ParamWeightedVolumeCollection()
Construct a new weighted volume collection with no restrictions. |
|
ParamWeightedVolumeCollection(java.lang.String name,
ParamModel<T> prototype)
Construct a new weighted volume collection with specified restrictions. |
|
ParamWeightedVolumeCollection(java.lang.String name,
ParamModel<T> prototype,
VoxelType type)
Construct a new weighted volume collection with specified restrictions. |
|
ParamWeightedVolumeCollection(java.lang.String name,
ParamModel<T> prototype,
VoxelType type,
int rows,
int cols,
int slices,
int components)
Construct a new weighted volume collection with specified restrictions. |
|
ParamWeightedVolumeCollection(VoxelType type,
ParamModel<T> prototype)
Construct a new weighted volume collection with specified restrictions. |
|
ParamWeightedVolumeCollection(VoxelType type,
ParamModel<T> prototype,
int rows,
int cols,
int slices,
int components)
Construct a new weighted volume collection with specified restrictions. |
Method Summary | |
---|---|
void |
addWeightedVolume()
|
void |
clear()
Clear list and add members to cache |
ParamWeightedVolumeCollection<T> |
clone()
Clone object. |
ParamWeightedVolume<T> |
create(java.lang.Object value)
A new ParamWeightedVolume is created with the value set to the specified value. |
ParamModel<T> |
getPrototype()
|
T |
getWeight(int i)
Get the volume weight for the specified volume index. |
ParamWeightedVolume<T> |
getWeightedImage(int i)
Construct a new weighted volume collection with specified restrictions. |
java.util.ArrayList<T> |
getWeightList()
Get list of weights |
java.lang.String |
getXMLValue()
|
void |
init()
Initialize parameter. |
void |
setPrototype(ParamModel<T> prototype)
|
void |
setUseConnector(boolean useWire)
Indicate that this port should use a connector instead of a default value. |
void |
setWeight(int i,
T weight)
Set the volume weight for the specified volume index. |
void |
setXMLValue(java.lang.String arg)
|
java.lang.String |
toString()
Get description of volumes. |
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamVolumeCollection |
---|
add, compareTo, getCols, getComponents, getFileList, getImageDataList, getImageNames, getParamVolume, getParamVolumeList, getRows, getSlices, getType, getValue, getValue, isCompatible, size, validate, writeAndFreeNow |
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamFileCollection |
---|
add, clean, getExtensionFilter, getHumanReadableDataType, getParameters, getReaderWriter, isMandatory, probeDefaultValue, replacePath, set, set, setCollection, setExtensionFilter, setMandatory, setReaderWriter, setValue |
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel |
---|
createMipavParameter, createTreeNode, dispose, equals, getCliTag, getDescription, getFactory, getInputView, getLabel, getName, getOutputView, getShortLabel, getView, hide, importMipavParameter, importParameter, isConnectible, isHidden, loadResources, loadResources, read, read, saveResources, setCliTag, setDescription, setFactory, setHidden, setInputView, setLabel, setLoadAndSaveOnValidate, setName, setOutputView, setShortLabel, toXML, write, write |
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort |
---|
addListener, disconnect, disconnect, disconnect, disconnect, getGraphPort, getIncomingConnector, getIncomingConnectors, getIncomingPorts, getListeners, getMaxIncoming, getMaxOutgoing, getOutgoingConnector, getOutgoingConnectors, getOutgoingPorts, getOwner, getPortType, isConnected, isConnectedTo, isInputPort, isOutputPort, notifyListenersOfConnection, notifyListenersOfDisconnection, removeAllListeners, removeListener, setConnectable, setGraphPort, setMaxIncoming, setMaxOutgoing, setOwner, setPortType, usingConnector |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected ParamModel<T> prototype
protected transient java.util.ArrayList<ParamFile> cachedParams
Constructor Detail |
---|
public ParamWeightedVolumeCollection()
public ParamWeightedVolumeCollection(java.lang.String name, ParamModel<T> prototype)
name
- parameter namepublic ParamWeightedVolumeCollection(java.lang.String name, ParamModel<T> prototype, VoxelType type)
name
- parameter nametype
- voxel type restrictionpublic ParamWeightedVolumeCollection(java.lang.String name, ParamModel<T> prototype, VoxelType type, int rows, int cols, int slices, int components)
name
- parameter nametype
- voxel type restrictionrows
- rows restrictionslices
- slices restrictioncols
- columns restrictioncomponents
- components restrictionpublic ParamWeightedVolumeCollection(VoxelType type, ParamModel<T> prototype)
type
- voxel type restrictionpublic ParamWeightedVolumeCollection(VoxelType type, ParamModel<T> prototype, int rows, int cols, int slices, int components)
type
- voxel type restrictionrows
- rows restrictionslices
- slices restrictioncols
- columns restrictioncomponents
- components restrictionMethod Detail |
---|
public ParamWeightedVolume<T> create(java.lang.Object value)
create
in class ParamVolumeCollection
value
- parameter value
public java.util.ArrayList<T> getWeightList()
public T getWeight(int i)
i
- the i
public ParamWeightedVolume<T> getWeightedImage(int i)
i
- index
public void init()
init
in class ParamVolumeCollection
public void setWeight(int i, T weight)
i
- indexweight
- volume weightpublic ParamModel<T> getPrototype()
public void setPrototype(ParamModel<T> prototype)
prototype
- the prototype to setpublic ParamWeightedVolumeCollection<T> clone()
clone
in class ParamVolumeCollection
public java.lang.String toString()
toString
in class ParamFileCollection
public void clear()
clear
in interface ObjectCollection<java.io.File>
clear
in class ParamVolumeCollection
public void addWeightedVolume()
public void setUseConnector(boolean useWire)
PipePort
setUseConnector
in class PipePort<java.util.List>
useWire
- the use wirepublic java.lang.String getXMLValue()
getXMLValue
in class ParamFileCollection
public void setXMLValue(java.lang.String arg)
setXMLValue
in class ParamFileCollection
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |