Package armyc2.c5isr.JavaLineArray
Class DISMSupport
java.lang.Object
armyc2.c5isr.JavaLineArray.DISMSupport
A class which imported many of the C++ functions from Trident
Systems Dismounted Intelligence Situational Awareness System (DISM) for
rendering Mil-Standard-2525 tactical lines. This class does not get instantiated
Much of the code is still the original DISM code.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static intAmbushPointsDouble(POINT2[] pLinePoints) Calculates the points for AMBUSHprotected static intGetDelayGraphicEtcDouble(POINT2[] points, int lineType) Calculates the points for line24 and line33 (DELAY, WITHDRAW, DISENGAGE, WDRAWUP, RETIRE, FPOL, RPOL, PURSUIT)protected static intGetDISMATKBYFIREDouble(POINT2[] points, int linetype) Calculates the points for ATKBYFIREprotected static voidGetDISMBlockDouble2(POINT2[] points, int linetype) Calculates the points for BLOCK, MNFLDBLKprotected static intGetDISMBreachDouble(POINT2[] points, int linetype) Calculates the points for BREACH.protected static intGetDISMByDifDouble(POINT2[] points, int linetype, Rectangle2D clipBounds) Calculates the points for BYDIFprotected static intGetDISMByImpDouble(POINT2[] points, int linetype) Calculates the points for BYIMPprotected static intGetDISMBypassDouble(POINT2[] points, int linetype) Calculates the points for BYPASSprotected static intGetDISMCanalizeDouble(POINT2[] points, int linetype) Calculates the points for CANALIZEprotected static intGetDISMClearDouble(POINT2[] points, int linetype) Calculates the points for CLEAR.protected static intGetDISMContainDouble(POINT2[] points, int linetype) Calculates the points for CONTAINprotected static intGetDISMCoverDouble(POINT2[] points, int lineType) Calculates the points for SCREEN, COVER, GUARD, SARA.protected static intGetDISMCoverDoubleRevC(POINT2[] points, int linetype, int vblSaveCounter) rev C uses 4protected static intGetDISMDisruptDouble(POINT2[] points, int linetype) Calculates the points for DISRUPTprotected static intGetDISMEasyDouble(POINT2[] points, int linetype) Calculates the points for EASYprotected static intGetDISMFixDouble(POINT2[] points, int linetype, Rectangle2D clipBounds) Calculates the points for FIX, MNFLDFIXprotected static intGetDISMGapDouble(POINT2[] points, int linetype) Calculates the points for GAPprotected static intGetDISMLinearTargetDouble(POINT2[] points, int linetype, int vblCounter) Calculates the points for LINTGTprotected static intGetDISMMinefieldDisruptDouble(POINT2[] points, int linetype) Calculates the points for MNFLDDISprotected static voidGetDISMPAADouble(POINT2[] points, int linetype) Calculates the points for PAA_RECTANGULAR.protected static voidGetDISMPenetrateDouble(POINT2[] points, int linetype) Calculates the points for PENETRATEprotected static intGetDISMRIPDouble(POINT2[] points, int linetype) Calculates the points for RIPprotected static intGetDISMSeizeDouble(POINT2[] points, int linetype, double radius) Calculates the points for SEIZEprotected static intGetDISMSupportByFireDouble(POINT2[] points, int linetype) Calculates the points for SPTBYFIREprotected static intGetEnvelopmentGraphicDouble(POINT2[] points) Calculates the points for ENVELOPMENTstatic Shape2getFDIShape(TGLight tg, POINT2 ptA, POINT2 ptC) Gets shape for Feint, decoy, or dummy indicator.static Shape2getFDIShape(TGLight tg, POINT2 ptA, POINT2 ptB, POINT2 ptC) Gets shape for Feint, decoy, or dummy indicator for symbols with arrowhead.static floatnormalizeAngle(float angle) Returns an angle from 0 to 360
-
Constructor Details
-
DISMSupport
public DISMSupport()
-
-
Method Details
-
GetDelayGraphicEtcDouble
Calculates the points for line24 and line33 (DELAY, WITHDRAW, DISENGAGE, WDRAWUP, RETIRE, FPOL, RPOL, PURSUIT)- Parameters:
points- OUT - the client points, also used for the returned points.
-
GetEnvelopmentGraphicDouble
Calculates the points for ENVELOPMENT- Parameters:
points- OUT - the client points, also used for the returned points.
-
GetDISMCoverDouble
Calculates the points for SCREEN, COVER, GUARD, SARA.- Parameters:
points- OUT - the client points, also used for the returned points.lineType- the line type.
-
GetDISMCoverDoubleRevC
rev C uses 4- Parameters:
points-linetype-- Returns:
-
GetDISMBypassDouble
Calculates the points for BYPASS- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMBreachDouble
Calculates the points for BREACH.- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMCanalizeDouble
Calculates the points for CANALIZE- Parameters:
points- - OUT - the client points, also used for the returned points.linetype- the line type.
-
getFDIShape
Gets shape for Feint, decoy, or dummy indicator. Does not check if tactical graphic should have indicator- Parameters:
tg- used to get line color and strokeptA- bottom left point of triangleptC- bottom right point of triangle- Returns:
- Dummy indicator shape
-
getFDIShape
Gets shape for Feint, decoy, or dummy indicator for symbols with arrowhead. Does not check if tactical graphic should have indicator Extends each point outside arrow as necessary- Parameters:
tg- used to get line color and strokeptA- bottom left point of arrowptB- arrow pointptC- bottom right point of arrow- Returns:
- Dummy indicator shape
-
GetDISMDisruptDouble
Calculates the points for DISRUPT- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMContainDouble
Calculates the points for CONTAIN- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMFixDouble
Calculates the points for FIX, MNFLDFIX- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMClearDouble
Calculates the points for CLEAR.- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMSeizeDouble
Calculates the points for SEIZE- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMRIPDouble
Calculates the points for RIP- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type
-
GetDISMByDifDouble
Calculates the points for BYDIF- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMPenetrateDouble
Calculates the points for PENETRATE- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMByImpDouble
Calculates the points for BYIMP- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMSupportByFireDouble
Calculates the points for SPTBYFIRE- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMATKBYFIREDouble
Calculates the points for ATKBYFIRE- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMGapDouble
Calculates the points for GAP- Parameters:
points- OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMMinefieldDisruptDouble
Calculates the points for MNFLDDIS- Parameters:
points- - OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMLinearTargetDouble
Calculates the points for LINTGT- Parameters:
points- - OUT - the client points, also used for the returned points.linetype- the line type.vblCounter- the number of points required to display the symbol
-
GetDISMBlockDouble2
Calculates the points for BLOCK, MNFLDBLK- Parameters:
points- - OUT - the client points, also used for the returned points.linetype- the line type.
-
GetDISMPAADouble
Calculates the points for PAA_RECTANGULAR.- Parameters:
points- - OUT - the client points, also used for the returned points.linetype- the line type.
-
normalizeAngle
Returns an angle from 0 to 360- Parameters:
angle- the angle to normalize- Returns:
- an angle in range from 0 to 360
-
GetDISMEasyDouble
Calculates the points for EASY- Parameters:
points- - OUT - the client points, also used for the returned points.linetype- the line type.
-
AmbushPointsDouble
Calculates the points for AMBUSH- Parameters:
pLinePoints- - OUT - the client points, also used for the returned points.
-