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
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionConstructor, creates a spectral channelChannelSPD(SpectralCurve curve) Constructor, creates a spectral channel with specified spectral curve -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(ChannelMapVisitor visitor) intfloatgetFloatValue(ChannelData data, int channel) getImage()getImage(int w, int h) getObjectValue(ChannelData data, int channel) getPreferredIconSize(boolean small) floatbooleanvoidpaintIcon(Component c, Graphics2D g, int x, int y, int w, int h, int state) voidintrenderImage(JobManager jm, BufferedImage img, int y) voidSet spectral curvevoidSet spectral curveMethods inherited from class de.grogra.persistence.ShareableBase
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReferenceMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.grogra.math.ChannelMap
getStampMethods 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:
getManageableTypein interfaceManageable
-
getSpectraldistribution
-
setSpectraldistribution
Set spectral curve- Parameters:
curve- spectral curve
-
setSpectraldistribution
Set spectral curve- Parameters:
spd- spectral curve
-
getAverageColor
public int getAverageColor()- Specified by:
getAverageColorin interfaceColorMap
-
getFloatValue
- Specified by:
getFloatValuein interfaceChannelMap
-
getObjectValue
- Specified by:
getObjectValuein interfaceChannelMap
-
getIcon
- Specified by:
getIconin interfaceIconSource
-
getPreferredIconSize
- Specified by:
getPreferredIconSizein interfaceIconSource
-
paintIcon
-
getIconSource
- Specified by:
getIconSourcein interfaceIcon
-
prepareIcon
public void prepareIcon()- Specified by:
prepareIconin interfaceIcon
-
isMutable
public boolean isMutable() -
getImage
-
getImage
-
getImageSource
- Specified by:
getImageSourcein interfaceIcon
-
getIconBounds
- Specified by:
getIconBoundsin interfaceIcon
-
accept
- Specified by:
acceptin interfaceChannelMap
-
getSizeRatio
public float getSizeRatio()- Specified by:
getSizeRatioin interfaceRenderedIcon
-
renderImage
- Specified by:
renderImagein interfaceRenderedIcon
-