de.grogra.imp3d.spectral
Class RGBSpectralCurve

java.lang.Object
  extended by de.grogra.persistence.ShareableBase
      extended by de.grogra.imp3d.spectral.SpectralCurve
          extended by de.grogra.imp3d.spectral.RGBSpectralCurve
All Implemented Interfaces:
Manageable, Shareable

public class RGBSpectralCurve
extends SpectralCurve


Nested Class Summary
static class RGBSpectralCurve.Type
           
 
Field Summary
static RGBSpectralCurve.Type $TYPE
           
static SCOType.Field b$FIELD
           
static SCOType.Field g$FIELD
           
static SCOType.Field r$FIELD
           
 
Constructor Summary
RGBSpectralCurve()
           
RGBSpectralCurve(float r, float g, float b)
           
 
Method Summary
 ManageableType getManageableType()
           
 float sample(float lambda)
          This function determines the actual spectral curve data.
 
Methods inherited from class de.grogra.imp3d.spectral.SpectralCurve
toXYZ, toXYZ
 
Methods inherited from class de.grogra.persistence.ShareableBase
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReference
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

$TYPE

public static final RGBSpectralCurve.Type $TYPE

b$FIELD

public static final SCOType.Field b$FIELD

g$FIELD

public static final SCOType.Field g$FIELD

r$FIELD

public static final SCOType.Field r$FIELD
Constructor Detail

RGBSpectralCurve

public RGBSpectralCurve()

RGBSpectralCurve

public RGBSpectralCurve(float r,
                        float g,
                        float b)
Method Detail

getManageableType

public ManageableType getManageableType()

sample

public float sample(float lambda)
Description copied from class: SpectralCurve
This function determines the actual spectral curve data. Note that the lambda parameter is assumed to be in nanometers.

Specified by:
sample in class SpectralCurve
Parameters:
lambda - wavelength to sample in nanometers
Returns:
the value of the spectral curve at this point