edu.wpi.first.wpilibj.image
Class NIVision.Rect

java.lang.Object
  extended by Structure
      extended by edu.wpi.first.wpilibj.image.NIVision.Rect
Enclosing class:
NIVision

public static class NIVision.Rect
extends Structure


Constructor Summary
NIVision.Rect(int top, int left, int height, int width)
          Create a new Rect with the specified dimensions
 
Method Summary
 void free()
          Free the memory used by this range
 int getHeight()
          Get the height of the rectangle
 int getLeft()
          Get the left edge of the rectangle
 int getTop()
          Get the top of the rectangle
 int getWidth()
          Get the width of the rectangle
 void read()
           
 void set(int top, int left, int height, int width)
          Set the Rect dimensions
 int size()
           
 void write()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NIVision.Rect

public NIVision.Rect(int top,
                     int left,
                     int height,
                     int width)
Create a new Rect with the specified dimensions

Parameters:
top - The top of the rectangle
left - The left edge of the rectangle
height - The height of the rectangle
width - The width of the rectangle
Method Detail

read

public void read()

write

public void write()

size

public int size()

free

public void free()
Free the memory used by this range


set

public void set(int top,
                int left,
                int height,
                int width)
Set the Rect dimensions

Parameters:
top - The top of the rectangle
left - The left edge of the rectangle
height - The height of the rectangle
width - The width of the rectangle

getTop

public int getTop()
Get the top of the rectangle

Returns:
The top edge of the rectangle in pixels, measured from the top of the image

getLeft

public int getLeft()
Get the left edge of the rectangle

Returns:
The left edge of the rectangle in pixels measured from the left of the image

getWidth

public int getWidth()
Get the width of the rectangle

Returns:
The width of the rectangle in pixels

getHeight

public int getHeight()
Get the height of the rectangle

Returns:
The height edge of the rectangle in pixels