|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcz.cuni.jagrlib.DefaultProperty
cz.cuni.jagrlib.Piece
cz.cuni.jagrlib.DefaultImageSynthesizer
public abstract class DefaultImageSynthesizer
Default implementation of ImageSynthesizer interface.
| Field Summary | |
|---|---|
protected double |
actTime
Actual time (for RealFunction). |
protected int |
imageHeight
Actual image height in pixels. |
protected int |
imageWidth
Actual image width in pixels. |
| Fields inherited from class cz.cuni.jagrlib.Piece |
|---|
channels, info, pl, plugs, reg, TEMPLATE_TYPE, userBreak |
| Fields inherited from interface cz.cuni.jagrlib.iface.ImageSynthesizer |
|---|
GAMMA, HEIGHT, SUPERSAMPLING, WIDTH |
| Fields inherited from interface cz.cuni.jagrlib.iface.Property |
|---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
| Constructor Summary | |
|---|---|
DefaultImageSynthesizer()
|
|
| Method Summary | |
|---|---|
double |
getTime()
Returns the actual time value for the object (used in animations). |
double[] |
getTimeInterval(double[] pre)
Retrieve the valid bounds for time variable. |
void |
renderAll()
Render the whole image. |
double[] |
renderPixel(int x,
int y,
double[] pre)
Render the given pixel of the image. |
void |
setBounds(int width,
int height)
Sets resolution of an output raster image. |
void |
setTime(double time)
Sets the actual time value for the object (used in animations). |
| Methods inherited from class cz.cuni.jagrlib.Piece |
|---|
className, connect, findPlug, findPlug, getInfo, getInterface, getInterface, getPlug, getReg, init, isCompatible, isCompatible, isConnected, logError, logWarning, myInterface, newInputPlug, newOptOutputPlug, newOutputPlug, newPlug, noTemplates, propBegin, propBounds, propDefault, propEnd, propEnum, propManipulator, propManipulator, setProgressListener, setRegStrings, setTemplate, setTemplateDynamic, stop |
| Methods inherited from class cz.cuni.jagrlib.DefaultProperty |
|---|
booleanProperty, booleanProperty, colorDoubleProperty, colorProperty, commit, doubleProperty, doubleProperty, doubleProperty, enumProperty, floatProperty, floatProperty, floatProperty, get, intProperty, intProperty, intProperty, longProperty, longProperty, longProperty, set, set, stringProperty |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface cz.cuni.jagrlib.iface.ImageSynthesizer |
|---|
renderRectangle |
| Methods inherited from interface cz.cuni.jagrlib.iface.Property |
|---|
commit, get, set |
| Methods inherited from interface cz.cuni.jagrlib.Breakable |
|---|
setProgressListener, stop |
| Field Detail |
|---|
protected int imageWidth
protected int imageHeight
protected double actTime
RealFunction).
| Constructor Detail |
|---|
public DefaultImageSynthesizer()
| Method Detail |
|---|
public double[] getTimeInterval(double[] pre)
getTimeInterval in interface TimeDependentpre - Pre-allocated double[2] array to hold the result (can be
null).
result[0] .. minimum time value, result[1] .. maximum
time value.getTime(),
setTime(double)public double getTime()
getTime in interface TimeDependentsetTime(double)public void setTime(double time)
setTime in interface TimeDependenttime - New scene time (in seconds).getTime(),
getTimeInterval(double[])
public void setBounds(int width,
int height)
setBounds in interface ImageSynthesizerwidth - Horizontal image size in pixels.height - Vertical image size in pixels.
public double[] renderPixel(int x,
int y,
double[] pre)
renderPixel in interface ImageSynthesizerx - X coordinate of the pixel.y - Y coordinate of the pixel.pre - Pre-allocated double[3] array to hold results (can be
null).
ImageSynthesizer.renderRectangle(int, int, int, int),
renderAll()public void renderAll()
renderAll in interface ImageSynthesizerrenderPixel(int, int, double[]),
ImageSynthesizer.renderRectangle(int, int, int, int)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||