edu.jhu.ece.iacl.jist.pipeline.parameter
Class ParamPointFloat

java.lang.Object
  extended by edu.jhu.ece.iacl.jist.pipeline.PipePort<T>
      extended by edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel<Point3f>
          extended by edu.jhu.ece.iacl.jist.pipeline.parameter.ParamPointFloat
All Implemented Interfaces:
ParamPoint, java.lang.Cloneable, java.lang.Comparable<ParamModel>

public class ParamPointFloat
extends ParamModel<Point3f>
implements ParamPoint

3D Point parameter for floating point.

Author:
Blake Lucas

Nested Class Summary
 
Nested classes/interfaces inherited from class edu.jhu.ece.iacl.jist.pipeline.PipePort
PipePort.PortListener, PipePort.type
 
Field Summary
protected  ParamFloat px
          The px.
protected  ParamFloat py
          The py.
protected  ParamFloat pz
          The pz.
 
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
ParamPointFloat()
          Default constructor.
ParamPointFloat(Point3f p)
          Constructor.
ParamPointFloat(java.lang.String name, Point3f p)
          Constructor.
 
Method Summary
 ParamPointFloat clone()
          Clone object.
 int compareTo(ParamModel model)
          Compare specificity of parameters.
 java.lang.String getHumanReadableDataType()
           
 ParamFloat getParamX()
          Get X coordinate.
 ParamFloat getParamY()
          Get Y coordinate.
 ParamFloat getParamZ()
          Get Z coordinate.
 Point3f getValue()
          Get float point.
 java.lang.String getXMLValue()
           
 void init()
          Initialize parameter.
 boolean isCompatible(PipePort model)
          Check for compatibility between parameters.
 java.lang.String probeDefaultValue()
           
 void setValue(Point3d value)
          Set double point value.
 void setValue(Point3f value)
          Set float point value.
 void setValue(Point3i value)
          Set integer point value.
 void setXMLValue(java.lang.String arg)
           
 java.lang.String toString()
          Get description of point.
 void validate()
          Validate point coordinates.
 
Methods inherited from class edu.jhu.ece.iacl.jist.pipeline.parameter.ParamModel
clean, createMipavParameter, createTreeNode, dispose, equals, getCliTag, getDescription, getFactory, getInputView, getLabel, getName, getOutputView, getShortLabel, getView, hide, importMipavParameter, importParameter, isConnectible, isHidden, isMandatory, loadResources, loadResources, read, read, replacePath, saveResources, setCliTag, setDescription, setFactory, setHidden, setInputView, setLabel, setLoadAndSaveOnValidate, setMandatory, setName, setOutputView, setShortLabel, toXML, write, write, writeAndFreeNow
 
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

px

protected ParamFloat px
The px.


py

protected ParamFloat py
The py.


pz

protected ParamFloat pz
The pz.

Constructor Detail

ParamPointFloat

public ParamPointFloat()
Default constructor.


ParamPointFloat

public ParamPointFloat(Point3f p)
Constructor.

Parameters:
p - point

ParamPointFloat

public ParamPointFloat(java.lang.String name,
                       Point3f p)
Constructor.

Parameters:
name - parameter name
p - point
Method Detail

clone

public ParamPointFloat clone()
Clone object.

Specified by:
clone in class ParamModel<Point3f>
Returns:
the param point float

compareTo

public int compareTo(ParamModel model)
Description copied from class: ParamModel
Compare specificity of parameters. Zero indicates both parameters have the same level of specificity. Negative one indicates this parameter is less specific than the foreign one. Positive one indicates this parameter is more specific than the foreign one.

Specified by:
compareTo in interface java.lang.Comparable<ParamModel>
Overrides:
compareTo in class ParamModel<Point3f>
Parameters:
model - the mod
Returns:
the int

getParamX

public ParamFloat getParamX()
Get X coordinate.

Specified by:
getParamX in interface ParamPoint
Returns:
X coordinate

getParamY

public ParamFloat getParamY()
Get Y coordinate.

Specified by:
getParamY in interface ParamPoint
Returns:
Y coordinate

getParamZ

public ParamFloat getParamZ()
Get Z coordinate.

Specified by:
getParamZ in interface ParamPoint
Returns:
Z coordinate

getValue

public Point3f getValue()
Get float point.

Specified by:
getValue in class ParamModel<Point3f>
Returns:
the value

init

public void init()
Initialize parameter.

Specified by:
init in class PipePort<Point3f>

isCompatible

public boolean isCompatible(PipePort model)
Description copied from class: ParamModel
Check for compatibility between parameters.

Overrides:
isCompatible in class ParamModel<Point3f>
Parameters:
model - foreign parameter
Returns:
true if compatible

setValue

public void setValue(Point3d value)
              throws InvalidParameterValueException
Set double point value.

Specified by:
setValue in class ParamModel<Point3f>
Parameters:
value - the value
Throws:
InvalidParameterValueException - the invalid parameter value exception

setValue

public void setValue(Point3f value)
              throws InvalidParameterValueException
Set float point value.

Specified by:
setValue in class ParamModel<Point3f>
Parameters:
value - point
Throws:
InvalidParameterValueException - the invalid parameter value exception

setValue

public void setValue(Point3i value)
              throws InvalidParameterValueException
Set integer point value.

Specified by:
setValue in class ParamModel<Point3f>
Parameters:
value - point
Throws:
InvalidParameterValueException - the invalid parameter value exception

toString

public java.lang.String toString()
Get description of point.

Specified by:
toString in class ParamModel<Point3f>
Returns:
the string

validate

public void validate()
              throws InvalidParameterException
Validate point coordinates.

Specified by:
validate in class ParamModel<Point3f>
Throws:
InvalidParameterException - the invalid parameter exception

getHumanReadableDataType

public java.lang.String getHumanReadableDataType()
Specified by:
getHumanReadableDataType in class ParamModel<Point3f>

getXMLValue

public java.lang.String getXMLValue()
Specified by:
getXMLValue in class ParamModel<Point3f>

setXMLValue

public void setXMLValue(java.lang.String arg)
Specified by:
setXMLValue in class ParamModel<Point3f>

probeDefaultValue

public java.lang.String probeDefaultValue()
Specified by:
probeDefaultValue in class ParamModel<Point3f>