java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.gpuflux.imp3d.spectral.SpectralCurve
de.grogra.gpuflux.imp3d.spectral.ConstantSpectralCurve
- All Implemented Interfaces:
Manageable,Shareable
Very simple class equivalent to a constant spectral curve. Note that this is
most likely physically impossible for amplitudes > 0, however this class can
be handy since in practice spectral curves end up being integrated against
the finite width color matching functions.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConstantSpectralCurve.Typestatic final SCOType.Field -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatsample(float lambda) This function determines the actual spectral curve data.Methods inherited from class de.grogra.gpuflux.imp3d.spectral.SpectralCurve
toXYZ, toXYZMethods inherited from class de.grogra.persistence.ShareableBase
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReference
-
Field Details
-
$TYPE
-
amp$FIELD
-
-
Constructor Details
-
ConstantSpectralCurve
public ConstantSpectralCurve() -
ConstantSpectralCurve
public ConstantSpectralCurve(float amp)
-
-
Method Details
-
getManageableType
-
sample
public float sample(float lambda) Description copied from class:SpectralCurveThis function determines the actual spectral curve data. Note that the lambda parameter is assumed to be in nanometers.- Specified by:
samplein classSpectralCurve- Parameters:
lambda- wavelength to sample in nanometers- Returns:
- the value of the spectral curve at this point
-