sk.robotics.rlcs.agents.image
Class TransformAgent.Cfg

java.lang.Object
  extended by sk.robotics.rlcs.agentspace.Agent.Cfg
      extended by sk.robotics.rlcs.agents.image.ImageFilterAgent.Cfg
          extended by sk.robotics.rlcs.agents.image.TransformAgent.Cfg
Direct Known Subclasses:
ImageTransformAgent.Cfg
Enclosing class:
TransformAgent

public static class TransformAgent.Cfg
extends ImageFilterAgent.Cfg


Nested Class Summary
static class TransformAgent.Cfg.Interpolation
           
 
Nested classes/interfaces inherited from class sk.robotics.rlcs.agents.image.ImageFilterAgent.Cfg
ImageFilterAgent.Cfg.ImageType
 
Nested classes/interfaces inherited from class sk.robotics.rlcs.agentspace.Agent.Cfg
Agent.Cfg.Limited, Agent.Cfg.NoDefault, Agent.Cfg.Required, Agent.Cfg.Validator
 
Field Summary
 TransformAgent.Cfg.Interpolation interpolation
          Interpolation type.
 double scaleX
          X-scale item of the transformation matrix.
 double scaleY
          Y-scale item of the transformation matrix.
 double shearX
          X-shear item of the transformation matrix.
 double shearY
          Y-shear item of the transformation matrix.
 double translateX
          X-translate item of the transformation matrix.
 double translateY
          Y-translate item of the transformation matrix.
 
Fields inherited from class sk.robotics.rlcs.agents.image.ImageFilterAgent.Cfg
blockSourceImage, blockTargetImage, copyBeforeFilter, inputImageType, outputHeight, outputImageType, outputWidth, priority, validity
 
Fields inherited from class sk.robotics.rlcs.agentspace.Agent.Cfg
enabled, id, logLevel, timerPeriodMs, triggers
 
Constructor Summary
TransformAgent.Cfg()
           
 
Method Summary
 java.util.Set<java.lang.String> getHiddenFields()
          Returns names of fields to hide in the web editor.
 void validate()
          Config validation.
 
Methods inherited from class sk.robotics.rlcs.agentspace.Agent.Cfg
createAgent, equals, hideFields
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

interpolation

public TransformAgent.Cfg.Interpolation interpolation
Interpolation type.


scaleX

public double scaleX
X-scale item of the transformation matrix. See java.awt.geom.AffineTransform.


scaleY

public double scaleY
Y-scale item of the transformation matrix. See java.awt.geom.AffineTransform.


shearX

public double shearX
X-shear item of the transformation matrix. See java.awt.geom.AffineTransform.


shearY

public double shearY
Y-shear item of the transformation matrix. See java.awt.geom.AffineTransform.


translateX

public double translateX
X-translate item of the transformation matrix. See java.awt.geom.AffineTransform.


translateY

public double translateY
Y-translate item of the transformation matrix. See java.awt.geom.AffineTransform.

Constructor Detail

TransformAgent.Cfg

public TransformAgent.Cfg()
Method Detail

validate

public void validate()
Description copied from class: Agent.Cfg
Config validation. This base versions checks that fields declared as required (through the Required annotation) are filled. Derived agent config classes may override this to provide custom validation function for user defined configuration. It can be as well used for setting default values for uninitialized fields, or any other processing. To veto launching the agent, it can throw an exception.

Overrides:
validate in class Agent.Cfg

getHiddenFields

public java.util.Set<java.lang.String> getHiddenFields()
Description copied from class: Agent.Cfg
Returns names of fields to hide in the web editor. Derived config classes may override this to add fields to the set.

Overrides:
getHiddenFields in class Agent.Cfg
See Also:
hideFields