Package JavaLineArray
Class Channels
java.lang.Object
JavaLineArray.Channels
CELineArray Channels class calculates the channel points
- Author:
- Michael Deutch
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static POINT2[]CoordIL2Double(int nPrinter, POINT2[] pLinePoints, int nUpperLower, int vblCounter, int linetype, int vblChannelWidth) protected static intGetChannel1Double(double[] lpsaUpperVBPoints, double[] lpsaLowerVBPoints, double[] resultVBPoints, int vblUpperCounter, int vblLowerCounter, int vbiDrawThis, int vblChannelWidth, int useptr, ArrayList<Shape2> shapes, int rev) Calculates the channel pointsprotected static POINT2[]GetChannelArray2Double(int nPrinter, POINT2[] pLinePoints, int nUpperLower, int vblCounter, int vbiDrawThis, int vblChannelWidth) Calculates a channel line and is called once each time for lower and upper channel lines.static booleanprotected static intGetTripleCountDouble(POINT2[] pLinePoints, int vblCounter, int linetype) Calculates the point count for the concertina wire and fence channels.static voidstatic voidshiftCATKBYFIREControlPoint(int linetype, ArrayList<POINT2> pLinePoints, double shift) Deprecated.tester function to shift counterattack by fire point back to account for aligning the rotary arrow tip with the anchor point.
-
Constructor Details
-
Channels
public Channels()
-
-
Method Details
-
setClient
-
getShiftLines
public static boolean getShiftLines() -
GetTripleCountDouble
Calculates the point count for the concertina wire and fence channels.- Parameters:
pLinePoints- client pointsvblCounter- the client point countlinetype- the line type- Returns:
- the number of points required to render the symbol
-
CoordIL2Double
-
GetChannelArray2Double
protected static POINT2[] GetChannelArray2Double(int nPrinter, POINT2[] pLinePoints, int nUpperLower, int vblCounter, int vbiDrawThis, int vblChannelWidth) Calculates a channel line and is called once each time for lower and upper channel lines.- Parameters:
nPrinter- always 1pLinePoints- client pointsnUpperLower- 0 for lower channel line, 1 for upper channel linevblCounter- the client point countvbiDrawThis- the line typevblChannelWidth- the channel width- Returns:
- the channel line array as POINT2
-
shiftCATKBYFIREControlPoint
public static void shiftCATKBYFIREControlPoint(int linetype, ArrayList<POINT2> pLinePoints, double shift) Deprecated.tester function to shift counterattack by fire point back to account for aligning the rotary arrow tip with the anchor point. the feature used to extend past the anchor so the control point was shove forward. Intended to be called by the tester. note: this function is not used by the CPOF client, it is for tester use only- Parameters:
linetype- line typepLinePoints-shift- amount to shift back the existing control point
-
GetChannel1Double
protected static int GetChannel1Double(double[] lpsaUpperVBPoints, double[] lpsaLowerVBPoints, double[] resultVBPoints, int vblUpperCounter, int vblLowerCounter, int vbiDrawThis, int vblChannelWidth, int useptr, ArrayList<Shape2> shapes, int rev) Calculates the channel points- Parameters:
lpsaUpperVBPoints- the client points as 2-tupleslpsaLowerVBPoints- the client points as 2 tuplesresultVBPoints- the result points as 3-tuples x,y,linestylevblUpperCounter- the number of client 2-tuplesvblLowerCounter- the number of client 2-tuplesvbiDrawThis- the line type as a hierarchyvblChannelWidth- the channel width in pixelsuseptr- the distance in pixels from the arrow tip to the back of the arrowheadshapes- the ShapeInfo array, each object contains the GeneralPathrev- the Mil-Standard 2525 revision- Returns:
-