|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sunflow.core.display.OpenExrDisplay
public class OpenExrDisplay
This display outputs a tiled OpenEXR file with RGB information.
| Constructor Summary | |
|---|---|
OpenExrDisplay(java.lang.String filename,
java.lang.String compression,
java.lang.String channelType)
|
|
| 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)
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)
Update the current image with a bucket of data. |
void |
setGamma(float gamma)
|
void |
writeRGBHeader(int w,
int h,
int tileSize)
|
void |
writeTileOffsets()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OpenExrDisplay(java.lang.String filename,
java.lang.String compression,
java.lang.String channelType)
| Method Detail |
|---|
public void setGamma(float gamma)
public void imageBegin(int w,
int h,
int bucketSize)
Display
imageBegin in interface Displayw - width of the rendered image in pixelsh - height of the rendered image in pixelsbucketSize - size of the buckets in pixels
public void imagePrepare(int x,
int y,
int w,
int h,
int id)
Display
imagePrepare in interface Displayx - 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 call
public void imageUpdate(int x,
int y,
int w,
int h,
Color[] data)
Displayw * h long and
in row major order.
imageUpdate in interface Displayx - 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
long
public void imageFill(int x,
int y,
int w,
int h,
Color c)
Display
imageFill in interface Displayx - 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 withpublic void imageEnd()
Display
imageEnd in interface Display
public void writeRGBHeader(int w,
int h,
int tileSize)
throws java.lang.Exception
java.lang.Exception
public void writeTileOffsets()
throws java.io.IOException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||