us.ihmc.graphics3DAdapter.graphics.instructions
Class Graphics3DAddExtusionInstruction
java.lang.Object
us.ihmc.graphics3DAdapter.graphics.instructions.Graphics3DInstruction
us.ihmc.graphics3DAdapter.graphics.instructions.Graphics3DAddExtusionInstruction
- All Implemented Interfaces:
- Graphics3DPrimitiveInstruction
public class Graphics3DAddExtusionInstruction
- extends Graphics3DInstruction
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Graphics3DAddExtusionInstruction
public Graphics3DAddExtusionInstruction(java.lang.String text,
double thickness,
AppearanceDefinition appearance)
Graphics3DAddExtusionInstruction
public Graphics3DAddExtusionInstruction(java.awt.image.BufferedImage bufferedImageToExtrude,
double thickness,
AppearanceDefinition appearance)
- Create an extrusion of a BufferedImage. Black pixels of the image are extruded.
A pixel is considered black when (red+green+blue)/3 < 60
- Parameters:
bufferedImageToExtrude
- BufferedImage to extrudethickness
- Thinkness of extrusionappearance
- Appearance
getBufferedImage
public java.awt.image.BufferedImage getBufferedImage()
setBufferedImage
public void setBufferedImage(java.awt.image.BufferedImage newImage)
setHeight
public void setHeight(double height)
setText
public void setText(java.lang.String text)
setTextChangedListener
public void setTextChangedListener(ExtrusionChangedListener textChangedListener)
getHeight
public double getHeight()