java.lang.Object
de.grogra.persistence.ShareableBase
de.grogra.gpuflux.imp3d.shading.ChannelSPD
- All Implemented Interfaces:
Icon
,IconSource
,ChannelMap
,ColorMap
,Manageable
,Shareable
,RenderedIcon
-
Nested Class Summary
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstructor, creates a spectral channelChannelSPD
(SpectralCurve curve) Constructor, creates a spectral channel with specified spectral curve -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(ChannelMapVisitor visitor) int
float
getFloatValue
(ChannelData data, int channel) getImage()
getImage
(int w, int h) getObjectValue
(ChannelData data, int channel) getPreferredIconSize
(boolean small) float
boolean
void
paintIcon
(Component c, Graphics2D g, int x, int y, int w, int h, int state) void
int
renderImage
(JobManager jm, BufferedImage img, int y) void
Set spectral curvevoid
Set spectral curveMethods 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
Methods inherited from interface de.grogra.math.ChannelMap
getStamp
Methods inherited from interface de.grogra.pf.ui.RenderedIcon
getStamp
-
Field Details
-
$TYPE
-
spectraldistribution$FIELD
-
-
Constructor Details
-
ChannelSPD
Constructor, creates a spectral channel with specified spectral curve- Parameters:
curve
- spectral curve
-
ChannelSPD
public ChannelSPD()Constructor, creates a spectral channel
-
-
Method Details
-
getManageableType
- Specified by:
getManageableType
in interfaceManageable
-
getSpectraldistribution
-
setSpectraldistribution
Set spectral curve- Parameters:
curve
- spectral curve
-
setSpectraldistribution
Set spectral curve- Parameters:
spd
- spectral curve
-
getAverageColor
public int getAverageColor()- Specified by:
getAverageColor
in interfaceColorMap
-
getFloatValue
- Specified by:
getFloatValue
in interfaceChannelMap
-
getObjectValue
- Specified by:
getObjectValue
in interfaceChannelMap
-
getIcon
- Specified by:
getIcon
in interfaceIconSource
-
getPreferredIconSize
- Specified by:
getPreferredIconSize
in interfaceIconSource
-
paintIcon
-
getIconSource
- Specified by:
getIconSource
in interfaceIcon
-
prepareIcon
public void prepareIcon()- Specified by:
prepareIcon
in interfaceIcon
-
isMutable
public boolean isMutable() -
getImage
-
getImage
-
getImageSource
- Specified by:
getImageSource
in interfaceIcon
-
getIconBounds
- Specified by:
getIconBounds
in interfaceIcon
-
accept
- Specified by:
accept
in interfaceChannelMap
-
getSizeRatio
public float getSizeRatio()- Specified by:
getSizeRatio
in interfaceRenderedIcon
-
renderImage
- Specified by:
renderImage
in interfaceRenderedIcon
-