de.grogra.imp3d.shading
public class ChannelSPD extends ShareableBase implements ColorMap, IconSource, Icon, RenderedIcon
| Modifier and Type | Class and Description |
|---|---|
static class |
ChannelSPD.Type |
| Modifier and Type | Field and Description |
|---|---|
static ChannelSPD.Type |
$TYPE |
static SCOType.Field |
spectraldistribution$FIELD |
| Constructor and Description |
|---|
ChannelSPD()
Constructor, creates a spectral channel
|
ChannelSPD(SpectralCurve curve)
Constructor, creates a spectral channel with specified spectral curve
|
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ChannelMapVisitor visitor) |
int |
getAverageColor() |
float |
getFloatValue(ChannelData data,
int channel) |
Icon |
getIcon(java.awt.Dimension size,
int state) |
java.awt.Rectangle |
getIconBounds() |
IconSource |
getIconSource() |
java.awt.Image |
getImage() |
java.awt.Image |
getImage(int w,
int h) |
java.net.URL |
getImageSource() |
ManageableType |
getManageableType() |
java.lang.Object |
getObjectValue(ChannelData data,
int channel) |
java.awt.Dimension |
getPreferredIconSize(boolean small) |
float |
getSizeRatio() |
SPDIF |
getSpectraldistribution() |
boolean |
isMutable() |
void |
paintIcon(java.awt.Component c,
java.awt.Graphics2D g,
int x,
int y,
int w,
int h,
int state) |
void |
prepareIcon() |
int |
renderImage(JobManager jm,
java.awt.image.BufferedImage img,
int y) |
void |
setSpectraldistribution(SPD spd)
Set spectral curve
|
void |
setSpectraldistribution(SpectralCurve curve)
Set spectral curve
|
addReference, appendReferencesTo, fieldModified, getProvider, getStamp, initProvider, manageableReadResolve, manageableWriteReplace, removeReferenceclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStampgetStamppublic static final ChannelSPD.Type $TYPE
public static final SCOType.Field spectraldistribution$FIELD
public ChannelSPD()
public ChannelSPD(SpectralCurve curve)
curve - spectral curvepublic void accept(ChannelMapVisitor visitor)
accept in interface ChannelMappublic int getAverageColor()
getAverageColor in interface ColorMappublic float getFloatValue(ChannelData data, int channel)
getFloatValue in interface ChannelMappublic Icon getIcon(java.awt.Dimension size, int state)
getIcon in interface IconSourcepublic java.awt.Rectangle getIconBounds()
getIconBounds in interface Iconpublic IconSource getIconSource()
getIconSource in interface Iconpublic java.net.URL getImageSource()
getImageSource in interface Iconpublic ManageableType getManageableType()
getManageableType in interface Manageablepublic java.lang.Object getObjectValue(ChannelData data, int channel)
getObjectValue in interface ChannelMappublic java.awt.Dimension getPreferredIconSize(boolean small)
getPreferredIconSize in interface IconSourcepublic float getSizeRatio()
getSizeRatio in interface RenderedIconpublic SPDIF getSpectraldistribution()
public void paintIcon(java.awt.Component c,
java.awt.Graphics2D g,
int x,
int y,
int w,
int h,
int state)
public void prepareIcon()
prepareIcon in interface Iconpublic int renderImage(JobManager jm, java.awt.image.BufferedImage img, int y)
renderImage in interface RenderedIconpublic void setSpectraldistribution(SPD spd)
spd - spectral curvepublic void setSpectraldistribution(SpectralCurve curve)
curve - spectral curve