|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.image.filter.ImageFilter
artofillusion.image.filter.DepthOfFieldFilter
public class DepthOfFieldFilter
This is an image filter which blurs parts of an image to simulate a depth of field effect.
Constructor Summary | |
---|---|
DepthOfFieldFilter()
|
Method Summary | |
---|---|
void |
filterImage(ComplexImage image,
Scene scene,
SceneCamera camera,
CoordinateSystem cameraPos)
Apply the filter to an image. |
Widget |
getConfigPanel(java.lang.Runnable changeCallback)
Get a Widget with which the user can specify options for the filter. |
int |
getDesiredComponents()
Get a list of all the image components required by this filter. |
java.lang.String |
getName()
Get the name of this filter. |
Property[] |
getProperties()
Get a list of Properties which affect the behavior of the filter. |
void |
initFromStream(java.io.DataInputStream in,
Scene theScene)
Reconstruct this filter from its serialized representation. |
void |
writeToStream(java.io.DataOutputStream out,
Scene theScene)
Write a serialized description of this filter to a stream. |
Methods inherited from class artofillusion.image.filter.ImageFilter |
---|
copy, duplicate, getParameters, getParameterValues, getPropertyValue, setParameterValue, setPropertyValue |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DepthOfFieldFilter()
Method Detail |
---|
public java.lang.String getName()
getName
in class ImageFilter
public int getDesiredComponents()
ImageFilter
getDesiredComponents
in class ImageFilter
public void filterImage(ComplexImage image, Scene scene, SceneCamera camera, CoordinateSystem cameraPos)
filterImage
in class ImageFilter
image
- the image to filterscene
- the Scene which was rendered to create the imagecamera
- the camera from which the Scene was renderedcameraPos
- the position of the camera in the scenepublic Property[] getProperties()
ImageFilter
getProperties
in class ImageFilter
public Widget getConfigPanel(java.lang.Runnable changeCallback)
ImageFilter
getConfigPanel
in class ImageFilter
changeCallback
- a Runnable which should be invoked whenever the filter's configuration
changes, so the containing window can update its previewpublic void writeToStream(java.io.DataOutputStream out, Scene theScene) throws java.io.IOException
writeToStream
in class ImageFilter
java.io.IOException
public void initFromStream(java.io.DataInputStream in, Scene theScene) throws java.io.IOException
initFromStream
in class ImageFilter
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |