All Packages Class Hierarchy This Package Previous Next Index
Class pinball.buffer.BufferInfo
java.lang.Object
|
+----pinball.buffer.BufferInfo
- public class BufferInfo
- extends Object
- implements Serializable
The information buffer's information.
This contains data about the frame from the camera.
It is passed around to each of the threads. Each thread makes whatever
analysis it needs to do on the information so that the system can play
pinball.
- See Also:
- Buffer
-
blip
- The object found.
-
blips
- The frame of found objects.
-
bottom
- Used to define the top & bottom of the image to see if the ball is in play or out of
play.
-
clearing
- Are the frames to be cleared on the window.
-
dataIO
- The data IO device.
-
flipperFlipped
- Did the flipper flip.
-
flipperOffset
- The y offset for the flippers.
-
frame
- The frame from the camera.
-
height
- The size of the frame.
-
id
- The id of the information buffer.
-
imageOffset
- The image offset.
-
number
- The number of the frame grabed.
-
objects
- Table of found objects.
-
resizeInfo
- The resize information for the image.
-
size
- Number of bytes for the image.
-
stub
- The stub for the strategy.
-
timestamp
- The time stamper, used to keep track of the time used by various processes.
-
top
- Used to define the top & bottom of the image to see if the ball is in play or out of
play.
-
transfer
- The transfer size of the image.
-
verboseFrame
- The frame from the camera.
-
width
- The size of the frame.
-
XOffset
- The x & y offsets for the image.
-
YOffset
- The x & y offsets for the image.
-
BufferInfo()
- For extended class.
-
BufferInfo(int)
-
Build the buffer information.
-
blip()
-
Get the blip (ball) seen.
-
bottom()
- The bottom of the playfield.
-
cameraInfo(int)
-
Make the frame for the image.
-
cameraInfo(int, int, int)
-
Make the frame for the image.
-
cameraInfo(int, int, int, int)
-
Make the frame for the image.
-
clearing()
-
Get the clearing flag.
-
clearing(boolean)
-
Set the clearing flag.
-
flipperFlipped()
- Get the flippers flipped condition.
-
flipperFlipped(boolean)
- Set the flippers flipped condition.
-
flipperOffset()
- Get the flipper offset.
-
flipperOffset(int)
- Set the flipper offset.
-
get()
- Get the frame, used to pass buffer to camera.
-
getBlipsFrame()
- Get the frame of found objects.
-
getCameraFrame()
- Get the CameraFrame for saving in a log file.
-
getObjects()
- Get the objects table.
-
getStub()
- Get the stub for the system.
-
height()
- Get the height.
-
height(int)
-
Set frame height.
-
id()
-
Get the buffer's id.
-
imageOffset()
-
Get the image offset.
-
imageOffset(int)
- Set the image offset.
-
number()
- Get frame grabbed number.
-
number(int)
-
Set frame grabbed number.
-
offsets(int, int)
- Set the location of the offsets.
-
resize()
- Get the resize flag.
-
resize(int, int, int, int)
-
Set the resize flag and include resize information.
-
resize(int, int, int, int, int)
-
Set the resize flag and include resize information.
-
resized()
- Set the condition that it was resized.
-
resizeTransfer()
- Get the transfer size.
-
resizeX()
- Get the resize x size.
-
resizeXOffset()
- Get the resize x offset.
-
resizeY()
- Get the resize y size.
-
resizeYOffset()
- Get the resize y offset.
-
set(CameraFrame)
-
Set the frame buffer.
-
setBlips(int[][], Vector)
-
Store the found objects frame and Vector table.
-
setBlips(Vector)
-
Store the objects found.
-
setStub(Stub)
- Set the stub for the system.
-
time()
-
The time stamp used in the threads.
-
top()
- The top of the playfield.
-
topBottom(int, int)
- Set the top & bottom for the in play area.
-
transfer()
- Get the transfer size.
-
verboseFrame()
- Get the verbose frame.
-
verboseFrame(byte[])
- Set the verbose frame.
-
width()
- Get the width of the frame.
-
width(int)
-
Set frame width.
-
XOffset()
- Get the x offset.
-
YOffset()
- Get the y offset.
frame
protected CameraFrame frame
- The frame from the camera.
verboseFrame
protected byte verboseFrame[]
- The frame from the camera.
blips
protected int blips[][]
- The frame of found objects.
objects
protected Vector objects
- Table of found objects.
id
protected int id
- The id of the information buffer.
number
protected int number
- The number of the frame grabed.
timestamp
protected transient TimeStamp timestamp
- The time stamper, used to keep track of the time used by various processes.
blip
protected Blip blip
- The object found.
width
protected int width
- The size of the frame.
height
protected int height
- The size of the frame.
XOffset
protected int XOffset
- The x & y offsets for the image.
YOffset
protected int YOffset
- The x & y offsets for the image.
transfer
protected int transfer
- The transfer size of the image.
clearing
protected static boolean clearing
- Are the frames to be cleared on the window.
flipperOffset
protected int flipperOffset
- The y offset for the flippers.
flipperFlipped
protected boolean flipperFlipped
- Did the flipper flip.
imageOffset
protected static int imageOffset
- The image offset.
size
protected int size
- Number of bytes for the image.
top
protected static int top
- Used to define the top & bottom of the image to see if the ball is in play or out of
play.
bottom
protected static int bottom
- Used to define the top & bottom of the image to see if the ball is in play or out of
play.
resizeInfo
protected static ResizeInfo resizeInfo
- The resize information for the image.
dataIO
protected static DataIO dataIO
- The data IO device.
stub
protected static Stub stub
- The stub for the strategy.
BufferInfo
public BufferInfo(int id)
- Build the buffer information.
- Parameters:
- id - id number for buffer.
BufferInfo
public BufferInfo()
- For extended class.
id
public int id()
- Get the buffer's id.
- Returns:
- the buffer id.
cameraInfo
public void cameraInfo(int size,
int width,
int height,
int transfer)
- Make the frame for the image.
- Parameters:
- size - the frame.
- width - of the frame.
- height - the frame.
cameraInfo
public void cameraInfo(int size,
int width,
int height)
- Make the frame for the image.
- Parameters:
- size - the frame.
- width - of the frame.
- height - the frame.
cameraInfo
public void cameraInfo(int size)
- Make the frame for the image.
- Parameters:
- size - the frame.
get
public byte[] get()
- Get the frame, used to pass buffer to camera.
- Returns:
- frame to store image.
getCameraFrame
public CameraFrame getCameraFrame()
- Get the CameraFrame for saving in a log file.
- Returns:
- frame from camera.
set
public void set(CameraFrame f)
- Set the frame buffer.
- Parameters:
- b - frame to write to.
setBlips
public void setBlips(int b[][],
Vector f)
- Store the found objects frame and Vector table.
- Parameters:
- b - the blips frame.
- f - The objects found.
setBlips
public void setBlips(Vector f)
- Store the objects found.
- Parameters:
- f - The objects found.
getBlipsFrame
public int[][] getBlipsFrame()
- Get the frame of found objects.
- Returns:
- the blips frame.
getObjects
public Vector getObjects()
- Get the objects table.
number
public void number(int number)
- Set frame grabbed number.
- Parameters:
- number - the number of the frame.
number
public int number()
- Get frame grabbed number.
- Returns:
- the number of this frame.
blip
public Blip blip()
- Get the blip (ball) seen.
- Returns:
- blip.
time
public TimeStamp time()
- The time stamp used in the threads.
- Returns:
- the time stamp.
width
public void width(int w)
- Set frame width.
- Parameters:
- width - of frame.
height
public void height(int h)
- Set frame height.
- Parameters:
- height - of frame.
width
public int width()
- Get the width of the frame.
- Returns:
- width.
height
public int height()
- Get the height.
- Returns:
- height.
offsets
public void offsets(int x,
int y)
- Set the location of the offsets.
- Parameters:
- x - xoffset.
- y - yoffset.
resizeX
public int resizeX()
- Get the resize x size.
- Returns:
- x resize.
resizeY
public int resizeY()
- Get the resize y size.
- Returns:
- y resize.
resizeXOffset
public int resizeXOffset()
- Get the resize x offset.
- Returns:
- x resize offset.
resizeYOffset
public int resizeYOffset()
- Get the resize y offset.
- Returns:
- y resize offset.
resizeTransfer
public int resizeTransfer()
- Get the transfer size.
- Returns:
- the transfer size.
XOffset
public int XOffset()
- Get the x offset.
- Returns:
- x offset.
YOffset
public int YOffset()
- Get the y offset.
- Returns:
- y offset.
transfer
public int transfer()
- Get the transfer size.
- Returns:
- transfer size.
resize
public void resize(int x,
int y,
int OX,
int OY,
int t)
- Set the resize flag and include resize information.
- Parameters:
- x - x size.
- y - y size.
- OX - x offset.
- OY - y offset.
- t - transfer offset.
resize
public void resize(int x,
int y,
int OX,
int OY)
- Set the resize flag and include resize information.
- Parameters:
- x - x size.
- y - y size.
- OX - x offset.
- OY - y offset.
resize
public boolean resize()
- Get the resize flag.
- Returns:
- resize flag.
resized
public void resized()
- Set the condition that it was resized.
clearing
public void clearing(boolean c)
- Set the clearing flag. Will clear the frame on the display. Used
to clear when the ball's location is draw near the edge of the display.
Clears the cross hair that's left at the edge.
- Parameters:
- c - clearing status.
clearing
public boolean clearing()
- Get the clearing flag.
- Parameters:
- clearing - status.
flipperOffset
public int flipperOffset()
- Get the flipper offset.
Return flipper offset.
flipperOffset
public void flipperOffset(int i)
- Set the flipper offset.
- Parameters:
- i - flipper offset.
imageOffset
public void imageOffset(int i)
- Set the image offset.
- Parameters:
- i - the image offset.
imageOffset
public int imageOffset()
- Get the image offset.
- Returns:
- the image offset.
flipperFlipped
public void flipperFlipped(boolean status)
- Set the flippers flipped condition.
- Parameters:
- status - the flippers flipped status.
flipperFlipped
public boolean flipperFlipped()
- Get the flippers flipped condition.
- Returns:
- the status of the flippers flipped status.
topBottom
public void topBottom(int t,
int b)
- Set the top & bottom for the in play area.
Top is the top of the screen to define anything over that is to be
in play.
Bottom is the end of the playing area. Anything under that is out of
play.
- Parameters:
- t - top of playfield.
- b - bottom of playfield.
top
public int top()
- The top of the playfield.
- Returns:
- top of playfield.
bottom
public int bottom()
- The bottom of the playfield.
- Returns:
- bottom of playfield.
setStub
public void setStub(Stub s)
- Set the stub for the system.
- Parameters:
- s - The stub.
getStub
public Stub getStub()
- Get the stub for the system.
- Returns:
- The stub.
verboseFrame
public byte[] verboseFrame()
- Get the verbose frame.
- Returns:
- verbose frame.
verboseFrame
public void verboseFrame(byte verboseFrame[])
- Set the verbose frame.
- Parameters:
- verbose - frame.
All Packages Class Hierarchy This Package Previous Next Index