edu.jhu.ece.iacl.jist.pipeline.parameter
Class ParamWeightedVolume<T>
java.lang.Object
edu.jhu.ece.iacl.jist.pipeline.PipePort<T>
edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel<java.io.File>
edu.jhu.ece.iacl.jist.pipeline.parameter.ParamFile
edu.jhu.ece.iacl.jist.pipeline.parameter.ParamObject<ImageData>
edu.jhu.ece.iacl.jist.pipeline.parameter.ParamVolume
edu.jhu.ece.iacl.jist.pipeline.parameter.ParamWeightedVolume<T>
- All Implemented Interfaces:
- java.lang.Cloneable, java.lang.Comparable<ParamModel>
public class ParamWeightedVolume<T>
- extends ParamVolume
Weighted volume to store a volume and a weight associated with the volume.
- Author:
- Blake Lucas
Constructor Summary |
ParamWeightedVolume(ParamModel<T> weightParam)
Inherits constructor from ParamVolume. |
ParamWeightedVolume(java.lang.String name,
ParamModel<T> weightParam,
VoxelType type,
int rows,
int cols,
int slices,
int components)
Inherits constructor from ParamVolume. |
ParamWeightedVolume(VoxelType type,
ParamModel<T> weightParam)
Inherits constructor from ParamVolume. |
ParamWeightedVolume(VoxelType type,
ParamModel<T> weightParam,
int rows,
int cols,
int slices,
int components)
Inherits constructor from ParamVolume. |
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamVolume |
clear, compareTo, dispose, equalVolume, getCols, getComponents, getImageData, getImageData, getName, getObject, getRows, getSlices, getValue, getVoxelType, init, isCompatible, setObject, setValue, setValue, setValue, validate, writeAndFreeNow |
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel |
createMipavParameter, createTreeNode, equals, getCliTag, getDescription, getFactory, getInputView, getLabel, getOutputView, getShortLabel, getView, hide, importMipavParameter, importParameter, isConnectible, isHidden, isMandatory, loadResources, loadResources, read, read, saveResources, setCliTag, setDescription, setFactory, setHidden, setInputView, setLabel, setLoadAndSaveOnValidate, setMandatory, 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, setUseConnector, usingConnector |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
weightParam
protected ParamModel<T> weightParam
- The weight.
ParamWeightedVolume
public ParamWeightedVolume(ParamModel<T> weightParam)
- Inherits constructor from ParamVolume.
ParamWeightedVolume
public ParamWeightedVolume(java.lang.String name,
ParamModel<T> weightParam,
VoxelType type,
int rows,
int cols,
int slices,
int components)
- Inherits constructor from ParamVolume.
- Parameters:
name
- parameter nametype
- voxel type restrictionrows
- rows restrictioncols
- columns restrictionslices
- slices restrictioncomponents
- components restriction
ParamWeightedVolume
public ParamWeightedVolume(VoxelType type,
ParamModel<T> weightParam)
- Inherits constructor from ParamVolume.
- Parameters:
type
- voxel type restriction
ParamWeightedVolume
public ParamWeightedVolume(VoxelType type,
ParamModel<T> weightParam,
int rows,
int cols,
int slices,
int components)
- Inherits constructor from ParamVolume.
- Parameters:
type
- voxel type restrictionrows
- rows restrictioncols
- columns restrictionslices
- slices restrictioncomponents
- components restriction
clone
public ParamWeightedVolume clone()
- Clone object.
- Overrides:
clone
in class ParamVolume
- Returns:
- the param weighted volume
getWeightParameter
public ParamModel<T> getWeightParameter()
createWeightParameter
public ParamModel<T> createWeightParameter()
getWeight
public T getWeight()
- Get weight.
- Returns:
- weight
setWeight
public void setWeight(T weight)
- Set weight.
- Parameters:
weight
- weight
toString
public java.lang.String toString()
- Get description of volume and weight.
- Overrides:
toString
in class ParamVolume
- Returns:
- the string
getXMLValue
public java.lang.String getXMLValue()
- Overrides:
getXMLValue
in class ParamFile
setXMLValue
public void setXMLValue(java.lang.String arg)
- Overrides:
setXMLValue
in class ParamFile