Procedure Crosshair

Parent Previous Next

Description: Shows a crosshair in TerrainView™. The crosshair consists of four lines that run from the screen center outwards in horizontal and vertical direction. The length of the lines can be defined by an inner and an outer radius.

Struct:

Field Name

O

Type

Description

Enabled


boolean

Turns the crosshair on or off.

InnerRadiusX


int (i4)

Number of pixels from the screen center to the beginning of the horizontal line.

InnerRadiusY


int (i4)

Number of pixels from the screen center to the beginning of the vertical line.

OuterRadiusX


int (i4)

Number of pixels from the beginning of the horizontal line to the end of the line.

OuterRadiusY


int (i4)

Number of pixels from the beginning of the vertical line to the end of the line.

Color


double[4]

The color of the crosshair in the order RGBA, each component ranges from 0.0 to 1.0.