java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.gpuflux.imp3d.spectral.SpectralCurve
de.grogra.gpuflux.imp3d.spectral.RegularSpectralCurve
- All Implemented Interfaces:
Manageable
,Shareable
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final RegularSpectralCurve.Type
static final SCOType.Field
static final SCOType.Field
static final SCOType.Field
static final SCOType.Field
static final SCOType.Field
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
sample
(float lambda) This function determines the actual spectral curve data.Methods inherited from class de.grogra.gpuflux.imp3d.spectral.SpectralCurve
toXYZ, toXYZ
Methods inherited from class de.grogra.persistence.ShareableBase
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReference
-
Field Details
-
$TYPE
-
spectrum$FIELD
-
lambdaMin$FIELD
-
lambdaMax$FIELD
-
delta$FIELD
-
invDelta$FIELD
-
-
Constructor Details
-
RegularSpectralCurve
public RegularSpectralCurve() -
RegularSpectralCurve
public RegularSpectralCurve(float[] spectrum, float lambdaMin, float lambdaMax)
-
-
Method Details
-
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 classSpectralCurve
- Parameters:
lambda
- wavelength to sample in nanometers- Returns:
- the value of the spectral curve at this point
-