Class RMChiselEffect
- java.lang.Object
-
- All Implemented Interfaces:
Archivable,DeepChangeListener,RMPropertyChanger,java.beans.PropertyChangeListener,java.lang.Cloneable,java.util.EventListener
public class RMChiselEffect extends RMEmbossEffect
An emboss effect that uses contour fill as its bump map.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.inductiveautomation.rm.graphics.RMImageEffect
RMImageEffect.BoxKernel, RMImageEffect.ConeKernel, RMImageEffect.GaussianKernel
-
-
Constructor Summary
Constructors Constructor Description RMChiselEffect()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RMChiselEffectderiveEffect(boolean direction)RMChiselEffectderiveEffect(float newDepth)booleanequals(java.lang.Object anObj)Standard equals implementation.java.lang.ObjectfromXML(RXArchiver anArchiver, RXElement anElement)XML unarchival.floatgetBevelDepth()Returns bevel depth.java.awt.image.BufferedImagegetImage(RMShape aShape)Creates effect imagebooleanisDirectionUp()Returns whether direction is up.voidisolateHeightSample(int[] bumpPixels, int w, int h)Overridden from RMEmbossEffect to use the blue sample as the heightRXElementtoXML(RXArchiver anArchiver)XML archival.-
Methods inherited from class com.inductiveautomation.rm.graphics.RMEmbossEffect
deriveEffect, deriveEffect, emboss, getAltitude, getAzimuth, getRadius, paint
-
Methods inherited from class com.inductiveautomation.rm.graphics.RMImageEffect
clone, getBlurredImage, getBlurredImage, getCachedImage, getShapeImage, reset
-
Methods inherited from class com.inductiveautomation.rm.graphics.RMEffect
deepChange, getBounds, getName, isEnabled, propertyChange, setEnabled, toString
-
Methods inherited from class com.inductiveautomation.rm.base.RMObject
addPropertyChangeListener, animUpdate, firePropertyChange, firePropertyChange, firePropertyChange, getPCEvent, removePropertyChangeListener, sendPropertyChange
-
Methods inherited from class com.inductiveautomation.rm.base.RMListenerList
addListener, getListener, getListenerCount, getListenerCount, getListenerList, getListeners, hasListeners, removeListener
-
-
-
-
Method Detail
-
getImage
public java.awt.image.BufferedImage getImage(RMShape aShape)
Creates effect image- Overrides:
getImagein classRMEmbossEffect
-
isolateHeightSample
public void isolateHeightSample(int[] bumpPixels, int w, int h)Overridden from RMEmbossEffect to use the blue sample as the height- Overrides:
isolateHeightSamplein classRMEmbossEffect
-
deriveEffect
public RMChiselEffect deriveEffect(float newDepth)
-
deriveEffect
public RMChiselEffect deriveEffect(boolean direction)
-
isDirectionUp
public boolean isDirectionUp()
Returns whether direction is up.
-
getBevelDepth
public float getBevelDepth()
Returns bevel depth.
-
equals
public boolean equals(java.lang.Object anObj)
Standard equals implementation.- Overrides:
equalsin classRMEmbossEffect
-
toXML
public RXElement toXML(RXArchiver anArchiver)
XML archival.- Specified by:
toXMLin interfaceArchivable- Overrides:
toXMLin classRMEmbossEffect
-
fromXML
public java.lang.Object fromXML(RXArchiver anArchiver, RXElement anElement)
XML unarchival.- Specified by:
fromXMLin interfaceArchivable- Overrides:
fromXMLin classRMEmbossEffect
-
-