|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.procedural.Module
artofillusion.procedural.ImageModule
public class ImageModule
This is a Module which outputs an image.
Field Summary | |
---|---|
static int |
HLS_MODEL
|
static int |
HSV_MODEL
|
static int |
RGB_MODEL
|
Fields inherited from class artofillusion.procedural.Module |
---|
linkFrom, linkFromIndex |
Constructor Summary | |
---|---|
ImageModule(java.awt.Point position)
|
Method Summary | |
---|---|
void |
calcSize()
Calculate the size on the screen of this module. |
Module |
duplicate()
Create a duplicate of this module. |
boolean |
edit(ProcedureEditor editor,
Scene theScene)
Allow the user to set a new value. |
double |
getAverageValue(int which,
double blur)
Get the value of one of the components. |
void |
getColor(int which,
RGBColor c,
double blur)
Calculate the color. |
int |
getColorModel()
Get the color model to output (RGB, HSV, or HLS). |
ImageMap |
getMap()
Get the image map used by this module. |
boolean |
getMirrorX()
Get whether the image is mirrored in the X direction. |
boolean |
getMirrorY()
Get whether the image is mirrored in the Y direction. |
boolean |
getTileX()
Get whether the image is tiled in the X direction. |
boolean |
getTileY()
Get whether the image is tiled in the Y direction. |
void |
getValueGradient(int which,
Vec3 grad,
double blur)
Get the gradient of one of the components. |
double |
getXScale()
Get the X scale. |
double |
getYScale()
Get the Y scale. |
void |
init(PointInfo p)
New point, so the color will need to be recalculated. |
void |
readFromStream(java.io.DataInputStream in,
Scene theScene)
Read in the parameters. |
void |
setColorModel(int model)
Get the color model to output (RGB, HSV, or HLS). |
void |
setMap(ImageMap map)
Set the image map used by this module. |
void |
setMirrorX(boolean b)
Set whether the image is mirrored in the X direction. |
void |
setMirrorY(boolean b)
Set whether the image is mirrored in the Y direction. |
void |
setTileX(boolean b)
Set whether the image is tiled in the X direction. |
void |
setTileY(boolean b)
Set whether the image is tiled in the Y direction. |
void |
setXScale(double scale)
Set the X scale. |
void |
setYScale(double scale)
Set the Y scale. |
void |
writeToStream(java.io.DataOutputStream out,
Scene theScene)
Write out the parameters. |
Methods inherited from class artofillusion.procedural.Module |
---|
checkFeedback, draw, getBounds, getClickedPort, getInputIndex, getInputPorts, getName, getOutputIndex, getOutputPorts, getValueError, inputConnected, layout, setInput, setPosition |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int RGB_MODEL
public static final int HSV_MODEL
public static final int HLS_MODEL
Constructor Detail |
---|
public ImageModule(java.awt.Point position)
Method Detail |
---|
public ImageMap getMap()
public void setMap(ImageMap map)
public double getXScale()
public void setXScale(double scale)
public double getYScale()
public void setYScale(double scale)
public boolean getTileX()
public void setTileX(boolean b)
public boolean getTileY()
public void setTileY(boolean b)
public boolean getMirrorX()
public void setMirrorX(boolean b)
public boolean getMirrorY()
public void setMirrorY(boolean b)
public int getColorModel()
public void setColorModel(int model)
public void init(PointInfo p)
init
in class Module
public void getColor(int which, RGBColor c, double blur)
getColor
in class Module
public double getAverageValue(int which, double blur)
getAverageValue
in class Module
public void getValueGradient(int which, Vec3 grad, double blur)
getValueGradient
in class Module
public void calcSize()
Module
calcSize
in class Module
public Module duplicate()
duplicate
in class Module
public boolean edit(ProcedureEditor editor, Scene theScene)
edit
in class Module
public void writeToStream(java.io.DataOutputStream out, Scene theScene) throws java.io.IOException
writeToStream
in class Module
java.io.IOException
public void readFromStream(java.io.DataInputStream in, Scene theScene) throws java.io.IOException
readFromStream
in class Module
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |