org.robokind.impl.vision
Class PortableImageEvent

java.lang.Object
  extended by org.robokind.impl.vision.PortableImageEvent
All Implemented Interfaces:
org.robokind.api.vision.ImageEvent

public class PortableImageEvent
extends Object
implements org.robokind.api.vision.ImageEvent

ImageEvent implementation wrapping an ImageEventRecord. Creates and caches a Java Image from the image data.

Author:
Matthew Stevenson

Nested Class Summary
static class PortableImageEvent.ImageRecordAdapter
           
 
Constructor Summary
PortableImageEvent(org.robokind.avrogen.vision.ImageRecord record)
          Creates a new PortableImageEvent wrapping the given ImageRecord.
 
Method Summary
 int getChannelCount()
           
 int getHeight()
           
 Image getImage()
           
 long getImageId()
           
 org.robokind.avrogen.vision.ImageRecord getImageRecord()
          Returns the underlying ImageRecord.
 String getImageSourceId()
           
 long getImageTimestampUTC()
           
 int getWidth()
           
 int getWidthStep()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortableImageEvent

public PortableImageEvent(org.robokind.avrogen.vision.ImageRecord record)
Creates a new PortableImageEvent wrapping the given ImageRecord.

Parameters:
record - ImageRecord to wrap
Method Detail

getImage

public Image getImage()
Specified by:
getImage in interface org.robokind.api.vision.ImageEvent

getImageRecord

public org.robokind.avrogen.vision.ImageRecord getImageRecord()
Returns the underlying ImageRecord.

Returns:
underlying ImageRecord

getImageSourceId

public String getImageSourceId()
Specified by:
getImageSourceId in interface org.robokind.api.vision.ImageEvent

getImageTimestampUTC

public long getImageTimestampUTC()
Specified by:
getImageTimestampUTC in interface org.robokind.api.vision.ImageEvent

getImageId

public long getImageId()
Specified by:
getImageId in interface org.robokind.api.vision.ImageEvent

getWidth

public int getWidth()
Specified by:
getWidth in interface org.robokind.api.vision.ImageEvent

getHeight

public int getHeight()
Specified by:
getHeight in interface org.robokind.api.vision.ImageEvent

getChannelCount

public int getChannelCount()
Specified by:
getChannelCount in interface org.robokind.api.vision.ImageEvent

getWidthStep

public int getWidthStep()
Specified by:
getWidthStep in interface org.robokind.api.vision.ImageEvent


Copyright © 2011. All Rights Reserved.