Uses of Class org.sunflow.image.Color

Uses in package org.sunflow.core

Methods with parameter type org.sunflow.image.Color

void
ParameterList.addColor(String name, Color value)
Add the specified color as a parameter.
Color
Computes a plain diffuse response to the current light samples and global illumination.
Color
ParameterList.getColor(String name, Color defaultValue)
Get the specified color parameter from this list.
Color
GIEngine.getIrradiance(ShadingState state, Color diffuseReflectance)
Return the incomming irradiance due to indirect diffuse illumination at the specified surface point.
Color
ShadingState.getIrradiance(Color diffuseReflectance)
Gets the total irradiance reaching the current point from diffuse surfaces.
void
LightSource.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power)
Gets a photon to emit from this light source by setting each of the arguments.
void
Display.imageFill(int x, int y, int w, int h, Color c)
Update the current image with a region of flat color.
void
Display.imageUpdate(int x, int y, int w, int h, Color[] data)
Update the current image with a bucket of data.
Color
ShadingState.occlusion(int samples, float maxDist, Color bright, Color dark)
Ambient occlusion routine, returns a value between bright and dark depending on the amount of geometric occlusion in the scene.
void
Scatter a photon with the specied power.
void
Set the diffuse and specular radiance emitted by the current light source.
Color
ShadingState.specularPhong(Color spec, float power, int numRays)
Computes a phong specular response to the current light samples and global illumination.
void
PhotonStore.store(ShadingState state, Vector3 dir, Color power, Color diffuse)
Store the specified photon.
void
ShadingState.storePhoton(Vector3 dir, Color power, Color diffuse)
Records a photon at the specified location.
void
Trace a new photon from the current location.
void
Trace a new photon from the current location.
void
Trace a new photon from the current location.

Methods with return type org.sunflow.image.Color

Color
Computes a plain diffuse response to the current light samples and global illumination.
Color
ParameterList.getColor(String name, Color defaultValue)
Get the specified color parameter from this list.
Color
Get diffuse radiance.
Color
Returns the glboal diffuse radiance estimate given by the current GIEngine if present.
Color
This is an optional method for engines that contain a secondary illumination engine which can return an approximation of the global radiance in the scene (like a photon map).
Color
GIEngine.getIrradiance(ShadingState state, Color diffuseReflectance)
Return the incomming irradiance due to indirect diffuse illumination at the specified surface point.
Color
ShadingState.getIrradiance(Color diffuseReflectance)
Gets the total irradiance reaching the current point from diffuse surfaces.
Color
Texture.getPixel(float x, float y)
Gets the color at location (x,y) in the texture.
Color
Gets the radiance for a specified rendering state.
Color
Lookup the global diffuse radiance at the specified surface point.
Color
Get the result of shading this point
Color
Get specular radiance.
Color
ShadingState.occlusion(int samples, float maxDist)
Simple black and white ambient occlusion.
Color
ShadingState.occlusion(int samples, float maxDist, Color bright, Color dark)
Ambient occlusion routine, returns a value between bright and dark depending on the amount of geometric occlusion in the scene.
Color
Run the shader at this surface point.
Color
ShadingState.specularPhong(Color spec, float power, int numRays)
Computes a phong specular response to the current light samples and global illumination.
Color
Returns the color obtained by recursively tracing the specified ray.
Color
Returns the color obtained by recursively tracing the specified ray.
Color
Returns the color obtained by recursively tracing the specified ray.
Color
Trace a shadow ray against the scene, and computes the accumulated opacity along the ray.
Color
Trace transparency, this is equivalent to tracing a refraction ray in the incoming ray direction.

Uses in package org.sunflow.core.primitive

Methods with parameter type org.sunflow.image.Color

void
CornellBox.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power)
void
void

Methods with return type org.sunflow.image.Color

Color
Color

Uses in package org.sunflow

Methods with parameter type org.sunflow.image.Color

void
Benchmark.imageFill(int x, int y, int w, int h, Color c)
void
Benchmark.imageUpdate(int x, int y, int w, int h, Color[] data)
void
SunflowAPI.parameter(String name, Color value)
Declare a parameter with the specified name and value.

Uses in package org.sunflow.image

Constructors with parameter type org.sunflow.image.Color

Fields of type org.sunflow.image.Color

Color
Color
Color
Color
Color
Color
Color
Color
Color

Methods with parameter type org.sunflow.image.Color

Color
Color
Color.add(Color c1, Color c2)
Color
Color.add(Color c1, Color c2, Color dest)
Color
Color.blend(Color c1, Color c2, float b)
Color
Color.blend(Color c1, Color c2, float b, Color dest)
Color
Color.blend(Color c1, Color c2, Color b)
Color
Color.blend(Color c1, Color c2, Color b, Color dest)
XYZColor
Color
Color
Color.div(Color c1, Color c2)
Color
Color.div(Color c1, Color c2, Color dest)
boolean
Color.hasContrast(Color c1, Color c2, float thresh)
Color
Color.madd(float s, Color c)
Color
Color
Color.mul(float s, Color c)
Color
Color.mul(float s, Color c, Color dest)
Color
Color
Color.mul(Color c1, Color c2)
Color
Color.mul(Color c1, Color c2, Color dest)
Color
void
Bitmap.setPixel(int x, int y, Color c)
Color
Color
Color.sub(Color c1, Color c2)
Color
Color.sub(Color c1, Color c2, Color dest)

Methods with return type org.sunflow.image.Color

Color
Color
Color.add(Color c1, Color c2)
Color
Color.add(Color c1, Color c2, Color dest)
Color
Color
Color.blend(Color c1, Color c2, float b)
Color
Color.blend(Color c1, Color c2, float b, Color dest)
Color
Color.blend(Color c1, Color c2, Color b)
Color
Color.blend(Color c1, Color c2, Color b, Color dest)
Color
Color.clamp(float min, float max)
Color
Color
RGBSpace.convertXYZtoRGB(float X, float Y, float Z)
Color
Color
Color
Color
Color.div(Color c1, Color c2)
Color
Color.div(Color c1, Color c2, Color dest)
Color
Color
Bitmap.getPixel(int x, int y)
Color
Color.madd(float s, Color c)
Color
Color
Color.mul(float s)
Color
Color.mul(float s, Color c)
Color
Color.mul(float s, Color c, Color dest)
Color
Color
Color.mul(Color c1, Color c2)
Color
Color.mul(Color c1, Color c2, Color dest)
Color
Color
Color.set(float r, float g, float b)
Color
Color
Color.setRGB(int rgb)
Color
Color.setRGBE(int rgbe)
Color
Color
Color.sub(Color c1, Color c2)
Color
Color.sub(Color c1, Color c2, Color dest)
Color
Color
Color

Uses in package org.sunflow.core.shader

Constructors with parameter type org.sunflow.image.Color

Methods with parameter type org.sunflow.image.Color

void
void
void
void
void
void
void
void
void
void
void
void
Scatter a photon with the specied power.
void
Scatter a photon with the specied power.
void
void
Scatter a photon with the specied power.
void
void
Scatter a photon with the specied power.
void
void

Methods with return type org.sunflow.image.Color

Color
Color
Color
Color
Color
Color
Color
Color
Color
Color
Color
Color
Color
Color
Color
Color
Color
Color
Color
Color
Color
Gets the radiance for a specified rendering state.
Color
Gets the radiance for a specified rendering state.
Color
Color
Gets the radiance for a specified rendering state.
Color
Color
Gets the radiance for a specified rendering state.
Color
Color
Color

Uses in package org.sunflow.core.display

Methods with parameter type org.sunflow.image.Color

void
FastDisplay.imageFill(int x, int y, int w, int h, Color c)
void
FileDisplay.imageFill(int x, int y, int w, int h, Color c)
Update the current image with a region of flat color.
void
FrameDisplay.imageFill(int x, int y, int w, int h, Color c)
Update the current image with a region of flat color.
void
ImgPipeDisplay.imageFill(int x, int y, int w, int h, Color c)
void
OpenExrDisplay.imageFill(int x, int y, int w, int h, Color c)
void
FastDisplay.imageUpdate(int x, int y, int w, int h, Color[] data)
void
FileDisplay.imageUpdate(int x, int y, int w, int h, Color[] data)
Update the current image with a bucket of data.
void
FrameDisplay.imageUpdate(int x, int y, int w, int h, Color[] data)
Update the current image with a bucket of data.
void
ImgPipeDisplay.imageUpdate(int x, int y, int w, int h, Color[] data)
void
OpenExrDisplay.imageUpdate(int x, int y, int w, int h, Color[] data)

Uses in package org.sunflow.core.gi

Methods with parameter type org.sunflow.image.Color

Color
Return the incomming irradiance due to indirect diffuse illumination at the specified surface point.
Color
FakeGIEngine.getIrradiance(ShadingState state, Color diffuseReflectance)
Return the incomming irradiance due to indirect diffuse illumination at the specified surface point.
Color
InstantGI.getIrradiance(ShadingState state, Color diffuseReflectance)
Color
Return the incomming irradiance due to indirect diffuse illumination at the specified surface point.
Color
Return the incomming irradiance due to indirect diffuse illumination at the specified surface point.

Methods with return type org.sunflow.image.Color

Color
This is an optional method for engines that contain a secondary illumination engine which can return an approximation of the global radiance in the scene (like a photon map).
Color
This is an optional method for engines that contain a secondary illumination engine which can return an approximation of the global radiance in the scene (like a photon map).
Color
Color
This is an optional method for engines that contain a secondary illumination engine which can return an approximation of the global radiance in the scene (like a photon map).
Color
This is an optional method for engines that contain a secondary illumination engine which can return an approximation of the global radiance in the scene (like a photon map).
Color
Return the incomming irradiance due to indirect diffuse illumination at the specified surface point.
Color
FakeGIEngine.getIrradiance(ShadingState state, Color diffuseReflectance)
Return the incomming irradiance due to indirect diffuse illumination at the specified surface point.
Color
InstantGI.getIrradiance(ShadingState state, Color diffuseReflectance)
Color
Return the incomming irradiance due to indirect diffuse illumination at the specified surface point.
Color
Return the incomming irradiance due to indirect diffuse illumination at the specified surface point.

Uses in package org.sunflow.system

Methods with parameter type org.sunflow.image.Color

void
ImagePanel.imageFill(int x, int y, int w, int h, Color c)
void
ImagePanel.imageUpdate(int x, int y, int w, int h, Color[] data)

Uses in package org.sunflow.core.light

Methods with parameter type org.sunflow.image.Color

void
DirectionalSpotlight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power)
void
ImageBasedLight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power)
Gets a photon to emit from this light source by setting each of the arguments.
void
PointLight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power)
Gets a photon to emit from this light source by setting each of the arguments.
void
SphereLight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power)
void
SunSkyLight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power)
Gets a photon to emit from this light source by setting each of the arguments.
void
Scatter a photon with the specied power.
void
void
Scatter a photon with the specied power.
void

Methods with return type org.sunflow.image.Color

Color
Gets the radiance for a specified rendering state.
Color
Color
Gets the radiance for a specified rendering state.
Color

Uses in package org.sunflow.core.photonmap

Methods with parameter type org.sunflow.image.Color

void
CausticPhotonMap.store(ShadingState state, Vector3 dir, Color power, Color diffuse)
void
GlobalPhotonMap.store(ShadingState state, Vector3 dir, Color power, Color diffuse)
Store the specified photon.
void
GridPhotonMap.store(ShadingState state, Vector3 dir, Color power, Color diffuse)
Store the specified photon.

Methods with return type org.sunflow.image.Color

Color
Color
Lookup the global diffuse radiance at the specified surface point.