public class ManeuversUtil
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.awt.Color |
editBoxColor |
static java.awt.Color |
noEditBoxColor |
protected static int |
T |
protected static int |
X |
protected static int |
Y |
protected static int |
Z |
Modifier and Type | Method and Description |
---|---|
static java.util.Vector<double[]> |
calcCrossHatchPatternPoints(double width,
double hstep,
double curvOff,
boolean squareCurve,
double bearingRad) |
static java.util.Vector<double[]> |
calcExpansiveSquarePatternPointsMaxBox(double width,
double hstep,
double bearingRad,
boolean invertY) |
static java.util.Vector<double[]> |
calcRIPatternPoints(double width,
double hstep,
double alternationPercent,
double curvOff,
boolean squareCurve,
double bearingRad) |
static java.util.Vector<double[]> |
calcRowsPoints(double width,
double length,
double hstep,
double alternationPercent,
double curvOff,
boolean squareCurve,
double bearingRad,
double crossAngleRadians) |
static java.util.Vector<double[]> |
calcRowsPoints(double width,
double length,
double hstep,
double alternationPercent,
double curvOff,
boolean squareCurve,
double bearingRad,
double crossAngleRadians,
boolean invertY) |
static <M extends Maneuver> |
getManeuverFromType(java.lang.String type) |
static java.util.Vector<com.l2fprod.common.propertysheet.DefaultProperty> |
getPropertiesFromManeuver(Maneuver man) |
static double |
getSpeedMps(Maneuver man) |
static void |
paintBox(java.awt.Graphics2D g,
double zoom,
double width,
double length,
double x0,
double y0,
double bearingRad,
double crossAngleRadians,
boolean fill,
boolean invertY,
boolean editMode) |
static void |
paintPointLineList(java.awt.Graphics2D g2d,
double zoom,
java.util.List<double[]> points,
boolean paintSSRange,
double sRange) |
static void |
paintPointLineList(java.awt.Graphics2D g2d,
double zoom,
java.util.List<double[]> points,
boolean paintSSRange,
double sRange,
boolean editMode) |
static void |
setPropertiesToManeuver(Maneuver man,
com.l2fprod.common.propertysheet.Property[] properties) |
protected static final int X
protected static final int Y
protected static final int Z
protected static final int T
public static final java.awt.Color noEditBoxColor
public static final java.awt.Color editBoxColor
public static java.util.Vector<double[]> calcRIPatternPoints(double width, double hstep, double alternationPercent, double curvOff, boolean squareCurve, double bearingRad)
width
- hstep
- alternationPercent
- curvOff
- squareCurve
- bearingRad
- public static java.util.Vector<double[]> calcCrossHatchPatternPoints(double width, double hstep, double curvOff, boolean squareCurve, double bearingRad)
width
- hstep
- curvOff
- squareCurve
- bearingRad
- public static java.util.Vector<double[]> calcRowsPoints(double width, double length, double hstep, double alternationPercent, double curvOff, boolean squareCurve, double bearingRad, double crossAngleRadians)
width
- length
- hstep
- alternationPercent
- curvOff
- squareCurve
- bearingRad
- crossAngleRadians
- public static java.util.Vector<double[]> calcRowsPoints(double width, double length, double hstep, double alternationPercent, double curvOff, boolean squareCurve, double bearingRad, double crossAngleRadians, boolean invertY)
width
- length
- hstep
- alternationPercent
- curvOff
- squareCurve
- bearingRad
- crossAngleRadians
- invertY
- public static java.util.Vector<double[]> calcExpansiveSquarePatternPointsMaxBox(double width, double hstep, double bearingRad, boolean invertY)
public static void paintPointLineList(java.awt.Graphics2D g2d, double zoom, java.util.List<double[]> points, boolean paintSSRange, double sRange)
g2d
- zoom
- points
- paintSSRange
- sRange
- public static void paintPointLineList(java.awt.Graphics2D g2d, double zoom, java.util.List<double[]> points, boolean paintSSRange, double sRange, boolean editMode)
g2d
- zoom
- points
- paintSSRange
- sRange
- editMode
- public static void paintBox(java.awt.Graphics2D g, double zoom, double width, double length, double x0, double y0, double bearingRad, double crossAngleRadians, boolean fill, boolean invertY, boolean editMode)
g2d
- zoom
- width
- length
- x0
- y0
- bearingRad
- crossAngleRadians
- fill
- invertY
- editMode
- public static double getSpeedMps(Maneuver man)
public static java.util.Vector<com.l2fprod.common.propertysheet.DefaultProperty> getPropertiesFromManeuver(Maneuver man)
man
- public static void setPropertiesToManeuver(Maneuver man, com.l2fprod.common.propertysheet.Property[] properties)
man
- properties
- public static <M extends Maneuver> java.lang.Class<M> getManeuverFromType(java.lang.String type)
Copyright © 2004-2020 FEUP-LSTS and Neptus developers. All Rights Reserved.