Uses of Class
org.sunflow.image.Color

Packages that use Color
org.sunflow   
org.sunflow.core   
org.sunflow.core.display   
org.sunflow.core.gi   
org.sunflow.core.light   
org.sunflow.core.photonmap   
org.sunflow.core.primitive   
org.sunflow.core.shader   
org.sunflow.image   
org.sunflow.system   
 

Uses of Color in org.sunflow
 

Methods in org.sunflow with parameters of type 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(java.lang.String name, Color value)
          Declare a parameter with the specified name and value.
 

Uses of Color in org.sunflow.core
 

Methods in org.sunflow.core that return Color
 Color ShadingState.diffuse(Color diff)
          Computes a plain diffuse response to the current light samples and global illumination.
 Color ParameterList.getColor(java.lang.String name, Color defaultValue)
          Get the specified color parameter from this list.
 Color LightSample.getDiffuseRadiance()
          Get diffuse radiance.
 Color ShadingState.getGlobalRadiance()
          Returns the glboal diffuse radiance estimate given by the current GIEngine if present.
 Color GIEngine.getGlobalRadiance(ShadingState state)
          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 ShadingState.getIrradiance(Color diffuseReflectance)
          Gets the total irradiance reaching the current point from diffuse surfaces.
 Color GIEngine.getIrradiance(ShadingState state, Color diffuseReflectance)
          Return the incomming irradiance due to indirect diffuse illumination at the specified surface point.
 Color Texture.getPixel(float x, float y)
          Gets the color at location (x,y) in the texture.
 Color GlobalPhotonMapInterface.getRadiance(Point3 p, Vector3 n)
          Lookup the global diffuse radiance at the specified surface point.
 Color Shader.getRadiance(ShadingState state)
          Gets the radiance for a specified rendering state.
 Color ShadingState.getResult()
          Get the result of shading this point
 Color LightSample.getSpecularRadiance()
          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 ShadingState.shade()
          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 ShadingState.traceGlossy(Ray r, int i)
          Returns the color obtained by recursively tracing the specified ray.
 Color ShadingState.traceReflection(Ray r, int i)
          Returns the color obtained by recursively tracing the specified ray.
 Color ShadingState.traceRefraction(Ray r, int i)
          Returns the color obtained by recursively tracing the specified ray.
 Color ShadingState.traceShadow(Ray r)
          Trace a shadow ray against the scene, and computes the accumulated opacity along the ray.
 Color ShadingState.traceTransparency()
          Trace transparency, this is equivalent to tracing a refraction ray in the incoming ray direction.
 

Methods in org.sunflow.core with parameters of type Color
 void ParameterList.addColor(java.lang.String name, Color value)
          Add the specified color as a parameter.
 Color ShadingState.diffuse(Color diff)
          Computes a plain diffuse response to the current light samples and global illumination.
 Color ParameterList.getColor(java.lang.String name, Color defaultValue)
          Get the specified color parameter from this list.
 Color ShadingState.getIrradiance(Color diffuseReflectance)
          Gets the total irradiance reaching the current point from diffuse surfaces.
 Color GIEngine.getIrradiance(ShadingState state, Color diffuseReflectance)
          Return the incomming irradiance due to indirect diffuse illumination at the specified surface point.
 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 Shader.scatterPhoton(ShadingState state, Color power)
          Scatter a photon with the specied power.
 void LightSample.setRadiance(Color d, Color s)
          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 ShadingState.traceDiffusePhoton(Ray r, Color power)
          Trace a new photon from the current location.
 void ShadingState.traceReflectionPhoton(Ray r, Color power)
          Trace a new photon from the current location.
 void ShadingState.traceRefractionPhoton(Ray r, Color power)
          Trace a new photon from the current location.
 

Uses of Color in org.sunflow.core.display
 

Methods in org.sunflow.core.display with parameters of type Color
 void OpenExrDisplay.imageFill(int x, int y, int w, int h, Color c)
           
 void ImgPipeDisplay.imageFill(int x, int y, int w, int h, Color c)
           
 void FrameDisplay.imageFill(int x, int y, int w, int h, Color c)
           
 void FileDisplay.imageFill(int x, int y, int w, int h, Color c)
           
 void FastDisplay.imageFill(int x, int y, int w, int h, Color c)
           
 void OpenExrDisplay.imageUpdate(int x, int y, int w, int h, Color[] data)
           
 void ImgPipeDisplay.imageUpdate(int x, int y, int w, int h, Color[] data)
           
 void FrameDisplay.imageUpdate(int x, int y, int w, int h, Color[] data)
           
 void FileDisplay.imageUpdate(int x, int y, int w, int h, Color[] data)
           
 void FastDisplay.imageUpdate(int x, int y, int w, int h, Color[] data)
           
 

Uses of Color in org.sunflow.core.gi
 

Methods in org.sunflow.core.gi that return Color
 Color PathTracingGIEngine.getGlobalRadiance(ShadingState state)
           
 Color IrradianceCacheGIEngine.getGlobalRadiance(ShadingState state)
           
 Color InstantGI.getGlobalRadiance(ShadingState state)
           
 Color FakeGIEngine.getGlobalRadiance(ShadingState state)
           
 Color AmbientOcclusionGIEngine.getGlobalRadiance(ShadingState state)
           
 Color PathTracingGIEngine.getIrradiance(ShadingState state, Color diffuseReflectance)
           
 Color IrradianceCacheGIEngine.getIrradiance(ShadingState state, Color diffuseReflectance)
           
 Color InstantGI.getIrradiance(ShadingState state, Color diffuseReflectance)
           
 Color FakeGIEngine.getIrradiance(ShadingState state, Color diffuseReflectance)
           
 Color AmbientOcclusionGIEngine.getIrradiance(ShadingState state, Color diffuseReflectance)
           
 

Methods in org.sunflow.core.gi with parameters of type Color
 Color PathTracingGIEngine.getIrradiance(ShadingState state, Color diffuseReflectance)
           
 Color IrradianceCacheGIEngine.getIrradiance(ShadingState state, Color diffuseReflectance)
           
 Color InstantGI.getIrradiance(ShadingState state, Color diffuseReflectance)
           
 Color FakeGIEngine.getIrradiance(ShadingState state, Color diffuseReflectance)
           
 Color AmbientOcclusionGIEngine.getIrradiance(ShadingState state, Color diffuseReflectance)
           
 

Uses of Color in org.sunflow.core.light
 

Methods in org.sunflow.core.light that return Color
 Color TriangleMeshLight.getRadiance(ShadingState state)
           
 Color SunSkyLight.getRadiance(ShadingState state)
           
 Color SphereLight.getRadiance(ShadingState state)
           
 Color ImageBasedLight.getRadiance(ShadingState state)
           
 

Methods in org.sunflow.core.light with parameters of type Color
 void SunSkyLight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power)
           
 void SphereLight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power)
           
 void PointLight.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)
           
 void DirectionalSpotlight.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power)
           
 void TriangleMeshLight.scatterPhoton(ShadingState state, Color power)
           
 void SunSkyLight.scatterPhoton(ShadingState state, Color power)
           
 void SphereLight.scatterPhoton(ShadingState state, Color power)
           
 void ImageBasedLight.scatterPhoton(ShadingState state, Color power)
           
 

Uses of Color in org.sunflow.core.photonmap
 

Methods in org.sunflow.core.photonmap that return Color
 Color GridPhotonMap.getRadiance(Point3 p, Vector3 n)
           
 Color GlobalPhotonMap.getRadiance(Point3 p, Vector3 n)
           
 

Methods in org.sunflow.core.photonmap with parameters of type Color
 void GridPhotonMap.store(ShadingState state, Vector3 dir, Color power, Color diffuse)
           
 void GlobalPhotonMap.store(ShadingState state, Vector3 dir, Color power, Color diffuse)
           
 void CausticPhotonMap.store(ShadingState state, Vector3 dir, Color power, Color diffuse)
           
 

Uses of Color in org.sunflow.core.primitive
 

Methods in org.sunflow.core.primitive that return Color
 Color Hair.getRadiance(ShadingState state)
           
 Color CornellBox.getRadiance(ShadingState state)
           
 

Methods in org.sunflow.core.primitive with parameters of type Color
 void CornellBox.getPhoton(double randX1, double randY1, double randX2, double randY2, Point3 p, Vector3 dir, Color power)
           
 void Hair.scatterPhoton(ShadingState state, Color power)
           
 void CornellBox.scatterPhoton(ShadingState state, Color power)
           
 

Uses of Color in org.sunflow.core.shader
 

Methods in org.sunflow.core.shader that return Color
 Color TexturedAmbientOcclusionShader.getBrightColor(ShadingState state)
           
 Color AmbientOcclusionShader.getBrightColor(ShadingState state)
           
 Color UberShader.getDiffuse(ShadingState state)
           
 Color TexturedWardShader.getDiffuse(ShadingState state)
           
 Color TexturedShinyDiffuseShader.getDiffuse(ShadingState state)
           
 Color TexturedPhongShader.getDiffuse(ShadingState state)
           
 Color TexturedDiffuseShader.getDiffuse(ShadingState state)
           
 Color ShinyDiffuseShader.getDiffuse(ShadingState state)
           
protected  Color PhongShader.getDiffuse(ShadingState state)
           
 Color DiffuseShader.getDiffuse(ShadingState state)
           
protected  Color AnisotropicWardShader.getDiffuse(ShadingState state)
           
 Color WireframeShader.getFillColor(ShadingState state)
           
 Color WireframeShader.getLineColor(ShadingState state)
           
 Color WireframeShader.getRadiance(ShadingState state)
           
 Color ViewIrradianceShader.getRadiance(ShadingState state)
           
 Color ViewGlobalPhotonsShader.getRadiance(ShadingState state)
           
 Color ViewCausticsShader.getRadiance(ShadingState state)
           
 Color UberShader.getRadiance(ShadingState state)
           
 Color UVShader.getRadiance(ShadingState state)
           
 Color SimpleShader.getRadiance(ShadingState state)
           
 Color ShinyDiffuseShader.getRadiance(ShadingState state)
           
 Color QuickGrayShader.getRadiance(ShadingState state)
           
 Color PrimIDShader.getRadiance(ShadingState state)
           
 Color PhongShader.getRadiance(ShadingState state)
           
 Color NormalShader.getRadiance(ShadingState state)
           
 Color MirrorShader.getRadiance(ShadingState state)
           
 Color IDShader.getRadiance(ShadingState state)
           
 Color GlassShader.getRadiance(ShadingState state)
           
 Color DiffuseShader.getRadiance(ShadingState state)
           
 Color ConstantShader.getRadiance(ShadingState state)
           
 Color AnisotropicWardShader.getRadiance(ShadingState state)
           
 Color AmbientOcclusionShader.getRadiance(ShadingState state)
           
 Color UberShader.getSpecular(ShadingState state)
           
 

Methods in org.sunflow.core.shader with parameters of type Color
 void WireframeShader.scatterPhoton(ShadingState state, Color power)
           
 void ViewIrradianceShader.scatterPhoton(ShadingState state, Color power)
           
 void ViewGlobalPhotonsShader.scatterPhoton(ShadingState state, Color power)
           
 void ViewCausticsShader.scatterPhoton(ShadingState state, Color power)
           
 void UberShader.scatterPhoton(ShadingState state, Color power)
           
 void UVShader.scatterPhoton(ShadingState state, Color power)
           
 void SimpleShader.scatterPhoton(ShadingState state, Color power)
           
 void ShinyDiffuseShader.scatterPhoton(ShadingState state, Color power)
           
 void QuickGrayShader.scatterPhoton(ShadingState state, Color power)
           
 void PrimIDShader.scatterPhoton(ShadingState state, Color power)
           
 void PhongShader.scatterPhoton(ShadingState state, Color power)
           
 void NormalShader.scatterPhoton(ShadingState state, Color power)
           
 void MirrorShader.scatterPhoton(ShadingState state, Color power)
           
 void IDShader.scatterPhoton(ShadingState state, Color power)
           
 void GlassShader.scatterPhoton(ShadingState state, Color power)
           
 void DiffuseShader.scatterPhoton(ShadingState state, Color power)
           
 void ConstantShader.scatterPhoton(ShadingState state, Color power)
           
 void AnisotropicWardShader.scatterPhoton(ShadingState state, Color power)
           
 void AmbientOcclusionShader.scatterPhoton(ShadingState state, Color power)
           
 

Constructors in org.sunflow.core.shader with parameters of type Color
AmbientOcclusionShader(Color c, float d)
           
 

Uses of Color in org.sunflow.image
 

Fields in org.sunflow.image declared as Color
static Color Color.BLACK
           
static Color Color.BLUE
           
static Color Color.CYAN
           
static Color Color.GRAY
           
static Color Color.GREEN
           
static Color Color.MAGENTA
           
static Color Color.RED
           
static Color Color.WHITE
           
static Color Color.YELLOW
           
 

Methods in org.sunflow.image that return Color
 Color Color.add(Color c)
           
static Color Color.add(Color c1, Color c2)
           
static Color Color.add(Color c1, Color c2, Color dest)
           
static Color Color.black()
           
static Color Color.blend(Color c1, Color c2, Color b)
           
static Color Color.blend(Color c1, Color c2, Color b, Color dest)
           
static Color Color.blend(Color c1, Color c2, float b)
           
static Color Color.blend(Color c1, Color c2, float b, Color dest)
           
 Color Color.clamp(float min, float max)
           
 Color Color.constrainRGB()
           
 Color RGBSpace.convertXYZtoRGB(float X, float Y, float Z)
           
 Color RGBSpace.convertXYZtoRGB(XYZColor c)
           
 Color Color.copy()
           
 Color Color.div(Color c)
           
static Color Color.div(Color c1, Color c2)
           
static Color Color.div(Color c1, Color c2, Color dest)
           
 Color Color.exp()
           
 Color Bitmap.getPixel(int x, int y)
           
 Color Color.madd(Color s, Color c)
           
 Color Color.madd(float s, Color c)
           
 Color Color.mul(Color c)
           
static Color Color.mul(Color c1, Color c2)
           
static Color Color.mul(Color c1, Color c2, Color dest)
           
 Color Color.mul(float s)
           
static Color Color.mul(float s, Color c)
           
static Color Color.mul(float s, Color c, Color dest)
           
 Color Color.opposite()
           
 Color Color.set(Color c)
           
 Color Color.set(float r, float g, float b)
           
 Color Color.setRGB(int rgb)
           
 Color Color.setRGBE(int rgbe)
           
 Color Color.sub(Color c)
           
static Color Color.sub(Color c1, Color c2)
           
static Color Color.sub(Color c1, Color c2, Color dest)
           
 Color Color.toLinear()
           
 Color Color.toNonLinear()
           
static Color Color.white()
           
 

Methods in org.sunflow.image with parameters of type Color
 Color Color.add(Color c)
           
static Color Color.add(Color c1, Color c2)
           
static Color Color.add(Color c1, Color c2, Color dest)
           
static Color Color.blend(Color c1, Color c2, Color b)
           
static Color Color.blend(Color c1, Color c2, Color b, Color dest)
           
static Color Color.blend(Color c1, Color c2, float b)
           
static Color Color.blend(Color c1, Color c2, float b, Color dest)
           
 XYZColor RGBSpace.convertRGBtoXYZ(Color c)
           
 Color Color.div(Color c)
           
static Color Color.div(Color c1, Color c2)
           
static Color Color.div(Color c1, Color c2, Color dest)
           
static boolean Color.hasContrast(Color c1, Color c2, float thresh)
           
 Color Color.madd(Color s, Color c)
           
 Color Color.madd(float s, Color c)
           
 Color Color.mul(Color c)
           
static Color Color.mul(Color c1, Color c2)
           
static Color Color.mul(Color c1, Color c2, Color dest)
           
static Color Color.mul(float s, Color c)
           
static Color Color.mul(float s, Color c, Color dest)
           
 Color Color.set(Color c)
           
 void Bitmap.setPixel(int x, int y, Color c)
           
 Color Color.sub(Color c)
           
static Color Color.sub(Color c1, Color c2)
           
static Color Color.sub(Color c1, Color c2, Color dest)
           
 

Constructors in org.sunflow.image with parameters of type Color
Color(Color c)
           
 

Uses of Color in org.sunflow.system
 

Methods in org.sunflow.system with parameters of type 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)