public class AreaSurvey extends FollowPath
Modifier and Type | Field and Description |
---|---|
protected double |
angle |
protected boolean |
calculateAngle |
protected pt.lsts.neptus.mp.maneuvers.AreaSurvey.Corner |
corner |
protected java.awt.Color |
editColor |
protected double |
horizontalStep |
protected java.awt.Color |
idleColor |
protected java.util.ArrayList<LocationType> |
path |
protected PolygonType |
polygon |
protected PolygonType.Vertex |
vertex |
adapter, editing, editingHelpText, hasTime, lastDragPoint, PERCENT_MPS_CONVERSION, points, RPM_MPS_CONVERSION, RPM_PERCENT_CONVERSION, showEditingText, speed, startLoc
circleDiam, COLOR_HELP, CT_BOOLEAN, CT_NUMBER, CT_STRING, customSettings, customSettingsTypeHint, DEFAULT_ROOT_ELEMENT, endActions, id, startActions, T, vehicles, X, Y, Z
Constructor and Description |
---|
AreaSurvey() |
Modifier and Type | Method and Description |
---|---|
protected java.util.Vector<com.l2fprod.common.propertysheet.DefaultProperty> |
additionalProperties() |
java.lang.Object |
clone()
Clone this maneuver
|
ManeuverLocation |
getEndLocation()
Retrieve the position where the vehicle will end this maneuver
|
org.dom4j.Document |
getManeuverAsDocument(java.lang.String rootElementName)
Get each maneuver specific data.
|
java.lang.String |
getName() |
PolygonType |
getPolygon() |
ManeuverLocation |
getStartLocation()
Retrieve the position where the vehicle will start this maneuver
|
PolygonType.Vertex |
intercepted(java.awt.event.MouseEvent evt,
StateRenderer2D source)
Given a point in the map, checks if there is some vertex intercepted.
|
void |
loadManeuverFromXML(java.lang.String xml)
Expects only maneuver specific data.
|
static void |
main(java.lang.String[] args) |
void |
mouseClicked(java.awt.event.MouseEvent event,
StateRenderer2D source) |
void |
mouseDragged(java.awt.event.MouseEvent event,
StateRenderer2D source) |
void |
mousePressed(java.awt.event.MouseEvent event,
StateRenderer2D source) |
void |
mouseReleased(java.awt.event.MouseEvent event,
StateRenderer2D source) |
void |
paintOnMap(java.awt.Graphics2D g2d,
PlanElement planElement,
StateRenderer2D renderer) |
void |
parseIMCMessage(pt.lsts.imc.IMCMessage message) |
void |
recalcPoints()
Call this to update the maneuver points.
|
pt.lsts.imc.IMCMessage |
serializeToIMC() |
void |
setManeuverLocation(ManeuverLocation location)
Set the maneuver's position
|
void |
setPolygon(PolygonType polygon) |
void |
setProperties(com.l2fprod.common.propertysheet.Property[] properties) |
void |
translate(double offsetNorth,
double offsetEast,
double offsetDown)
Translate the position of this maneuver
|
createFollowPathOrPattern, getCompletionTime, registerPattern
editPointsDialog, focusGained, focusLost, getDistanceTravelled, getIconImage, getManeuverLocation, getMaxDepth, getMinDepth, getMouseCursor, getPathLocations, getPathPoints, getRadiusTolerance, getSpeed, getTooltipText, getWaypoints, isEditing, isExclusive, isShowEditingText, keyPressed, keyReleased, keyTyped, mouseExited, mouseMoved, paintInteraction, recalculateTimes, setActive, setAssociatedSwitch, setEditing, setOffsets, setShowEditingText, setSpeed, test1, wheelMoved
addTransition, asDocument, asDocument, asElement, asElement, asXML, asXML, clone, cloneActions, compareTo, createFromXML, endManeuver, getCustomSettings, getCustomSettingsTypeHint, getEndActions, getIcon, getId, getManeuverXml, getMaxTime, getMinTime, getMissionType, getProperties, getPropertiesDialogTitle, getPropertiesErrors, getReacheableManeuvers, getSamePositionManeuvers, getStartActions, getTransitionCondition, getType, getXPosition, getYPosition, hasEnded, interpolate, isInitialManeuver, loadFromXMLExtraParameters, loadFromXMLExtraParameters, loadManeuverXml, loadXMLWithSettings, loadXMLWithSettings, loadXMLWithSettings, removeTransition, setCustomSettings, setCustomSettingsTypeHint, setId, setInitialManeuver, setMaxTime, setMinTime, setMissionType, setVehicle, setVehicles, setXPosition, setYPosition, toString
protected PolygonType polygon
protected java.util.ArrayList<LocationType> path
protected double horizontalStep
protected double angle
protected boolean calculateAngle
protected pt.lsts.neptus.mp.maneuvers.AreaSurvey.Corner corner
protected java.awt.Color editColor
protected java.awt.Color idleColor
protected PolygonType.Vertex vertex
public java.lang.String getName()
getName
in interface StateRendererInteraction
getName
in class FollowPath
public void paintOnMap(java.awt.Graphics2D g2d, PlanElement planElement, StateRenderer2D renderer)
paintOnMap
in class FollowTrajectory
public PolygonType.Vertex intercepted(java.awt.event.MouseEvent evt, StateRenderer2D source)
public void mouseClicked(java.awt.event.MouseEvent event, StateRenderer2D source)
mouseClicked
in interface StateRendererInteraction
mouseClicked
in class FollowTrajectory
public void mousePressed(java.awt.event.MouseEvent event, StateRenderer2D source)
mousePressed
in interface StateRendererInteraction
mousePressed
in class FollowTrajectory
public void mouseDragged(java.awt.event.MouseEvent event, StateRenderer2D source)
mouseDragged
in interface StateRendererInteraction
mouseDragged
in class FollowTrajectory
ConsoleInteraction
public void mouseReleased(java.awt.event.MouseEvent event, StateRenderer2D source)
mouseReleased
in interface StateRendererInteraction
mouseReleased
in class FollowTrajectory
ConsoleInteraction
public void recalcPoints()
public ManeuverLocation getStartLocation()
LocatedManeuver
getStartLocation
in interface LocatedManeuver
getStartLocation
in class FollowTrajectory
public ManeuverLocation getEndLocation()
LocatedManeuver
getEndLocation
in interface LocatedManeuver
getEndLocation
in class FollowTrajectory
public final PolygonType getPolygon()
public final void setPolygon(PolygonType polygon)
polygon
- the polygon to setpublic void setManeuverLocation(ManeuverLocation location)
LocatedManeuver
setManeuverLocation
in interface LocatedManeuver
setManeuverLocation
in class FollowTrajectory
location
- The new location for this maneuverpublic void translate(double offsetNorth, double offsetEast, double offsetDown)
LocatedManeuver
translate
in interface LocatedManeuver
translate
in class FollowTrajectory
offsetNorth
- north offset amount, in metersoffsetEast
- east offset amount, in metersoffsetDown
- down offset amount, in metersprotected java.util.Vector<com.l2fprod.common.propertysheet.DefaultProperty> additionalProperties()
additionalProperties
in class FollowTrajectory
public void setProperties(com.l2fprod.common.propertysheet.Property[] properties)
setProperties
in interface PropertiesProvider
setProperties
in class FollowTrajectory
public pt.lsts.imc.IMCMessage serializeToIMC()
serializeToIMC
in interface IMCSerialization
serializeToIMC
in class FollowTrajectory
public void parseIMCMessage(pt.lsts.imc.IMCMessage message)
parseIMCMessage
in interface IMCSerialization
parseIMCMessage
in class FollowTrajectory
public java.lang.Object clone()
Maneuver
clone
in class FollowTrajectory
public org.dom4j.Document getManeuverAsDocument(java.lang.String rootElementName)
Maneuver
getManeuverAsDocument
in class FollowTrajectory
public void loadManeuverFromXML(java.lang.String xml)
Maneuver
loadManeuverFromXML
in class FollowTrajectory
public static void main(java.lang.String[] args)
Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.