artofillusion.procedural
Class ColorDifferenceModule

java.lang.Object
  extended by artofillusion.procedural.Module
      extended by artofillusion.procedural.ColorDifferenceModule

public class ColorDifferenceModule
extends Module


Field Summary
 
Fields inherited from class artofillusion.procedural.Module
linkFrom, linkFromIndex
 
Constructor Summary
ColorDifferenceModule(java.awt.Point position)
           
 
Method Summary
 void getColor(int which, RGBColor c, double blur)
          Get the color of the specified output port.
 void init(PointInfo p)
          This method initializes the module in preparation for evaluating the procedure at a new point.
 
Methods inherited from class artofillusion.procedural.Module
calcSize, checkFeedback, draw, duplicate, edit, edit, getAverageValue, getBounds, getClickedPort, getInputIndex, getInputPorts, getName, getOutputIndex, getOutputPorts, getValueError, getValueGradient, inputConnected, layout, readFromStream, setInput, setPosition, writeToStream
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ColorDifferenceModule

public ColorDifferenceModule(java.awt.Point position)
Method Detail

init

public void init(PointInfo p)
Description copied from class: Module
This method initializes the module in preparation for evaluating the procedure at a new point. The default implementation does nothing. Subclasses whose output depends on the point should override this method.

Overrides:
init in class Module

getColor

public void getColor(int which,
                     RGBColor c,
                     double blur)
Description copied from class: Module
Get the color of the specified output port. If the specified output port does not have a value type of COLOR, the result is undefined. Blur specifies the amount of smoothing to use. Subclasses which can return colors should override this method.

Overrides:
getColor in class Module


Copyright © 1999-2011 by Peter Eastman.