|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.ed.inf.sdp2012.group7.vision.InitialLocation
public class InitialLocation
Get the colour value of yellow and do the manual testing stuff
Field Summary | |
---|---|
java.awt.Point |
testCoords
|
boolean |
testMouseClick
|
Constructor Summary | |
---|---|
InitialLocation()
Constructor |
|
InitialLocation(VisionFeed visionFeed,
javax.swing.JFrame windowFrame,
ThresholdsState ts)
The constructor |
Method Summary | |
---|---|
java.awt.Point |
correctPoint(java.awt.Point p)
Necessary for some reason |
int |
correctX(int x)
|
int |
correctY(int y)
|
java.awt.Color |
getClickColor(java.lang.String message)
Get the color where we click |
java.awt.Color |
getColor(java.awt.Point p,
java.awt.image.BufferedImage image)
Gets the colour where clicked |
void |
getColors()
|
java.util.ArrayList<java.lang.Double> |
getOrientationPoints()
|
java.util.ArrayList<java.lang.Integer> |
getPitchPoints()
|
void |
getTestData(java.awt.image.BufferedImage image,
java.lang.String filename)
Get the data for the test framework |
java.util.ArrayList<java.awt.Point> |
getTestPoints()
|
java.util.ArrayList<java.awt.Point> |
getTestPointsAuto()
|
java.awt.image.BufferedImage |
markImage(java.awt.image.BufferedImage image)
Draw the pitch boundaries on |
void |
mouseClicked(java.awt.event.MouseEvent e)
Checks when mouse is clicked |
void |
mouseDragged(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mouseMoved(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
setYellowValues(java.awt.Color c)
|
void |
setYellowValues(int r,
int g,
int b)
Set the yellow values r,g,b gained from setYellowValues with just a c |
void |
writeImage(java.awt.image.BufferedImage image,
java.lang.String fn)
Save an image |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public boolean testMouseClick
public java.awt.Point testCoords
Constructor Detail |
---|
public InitialLocation(VisionFeed visionFeed, javax.swing.JFrame windowFrame, ThresholdsState ts)
visionFeed
- windowFrame
- ts
- public InitialLocation()
Method Detail |
---|
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public java.util.ArrayList<java.awt.Point> getTestPoints()
public java.util.ArrayList<java.awt.Point> getTestPointsAuto()
public java.util.ArrayList<java.lang.Double> getOrientationPoints()
public java.util.ArrayList<java.lang.Integer> getPitchPoints()
public void getTestData(java.awt.image.BufferedImage image, java.lang.String filename)
image
- Frame to testfilename
- What to call saved filepublic void getColors()
public void setYellowValues(java.awt.Color c)
public void setYellowValues(int r, int g, int b)
r
- red channelg
- green channelb
- blue channelpublic java.awt.Color getClickColor(java.lang.String message)
message
- Asks what to click on
public java.awt.Point correctPoint(java.awt.Point p)
p
- Point to correct
public int correctX(int x)
public int correctY(int y)
public java.awt.Color getColor(java.awt.Point p, java.awt.image.BufferedImage image)
p
- Point where we clickedimage
- Frame to get colour from
public java.awt.image.BufferedImage markImage(java.awt.image.BufferedImage image)
image
- Frame to draw on
public void writeImage(java.awt.image.BufferedImage image, java.lang.String fn)
image
- What to savefn
- Where to save
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |