org.jplot2d.element.impl
Class ImageMappingImpl
- java.lang.Object
-
- org.jplot2d.element.impl.ElementImpl
-
- org.jplot2d.element.impl.ImageMappingImpl
-
- All Implemented Interfaces:
- Element, ImageMapping, ElementEx, ImageMappingEx
public class ImageMappingImpl extends ElementImpl implements ImageMappingEx
-
-
Constructor Summary
Constructors Constructor and Description ImageMappingImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidaddImageGraph(ImageGraphEx graph)voidcalcLimits()Called by PlotEx.commit() to calculate limits if neededvoidcopyFrom(ElementEx src)Copies all properties from given src to this element.doublegetBias()Returns the bias value.ColorMapgetColorMap()Returns the lookup table for displaying the intensity raster.java.lang.StringgetFullId()Returns the full id of this component.doublegetGain()Returns the gain value.ImageGraphEx[]getGraphs()Returns all ImageGraph whose mapping are controlled by this ImageMapping.java.lang.StringgetId()Returns the id string of this elementintgetILUTOutputBits()Returns the number of significant bits that the ILUT output range.IntensityTransformgetIntensityTransform()Returns the IntensityTransform used to enhance images before applying bias/gain.InvokeStepgetInvokeStepFormParent()Return the invoke step to get this object from its parent.double[]getLimits()LimitsAlgorithmgetLimitsAlgorithm()Returns the LimitsAlgorithmImageGraphExgetParent()Gets the parent of this component.voidrecalcLimits()Called by ImageGraphEx when its data changed, to notify the limits need to be recalculated.voidremoveImageGraph(ImageGraphEx graph)voidsetBias(double bias)Sets the bias value.voidsetColorMap(ColorMap colorMap)Sets a ColorMap to lookup the intensity raster for display.voidsetGain(double gain)Sets the gain value.voidsetIntensityTransform(IntensityTransform it)Apply the given IntensityTransform to enhance images before applying bias/gain.voidsetLimitsAlgorithm(LimitsAlgorithm algo)Sets the LimitsAlgorithm-
Methods inherited from class org.jplot2d.element.impl.ElementImpl
copyStructure, getEnvironment, notify, setParent, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.jplot2d.element.impl.ElementEx
copyStructure, notify, setParent
-
Methods inherited from interface org.jplot2d.element.Element
getEnvironment
-
-
-
-
Method Detail
-
getParent
public ImageGraphEx getParent()
Description copied from interface:ElementGets the parent of this component.- Specified by:
getParentin interfaceElement- Specified by:
getParentin interfaceElementEx- Specified by:
getParentin interfaceImageMappingEx- Overrides:
getParentin classElementImpl- Returns:
- the parent of this component
-
getId
public java.lang.String getId()
Description copied from interface:ElementReturns the id string of this element
-
getFullId
public java.lang.String getFullId()
Description copied from interface:ElementExReturns the full id of this component. The full id is composed of series of ids concatenated with dots. The 1st id is the id of this element, the 2nd id is the id of the parent of this element, etc, until the root plot.- Specified by:
getFullIdin interfaceElementEx- Overrides:
getFullIdin classElementImpl- Returns:
- the full id of this component
-
getInvokeStepFormParent
public InvokeStep getInvokeStepFormParent()
Description copied from interface:ElementExReturn the invoke step to get this object from its parent.- Specified by:
getInvokeStepFormParentin interfaceElementEx- Returns:
- the invoke step
-
addImageGraph
public void addImageGraph(ImageGraphEx graph)
- Specified by:
addImageGraphin interfaceImageMappingEx
-
removeImageGraph
public void removeImageGraph(ImageGraphEx graph)
- Specified by:
removeImageGraphin interfaceImageMappingEx
-
getGraphs
public ImageGraphEx[] getGraphs()
Description copied from interface:ImageMappingReturns all ImageGraph whose mapping are controlled by this ImageMapping.- Specified by:
getGraphsin interfaceImageMapping- Specified by:
getGraphsin interfaceImageMappingEx- Returns:
- all ImageGraph whose mapping are controlled by this ImageMapping
-
getLimitsAlgorithm
public LimitsAlgorithm getLimitsAlgorithm()
Description copied from interface:ImageMappingReturns the LimitsAlgorithm- Specified by:
getLimitsAlgorithmin interfaceImageMapping- Returns:
- the LimitsAlgorithm
-
setLimitsAlgorithm
public void setLimitsAlgorithm(LimitsAlgorithm algo)
Description copied from interface:ImageMappingSets the LimitsAlgorithm- Specified by:
setLimitsAlgorithmin interfaceImageMapping- Parameters:
algo- the LimitsAlgorithm
-
recalcLimits
public void recalcLimits()
Description copied from interface:ImageMappingExCalled by ImageGraphEx when its data changed, to notify the limits need to be recalculated.- Specified by:
recalcLimitsin interfaceImageMappingEx
-
calcLimits
public void calcLimits()
Description copied from interface:ImageMappingExCalled by PlotEx.commit() to calculate limits if needed- Specified by:
calcLimitsin interfaceImageMappingEx
-
getLimits
public double[] getLimits()
- Specified by:
getLimitsin interfaceImageMappingEx
-
getIntensityTransform
public IntensityTransform getIntensityTransform()
Description copied from interface:ImageMappingReturns the IntensityTransform used to enhance images before applying bias/gain.- Specified by:
getIntensityTransformin interfaceImageMapping- Returns:
- the IntensityTransform
-
setIntensityTransform
public void setIntensityTransform(IntensityTransform it)
Description copied from interface:ImageMappingApply the given IntensityTransform to enhance images before applying bias/gain.- Specified by:
setIntensityTransformin interfaceImageMapping- Parameters:
it- the IntensityTransform to be applied
-
getBias
public double getBias()
Description copied from interface:ImageMappingReturns the bias value. The default value is 0.5.- Specified by:
getBiasin interfaceImageMapping- Returns:
- the bias value
-
setBias
public void setBias(double bias)
Description copied from interface:ImageMappingSets the bias value. The valid range is [0,1] and the default value is 0.5.- Specified by:
setBiasin interfaceImageMapping- Parameters:
bias- the bias value- See Also:
- C. Schlick, Fast Alternatives to Perlin's Bias and Gain Functions
-
getGain
public double getGain()
Description copied from interface:ImageMappingReturns the gain value. The default value is 0.5.- Specified by:
getGainin interfaceImageMapping- Returns:
- the gain value
-
setGain
public void setGain(double gain)
Description copied from interface:ImageMappingSets the gain value. The valid range is [0,1] and the default value is 0.5.- Specified by:
setGainin interfaceImageMapping- Parameters:
gain- the gain value- See Also:
- C. Schlick, Fast Alternatives to Perlin's Bias and Gain Functions
-
getColorMap
public ColorMap getColorMap()
Description copied from interface:ImageMappingReturns the lookup table for displaying the intensity raster.- Specified by:
getColorMapin interfaceImageMapping- Returns:
- the lookup table for displaying the intensity raster
-
setColorMap
public void setColorMap(ColorMap colorMap)
Description copied from interface:ImageMappingSets a ColorMap to lookup the intensity raster for display.- Specified by:
setColorMapin interfaceImageMapping- Parameters:
colorMap- the lookup table for displaying the intensity raster
-
copyFrom
public void copyFrom(ElementEx src)
Description copied from interface:ElementExCopies all properties from given src to this element. Notice properties of sub-elements are not copied over.- Specified by:
copyFromin interfaceElementEx- Overrides:
copyFromin classElementImpl- Parameters:
src- the src
-
getILUTOutputBits
public int getILUTOutputBits()
Description copied from interface:ImageMappingExReturns the number of significant bits that the ILUT output range. When creating image, the color model bit should match this value.- Specified by:
getILUTOutputBitsin interfaceImageMappingEx- Returns:
- the number of significant bits
-
-
DMelt 3.0 © DataMelt by jWork.ORG