Class EchelonSymbol

    • Field Detail

      • DEFAULT_OFFSET

        protected static final Offset DEFAULT_OFFSET
      • sidc

        protected java.lang.String sidc
        Identifier for this graphic.
      • orientationPosition

        protected Position orientationPosition
        The label is drawn along a line from the label position to the orientation position.
      • rotation

        protected Angle rotation
        Rotation to apply to symbol, computed each frame.
    • Constructor Detail

      • EchelonSymbol

        public EchelonSymbol​(java.lang.String sidc)
        Constructs a new symbol with the specified position. The position specifies the latitude, longitude, and altitude where this symbol is drawn on the globe. The position's altitude component is interpreted according to the altitudeMode.
        Parameters:
        sidc - MIL-STD-2525C sidc code.
        Throws:
        java.lang.IllegalArgumentException - if sidc is null, or does not contain a value for the Echelon field.
    • Method Detail

      • getOrientationPosition

        public Position getOrientationPosition()
        Indicates the orientation position. The label oriented on a line drawn from the label's position to the orientation position.
        Returns:
        Position used to orient the label. May be null.
      • setOrientationPosition

        public void setOrientationPosition​(Position orientationPosition)
        Specifies the orientation position. The label is oriented on a line drawn from the label's position to the orientation position. If the orientation position is null then the label is drawn with no rotation.
        Parameters:
        orientationPosition - Draw label oriented toward this position.
      • getIdentifier

        public java.lang.String getIdentifier()
        Indicates a string identifier for this symbol. The format of the identifier depends on the symbol set to which this symbol belongs. For symbols belonging to the MIL-STD-2525 symbol set, this returns a 15-character alphanumeric symbol identification code (SIDC).
        Returns:
        an identifier for this symbol.
      • computeRotation

        protected Angle computeRotation​(Vec4 screenPoint,
                                        Vec4 orientationScreenPoint)
        Compute the amount of rotation to apply to a label in order to keep it oriented toward its orientation position.
        Parameters:
        screenPoint - Geographic position of the text, projected onto the screen.
        orientationScreenPoint - Orientation position, projected onto the screen.
        Returns:
        The rotation angle to apply when drawing the label.