us.ihmc.graphics3DAdapter.graphics.instructions
Class Graphics3DAddExtusionInstruction

java.lang.Object
  extended by us.ihmc.graphics3DAdapter.graphics.instructions.Graphics3DInstruction
      extended by us.ihmc.graphics3DAdapter.graphics.instructions.Graphics3DAddExtusionInstruction
All Implemented Interfaces:
Graphics3DPrimitiveInstruction

public class Graphics3DAddExtusionInstruction
extends Graphics3DInstruction


Constructor Summary
Graphics3DAddExtusionInstruction(java.awt.image.BufferedImage bufferedImageToExtrude, double thickness, AppearanceDefinition appearance)
          Create an extrusion of a BufferedImage.
Graphics3DAddExtusionInstruction(java.lang.String text, double thickness, AppearanceDefinition appearance)
           
 
Method Summary
 java.awt.image.BufferedImage getBufferedImage()
           
 double getHeight()
           
 void setBufferedImage(java.awt.image.BufferedImage newImage)
           
 void setHeight(double height)
           
 void setText(java.lang.String text)
           
 void setTextChangedListener(ExtrusionChangedListener textChangedListener)
           
 
Methods inherited from class us.ihmc.graphics3DAdapter.graphics.instructions.Graphics3DInstruction
getAppearance, setAppearance, setAppearanceChangedListener
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 extrude
thickness - Thinkness of extrusion
appearance - Appearance
Method Detail

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()