us.ihmc.graphics3DAdapter.camera
Class ScreenCapture

java.lang.Object
  extended by us.ihmc.graphics3DAdapter.camera.ScreenCapture
All Implemented Interfaces:
java.io.Serializable

public class ScreenCapture
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Constructor Summary
ScreenCapture(java.awt.image.BufferedImage bufferedImage, javax.vecmath.Point3d location, javax.vecmath.Quat4d rotation, float fov)
           
 
Method Summary
static byte[] bufferedImageToByteArray(java.awt.image.BufferedImage image)
           
static java.awt.image.BufferedImage byteArrayToBufferedImage(byte[] bytes)
           
 float getFov()
           
 int getHeight()
           
 java.awt.image.BufferedImage getImage()
           
 javax.vecmath.Point3d getLocation()
           
 javax.vecmath.Quat4d getRotation()
           
 int getWidth()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScreenCapture

public ScreenCapture(java.awt.image.BufferedImage bufferedImage,
                     javax.vecmath.Point3d location,
                     javax.vecmath.Quat4d rotation,
                     float fov)
Method Detail

getLocation

public javax.vecmath.Point3d getLocation()

getRotation

public javax.vecmath.Quat4d getRotation()

getFov

public float getFov()

bufferedImageToByteArray

public static byte[] bufferedImageToByteArray(java.awt.image.BufferedImage image)
                                       throws java.io.IOException
Throws:
java.io.IOException

byteArrayToBufferedImage

public static java.awt.image.BufferedImage byteArrayToBufferedImage(byte[] bytes)

getImage

public java.awt.image.BufferedImage getImage()

getHeight

public int getHeight()

getWidth

public int getWidth()