org.robokind.impl.vision
Class PortableImageRegion

java.lang.Object
  extended by org.robokind.impl.vision.PortableImageRegion
All Implemented Interfaces:
ImageRegion

public class PortableImageRegion
extends Object
implements ImageRegion

ImageRegion implementation wrapping an ImageRegionRecord.

Author:
Matthew Stevenson

Constructor Summary
PortableImageRegion(ImageRegionRecord region)
          Creates a new PortableImageRegion.
 
Method Summary
 int getHeight()
           
 ImageRegionRecord getImageRegionRecord()
          Returns the underlying ImageRegionRecord.
 long getRegionId()
           
 int getWidth()
           
 int getX()
           
 int getY()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortableImageRegion

public PortableImageRegion(ImageRegionRecord region)
Creates a new PortableImageRegion.

Parameters:
region - ImageRegionRecord to wrap
Method Detail

getRegionId

public long getRegionId()
Specified by:
getRegionId in interface ImageRegion

getX

public int getX()
Specified by:
getX in interface ImageRegion

getY

public int getY()
Specified by:
getY in interface ImageRegion

getWidth

public int getWidth()
Specified by:
getWidth in interface ImageRegion

getHeight

public int getHeight()
Specified by:
getHeight in interface ImageRegion

getImageRegionRecord

public ImageRegionRecord getImageRegionRecord()
Returns the underlying ImageRegionRecord.

Returns:
underlying ImageRegionRecord


Copyright © 2011-2012. All Rights Reserved.