edu.jhu.ece.iacl.jist.pipeline.parameter
Class ParamWeightedVolume<T>

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.pipeline.PipePort<T>
      extended by edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel<java.io.File>
          extended by edu.jhu.ece.iacl.jist.pipeline.parameter.ParamFile
              extended by edu.jhu.ece.iacl.jist.pipeline.parameter.ParamObject<ImageData>
                  extended by edu.jhu.ece.iacl.jist.pipeline.parameter.ParamVolume
                      extended by 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

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamFile
ParamFile.DialogType
 
Nested classes/interfaces inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort
PipePort.PortListener, PipePort.type
 
Field Summary
protected  ParamModel<T> weightParam
          The weight.
 
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamVolume
cols, components, rows, slices, volume, voxelType
 
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamObject
obj, readerWriter
 
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamFile
dialogType, extensionFilter, file, uri
 
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel
cliTag, description, factory, hidden, label, loadAndSaveOnValidate, mandatory, shortLabel
 
Fields inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort
connectible, gport, incomingConnectors, listeners, maxIncoming, maxOutgoing, outgoingConnectors, owner, portType, useWire
 
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.
 
Method Summary
 ParamWeightedVolume clone()
          Clone object.
 ParamModel<T> createWeightParameter()
           
 T getWeight()
          Get weight.
 ParamModel<T> getWeightParameter()
           
 java.lang.String getXMLValue()
           
 void setWeight(T weight)
          Set weight.
 void setXMLValue(java.lang.String arg)
           
 java.lang.String toString()
          Get description of volume and weight.
 
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.ParamObject
getReaderWriter, setFileName, setReaderWriter, setValue, writeObject
 
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamFile
clean, getDialogType, getExtensionFilter, getHumanReadableDataType, getURI, probeDefaultValue, replacePath, setExtensionFilter, translatePath
 
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
 

Field Detail

weightParam

protected ParamModel<T> weightParam
The weight.

Constructor Detail

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 name
type - voxel type restriction
rows - rows restriction
cols - columns restriction
slices - slices restriction
components - 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 restriction
rows - rows restriction
cols - columns restriction
slices - slices restriction
components - components restriction
Method Detail

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