|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.sunflow.core.display.FileDisplay
public class FileDisplay
Constructor Summary | |
---|---|
FileDisplay(boolean saveImage)
|
|
FileDisplay(java.lang.String filename)
|
Method Summary | |
---|---|
void |
imageBegin(int w,
int h,
int bucketSize)
This is called before an image is rendered to indicate how large the rendered image will be. |
void |
imageEnd()
This call is made after the image has been rendered. |
void |
imageFill(int x,
int y,
int w,
int h,
Color c,
float alpha)
Update the current image with a region of flat color. |
void |
imagePrepare(int x,
int y,
int w,
int h,
int id)
Prepare the specified area to be rendered. |
void |
imageUpdate(int x,
int y,
int w,
int h,
Color[] data,
float[] alpha)
Update the current image with a bucket of data. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileDisplay(boolean saveImage)
public FileDisplay(java.lang.String filename)
Method Detail |
---|
public void imageBegin(int w, int h, int bucketSize)
Display
imageBegin
in interface Display
w
- width of the rendered image in pixelsh
- height of the rendered image in pixelsbucketSize
- size of the buckets in pixelspublic void imagePrepare(int x, int y, int w, int h, int id)
Display
imagePrepare
in interface Display
x
- x coordinate of the bucket within the imagey
- y coordinate of the bucket within the imagew
- width of the bucket in pixelsh
- height of the bucket in pixelsid
- unique identifier corresponding to the thread which invoked
this callpublic void imageUpdate(int x, int y, int w, int h, Color[] data, float[] alpha)
Display
w * h
long and
in row major order.
imageUpdate
in interface Display
x
- x coordinate of the bucket within the imagey
- y coordinate of the bucket within the imagew
- width of the bucket in pixelsh
- height of the bucket in pixelsdata
- bucket data, this array will be exactly w * h
longalpha
- pixel coverage data, this array will be exactly
w * h
longpublic void imageFill(int x, int y, int w, int h, Color c, float alpha)
Display
imageFill
in interface Display
x
- x coordinate of the region within the imagey
- y coordinate of the region within the imagew
- with of the region in pixelsh
- height of the region in pixelsc
- color to fill the region withalpha
- pixel coveragepublic void imageEnd()
Display
imageEnd
in interface Display
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |