|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||

java.lang.Objectjava.awt.Component
java.awt.Container
java.awt.Window
java.awt.Frame
javax.swing.JFrame
cz.cuni.amis.pogamut.usar2004.samples.AirScanner.ScanPreview
public class ScanPreview
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JFrame |
|---|
JFrame.AccessibleJFrame |
| Nested classes/interfaces inherited from class java.awt.Frame |
|---|
Frame.AccessibleAWTFrame |
| Nested classes/interfaces inherited from class java.awt.Window |
|---|
Window.AccessibleAWTWindow |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary | |
|---|---|
Record |
record
|
Record |
recordPrev
|
Point |
translate
|
| Fields inherited from class javax.swing.JFrame |
|---|
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled |
| Fields inherited from class java.awt.Frame |
|---|
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface javax.swing.WindowConstants |
|---|
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
ScanPreview()
Creates new form ScanPreview |
|
| Method Summary | |
|---|---|
void |
issueRay(Graphics g,
int index,
double range,
double angle,
cz.cuni.amis.pogamut.base3d.worldview.object.Location loc,
cz.cuni.amis.pogamut.base3d.worldview.object.Rotation rot)
Utilizes all possible information from one ray. |
void |
paint(Graphics sharpGraphics)
Double buffered system of repainting takes place here. |
void |
refreshGraphics()
Invalidates the form. |
void |
runScanPreview()
|
void |
saveImage(BufferedImage img,
File outputfile)
Saves an image to file system at specified path. |
void |
setDatFile(boolean write)
Flag for saving the dat fila along with the output image |
void |
setDivPoint(cz.cuni.amis.pogamut.base3d.worldview.object.Location diversion)
Adds a diversion point to local collection of Diversion Point. |
void |
setHighRiskPoint(cz.cuni.amis.pogamut.base3d.worldview.object.Location highRisk)
Adds a point to local collection of High risk situation points. |
void |
setInfo(String text)
Actualizes an info set that will be inserted to the white stripe on the preview form. |
void |
setLocation(cz.cuni.amis.pogamut.base3d.worldview.object.Location loc)
Sets the estimated locatio nof the robot. |
void |
setLowRiskPoint(cz.cuni.amis.pogamut.base3d.worldview.object.Location lowRisk)
Adds a point to local collection of Low risk situation points. |
void |
setOffset(int offset)
The Robot keeps its altitude based on an avarage value of ten rays below the robot. |
void |
setOrientation(cz.cuni.amis.pogamut.base3d.worldview.object.Rotation rot)
Sets the estimated rotation of the robot. |
void |
setPostInfo(String info)
Actualizes an info set that will be inserted to the output image. |
void |
setRecord(Record rec)
Adds a record of location and list of ranges from Range scanner. |
void |
setRechargeBreakPoint(cz.cuni.amis.pogamut.base3d.worldview.object.Location breakPoint)
Adds a point to local collection of Battery_needed Points. |
void |
setSonars(Collection<Double> sonars)
Sets the sonar data that bear an information about what is going on in front of the Robot. |
void |
setStartLocation(cz.cuni.amis.pogamut.base3d.worldview.object.Location start)
Assd a start location point to local collection of Start Locations. |
| Methods inherited from class java.awt.Frame |
|---|
addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.awt.MenuContainer |
|---|
getFont, postEvent |
| Field Detail |
|---|
public Point translate
public Record record
public Record recordPrev
| Constructor Detail |
|---|
public ScanPreview()
| Method Detail |
|---|
public void runScanPreview()
public void saveImage(BufferedImage img,
File outputfile)
img - Image to save.path - Path to save image to.public void paint(Graphics sharpGraphics)
paint in class WindowsharpGraphics - Graphics to show.
public void issueRay(Graphics g,
int index,
double range,
double angle,
cz.cuni.amis.pogamut.base3d.worldview.object.Location loc,
cz.cuni.amis.pogamut.base3d.worldview.object.Rotation rot)
g - Graphics to write to.index - Index of the ray.range - Range measured.angle - Angle of the ray.loc - Robot's location.rot - Robot's orientation.public void setOffset(int offset)
offset - Index of the first ray of the bunch which are used to
estimate an altitude of the Robotpublic void setSonars(Collection<Double> sonars)
sonars - Collection of double values sorted from left to right.public void setDivPoint(cz.cuni.amis.pogamut.base3d.worldview.object.Location diversion)
diversion - Location of a point that pulls the Robot out of crisis
sitation.public void setStartLocation(cz.cuni.amis.pogamut.base3d.worldview.object.Location start)
start - A location that signifies where the robot started from.public void setRechargeBreakPoint(cz.cuni.amis.pogamut.base3d.worldview.object.Location breakPoint)
breakPoint - Location of a point when the scanning process was
interrupted by low battery level.public void setHighRiskPoint(cz.cuni.amis.pogamut.base3d.worldview.object.Location highRisk)
highRisk - Location of a point where the robot was in high risk
situation.public void setLowRiskPoint(cz.cuni.amis.pogamut.base3d.worldview.object.Location lowRisk)
lowRisk - Location of a point where the robot was in low risk
situation.public void setRecord(Record rec)
rec - Object from the robot's sensor estimating location and ranges
of Range scanner.public void setPostInfo(String info)
info - Set of name/value pairs to write to the output image.public void setDatFile(boolean write)
write - True to save a *.dat file, false to not.public void refreshGraphics()
public void setInfo(String text)
text - Set of name/value pairs to write to the white stripe on the
preview form.public void setOrientation(cz.cuni.amis.pogamut.base3d.worldview.object.Rotation rot)
rot - Orientation of the robotpublic void setLocation(cz.cuni.amis.pogamut.base3d.worldview.object.Location loc)
loc - Location of the robot.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||