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 int
AmbushPointsDouble
(POINT2[] pLinePoints) Calculates the points for AMBUSHprotected static int
GetDelayGraphicEtcDouble
(POINT2[] points) Calculates the points for DELAY, WITHDRAW, WDRAWUP, RETIREprotected static int
GetDISMATKBYFIREDouble
(POINT2[] points, int linetype) Calculates the points for ATKBYFIREprotected static void
GetDISMBlockDouble2
(POINT2[] points, int linetype) Calculates the points for BLOCK, MNFLDBLKprotected static int
GetDISMBreachDouble
(POINT2[] points, int linetype) Calculates the points for BREACH.protected static int
GetDISMByDifDouble
(POINT2[] points, int linetype, Rectangle2D clipBounds) Calculates the points for BYDIFprotected static int
GetDISMByImpDouble
(POINT2[] points, int linetype) Calculates the points for BYIMPprotected static int
GetDISMBypassDouble
(POINT2[] points, int linetype) Calculates the points for BYPASSprotected static int
GetDISMCanalizeDouble
(POINT2[] points, int linetype) Calculates the points for CANALIZEprotected static int
GetDISMClearDouble
(POINT2[] points, int linetype) Calculates the points for CLEAR.protected static int
GetDISMContainDouble
(POINT2[] points, int linetype) Calculates the points for CONTAINprotected static int
GetDISMCoverDouble
(POINT2[] points, int lineType) Calculates the points for SCREEN, COVER, GUARD, SARA.protected static int
GetDISMCoverDoubleRevC
(POINT2[] points, int linetype, int vblSaveCounter) rev C uses 4protected static int
GetDISMDisruptDouble
(POINT2[] points, int linetype) Calculates the points for DISRUPTprotected static int
GetDISMEasyDouble
(POINT2[] points, int linetype) Calculates the points for EASYprotected static int
GetDISMFixDouble
(POINT2[] points, int linetype, Rectangle2D clipBounds) Calculates the points for FIX, MNFLDFIXprotected static int
GetDISMGapDouble
(POINT2[] points, int linetype) Calculates the points for GAPprotected static int
GetDISMLinearTargetDouble
(POINT2[] points, int linetype, int vblCounter) Calculates the points for LINTGTprotected static int
GetDISMMinefieldDisruptDouble
(POINT2[] points, int linetype) Calculates the points for MNFLDDISprotected static void
GetDISMPAADouble
(POINT2[] points, int linetype) Calculates the points for PAA_RECTANGULAR.protected static void
GetDISMPenetrateDouble
(POINT2[] points, int linetype) Calculates the points for PENETRATEprotected static int
GetDISMRIPDouble
(POINT2[] points, int linetype) Calculates the points for RIPprotected static int
GetDISMSeizeDouble
(POINT2[] points, int linetype, double radius) Calculates the points for SEIZEprotected static int
GetDISMSupportByFireDouble
(POINT2[] points, int linetype) Calculates the points for SPTBYFIREstatic Shape2
getFDIShape
(TGLight tg, POINT2 ptA, POINT2 ptC) Gets shape for Feint, decoy, or dummy indicator.static Shape2
getFDIShape
(TGLight tg, POINT2 ptA, POINT2 ptB, POINT2 ptC) Gets shape for Feint, decoy, or dummy indicator for symbols with arrowhead.static float
normalizeAngle
(float angle) Returns an angle from 0 to 360
-
Constructor Details
-
DISMSupport
public DISMSupport()
-
-
Method Details
-
GetDelayGraphicEtcDouble
Calculates the points for DELAY, WITHDRAW, WDRAWUP, RETIRE- 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.
-