Class RMEmbossEffect
- java.lang.Object
- 
- com.inductiveautomation.rm.base.RMListenerList
- 
- com.inductiveautomation.rm.base.RMObject
- 
- com.inductiveautomation.rm.graphics.RMEffect
- 
- com.inductiveautomation.rm.graphics.RMImageEffect
- 
- com.inductiveautomation.rm.graphics.RMEmbossEffect
 
 
 
 
 
- 
- All Implemented Interfaces:
- Archivable,- DeepChangeListener,- RMPropertyChanger,- java.beans.PropertyChangeListener,- java.lang.Cloneable,- java.util.EventListener
 - Direct Known Subclasses:
- RMChiselEffect
 
 public class RMEmbossEffect extends RMImageEffect Renders a given shape with an emboss effect.
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.inductiveautomation.rm.graphics.RMImageEffectRMImageEffect.BoxKernel, RMImageEffect.ConeKernel, RMImageEffect.GaussianKernel
 
- 
 - 
Constructor SummaryConstructors Constructor Description RMEmbossEffect()Creates a new emboss effect.RMEmbossEffect(float altitude, float azimuth, int radius)Creates a new emboss effect with given altitude, azimuth and radius.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description RMEmbossEffectderiveEffect(float newAltitude, float newAzimuth)Derive with new altitude and azimuth.RMEmbossEffectderiveEffect(int newRadius)Derive with new radius.voidemboss(java.awt.image.BufferedImage source, java.awt.image.BufferedImage bump)Emboss a 24 bit source image according to a bump map.booleanequals(java.lang.Object anObj)Standard equals implementation.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.floatgetAltitude()Returns altitude of light source.floatgetAzimuth()Returns angle of light source.java.awt.image.BufferedImagegetImage(RMShape aShape)Creates effect imageintgetRadius()Returns radius of edge rounding.voidisolateHeightSample(int[] bumpPixels, int w, int h)Converts the argb bumpSamples into an array of signed ints representing the height.voidpaint(RMShapePainter aPntr, RMShape aShape)Render this fill in a shape painter.RXElementtoXML(RXArchiver anArchiver)XML archival.- 
Methods inherited from class com.inductiveautomation.rm.graphics.RMImageEffectclone, getBlurredImage, getBlurredImage, getCachedImage, getShapeImage, reset
 - 
Methods inherited from class com.inductiveautomation.rm.graphics.RMEffectdeepChange, getBounds, getName, isEnabled, propertyChange, setEnabled, toString
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMObjectaddPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
 - 
Methods inherited from class com.inductiveautomation.rm.base.RMListenerListaddListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
 
- 
 
- 
- 
- 
Method Detail- 
getAltitudepublic float getAltitude() Returns altitude of light source.
 - 
getAzimuthpublic float getAzimuth() Returns angle of light source.
 - 
getRadiuspublic int getRadius() Returns radius of edge rounding.
 - 
deriveEffectpublic RMEmbossEffect deriveEffect(float newAltitude, float newAzimuth) Derive with new altitude and azimuth.
 - 
deriveEffectpublic RMEmbossEffect deriveEffect(int newRadius) Derive with new radius.
 - 
getImagepublic java.awt.image.BufferedImage getImage(RMShape aShape) Creates effect image- Specified by:
- getImagein class- RMImageEffect
 
 - 
embosspublic void emboss(java.awt.image.BufferedImage source, java.awt.image.BufferedImage bump)Emboss a 24 bit source image according to a bump map. Bump map is assumed to to be (2*_radius x 2*_radius) pixels larger than the source to compensate for edge conditions of both the blur and the emboss convolutions.
 - 
isolateHeightSamplepublic void isolateHeightSample(int[] bumpPixels, int w, int h)Converts the argb bumpSamples into an array of signed ints representing the height. Height values should be in the range 0-255
 - 
paintpublic void paint(RMShapePainter aPntr, RMShape aShape) Render this fill in a shape painter.
 - 
equalspublic boolean equals(java.lang.Object anObj) Standard equals implementation.- Overrides:
- equalsin class- java.lang.Object
 
 - 
toXMLpublic RXElement toXML(RXArchiver anArchiver) XML archival.- Specified by:
- toXMLin interface- Archivable
- Overrides:
- toXMLin class- RMEffect
 
 - 
fromXMLpublic java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement) XML unarchival.- Specified by:
- fromXMLin interface- Archivable
- Overrides:
- fromXMLin class- RMEffect
 
 
- 
 
-