Package JavaLineArray

Class Channels

java.lang.Object
JavaLineArray.Channels

public final class Channels extends Object
CELineArray Channels class calculates the channel points
Author:
Michael Deutch
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected static POINT2[]
    CoordIL2Double(int nPrinter, POINT2[] pLinePoints, int nUpperLower, int vblCounter, int linetype, int vblChannelWidth)
     
    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
    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.
    static boolean
     
    protected static int
    GetTripleCountDouble(POINT2[] pLinePoints, int vblCounter, int linetype)
    Calculates the point count for the concertina wire and fence channels.
    static void
     
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Channels

      public Channels()
  • Method Details

    • setClient

      public static void setClient(String value)
    • getShiftLines

      public static boolean getShiftLines()
    • GetTripleCountDouble

      protected static int GetTripleCountDouble(POINT2[] pLinePoints, int vblCounter, int linetype)
      Calculates the point count for the concertina wire and fence channels.
      Parameters:
      pLinePoints - client points
      vblCounter - the client point count
      linetype - the line type
      Returns:
      the number of points required to render the symbol
    • CoordIL2Double

      protected static POINT2[] CoordIL2Double(int nPrinter, POINT2[] pLinePoints, int nUpperLower, int vblCounter, int linetype, int vblChannelWidth)
    • 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 1
      pLinePoints - client points
      nUpperLower - 0 for lower channel line, 1 for upper channel line
      vblCounter - the client point count
      vbiDrawThis - the line type
      vblChannelWidth - 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 type
      pLinePoints -
      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-tuples
      lpsaLowerVBPoints - the client points as 2 tuples
      resultVBPoints - the result points as 3-tuples x,y,linestyle
      vblUpperCounter - the number of client 2-tuples
      vblLowerCounter - the number of client 2-tuples
      vbiDrawThis - the line type as a hierarchy
      vblChannelWidth - the channel width in pixels
      useptr - the distance in pixels from the arrow tip to the back of the arrowhead
      shapes - the ShapeInfo array, each object contains the GeneralPath
      rev - the Mil-Standard 2525 revision
      Returns: