Class OneArgumentOperator

java.lang.Object
  |
  +--AbstractELOperator
        |
        +--OneArgumentOperator
All Implemented Interfaces:
ELOperator
Direct Known Subclasses:
Abs, ArcTangent, Blur, Derivative, DSymmetry, Grayscale, HSymmetry, TimeSpinner, ToHSV, ToRGB, TrigonometricOperator

public abstract class OneArgumentOperator
extends AbstractELOperator
implements ELOperator


Fields inherited from interface ELOperator
LARGE_NUMER_OF_ARGUMENTS
 
Constructor Summary
OneArgumentOperator()
           
 
Method Summary
 void apply(ELMatrix[] argument, ELMatrix out, ELEnvironment environment)
          Applies this operator.
protected static void checkArguments(ELMatrix[] argument)
           
protected  float function(float f)
          Your element wise operator.
 int getMaxNumArguments()
          Returns the maxiumum number of arguments this operator accepts.
 int getMinNumArguments()
          Returns the minimum number of arguments this operator accepts.
 java.lang.String unparse()
          How this operator should appear in EL code.
 
Methods inherited from class AbstractELOperator
clamp, hasExternalInfluences, iconString, paintIcon
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ELOperator
description, hasExternalInfluences, name, paintIcon
 

Constructor Detail

OneArgumentOperator

public OneArgumentOperator()
Method Detail

apply

public void apply(ELMatrix[] argument,
                  ELMatrix out,
                  ELEnvironment environment)
Description copied from interface: ELOperator
Applies this operator.
Specified by:
apply in interface ELOperator

function

protected float function(float f)
Your element wise operator.

getMaxNumArguments

public int getMaxNumArguments()
Description copied from interface: ELOperator
Returns the maxiumum number of arguments this operator accepts. Note: All operators that accept an argument accept an ELMatrix argument.
Specified by:
getMaxNumArguments in interface ELOperator

getMinNumArguments

public int getMinNumArguments()
Description copied from interface: ELOperator
Returns the minimum number of arguments this operator accepts.
Specified by:
getMinNumArguments in interface ELOperator

unparse

public java.lang.String unparse()
Description copied from interface: ELOperator
How this operator should appear in EL code.
Specified by:
unparse in interface ELOperator

checkArguments

protected static void checkArguments(ELMatrix[] argument)