artofillusion.procedural
Class RGBModule

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

public class RGBModule
extends Module

This is a Module which takes three numbers, and uses them as the red, green, and blue components of a color.


Field Summary
 
Fields inherited from class artofillusion.procedural.Module
linkFrom, linkFromIndex
 
Constructor Summary
RGBModule(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

RGBModule

public RGBModule(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.