|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ImageSynthesizer
Abstract interface for image-synthesizing algorithms.
Field Summary | |
---|---|
static java.lang.String |
GAMMA
Property name: gamma-correction (or 0.0 for no correction and no clamping - for HDRI). |
static java.lang.String |
HEIGHT
Property name: image height in pixels. |
static java.lang.String |
SUPERSAMPLING
Property name: number of samples (rays) for supersampling. |
static java.lang.String |
WIDTH
Property name: image width in pixels. |
Fields inherited from interface cz.cuni.jagrlib.iface.Property |
---|
LOGGING, STATISTICS, TEXT_DESCRIPTION |
Method Summary | |
---|---|
void |
renderAll()
Render the whole image. |
double[] |
renderPixel(int x,
int y,
double[] pre)
Render the given pixel of the image. |
void |
renderRectangle(int x1,
int y1,
int x2,
int y2)
Render the given rectangle. |
void |
setBounds(int width,
int height)
Sets resolution of an output raster image. |
Methods inherited from interface cz.cuni.jagrlib.iface.TimeDependent |
---|
getTime, getTimeInterval, setTime |
Methods inherited from interface cz.cuni.jagrlib.iface.Property |
---|
commit, get, set |
Methods inherited from interface cz.cuni.jagrlib.Breakable |
---|
setProgressListener, stop |
Field Detail |
---|
static final java.lang.String WIDTH
static final java.lang.String HEIGHT
static final java.lang.String SUPERSAMPLING
static final java.lang.String GAMMA
0.0
for no correction and no clamping - for HDRI).
Method Detail |
---|
void setBounds(int width, int height)
width
- Horizontal image size in pixels.height
- Vertical image size in pixels.double[] renderPixel(int x, int y, double[] pre)
x
- X coordinate of the pixel.y
- Y coordinate of the pixel.pre
- Pre-allocated double[3]
array to hold results (can be
null
).
renderRectangle(int, int, int, int)
,
renderAll()
void renderRectangle(int x1, int y1, int x2, int y2)
x1
- X coordinate of the upper left corner.y1
- Y coordinate of the upper left corner.x2
- X coordinate of the lower right corner (outside pixel).y2
- Y coordinate of the upper left corner (outside pixel).renderPixel(int, int, double[])
,
renderAll()
void renderAll()
renderPixel(int, int, double[])
,
renderRectangle(int, int, int, int)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |